From 7ca25e20912c4f2d1558124d951ca1dc446bde29 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 9 Feb 2024 01:03:08 +0000 Subject: [PATCH 1/2] feat: Add support for pie charts, incident lists, dropdown groups, error reporting panels, section headers, and styling options on text widgets docs: updated some comments PiperOrigin-RevId: 605410874 Source-Link: https://github.com/googleapis/googleapis/commit/8aa881798104f793e79058978bd5aa0147661cee Source-Link: https://github.com/googleapis/googleapis-gen/commit/6782599ff384fd1851b9ae270536d130ecb5ee7a Copy-Tag: eyJwIjoiamF2YS1tb25pdG9yaW5nLWRhc2hib2FyZHMvLk93bEJvdC55YW1sIiwiaCI6IjY3ODI1OTlmZjM4NGZkMTg1MWI5YWUyNzA1MzZkMTMwZWNiNWVlN2EifQ== --- .../dashboard/v1/AlertChartProto.java | 85 - .../v1/CollapsibleGroupOrBuilder.java | 39 - .../dashboard/v1/CollapsibleGroupProto.java | 69 - .../monitoring/dashboard/v1/CommonProto.java | 136 - .../dashboard/v1/DashboardFilterProto.java | 87 - .../dashboard/v1/DashboardsProto.java | 125 - .../dashboard/v1/DashboardsServiceProto.java | 200 - .../v1/DeleteDashboardRequestOrBuilder.java | 59 - .../monitoring/dashboard/v1/LayoutsProto.java | 165 - .../v1/ListDashboardsRequestOrBuilder.java | 102 - .../dashboard/v1/LogsPanelProto.java | 69 - .../monitoring/dashboard/v1/MetricsProto.java | 190 - .../dashboard/v1/ScorecardProto.java | 121 - .../v1/TableDisplayOptionsOrBuilder.java | 101 - .../v1/TableDisplayOptionsProto.java | 80 - .../monitoring/dashboard/v1/TableProto.java | 133 - .../google/monitoring/dashboard/v1/Text.java | 928 ---- .../monitoring/dashboard/v1/TextProto.java | 71 - .../v1/TimeSeriesTableOrBuilder.java | 183 - .../monitoring/dashboard/v1/Widget.java | 3079 ------------ .../monitoring/dashboard/v1/WidgetProto.java | 125 - .../monitoring/dashboard/v1/XyChartProto.java | 157 - .../dashboard/v1/DashboardsServiceClient.java | 302 +- .../v1/DashboardsServiceSettings.java | 1 + .../dashboard/v1/gapic_metadata.json | 8 +- .../monitoring/dashboard/v1/package-info.java | 10 +- .../v1/stub/DashboardsServiceStub.java | 0 .../stub/DashboardsServiceStubSettings.java | 0 .../GrpcDashboardsServiceCallableFactory.java | 0 .../v1/stub/GrpcDashboardsServiceStub.java | 1 + ...pJsonDashboardsServiceCallableFactory.java | 0 .../stub/HttpJsonDashboardsServiceStub.java | 0 .../reflect-config.json | 360 ++ .../DashboardsServiceClientHttpJsonTest.java | 256 +- .../v1/DashboardsServiceClientTest.java | 242 +- .../dashboard/v1/MockDashboardsService.java | 0 .../v1/MockDashboardsServiceImpl.java | 0 .../dashboard/v1/DashboardsServiceGrpc.java | 610 +-- .../monitoring/dashboard/v1/Aggregation.java | 896 ++-- .../dashboard/v1/AggregationOrBuilder.java | 56 +- .../monitoring/dashboard/v1/AlertChart.java | 312 +- .../dashboard/v1/AlertChartOrBuilder.java | 27 +- .../dashboard/v1/AlertChartProto.java | 70 + .../monitoring/dashboard/v1/ChartOptions.java | 378 +- .../dashboard/v1/ChartOptionsOrBuilder.java | 24 +- .../dashboard/v1/CollapsibleGroup.java | 284 +- .../v1/CollapsibleGroupOrBuilder.java | 20 + .../dashboard/v1/CollapsibleGroupProto.java | 56 + .../monitoring/dashboard/v1/ColumnLayout.java | 841 ++-- .../dashboard/v1/ColumnLayoutOrBuilder.java | 36 +- .../monitoring/dashboard/v1/CommonProto.java | 123 + .../dashboard/v1/CreateDashboardRequest.java | 511 +- .../v1/CreateDashboardRequestOrBuilder.java | 54 +- .../monitoring/dashboard/v1/Dashboard.java | 1286 ++--- .../dashboard/v1/DashboardFilter.java | 677 +-- .../v1/DashboardFilterOrBuilder.java | 54 +- .../dashboard/v1/DashboardFilterProto.java | 72 + .../dashboard/v1/DashboardName.java | 0 .../dashboard/v1/DashboardOrBuilder.java | 130 +- .../dashboard/v1/DashboardsProto.java | 100 + .../dashboard/v1/DashboardsServiceProto.java | 183 + .../dashboard/v1/DeleteDashboardRequest.java | 350 +- .../v1/DeleteDashboardRequestOrBuilder.java | 34 + .../dashboard/v1/DrilldownsProto.java | 44 + .../dashboard/v1/ErrorReportingPanel.java | 1319 ++++++ .../v1/ErrorReportingPanelOrBuilder.java | 189 + .../v1/ErrorReportingPanelProto.java | 56 + .../dashboard/v1/GetDashboardRequest.java | 350 +- .../v1/GetDashboardRequestOrBuilder.java | 35 +- .../monitoring/dashboard/v1/GridLayout.java | 432 +- .../dashboard/v1/GridLayoutOrBuilder.java | 39 +- .../monitoring/dashboard/v1/IncidentList.java | 1196 +++++ .../dashboard/v1/IncidentListOrBuilder.java | 118 + .../dashboard/v1/IncidentListProto.java | 69 + .../monitoring/dashboard/v1/LayoutsProto.java | 140 + .../dashboard/v1/ListDashboardsRequest.java | 516 +- .../v1/ListDashboardsRequestOrBuilder.java | 71 + .../dashboard/v1/ListDashboardsResponse.java | 483 +- .../v1/ListDashboardsResponseOrBuilder.java | 45 +- .../monitoring/dashboard/v1/LogsPanel.java | 420 +- .../dashboard/v1/LogsPanelOrBuilder.java | 45 +- .../dashboard/v1/LogsPanelProto.java | 56 + .../monitoring/dashboard/v1/MetricsProto.java | 155 + .../monitoring/dashboard/v1/MosaicLayout.java | 907 ++-- .../dashboard/v1/MosaicLayoutOrBuilder.java | 39 +- .../dashboard/v1/PickTimeSeriesFilter.java | 817 ++-- .../v1/PickTimeSeriesFilterOrBuilder.java | 60 +- .../monitoring/dashboard/v1/PieChart.java | 2454 ++++++++++ .../dashboard/v1/PieChartOrBuilder.java | 83 + .../dashboard/v1/PieChartProto.java | 91 + .../monitoring/dashboard/v1/ProjectName.java | 0 .../monitoring/dashboard/v1/RowLayout.java | 842 ++-- .../dashboard/v1/RowLayoutOrBuilder.java | 36 +- .../monitoring/dashboard/v1/Scorecard.java | 1855 ++++---- .../dashboard/v1/ScorecardOrBuilder.java | 98 +- .../dashboard/v1/ScorecardProto.java | 108 + .../dashboard/v1/SectionHeader.java | 663 +++ .../dashboard/v1/SectionHeaderOrBuilder.java | 40 + .../dashboard/v1/SectionHeaderProto.java | 57 + .../dashboard/v1/ServiceMonitoringProto.java | 44 + .../dashboard/v1/SingleViewGroup.java | 411 ++ .../v1/SingleViewGroupOrBuilder.java | 10 + .../dashboard/v1/SingleViewGroupProto.java | 56 + .../dashboard/v1/SparkChartType.java | 82 +- .../v1/StatisticalTimeSeriesFilter.java | 457 +- .../StatisticalTimeSeriesFilterOrBuilder.java | 33 +- .../dashboard/v1/TableDisplayOptions.java | 449 +- .../v1/TableDisplayOptionsOrBuilder.java | 63 + .../v1/TableDisplayOptionsProto.java | 65 + .../monitoring/dashboard/v1/TableProto.java | 112 + .../google/monitoring/dashboard/v1/Text.java | 3612 ++++++++++++++ .../dashboard/v1/TextOrBuilder.java | 60 +- .../monitoring/dashboard/v1/TextProto.java | 101 + .../monitoring/dashboard/v1/Threshold.java | 736 ++- .../dashboard/v1/ThresholdOrBuilder.java | 48 +- .../dashboard/v1/TimeSeriesFilter.java | 911 ++-- .../v1/TimeSeriesFilterOrBuilder.java | 92 +- .../dashboard/v1/TimeSeriesFilterRatio.java | 1439 ++---- .../v1/TimeSeriesFilterRatioOrBuilder.java | 97 +- .../dashboard/v1/TimeSeriesQuery.java | 904 ++-- .../v1/TimeSeriesQueryOrBuilder.java | 95 +- .../dashboard/v1/TimeSeriesTable.java | 2245 +++------ .../v1/TimeSeriesTableOrBuilder.java | 117 + .../dashboard/v1/UpdateDashboardRequest.java | 428 +- .../v1/UpdateDashboardRequestOrBuilder.java | 41 +- .../monitoring/dashboard/v1/Widget.java | 4178 +++++++++++++++++ .../dashboard/v1/WidgetOrBuilder.java | 251 +- .../monitoring/dashboard/v1/WidgetProto.java | 128 + .../monitoring/dashboard/v1/XyChart.java | 2632 ++++------- .../dashboard/v1/XyChartOrBuilder.java | 132 +- .../monitoring/dashboard/v1/XyChartProto.java | 133 + .../monitoring/dashboard/v1/alertchart.proto | 2 +- .../dashboard/v1/collapsible_group.proto | 2 +- .../monitoring/dashboard/v1/common.proto | 6 +- .../monitoring/dashboard/v1/dashboard.proto | 6 +- .../dashboard/v1/dashboard_filter.proto | 2 +- .../dashboard/v1/dashboards_service.proto | 22 +- .../monitoring/dashboard/v1/drilldowns.proto | 2 +- .../dashboard/v1/error_reporting_panel.proto | 50 + .../dashboard/v1/incident_list.proto | 43 + .../monitoring/dashboard/v1/layouts.proto | 2 +- .../monitoring/dashboard/v1/logs_panel.proto | 2 +- .../monitoring/dashboard/v1/metrics.proto | 11 +- .../monitoring/dashboard/v1/piechart.proto | 78 + .../monitoring/dashboard/v1/scorecard.proto | 7 +- .../dashboard/v1/section_header.proto | 29 +- .../monitoring/dashboard/v1/service.proto | 2 +- .../dashboard/v1/single_view_group.proto | 30 + .../monitoring/dashboard/v1/table.proto | 2 +- .../dashboard/v1/table_display_options.proto | 2 +- .../google/monitoring/dashboard/v1/text.proto | 189 + .../monitoring/dashboard/v1/widget.proto | 27 +- .../monitoring/dashboard/v1/xychart.proto | 12 +- .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createdashboard/AsyncCreateDashboard.java | 3 +- .../createdashboard/SyncCreateDashboard.java | 3 +- ...ncCreateDashboardProjectnameDashboard.java | 43 + .../SyncCreateDashboardStringDashboard.java | 43 + .../deletedashboard/AsyncDeleteDashboard.java | 0 .../deletedashboard/SyncDeleteDashboard.java | 0 .../SyncDeleteDashboardDashboardname.java | 42 + .../SyncDeleteDashboardString.java | 42 + .../getdashboard/AsyncGetDashboard.java | 0 .../getdashboard/SyncGetDashboard.java | 0 .../SyncGetDashboardDashboardname.java | 42 + .../getdashboard/SyncGetDashboardString.java | 42 + .../listdashboards/AsyncListDashboards.java | 0 .../AsyncListDashboardsPaged.java | 0 .../listdashboards/SyncListDashboards.java | 0 .../SyncListDashboardsProjectname.java | 44 + .../SyncListDashboardsString.java | 44 + .../updatedashboard/AsyncUpdateDashboard.java | 0 .../updatedashboard/SyncUpdateDashboard.java | 0 .../createdashboard/SyncCreateDashboard.java | 0 .../createdashboard/SyncCreateDashboard.java | 0 177 files changed, 27827 insertions(+), 21807 deletions(-) delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CommonProto.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequestOrBuilder.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequestOrBuilder.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Text.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextProto.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java delete mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java (68%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java (99%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/gapic_metadata.json (62%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/package-info.java (86%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStub.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceCallableFactory.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceStub.java (99%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceCallableFactory.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceStub.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/google-cloud-monitoring-dashboard/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.dashboard.v1/reflect-config.json (85%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientHttpJsonTest.java (61%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientTest.java (59%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsService.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsServiceImpl.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java (52%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java (85%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java (92%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java (66%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartOrBuilder.java (56%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptions.java (67%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptionsOrBuilder.java (53%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java (66%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayout.java (74%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayoutOrBuilder.java (66%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CommonProto.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequest.java (66%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequestOrBuilder.java (60%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java (73%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java (71%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java (73%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardName.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java (81%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequest.java (63%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequestOrBuilder.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DrilldownsProto.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanel.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelOrBuilder.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelProto.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequest.java (65%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequestOrBuilder.java (50%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayout.java (72%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayoutOrBuilder.java (69%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentList.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListOrBuilder.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListProto.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequest.java (62%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequestOrBuilder.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponse.java (72%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponseOrBuilder.java (69%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java (71%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java (73%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java (73%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java (67%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilter.java (61%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilterOrBuilder.java (73%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChart.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartOrBuilder.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartProto.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ProjectName.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayout.java (74%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayoutOrBuilder.java (65%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Scorecard.java (74%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardOrBuilder.java (87%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeader.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderOrBuilder.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderProto.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ServiceMonitoringProto.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroup.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupOrBuilder.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupProto.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SparkChartType.java (68%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilter.java (66%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilterOrBuilder.java (66%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java (63%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Text.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextOrBuilder.java (60%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextProto.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java (70%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java (76%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilter.java (66%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java (70%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatio.java (67%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatioOrBuilder.java (68%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQuery.java (69%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQueryOrBuilder.java (77%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java (63%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequest.java (63%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequestOrBuilder.java (51%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java (58%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java (70%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java (73%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto (98%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/collapsible_group.proto (97%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/common.proto (99%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard.proto (95%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard_filter.proto (98%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto (90%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/drilldowns.proto (97%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/error_reporting_panel.proto create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/incident_list.proto rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/layouts.proto (99%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/logs_panel.proto (98%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto (93%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/piechart.proto rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/scorecard.proto (95%) rename java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/text.proto => owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/section_header.proto (65%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/service.proto (97%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/single_view_group.proto rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto (99%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto (97%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/text.proto rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/widget.proto (71%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/xychart.proto (95%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetEndpoint.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/AsyncCreateDashboard.java (94%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboard.java (94%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardProjectnameDashboard.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardStringDashboard.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/AsyncDeleteDashboard.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboard.java (100%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardDashboardname.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardString.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/AsyncGetDashboard.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboard.java (100%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardDashboardname.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardString.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboards.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboardsPaged.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboards.java (100%) create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsProjectname.java create mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsString.java rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/AsyncUpdateDashboard.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/SyncUpdateDashboard.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservicesettings/createdashboard/SyncCreateDashboard.java (100%) rename {java-monitoring-dashboards => owl-bot-staging/java-monitoring-dashboards/v1}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/stub/dashboardsservicestubsettings/createdashboard/SyncCreateDashboard.java (100%) diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java deleted file mode 100644 index 081455aa1cf3..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/alertchart.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class AlertChartProto { - private AlertChartProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n/google/monitoring/dashboard/v1/alertch" - + "art.proto\022\036google.monitoring.dashboard.v" - + "1\032\037google/api/field_behavior.proto\032\031goog" - + "le/api/resource.proto\"|\n\nAlertChart\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\002:[\352AX\n%monitoring.googleap" - + "is.com/AlertPolicy\022/projects/{project}/a" - + "lertPolicies/{alert_policy}B\370\001\n\"com.goog" - + "le.monitoring.dashboard.v1B\017AlertChartPr" - + "otoP\001ZFcloud.google.com/go/monitoring/da" - + "shboard/apiv1/dashboardpb;dashboardpb\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" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor, - new java.lang.String[] { - "Name", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java deleted file mode 100644 index 76237b53d029..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/collapsible_group.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public interface CollapsibleGroupOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.CollapsibleGroup) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The collapsed state of the widget on first page load.
-   * 
- * - * bool collapsed = 1; - * - * @return The collapsed. - */ - boolean getCollapsed(); -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java deleted file mode 100644 index c2d021af1944..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/collapsible_group.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class CollapsibleGroupProto { - private CollapsibleGroupProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n6google/monitoring/dashboard/v1/collaps" - + "ible_group.proto\022\036google.monitoring.dash" - + "board.v1\"%\n\020CollapsibleGroup\022\021\n\tcollapse" - + "d\030\001 \001(\010B\376\001\n\"com.google.monitoring.dashbo" - + "ard.v1B\025CollapsibleGroupProtoP\001ZFcloud.g" - + "oogle.com/go/monitoring/dashboard/apiv1/" - + "dashboardpb;dashboardpb\252\002$Google.Cloud.M" - + "onitoring.Dashboard.V1\312\002$Google\\Cloud\\Mo" - + "nitoring\\Dashboard\\V1\352\002(Google::Cloud::M" - + "onitoring::Dashboard::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor, - new java.lang.String[] { - "Collapsed", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CommonProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CommonProto.java deleted file mode 100644 index 6553a7ee69f1..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CommonProto.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/common.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class CommonProto { - private CommonProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Aggregation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n+google/monitoring/dashboard/v1/common." - + "proto\022\036google.monitoring.dashboard.v1\032\036g" - + "oogle/protobuf/duration.proto\"\301\007\n\013Aggreg" - + "ation\0223\n\020alignment_period\030\001 \001(\0132\031.google" - + ".protobuf.Duration\022O\n\022per_series_aligner" - + "\030\002 \001(\01623.google.monitoring.dashboard.v1." - + "Aggregation.Aligner\022Q\n\024cross_series_redu" - + "cer\030\004 \001(\01623.google.monitoring.dashboard." - + "v1.Aggregation.Reducer\022\027\n\017group_by_field" - + "s\030\005 \003(\t\"\213\003\n\007Aligner\022\016\n\nALIGN_NONE\020\000\022\017\n\013A" - + "LIGN_DELTA\020\001\022\016\n\nALIGN_RATE\020\002\022\025\n\021ALIGN_IN" - + "TERPOLATE\020\003\022\024\n\020ALIGN_NEXT_OLDER\020\004\022\r\n\tALI" - + "GN_MIN\020\n\022\r\n\tALIGN_MAX\020\013\022\016\n\nALIGN_MEAN\020\014\022" - + "\017\n\013ALIGN_COUNT\020\r\022\r\n\tALIGN_SUM\020\016\022\020\n\014ALIGN" - + "_STDDEV\020\017\022\024\n\020ALIGN_COUNT_TRUE\020\020\022\025\n\021ALIGN" - + "_COUNT_FALSE\020\030\022\027\n\023ALIGN_FRACTION_TRUE\020\021\022" - + "\027\n\023ALIGN_PERCENTILE_99\020\022\022\027\n\023ALIGN_PERCEN" - + "TILE_95\020\023\022\027\n\023ALIGN_PERCENTILE_50\020\024\022\027\n\023AL" - + "IGN_PERCENTILE_05\020\025\022\030\n\024ALIGN_PERCENT_CHA" - + "NGE\020\027\"\261\002\n\007Reducer\022\017\n\013REDUCE_NONE\020\000\022\017\n\013RE" - + "DUCE_MEAN\020\001\022\016\n\nREDUCE_MIN\020\002\022\016\n\nREDUCE_MA" - + "X\020\003\022\016\n\nREDUCE_SUM\020\004\022\021\n\rREDUCE_STDDEV\020\005\022\020" - + "\n\014REDUCE_COUNT\020\006\022\025\n\021REDUCE_COUNT_TRUE\020\007\022" - + "\026\n\022REDUCE_COUNT_FALSE\020\017\022\030\n\024REDUCE_FRACTI" - + "ON_TRUE\020\010\022\030\n\024REDUCE_PERCENTILE_99\020\t\022\030\n\024R" - + "EDUCE_PERCENTILE_95\020\n\022\030\n\024REDUCE_PERCENTI" - + "LE_50\020\013\022\030\n\024REDUCE_PERCENTILE_05\020\014\"\212\003\n\024Pi" - + "ckTimeSeriesFilter\022S\n\016ranking_method\030\001 \001" - + "(\0162;.google.monitoring.dashboard.v1.Pick" - + "TimeSeriesFilter.Method\022\027\n\017num_time_seri" - + "es\030\002 \001(\005\022Q\n\tdirection\030\003 \001(\0162>.google.mon" - + "itoring.dashboard.v1.PickTimeSeriesFilte" - + "r.Direction\"t\n\006Method\022\026\n\022METHOD_UNSPECIF" - + "IED\020\000\022\017\n\013METHOD_MEAN\020\001\022\016\n\nMETHOD_MAX\020\002\022\016" - + "\n\nMETHOD_MIN\020\003\022\016\n\nMETHOD_SUM\020\004\022\021\n\rMETHOD" - + "_LATEST\020\005\";\n\tDirection\022\031\n\025DIRECTION_UNSP" - + "ECIFIED\020\000\022\007\n\003TOP\020\001\022\n\n\006BOTTOM\020\002\"\320\001\n\033Stati" - + "sticalTimeSeriesFilter\022Z\n\016ranking_method" - + "\030\001 \001(\0162B.google.monitoring.dashboard.v1." - + "StatisticalTimeSeriesFilter.Method\022\027\n\017nu" - + "m_time_series\030\002 \001(\005\"<\n\006Method\022\026\n\022METHOD_" - + "UNSPECIFIED\020\000\022\032\n\026METHOD_CLUSTER_OUTLIER\020" - + "\001B\364\001\n\"com.google.monitoring.dashboard.v1" - + "B\013CommonProtoP\001ZFcloud.google.com/go/mon" - + "itoring/dashboard/apiv1/dashboardpb;dash" - + "boardpb\252\002$Google.Cloud.Monitoring.Dashbo" - + "ard.V1\312\002$Google\\Cloud\\Monitoring\\Dashboa" - + "rd\\V1\352\002(Google::Cloud::Monitoring::Dashb" - + "oard::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_Aggregation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor, - new java.lang.String[] { - "AlignmentPeriod", "PerSeriesAligner", "CrossSeriesReducer", "GroupByFields", - }); - internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor, - new java.lang.String[] { - "RankingMethod", "NumTimeSeries", "Direction", - }); - internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor, - new java.lang.String[] { - "RankingMethod", "NumTimeSeries", - }); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java deleted file mode 100644 index c807290dc14c..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/dashboard_filter.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class DashboardFilterProto { - private DashboardFilterProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_DashboardFilter_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n5google/monitoring/dashboard/v1/dashboa" - + "rd_filter.proto\022\036google.monitoring.dashb" - + "oard.v1\032\037google/api/field_behavior.proto" - + "\"\317\002\n\017DashboardFilter\022\026\n\tlabel_key\030\001 \001(\tB" - + "\003\340A\002\022\031\n\021template_variable\030\003 \001(\t\022\026\n\014strin" - + "g_value\030\004 \001(\tH\000\022O\n\013filter_type\030\005 \001(\0162:.g" - + "oogle.monitoring.dashboard.v1.DashboardF" - + "ilter.FilterType\"\216\001\n\nFilterType\022\033\n\027FILTE" - + "R_TYPE_UNSPECIFIED\020\000\022\022\n\016RESOURCE_LABEL\020\001" - + "\022\020\n\014METRIC_LABEL\020\002\022\027\n\023USER_METADATA_LABE" - + "L\020\003\022\031\n\025SYSTEM_METADATA_LABEL\020\004\022\t\n\005GROUP\020" - + "\005B\017\n\rdefault_valueB\375\001\n\"com.google.monito" - + "ring.dashboard.v1B\024DashboardFilterProtoP" - + "\001ZFcloud.google.com/go/monitoring/dashbo" - + "ard/apiv1/dashboardpb;dashboardpb\252\002$Goog" - + "le.Cloud.Monitoring.Dashboard.V1\312\002$Googl" - + "e\\Cloud\\Monitoring\\Dashboard\\V1\352\002(Google" - + "::Cloud::Monitoring::Dashboard::V1b\006prot" - + "o3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_DashboardFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor, - new java.lang.String[] { - "LabelKey", "TemplateVariable", "StringValue", "FilterType", "DefaultValue", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java deleted file mode 100644 index 0071648f1a6f..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/dashboard.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class DashboardsProto { - private DashboardsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Dashboard_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n.google/monitoring/dashboard/v1/dashboa" - + "rd.proto\022\036google.monitoring.dashboard.v1" - + "\032\037google/api/field_behavior.proto\032\031googl" - + "e/api/resource.proto\0325google/monitoring/" - + "dashboard/v1/dashboard_filter.proto\032,goo" - + "gle/monitoring/dashboard/v1/layouts.prot" - + "o\"\372\004\n\tDashboard\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\031\n\014di" - + "splay_name\030\002 \001(\tB\003\340A\002\022\014\n\004etag\030\004 \001(\t\022A\n\013g" - + "rid_layout\030\005 \001(\0132*.google.monitoring.das" - + "hboard.v1.GridLayoutH\000\022E\n\rmosaic_layout\030" - + "\006 \001(\0132,.google.monitoring.dashboard.v1.M" - + "osaicLayoutH\000\022?\n\nrow_layout\030\010 \001(\0132).goog" - + "le.monitoring.dashboard.v1.RowLayoutH\000\022E" - + "\n\rcolumn_layout\030\t \001(\0132,.google.monitorin" - + "g.dashboard.v1.ColumnLayoutH\000\022J\n\021dashboa" - + "rd_filters\030\013 \003(\0132/.google.monitoring.das" - + "hboard.v1.DashboardFilter\022E\n\006labels\030\014 \003(" - + "\01325.google.monitoring.dashboard.v1.Dashb" - + "oard.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:S\352AP\n#monitoring" - + ".googleapis.com/Dashboard\022)projects/{pro" - + "ject}/dashboards/{dashboard}B\010\n\006layoutB\370" - + "\001\n\"com.google.monitoring.dashboard.v1B\017D" - + "ashboardsProtoP\001ZFcloud.google.com/go/mo" - + "nitoring/dashboard/apiv1/dashboardpb;das" - + "hboardpb\252\002$Google.Cloud.Monitoring.Dashb" - + "oard.V1\312\002$Google\\Cloud\\Monitoring\\Dashbo" - + "ard\\V1\352\002(Google::Cloud::Monitoring::Dash" - + "board::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.dashboard.v1.DashboardFilterProto.getDescriptor(), - com.google.monitoring.dashboard.v1.LayoutsProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_Dashboard_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Etag", - "GridLayout", - "MosaicLayout", - "RowLayout", - "ColumnLayout", - "DashboardFilters", - "Labels", - "Layout", - }); - internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_descriptor = - internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.dashboard.v1.DashboardFilterProto.getDescriptor(); - com.google.monitoring.dashboard.v1.LayoutsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java deleted file mode 100644 index 0025b437a1f0..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/dashboards_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class DashboardsServiceProto { - private DashboardsServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n7google/monitoring/dashboard/v1/dashboa" - + "rds_service.proto\022\036google.monitoring.das" - + "hboard.v1\032\034google/api/annotations.proto\032" - + "\027google/api/client.proto\032\037google/api/fie" - + "ld_behavior.proto\032\031google/api/resource.p" - + "roto\032.google/monitoring/dashboard/v1/das" - + "hboard.proto\032\033google/protobuf/empty.prot" - + "o\"\207\001\n\026CreateDashboardRequest\022\023\n\006parent\030\001" - + " \001(\tB\003\340A\002\022A\n\tdashboard\030\002 \001(\0132).google.mo" - + "nitoring.dashboard.v1.DashboardB\003\340A\002\022\025\n\r" - + "validate_only\030\003 \001(\010\"\203\001\n\025ListDashboardsRe" - + "quest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudreso" - + "urcemanager.googleapis.com/Project\022\021\n\tpa" - + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"p\n\026Lis" - + "tDashboardsResponse\022=\n\ndashboards\030\001 \003(\0132" - + ").google.monitoring.dashboard.v1.Dashboa" - + "rd\022\027\n\017next_page_token\030\002 \001(\t\"P\n\023GetDashbo" - + "ardRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#monito" - + "ring.googleapis.com/Dashboard\"S\n\026DeleteD" - + "ashboardRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#m" - + "onitoring.googleapis.com/Dashboard\"r\n\026Up" - + "dateDashboardRequest\022A\n\tdashboard\030\001 \001(\0132" - + ").google.monitoring.dashboard.v1.Dashboa" - + "rdB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\0102\261\010\n\021Dashb" - + "oardsService\022\253\001\n\017CreateDashboard\0226.googl" - + "e.monitoring.dashboard.v1.CreateDashboar" - + "dRequest\032).google.monitoring.dashboard.v" - + "1.Dashboard\"5\202\323\344\223\002/\"\"/v1/{parent=project" - + "s/*}/dashboards:\tdashboard\022\253\001\n\016ListDashb" - + "oards\0225.google.monitoring.dashboard.v1.L" - + "istDashboardsRequest\0326.google.monitoring" - + ".dashboard.v1.ListDashboardsResponse\"*\202\323" - + "\344\223\002$\022\"/v1/{parent=projects/*}/dashboards" - + "\022\232\001\n\014GetDashboard\0223.google.monitoring.da" - + "shboard.v1.GetDashboardRequest\032).google." - + "monitoring.dashboard.v1.Dashboard\"*\202\323\344\223\002" - + "$\022\"/v1/{name=projects/*/dashboards/*}\022\215\001" - + "\n\017DeleteDashboard\0226.google.monitoring.da" - + "shboard.v1.DeleteDashboardRequest\032\026.goog" - + "le.protobuf.Empty\"*\202\323\344\223\002$*\"/v1/{name=pro" - + "jects/*/dashboards/*}\022\265\001\n\017UpdateDashboar" - + "d\0226.google.monitoring.dashboard.v1.Updat" - + "eDashboardRequest\032).google.monitoring.da" - + "shboard.v1.Dashboard\"?\202\323\344\223\00292,/v1/{dashb" - + "oard.name=projects/*/dashboards/*}:\tdash" - + "board\032\332\001\312A\031monitoring.googleapis.com\322A\272\001" - + "https://www.googleapis.com/auth/cloud-pl" - + "atform,https://www.googleapis.com/auth/m" - + "onitoring,https://www.googleapis.com/aut" - + "h/monitoring.read,https://www.googleapis" - + ".com/auth/monitoring.writeB\377\001\n\"com.googl" - + "e.monitoring.dashboard.v1B\026DashboardsSer" - + "viceProtoP\001ZFcloud.google.com/go/monitor" - + "ing/dashboard/apiv1/dashboardpb;dashboar" - + "dpb\252\002$Google.Cloud.Monitoring.Dashboard." - + "V1\312\002$Google\\Cloud\\Monitoring\\Dashboard\\V" - + "1\352\002(Google::Cloud::Monitoring::Dashboard" - + "::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.dashboard.v1.DashboardsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor, - new java.lang.String[] { - "Parent", "Dashboard", "ValidateOnly", - }); - internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor, - new java.lang.String[] { - "Dashboards", "NextPageToken", - }); - internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor, - new java.lang.String[] { - "Dashboard", "ValidateOnly", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.dashboard.v1.DashboardsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequestOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequestOrBuilder.java deleted file mode 100644 index c27bdad2f7a8..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequestOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/dashboards_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public interface DeleteDashboardRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.DeleteDashboardRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the Dashboard. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the Dashboard. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java deleted file mode 100644 index 24fd2af8da5e..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/layouts.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class LayoutsProto { - private LayoutsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_GridLayout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_RowLayout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_RowLayout_Row_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_ColumnLayout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/monitoring/dashboard/v1/layouts" - + ".proto\022\036google.monitoring.dashboard.v1\032+" - + "google/monitoring/dashboard/v1/widget.pr" - + "oto\"V\n\nGridLayout\022\017\n\007columns\030\001 \001(\003\0227\n\007wi" - + "dgets\030\002 \003(\0132&.google.monitoring.dashboar" - + "d.v1.Widget\"\336\001\n\014MosaicLayout\022\017\n\007columns\030" - + "\001 \001(\005\022@\n\005tiles\030\003 \003(\01321.google.monitoring" - + ".dashboard.v1.MosaicLayout.Tile\032{\n\004Tile\022" - + "\r\n\005x_pos\030\001 \001(\005\022\r\n\005y_pos\030\002 \001(\005\022\r\n\005width\030\003" - + " \001(\005\022\016\n\006height\030\004 \001(\005\0226\n\006widget\030\005 \001(\0132&.g" - + "oogle.monitoring.dashboard.v1.Widget\"\230\001\n" - + "\tRowLayout\022;\n\004rows\030\001 \003(\0132-.google.monito" - + "ring.dashboard.v1.RowLayout.Row\032N\n\003Row\022\016" - + "\n\006weight\030\001 \001(\003\0227\n\007widgets\030\002 \003(\0132&.google" - + ".monitoring.dashboard.v1.Widget\"\247\001\n\014Colu" - + "mnLayout\022D\n\007columns\030\001 \003(\01323.google.monit" - + "oring.dashboard.v1.ColumnLayout.Column\032Q" - + "\n\006Column\022\016\n\006weight\030\001 \001(\003\0227\n\007widgets\030\002 \003(" - + "\0132&.google.monitoring.dashboard.v1.Widge" - + "tB\365\001\n\"com.google.monitoring.dashboard.v1" - + "B\014LayoutsProtoP\001ZFcloud.google.com/go/mo" - + "nitoring/dashboard/apiv1/dashboardpb;das" - + "hboardpb\252\002$Google.Cloud.Monitoring.Dashb" - + "oard.V1\312\002$Google\\Cloud\\Monitoring\\Dashbo" - + "ard\\V1\352\002(Google::Cloud::Monitoring::Dash" - + "board::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.monitoring.dashboard.v1.WidgetProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_GridLayout_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor, - new java.lang.String[] { - "Columns", "Widgets", - }); - internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor, - new java.lang.String[] { - "Columns", "Tiles", - }); - internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor = - internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor - .getNestedTypes() - .get(0); - internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor, - new java.lang.String[] { - "XPos", "YPos", "Width", "Height", "Widget", - }); - internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_dashboard_v1_RowLayout_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor, - new java.lang.String[] { - "Rows", - }); - internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor = - internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_dashboard_v1_RowLayout_Row_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor, - new java.lang.String[] { - "Weight", "Widgets", - }); - internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_dashboard_v1_ColumnLayout_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor, - new java.lang.String[] { - "Columns", - }); - internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor = - internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor - .getNestedTypes() - .get(0); - internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor, - new java.lang.String[] { - "Weight", "Widgets", - }); - com.google.monitoring.dashboard.v1.WidgetProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequestOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequestOrBuilder.java deleted file mode 100644 index f11f5eb2782c..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequestOrBuilder.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/dashboards_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public interface ListDashboardsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.ListDashboardsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The scope of the dashboards to list. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The scope of the dashboards to list. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * A positive number that is the maximum number of results to return.
-   * If unspecified, a default of 1000 is used.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * If this field is not empty then it must contain the `nextPageToken` value
-   * returned by a previous call to this method.  Using this field causes the
-   * method to return additional results from the previous method call.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * If this field is not empty then it must contain the `nextPageToken` value
-   * returned by a previous call to this method.  Using this field causes the
-   * method to return additional results from the previous method call.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java deleted file mode 100644 index b2c145b02ae5..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/logs_panel.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class LogsPanelProto { - private LogsPanelProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_LogsPanel_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n/google/monitoring/dashboard/v1/logs_pa" - + "nel.proto\022\036google.monitoring.dashboard.v" - + "1\"3\n\tLogsPanel\022\016\n\006filter\030\001 \001(\t\022\026\n\016resour" - + "ce_names\030\002 \003(\tB\367\001\n\"com.google.monitoring" - + ".dashboard.v1B\016LogsPanelProtoP\001ZFcloud.g" - + "oogle.com/go/monitoring/dashboard/apiv1/" - + "dashboardpb;dashboardpb\252\002$Google.Cloud.M" - + "onitoring.Dashboard.V1\312\002$Google\\Cloud\\Mo" - + "nitoring\\Dashboard\\V1\352\002(Google::Cloud::M" - + "onitoring::Dashboard::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_LogsPanel_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor, - new java.lang.String[] { - "Filter", "ResourceNames", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java deleted file mode 100644 index de1b3c80fee4..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/metrics.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class MetricsProto { - private MetricsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Threshold_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Threshold_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/monitoring/dashboard/v1/metrics" - + ".proto\022\036google.monitoring.dashboard.v1\032\037" - + "google/api/field_behavior.proto\032+google/" - + "monitoring/dashboard/v1/common.proto\"\237\002\n" - + "\017TimeSeriesQuery\022N\n\022time_series_filter\030\001" - + " \001(\01320.google.monitoring.dashboard.v1.Ti" - + "meSeriesFilterH\000\022Y\n\030time_series_filter_r" - + "atio\030\002 \001(\01325.google.monitoring.dashboard" - + ".v1.TimeSeriesFilterRatioH\000\022$\n\032time_seri" - + "es_query_language\030\003 \001(\tH\000\022\032\n\020prometheus_" - + "query\030\006 \001(\tH\000\022\025\n\runit_override\030\005 \001(\tB\010\n\006" - + "source\"\212\003\n\020TimeSeriesFilter\022\023\n\006filter\030\001 " - + "\001(\tB\003\340A\002\022@\n\013aggregation\030\002 \001(\0132+.google.m" - + "onitoring.dashboard.v1.Aggregation\022J\n\025se" - + "condary_aggregation\030\003 \001(\0132+.google.monit" - + "oring.dashboard.v1.Aggregation\022W\n\027pick_t" - + "ime_series_filter\030\004 \001(\01324.google.monitor" - + "ing.dashboard.v1.PickTimeSeriesFilterH\000\022" - + "i\n\036statistical_time_series_filter\030\005 \001(\0132" - + ";.google.monitoring.dashboard.v1.Statist" - + "icalTimeSeriesFilterB\002\030\001H\000B\017\n\routput_fil" - + "ter\"\306\004\n\025TimeSeriesFilterRatio\022R\n\tnumerat" - + "or\030\001 \001(\0132?.google.monitoring.dashboard.v" - + "1.TimeSeriesFilterRatio.RatioPart\022T\n\013den" - + "ominator\030\002 \001(\0132?.google.monitoring.dashb" - + "oard.v1.TimeSeriesFilterRatio.RatioPart\022" - + "J\n\025secondary_aggregation\030\003 \001(\0132+.google." - + "monitoring.dashboard.v1.Aggregation\022W\n\027p" - + "ick_time_series_filter\030\004 \001(\01324.google.mo" - + "nitoring.dashboard.v1.PickTimeSeriesFilt" - + "erH\000\022i\n\036statistical_time_series_filter\030\005" - + " \001(\0132;.google.monitoring.dashboard.v1.St" - + "atisticalTimeSeriesFilterB\002\030\001H\000\032b\n\tRatio" - + "Part\022\023\n\006filter\030\001 \001(\tB\003\340A\002\022@\n\013aggregation" - + "\030\002 \001(\0132+.google.monitoring.dashboard.v1." - + "AggregationB\017\n\routput_filter\"\252\003\n\tThresho" - + "ld\022\r\n\005label\030\001 \001(\t\022\r\n\005value\030\002 \001(\001\022>\n\005colo" - + "r\030\003 \001(\0162/.google.monitoring.dashboard.v1" - + ".Threshold.Color\022F\n\tdirection\030\004 \001(\01623.go" - + "ogle.monitoring.dashboard.v1.Threshold.D" - + "irection\022I\n\013target_axis\030\005 \001(\01624.google.m" - + "onitoring.dashboard.v1.Threshold.TargetA" - + "xis\"3\n\005Color\022\025\n\021COLOR_UNSPECIFIED\020\000\022\n\n\006Y" - + "ELLOW\020\004\022\007\n\003RED\020\006\"<\n\tDirection\022\031\n\025DIRECTI" - + "ON_UNSPECIFIED\020\000\022\t\n\005ABOVE\020\001\022\t\n\005BELOW\020\002\"9" - + "\n\nTargetAxis\022\033\n\027TARGET_AXIS_UNSPECIFIED\020" - + "\000\022\006\n\002Y1\020\001\022\006\n\002Y2\020\002*Q\n\016SparkChartType\022 \n\034S" - + "PARK_CHART_TYPE_UNSPECIFIED\020\000\022\016\n\nSPARK_L" - + "INE\020\001\022\r\n\tSPARK_BAR\020\002B\365\001\n\"com.google.moni" - + "toring.dashboard.v1B\014MetricsProtoP\001ZFclo" - + "ud.google.com/go/monitoring/dashboard/ap" - + "iv1/dashboardpb;dashboardpb\252\002$Google.Clo" - + "ud.Monitoring.Dashboard.V1\312\002$Google\\Clou" - + "d\\Monitoring\\Dashboard\\V1\352\002(Google::Clou" - + "d::Monitoring::Dashboard::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.monitoring.dashboard.v1.CommonProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor, - new java.lang.String[] { - "TimeSeriesFilter", - "TimeSeriesFilterRatio", - "TimeSeriesQueryLanguage", - "PrometheusQuery", - "UnitOverride", - "Source", - }); - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor, - new java.lang.String[] { - "Filter", - "Aggregation", - "SecondaryAggregation", - "PickTimeSeriesFilter", - "StatisticalTimeSeriesFilter", - "OutputFilter", - }); - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor, - new java.lang.String[] { - "Numerator", - "Denominator", - "SecondaryAggregation", - "PickTimeSeriesFilter", - "StatisticalTimeSeriesFilter", - "OutputFilter", - }); - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor = - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor - .getNestedTypes() - .get(0); - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor, - new java.lang.String[] { - "Filter", "Aggregation", - }); - internal_static_google_monitoring_dashboard_v1_Threshold_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_dashboard_v1_Threshold_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Threshold_descriptor, - new java.lang.String[] { - "Label", "Value", "Color", "Direction", "TargetAxis", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.monitoring.dashboard.v1.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java deleted file mode 100644 index eb4882e77b82..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/scorecard.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class ScorecardProto { - private ScorecardProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Scorecard_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n.google/monitoring/dashboard/v1/scoreca" - + "rd.proto\022\036google.monitoring.dashboard.v1" - + "\032\037google/api/field_behavior.proto\032,googl" - + "e/monitoring/dashboard/v1/metrics.proto\032" - + "\036google/protobuf/duration.proto\"\233\004\n\tScor" - + "ecard\022O\n\021time_series_query\030\001 \001(\0132/.googl" - + "e.monitoring.dashboard.v1.TimeSeriesQuer" - + "yB\003\340A\002\022I\n\ngauge_view\030\004 \001(\01323.google.moni" - + "toring.dashboard.v1.Scorecard.GaugeViewH" - + "\000\022T\n\020spark_chart_view\030\005 \001(\01328.google.mon" - + "itoring.dashboard.v1.Scorecard.SparkChar" - + "tViewH\000\022=\n\nthresholds\030\006 \003(\0132).google.mon" - + "itoring.dashboard.v1.Threshold\0325\n\tGaugeV" - + "iew\022\023\n\013lower_bound\030\001 \001(\001\022\023\n\013upper_bound\030" - + "\002 \001(\001\032\230\001\n\016SparkChartView\022M\n\020spark_chart_" - + "type\030\001 \001(\0162..google.monitoring.dashboard" - + ".v1.SparkChartTypeB\003\340A\002\0227\n\024min_alignment" - + "_period\030\002 \001(\0132\031.google.protobuf.Duration" - + "B\013\n\tdata_viewB\367\001\n\"com.google.monitoring." - + "dashboard.v1B\016ScorecardProtoP\001ZFcloud.go" - + "ogle.com/go/monitoring/dashboard/apiv1/d" - + "ashboardpb;dashboardpb\252\002$Google.Cloud.Mo" - + "nitoring.Dashboard.V1\312\002$Google\\Cloud\\Mon" - + "itoring\\Dashboard\\V1\352\002(Google::Cloud::Mo" - + "nitoring::Dashboard::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_Scorecard_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor, - new java.lang.String[] { - "TimeSeriesQuery", "GaugeView", "SparkChartView", "Thresholds", "DataView", - }); - internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor = - internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor, - new java.lang.String[] { - "LowerBound", "UpperBound", - }); - internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor = - internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor.getNestedTypes().get(1); - internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor, - new java.lang.String[] { - "SparkChartType", "MinAlignmentPeriod", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java deleted file mode 100644 index 51d043d3d542..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/table_display_options.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public interface TableDisplayOptionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TableDisplayOptions) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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]; - * - * - * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. See - * google/monitoring/dashboard/v1/table_display_options.proto;l=32 - * @return A list containing the shownColumns. - */ - @java.lang.Deprecated - java.util.List getShownColumnsList(); - /** - * - * - *
-   * 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]; - * - * - * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. See - * google/monitoring/dashboard/v1/table_display_options.proto;l=32 - * @return The count of shownColumns. - */ - @java.lang.Deprecated - int getShownColumnsCount(); - /** - * - * - *
-   * 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]; - * - * - * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. See - * google/monitoring/dashboard/v1/table_display_options.proto;l=32 - * @param index The index of the element to return. - * @return The shownColumns at the given index. - */ - @java.lang.Deprecated - java.lang.String getShownColumns(int index); - /** - * - * - *
-   * 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]; - * - * - * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. See - * google/monitoring/dashboard/v1/table_display_options.proto;l=32 - * @param index The index of the value to return. - * @return The bytes of the shownColumns at the given index. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getShownColumnsBytes(int index); -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java deleted file mode 100644 index 82dd3f498937..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/table_display_options.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class TableDisplayOptionsProto { - private TableDisplayOptionsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n:google/monitoring/dashboard/v1/table_d" - + "isplay_options.proto\022\036google.monitoring." - + "dashboard.v1\032\037google/api/field_behavior." - + "proto\"3\n\023TableDisplayOptions\022\034\n\rshown_co" - + "lumns\030\001 \003(\tB\005\030\001\340A\001B\201\002\n\"com.google.monito" - + "ring.dashboard.v1B\030TableDisplayOptionsPr" - + "otoP\001ZFcloud.google.com/go/monitoring/da" - + "shboard/apiv1/dashboardpb;dashboardpb\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" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor, - new java.lang.String[] { - "ShownColumns", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} 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 deleted file mode 100644 index e99b416c0bd1..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/table.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class TableProto { - private TableProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - 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; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n*google/monitoring/dashboard/v1/table.p" - + "roto\022\036google.monitoring.dashboard.v1\032\037go" - + "ogle/api/field_behavior.proto\032,google/mo" - + "nitoring/dashboard/v1/metrics.proto\032:goo" - + "gle/monitoring/dashboard/v1/table_displa" - + "y_options.proto\032\036google/protobuf/duratio" - + "n.proto\"\322\005\n\017TimeSeriesTable\022T\n\tdata_sets" - + "\030\001 \003(\0132<.google.monitoring.dashboard.v1." - + "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\363\001\n\"com.google.monitoring.d" - + "ashboard.v1B\nTableProtoP\001ZFcloud.google." - + "com/go/monitoring/dashboard/apiv1/dashbo" - + "ardpb;dashboardpb\252\002$Google.Cloud.Monitor" - + "ing.Dashboard.V1\312\002$Google\\Cloud\\Monitori" - + "ng\\Dashboard\\V1\352\002(Google::Cloud::Monitor" - + "ing::Dashboard::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(), - com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor, - new java.lang.String[] { - "DataSets", "MetricVisualization", "ColumnSettings", - }); - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor = - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor - .getNestedTypes() - .get(0); - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor, - 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); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(); - com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Text.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Text.java deleted file mode 100644 index a0f7598cf903..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Text.java +++ /dev/null @@ -1,928 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/text.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -/** - * - * - *
- * A widget that displays textual content.
- * 
- * - * Protobuf type {@code google.monitoring.dashboard.v1.Text} - */ -public final class Text extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Text) - TextOrBuilder { - private static final long serialVersionUID = 0L; - // Use Text.newBuilder() to construct. - private Text(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Text() { - content_ = ""; - format_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Text(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.TextProto - .internal_static_google_monitoring_dashboard_v1_Text_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.TextProto - .internal_static_google_monitoring_dashboard_v1_Text_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.Text.class, - com.google.monitoring.dashboard.v1.Text.Builder.class); - } - - /** - * - * - *
-   * The format type of the text content.
-   * 
- * - * Protobuf enum {@code google.monitoring.dashboard.v1.Text.Format} - */ - public enum Format implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Format is unspecified. Defaults to MARKDOWN.
-     * 
- * - * FORMAT_UNSPECIFIED = 0; - */ - FORMAT_UNSPECIFIED(0), - /** - * - * - *
-     * The text contains Markdown formatting.
-     * 
- * - * MARKDOWN = 1; - */ - MARKDOWN(1), - /** - * - * - *
-     * The text contains no special formatting.
-     * 
- * - * RAW = 2; - */ - RAW(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Format is unspecified. Defaults to MARKDOWN.
-     * 
- * - * FORMAT_UNSPECIFIED = 0; - */ - public static final int FORMAT_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The text contains Markdown formatting.
-     * 
- * - * MARKDOWN = 1; - */ - public static final int MARKDOWN_VALUE = 1; - /** - * - * - *
-     * The text contains no special formatting.
-     * 
- * - * RAW = 2; - */ - public static final int RAW_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 Format 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 Format forNumber(int value) { - switch (value) { - case 0: - return FORMAT_UNSPECIFIED; - case 1: - return MARKDOWN; - case 2: - return RAW; - 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 Format findValueByNumber(int number) { - return Format.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.Text.getDescriptor().getEnumTypes().get(0); - } - - private static final Format[] VALUES = values(); - - public static Format 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 Format(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.Text.Format) - } - - public static final int CONTENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object content_ = ""; - /** - * - * - *
-   * The text content to be displayed.
-   * 
- * - * string content = 1; - * - * @return The content. - */ - @java.lang.Override - public java.lang.String getContent() { - java.lang.Object ref = content_; - 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(); - content_ = s; - return s; - } - } - /** - * - * - *
-   * The text content to be displayed.
-   * 
- * - * string content = 1; - * - * @return The bytes for content. - */ - @java.lang.Override - public com.google.protobuf.ByteString getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FORMAT_FIELD_NUMBER = 2; - private int format_ = 0; - /** - * - * - *
-   * How the text content is formatted.
-   * 
- * - * .google.monitoring.dashboard.v1.Text.Format format = 2; - * - * @return The enum numeric value on the wire for format. - */ - @java.lang.Override - public int getFormatValue() { - return format_; - } - /** - * - * - *
-   * How the text content is formatted.
-   * 
- * - * .google.monitoring.dashboard.v1.Text.Format format = 2; - * - * @return The format. - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.Text.Format getFormat() { - com.google.monitoring.dashboard.v1.Text.Format result = - com.google.monitoring.dashboard.v1.Text.Format.forNumber(format_); - return result == null ? com.google.monitoring.dashboard.v1.Text.Format.UNRECOGNIZED : result; - } - - 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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); - } - if (format_ != com.google.monitoring.dashboard.v1.Text.Format.FORMAT_UNSPECIFIED.getNumber()) { - output.writeEnum(2, format_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); - } - if (format_ != com.google.monitoring.dashboard.v1.Text.Format.FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, format_); - } - 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.Text)) { - return super.equals(obj); - } - com.google.monitoring.dashboard.v1.Text other = (com.google.monitoring.dashboard.v1.Text) obj; - - if (!getContent().equals(other.getContent())) return false; - if (format_ != other.format_) 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(); - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - hash = (37 * hash) + FORMAT_FIELD_NUMBER; - hash = (53 * hash) + format_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.monitoring.dashboard.v1.Text parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.monitoring.dashboard.v1.Text 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.Text parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.monitoring.dashboard.v1.Text 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.Text parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.monitoring.dashboard.v1.Text 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.Text parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.monitoring.dashboard.v1.Text 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.Text parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.monitoring.dashboard.v1.Text 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.Text 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.Text 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.Text 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 widget that displays textual content.
-   * 
- * - * Protobuf type {@code google.monitoring.dashboard.v1.Text} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Text) - com.google.monitoring.dashboard.v1.TextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.TextProto - .internal_static_google_monitoring_dashboard_v1_Text_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.TextProto - .internal_static_google_monitoring_dashboard_v1_Text_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.Text.class, - com.google.monitoring.dashboard.v1.Text.Builder.class); - } - - // Construct using com.google.monitoring.dashboard.v1.Text.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - content_ = ""; - format_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.TextProto - .internal_static_google_monitoring_dashboard_v1_Text_descriptor; - } - - @java.lang.Override - public com.google.monitoring.dashboard.v1.Text getDefaultInstanceForType() { - return com.google.monitoring.dashboard.v1.Text.getDefaultInstance(); - } - - @java.lang.Override - public com.google.monitoring.dashboard.v1.Text build() { - com.google.monitoring.dashboard.v1.Text result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.monitoring.dashboard.v1.Text buildPartial() { - com.google.monitoring.dashboard.v1.Text result = - new com.google.monitoring.dashboard.v1.Text(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.monitoring.dashboard.v1.Text result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.content_ = content_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.format_ = format_; - } - } - - @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.Text) { - return mergeFrom((com.google.monitoring.dashboard.v1.Text) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.monitoring.dashboard.v1.Text other) { - if (other == com.google.monitoring.dashboard.v1.Text.getDefaultInstance()) return this; - if (!other.getContent().isEmpty()) { - content_ = other.content_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.format_ != 0) { - setFormatValue(other.getFormatValue()); - } - 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: - { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - format_ = input.readEnum(); - bitField0_ |= 0x00000002; - 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 int bitField0_; - - private java.lang.Object content_ = ""; - /** - * - * - *
-     * The text content to be displayed.
-     * 
- * - * string content = 1; - * - * @return The content. - */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The text content to be displayed.
-     * 
- * - * string content = 1; - * - * @return The bytes for content. - */ - public com.google.protobuf.ByteString getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The text content to be displayed.
-     * 
- * - * string content = 1; - * - * @param value The content to set. - * @return This builder for chaining. - */ - public Builder setContent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The text content to be displayed.
-     * 
- * - * string content = 1; - * - * @return This builder for chaining. - */ - public Builder clearContent() { - content_ = getDefaultInstance().getContent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The text content to be displayed.
-     * 
- * - * string content = 1; - * - * @param value The bytes for content to set. - * @return This builder for chaining. - */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - content_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int format_ = 0; - /** - * - * - *
-     * How the text content is formatted.
-     * 
- * - * .google.monitoring.dashboard.v1.Text.Format format = 2; - * - * @return The enum numeric value on the wire for format. - */ - @java.lang.Override - public int getFormatValue() { - return format_; - } - /** - * - * - *
-     * How the text content is formatted.
-     * 
- * - * .google.monitoring.dashboard.v1.Text.Format format = 2; - * - * @param value The enum numeric value on the wire for format to set. - * @return This builder for chaining. - */ - public Builder setFormatValue(int value) { - format_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * How the text content is formatted.
-     * 
- * - * .google.monitoring.dashboard.v1.Text.Format format = 2; - * - * @return The format. - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.Text.Format getFormat() { - com.google.monitoring.dashboard.v1.Text.Format result = - com.google.monitoring.dashboard.v1.Text.Format.forNumber(format_); - return result == null ? com.google.monitoring.dashboard.v1.Text.Format.UNRECOGNIZED : result; - } - /** - * - * - *
-     * How the text content is formatted.
-     * 
- * - * .google.monitoring.dashboard.v1.Text.Format format = 2; - * - * @param value The format to set. - * @return This builder for chaining. - */ - public Builder setFormat(com.google.monitoring.dashboard.v1.Text.Format value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - format_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * How the text content is formatted.
-     * 
- * - * .google.monitoring.dashboard.v1.Text.Format format = 2; - * - * @return This builder for chaining. - */ - public Builder clearFormat() { - bitField0_ = (bitField0_ & ~0x00000002); - format_ = 0; - 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.Text) - } - - // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Text) - private static final com.google.monitoring.dashboard.v1.Text DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Text(); - } - - public static com.google.monitoring.dashboard.v1.Text getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Text 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.Text getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextProto.java deleted file mode 100644 index 8607cec72f45..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextProto.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/text.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class TextProto { - private TextProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Text_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Text_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/monitoring/dashboard/v1/text.pr" - + "oto\022\036google.monitoring.dashboard.v1\"\215\001\n\004" - + "Text\022\017\n\007content\030\001 \001(\t\022;\n\006format\030\002 \001(\0162+." - + "google.monitoring.dashboard.v1.Text.Form" - + "at\"7\n\006Format\022\026\n\022FORMAT_UNSPECIFIED\020\000\022\014\n\010" - + "MARKDOWN\020\001\022\007\n\003RAW\020\002B\362\001\n\"com.google.monit" - + "oring.dashboard.v1B\tTextProtoP\001ZFcloud.g" - + "oogle.com/go/monitoring/dashboard/apiv1/" - + "dashboardpb;dashboardpb\252\002$Google.Cloud.M" - + "onitoring.Dashboard.V1\312\002$Google\\Cloud\\Mo" - + "nitoring\\Dashboard\\V1\352\002(Google::Cloud::M" - + "onitoring::Dashboard::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_monitoring_dashboard_v1_Text_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_Text_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Text_descriptor, - new java.lang.String[] { - "Content", "Format", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} 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 deleted file mode 100644 index 77991304d67c..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/table.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public interface TimeSeriesTableOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TimeSeriesTable) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The data displayed in this table.
-   * 
- * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getDataSetsList(); - /** - * - * - *
-   * Required. The data displayed in this table.
-   * 
- * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDataSets(int index); - /** - * - * - *
-   * Required. The data displayed in this table.
-   * 
- * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getDataSetsCount(); - /** - * - * - *
-   * Required. The data displayed in this table.
-   * 
- * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getDataSetsOrBuilderList(); - /** - * - * - *
-   * Required. The data displayed in this table.
-   * 
- * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - 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/Widget.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java deleted file mode 100644 index 0441994d088c..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java +++ /dev/null @@ -1,3079 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/widget.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -/** - * - * - *
- * Widget contains a single dashboard component and configuration of how to
- * present the component in the dashboard.
- * 
- * - * Protobuf type {@code google.monitoring.dashboard.v1.Widget} - */ -public final class Widget extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Widget) - WidgetOrBuilder { - private static final long serialVersionUID = 0L; - // Use Widget.newBuilder() to construct. - private Widget(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Widget() { - title_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Widget(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.WidgetProto - .internal_static_google_monitoring_dashboard_v1_Widget_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.WidgetProto - .internal_static_google_monitoring_dashboard_v1_Widget_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.Widget.class, - com.google.monitoring.dashboard.v1.Widget.Builder.class); - } - - private int contentCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object content_; - - public enum ContentCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - XY_CHART(2), - SCORECARD(3), - TEXT(4), - BLANK(5), - ALERT_CHART(7), - TIME_SERIES_TABLE(8), - COLLAPSIBLE_GROUP(9), - LOGS_PANEL(10), - CONTENT_NOT_SET(0); - private final int value; - - private ContentCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ContentCase valueOf(int value) { - return forNumber(value); - } - - public static ContentCase forNumber(int value) { - switch (value) { - case 2: - return XY_CHART; - case 3: - return SCORECARD; - case 4: - return TEXT; - case 5: - return BLANK; - case 7: - return ALERT_CHART; - case 8: - return TIME_SERIES_TABLE; - case 9: - return COLLAPSIBLE_GROUP; - case 10: - return LOGS_PANEL; - case 0: - return CONTENT_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ContentCase getContentCase() { - return ContentCase.forNumber(contentCase_); - } - - public static final int TITLE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object title_ = ""; - /** - * - * - *
-   * Optional. The title of the widget.
-   * 
- * - * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The title. - */ - @java.lang.Override - public java.lang.String getTitle() { - java.lang.Object ref = title_; - 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(); - title_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The title of the widget.
-   * 
- * - * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for title. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int XY_CHART_FIELD_NUMBER = 2; - /** - * - * - *
-   * A chart of time series data.
-   * 
- * - * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; - * - * @return Whether the xyChart field is set. - */ - @java.lang.Override - public boolean hasXyChart() { - return contentCase_ == 2; - } - /** - * - * - *
-   * A chart of time series data.
-   * 
- * - * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; - * - * @return The xyChart. - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.XyChart getXyChart() { - if (contentCase_ == 2) { - return (com.google.monitoring.dashboard.v1.XyChart) content_; - } - return com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance(); - } - /** - * - * - *
-   * A chart of time series data.
-   * 
- * - * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.XyChartOrBuilder getXyChartOrBuilder() { - if (contentCase_ == 2) { - return (com.google.monitoring.dashboard.v1.XyChart) content_; - } - return com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance(); - } - - public static final int SCORECARD_FIELD_NUMBER = 3; - /** - * - * - *
-   * A scorecard summarizing time series data.
-   * 
- * - * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; - * - * @return Whether the scorecard field is set. - */ - @java.lang.Override - public boolean hasScorecard() { - return contentCase_ == 3; - } - /** - * - * - *
-   * A scorecard summarizing time series data.
-   * 
- * - * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; - * - * @return The scorecard. - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.Scorecard getScorecard() { - if (contentCase_ == 3) { - return (com.google.monitoring.dashboard.v1.Scorecard) content_; - } - return com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance(); - } - /** - * - * - *
-   * A scorecard summarizing time series data.
-   * 
- * - * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.ScorecardOrBuilder getScorecardOrBuilder() { - if (contentCase_ == 3) { - return (com.google.monitoring.dashboard.v1.Scorecard) content_; - } - return com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance(); - } - - public static final int TEXT_FIELD_NUMBER = 4; - /** - * - * - *
-   * A raw string or markdown displaying textual content.
-   * 
- * - * .google.monitoring.dashboard.v1.Text text = 4; - * - * @return Whether the text field is set. - */ - @java.lang.Override - public boolean hasText() { - return contentCase_ == 4; - } - /** - * - * - *
-   * A raw string or markdown displaying textual content.
-   * 
- * - * .google.monitoring.dashboard.v1.Text text = 4; - * - * @return The text. - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.Text getText() { - if (contentCase_ == 4) { - return (com.google.monitoring.dashboard.v1.Text) content_; - } - return com.google.monitoring.dashboard.v1.Text.getDefaultInstance(); - } - /** - * - * - *
-   * A raw string or markdown displaying textual content.
-   * 
- * - * .google.monitoring.dashboard.v1.Text text = 4; - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.TextOrBuilder getTextOrBuilder() { - if (contentCase_ == 4) { - return (com.google.monitoring.dashboard.v1.Text) content_; - } - return com.google.monitoring.dashboard.v1.Text.getDefaultInstance(); - } - - public static final int BLANK_FIELD_NUMBER = 5; - /** - * - * - *
-   * A blank space.
-   * 
- * - * .google.protobuf.Empty blank = 5; - * - * @return Whether the blank field is set. - */ - @java.lang.Override - public boolean hasBlank() { - return contentCase_ == 5; - } - /** - * - * - *
-   * A blank space.
-   * 
- * - * .google.protobuf.Empty blank = 5; - * - * @return The blank. - */ - @java.lang.Override - public com.google.protobuf.Empty getBlank() { - if (contentCase_ == 5) { - return (com.google.protobuf.Empty) content_; - } - return com.google.protobuf.Empty.getDefaultInstance(); - } - /** - * - * - *
-   * A blank space.
-   * 
- * - * .google.protobuf.Empty blank = 5; - */ - @java.lang.Override - public com.google.protobuf.EmptyOrBuilder getBlankOrBuilder() { - if (contentCase_ == 5) { - return (com.google.protobuf.Empty) content_; - } - return com.google.protobuf.Empty.getDefaultInstance(); - } - - public static final int ALERT_CHART_FIELD_NUMBER = 7; - /** - * - * - *
-   * A chart of alert policy data.
-   * 
- * - * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; - * - * @return Whether the alertChart field is set. - */ - @java.lang.Override - public boolean hasAlertChart() { - return contentCase_ == 7; - } - /** - * - * - *
-   * A chart of alert policy data.
-   * 
- * - * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; - * - * @return The alertChart. - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.AlertChart getAlertChart() { - if (contentCase_ == 7) { - return (com.google.monitoring.dashboard.v1.AlertChart) content_; - } - return com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance(); - } - /** - * - * - *
-   * A chart of alert policy data.
-   * 
- * - * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.AlertChartOrBuilder getAlertChartOrBuilder() { - if (contentCase_ == 7) { - return (com.google.monitoring.dashboard.v1.AlertChart) content_; - } - return com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance(); - } - - public static final int TIME_SERIES_TABLE_FIELD_NUMBER = 8; - /** - * - * - *
-   * A widget that displays time series data in a tabular format.
-   * 
- * - * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; - * - * @return Whether the timeSeriesTable field is set. - */ - @java.lang.Override - public boolean hasTimeSeriesTable() { - return contentCase_ == 8; - } - /** - * - * - *
-   * A widget that displays time series data in a tabular format.
-   * 
- * - * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; - * - * @return The timeSeriesTable. - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesTable getTimeSeriesTable() { - if (contentCase_ == 8) { - return (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_; - } - return com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); - } - /** - * - * - *
-   * A widget that displays time series data in a tabular format.
-   * 
- * - * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder getTimeSeriesTableOrBuilder() { - if (contentCase_ == 8) { - return (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_; - } - return com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); - } - - public static final int COLLAPSIBLE_GROUP_FIELD_NUMBER = 9; - /** - * - * - *
-   * A widget that groups the other widgets. All widgets that are within
-   * the area spanned by the grouping widget are considered member widgets.
-   * 
- * - * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; - * - * @return Whether the collapsibleGroup field is set. - */ - @java.lang.Override - public boolean hasCollapsibleGroup() { - return contentCase_ == 9; - } - /** - * - * - *
-   * A widget that groups the other widgets. All widgets that are within
-   * the area spanned by the grouping widget are considered member widgets.
-   * 
- * - * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; - * - * @return The collapsibleGroup. - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.CollapsibleGroup getCollapsibleGroup() { - if (contentCase_ == 9) { - return (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_; - } - return com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance(); - } - /** - * - * - *
-   * A widget that groups the other widgets. All widgets that are within
-   * the area spanned by the grouping widget are considered member widgets.
-   * 
- * - * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder - getCollapsibleGroupOrBuilder() { - if (contentCase_ == 9) { - return (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_; - } - return com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance(); - } - - public static final int LOGS_PANEL_FIELD_NUMBER = 10; - /** - * - * - *
-   * A widget that shows a stream of logs.
-   * 
- * - * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; - * - * @return Whether the logsPanel field is set. - */ - @java.lang.Override - public boolean hasLogsPanel() { - return contentCase_ == 10; - } - /** - * - * - *
-   * A widget that shows a stream of logs.
-   * 
- * - * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; - * - * @return The logsPanel. - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.LogsPanel getLogsPanel() { - if (contentCase_ == 10) { - return (com.google.monitoring.dashboard.v1.LogsPanel) content_; - } - return com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance(); - } - /** - * - * - *
-   * A widget that shows a stream of logs.
-   * 
- * - * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.LogsPanelOrBuilder getLogsPanelOrBuilder() { - if (contentCase_ == 10) { - return (com.google.monitoring.dashboard.v1.LogsPanel) content_; - } - return com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance(); - } - - 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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); - } - if (contentCase_ == 2) { - output.writeMessage(2, (com.google.monitoring.dashboard.v1.XyChart) content_); - } - if (contentCase_ == 3) { - output.writeMessage(3, (com.google.monitoring.dashboard.v1.Scorecard) content_); - } - if (contentCase_ == 4) { - output.writeMessage(4, (com.google.monitoring.dashboard.v1.Text) content_); - } - if (contentCase_ == 5) { - output.writeMessage(5, (com.google.protobuf.Empty) content_); - } - if (contentCase_ == 7) { - output.writeMessage(7, (com.google.monitoring.dashboard.v1.AlertChart) content_); - } - if (contentCase_ == 8) { - output.writeMessage(8, (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_); - } - if (contentCase_ == 9) { - output.writeMessage(9, (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_); - } - if (contentCase_ == 10) { - output.writeMessage(10, (com.google.monitoring.dashboard.v1.LogsPanel) content_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); - } - if (contentCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.monitoring.dashboard.v1.XyChart) content_); - } - if (contentCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.monitoring.dashboard.v1.Scorecard) content_); - } - if (contentCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.monitoring.dashboard.v1.Text) content_); - } - if (contentCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.protobuf.Empty) content_); - } - if (contentCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.monitoring.dashboard.v1.AlertChart) content_); - } - if (contentCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_); - } - if (contentCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_); - } - if (contentCase_ == 10) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, (com.google.monitoring.dashboard.v1.LogsPanel) content_); - } - 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.Widget)) { - return super.equals(obj); - } - com.google.monitoring.dashboard.v1.Widget other = - (com.google.monitoring.dashboard.v1.Widget) obj; - - if (!getTitle().equals(other.getTitle())) return false; - if (!getContentCase().equals(other.getContentCase())) return false; - switch (contentCase_) { - case 2: - if (!getXyChart().equals(other.getXyChart())) return false; - break; - case 3: - if (!getScorecard().equals(other.getScorecard())) return false; - break; - case 4: - if (!getText().equals(other.getText())) return false; - break; - case 5: - if (!getBlank().equals(other.getBlank())) return false; - break; - case 7: - if (!getAlertChart().equals(other.getAlertChart())) return false; - break; - case 8: - if (!getTimeSeriesTable().equals(other.getTimeSeriesTable())) return false; - break; - case 9: - if (!getCollapsibleGroup().equals(other.getCollapsibleGroup())) return false; - break; - case 10: - if (!getLogsPanel().equals(other.getLogsPanel())) return false; - break; - case 0: - default: - } - 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(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - switch (contentCase_) { - case 2: - hash = (37 * hash) + XY_CHART_FIELD_NUMBER; - hash = (53 * hash) + getXyChart().hashCode(); - break; - case 3: - hash = (37 * hash) + SCORECARD_FIELD_NUMBER; - hash = (53 * hash) + getScorecard().hashCode(); - break; - case 4: - hash = (37 * hash) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - break; - case 5: - hash = (37 * hash) + BLANK_FIELD_NUMBER; - hash = (53 * hash) + getBlank().hashCode(); - break; - case 7: - hash = (37 * hash) + ALERT_CHART_FIELD_NUMBER; - hash = (53 * hash) + getAlertChart().hashCode(); - break; - case 8: - hash = (37 * hash) + TIME_SERIES_TABLE_FIELD_NUMBER; - hash = (53 * hash) + getTimeSeriesTable().hashCode(); - break; - case 9: - hash = (37 * hash) + COLLAPSIBLE_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getCollapsibleGroup().hashCode(); - break; - case 10: - hash = (37 * hash) + LOGS_PANEL_FIELD_NUMBER; - hash = (53 * hash) + getLogsPanel().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.monitoring.dashboard.v1.Widget parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.monitoring.dashboard.v1.Widget 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.Widget parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.monitoring.dashboard.v1.Widget 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.Widget parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.monitoring.dashboard.v1.Widget 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.Widget parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.monitoring.dashboard.v1.Widget 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.Widget parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.monitoring.dashboard.v1.Widget 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.Widget 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.Widget 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.Widget 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; - } - /** - * - * - *
-   * Widget contains a single dashboard component and configuration of how to
-   * present the component in the dashboard.
-   * 
- * - * Protobuf type {@code google.monitoring.dashboard.v1.Widget} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Widget) - com.google.monitoring.dashboard.v1.WidgetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.WidgetProto - .internal_static_google_monitoring_dashboard_v1_Widget_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.WidgetProto - .internal_static_google_monitoring_dashboard_v1_Widget_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.Widget.class, - com.google.monitoring.dashboard.v1.Widget.Builder.class); - } - - // Construct using com.google.monitoring.dashboard.v1.Widget.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - title_ = ""; - if (xyChartBuilder_ != null) { - xyChartBuilder_.clear(); - } - if (scorecardBuilder_ != null) { - scorecardBuilder_.clear(); - } - if (textBuilder_ != null) { - textBuilder_.clear(); - } - if (blankBuilder_ != null) { - blankBuilder_.clear(); - } - if (alertChartBuilder_ != null) { - alertChartBuilder_.clear(); - } - if (timeSeriesTableBuilder_ != null) { - timeSeriesTableBuilder_.clear(); - } - if (collapsibleGroupBuilder_ != null) { - collapsibleGroupBuilder_.clear(); - } - if (logsPanelBuilder_ != null) { - logsPanelBuilder_.clear(); - } - contentCase_ = 0; - content_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.WidgetProto - .internal_static_google_monitoring_dashboard_v1_Widget_descriptor; - } - - @java.lang.Override - public com.google.monitoring.dashboard.v1.Widget getDefaultInstanceForType() { - return com.google.monitoring.dashboard.v1.Widget.getDefaultInstance(); - } - - @java.lang.Override - public com.google.monitoring.dashboard.v1.Widget build() { - com.google.monitoring.dashboard.v1.Widget result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.monitoring.dashboard.v1.Widget buildPartial() { - com.google.monitoring.dashboard.v1.Widget result = - new com.google.monitoring.dashboard.v1.Widget(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.monitoring.dashboard.v1.Widget result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.title_ = title_; - } - } - - private void buildPartialOneofs(com.google.monitoring.dashboard.v1.Widget result) { - result.contentCase_ = contentCase_; - result.content_ = this.content_; - if (contentCase_ == 2 && xyChartBuilder_ != null) { - result.content_ = xyChartBuilder_.build(); - } - if (contentCase_ == 3 && scorecardBuilder_ != null) { - result.content_ = scorecardBuilder_.build(); - } - if (contentCase_ == 4 && textBuilder_ != null) { - result.content_ = textBuilder_.build(); - } - if (contentCase_ == 5 && blankBuilder_ != null) { - result.content_ = blankBuilder_.build(); - } - if (contentCase_ == 7 && alertChartBuilder_ != null) { - result.content_ = alertChartBuilder_.build(); - } - if (contentCase_ == 8 && timeSeriesTableBuilder_ != null) { - result.content_ = timeSeriesTableBuilder_.build(); - } - if (contentCase_ == 9 && collapsibleGroupBuilder_ != null) { - result.content_ = collapsibleGroupBuilder_.build(); - } - if (contentCase_ == 10 && logsPanelBuilder_ != null) { - result.content_ = logsPanelBuilder_.build(); - } - } - - @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.Widget) { - return mergeFrom((com.google.monitoring.dashboard.v1.Widget) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.monitoring.dashboard.v1.Widget other) { - if (other == com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()) return this; - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - bitField0_ |= 0x00000001; - onChanged(); - } - switch (other.getContentCase()) { - case XY_CHART: - { - mergeXyChart(other.getXyChart()); - break; - } - case SCORECARD: - { - mergeScorecard(other.getScorecard()); - break; - } - case TEXT: - { - mergeText(other.getText()); - break; - } - case BLANK: - { - mergeBlank(other.getBlank()); - break; - } - case ALERT_CHART: - { - mergeAlertChart(other.getAlertChart()); - break; - } - case TIME_SERIES_TABLE: - { - mergeTimeSeriesTable(other.getTimeSeriesTable()); - break; - } - case COLLAPSIBLE_GROUP: - { - mergeCollapsibleGroup(other.getCollapsibleGroup()); - break; - } - case LOGS_PANEL: - { - mergeLogsPanel(other.getLogsPanel()); - break; - } - case CONTENT_NOT_SET: - { - break; - } - } - 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: - { - title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getXyChartFieldBuilder().getBuilder(), extensionRegistry); - contentCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getScorecardFieldBuilder().getBuilder(), extensionRegistry); - contentCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getTextFieldBuilder().getBuilder(), extensionRegistry); - contentCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getBlankFieldBuilder().getBuilder(), extensionRegistry); - contentCase_ = 5; - break; - } // case 42 - case 58: - { - input.readMessage(getAlertChartFieldBuilder().getBuilder(), extensionRegistry); - contentCase_ = 7; - break; - } // case 58 - case 66: - { - input.readMessage(getTimeSeriesTableFieldBuilder().getBuilder(), extensionRegistry); - contentCase_ = 8; - break; - } // case 66 - case 74: - { - input.readMessage( - getCollapsibleGroupFieldBuilder().getBuilder(), extensionRegistry); - contentCase_ = 9; - break; - } // case 74 - case 82: - { - input.readMessage(getLogsPanelFieldBuilder().getBuilder(), extensionRegistry); - contentCase_ = 10; - break; - } // case 82 - 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 contentCase_ = 0; - private java.lang.Object content_; - - public ContentCase getContentCase() { - return ContentCase.forNumber(contentCase_); - } - - public Builder clearContent() { - contentCase_ = 0; - content_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object title_ = ""; - /** - * - * - *
-     * Optional. The title of the widget.
-     * 
- * - * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The title of the widget.
-     * 
- * - * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for title. - */ - public com.google.protobuf.ByteString getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The title of the widget.
-     * 
- * - * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - title_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The title of the widget.
-     * 
- * - * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTitle() { - title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The title of the widget.
-     * 
- * - * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - title_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart, - com.google.monitoring.dashboard.v1.XyChart.Builder, - com.google.monitoring.dashboard.v1.XyChartOrBuilder> - xyChartBuilder_; - /** - * - * - *
-     * A chart of time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; - * - * @return Whether the xyChart field is set. - */ - @java.lang.Override - public boolean hasXyChart() { - return contentCase_ == 2; - } - /** - * - * - *
-     * A chart of time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; - * - * @return The xyChart. - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.XyChart getXyChart() { - if (xyChartBuilder_ == null) { - if (contentCase_ == 2) { - return (com.google.monitoring.dashboard.v1.XyChart) content_; - } - return com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance(); - } else { - if (contentCase_ == 2) { - return xyChartBuilder_.getMessage(); - } - return com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance(); - } - } - /** - * - * - *
-     * A chart of time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; - */ - public Builder setXyChart(com.google.monitoring.dashboard.v1.XyChart value) { - if (xyChartBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - onChanged(); - } else { - xyChartBuilder_.setMessage(value); - } - contentCase_ = 2; - return this; - } - /** - * - * - *
-     * A chart of time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; - */ - public Builder setXyChart(com.google.monitoring.dashboard.v1.XyChart.Builder builderForValue) { - if (xyChartBuilder_ == null) { - content_ = builderForValue.build(); - onChanged(); - } else { - xyChartBuilder_.setMessage(builderForValue.build()); - } - contentCase_ = 2; - return this; - } - /** - * - * - *
-     * A chart of time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; - */ - public Builder mergeXyChart(com.google.monitoring.dashboard.v1.XyChart value) { - if (xyChartBuilder_ == null) { - if (contentCase_ == 2 - && content_ != com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance()) { - content_ = - com.google.monitoring.dashboard.v1.XyChart.newBuilder( - (com.google.monitoring.dashboard.v1.XyChart) content_) - .mergeFrom(value) - .buildPartial(); - } else { - content_ = value; - } - onChanged(); - } else { - if (contentCase_ == 2) { - xyChartBuilder_.mergeFrom(value); - } else { - xyChartBuilder_.setMessage(value); - } - } - contentCase_ = 2; - return this; - } - /** - * - * - *
-     * A chart of time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; - */ - public Builder clearXyChart() { - if (xyChartBuilder_ == null) { - if (contentCase_ == 2) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - } else { - if (contentCase_ == 2) { - contentCase_ = 0; - content_ = null; - } - xyChartBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A chart of time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; - */ - public com.google.monitoring.dashboard.v1.XyChart.Builder getXyChartBuilder() { - return getXyChartFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A chart of time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.XyChartOrBuilder getXyChartOrBuilder() { - if ((contentCase_ == 2) && (xyChartBuilder_ != null)) { - return xyChartBuilder_.getMessageOrBuilder(); - } else { - if (contentCase_ == 2) { - return (com.google.monitoring.dashboard.v1.XyChart) content_; - } - return com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance(); - } - } - /** - * - * - *
-     * A chart of time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart, - com.google.monitoring.dashboard.v1.XyChart.Builder, - com.google.monitoring.dashboard.v1.XyChartOrBuilder> - getXyChartFieldBuilder() { - if (xyChartBuilder_ == null) { - if (!(contentCase_ == 2)) { - content_ = com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance(); - } - xyChartBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart, - com.google.monitoring.dashboard.v1.XyChart.Builder, - com.google.monitoring.dashboard.v1.XyChartOrBuilder>( - (com.google.monitoring.dashboard.v1.XyChart) content_, - getParentForChildren(), - isClean()); - content_ = null; - } - contentCase_ = 2; - onChanged(); - return xyChartBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard, - com.google.monitoring.dashboard.v1.Scorecard.Builder, - com.google.monitoring.dashboard.v1.ScorecardOrBuilder> - scorecardBuilder_; - /** - * - * - *
-     * A scorecard summarizing time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; - * - * @return Whether the scorecard field is set. - */ - @java.lang.Override - public boolean hasScorecard() { - return contentCase_ == 3; - } - /** - * - * - *
-     * A scorecard summarizing time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; - * - * @return The scorecard. - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.Scorecard getScorecard() { - if (scorecardBuilder_ == null) { - if (contentCase_ == 3) { - return (com.google.monitoring.dashboard.v1.Scorecard) content_; - } - return com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance(); - } else { - if (contentCase_ == 3) { - return scorecardBuilder_.getMessage(); - } - return com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance(); - } - } - /** - * - * - *
-     * A scorecard summarizing time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; - */ - public Builder setScorecard(com.google.monitoring.dashboard.v1.Scorecard value) { - if (scorecardBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - onChanged(); - } else { - scorecardBuilder_.setMessage(value); - } - contentCase_ = 3; - return this; - } - /** - * - * - *
-     * A scorecard summarizing time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; - */ - public Builder setScorecard( - com.google.monitoring.dashboard.v1.Scorecard.Builder builderForValue) { - if (scorecardBuilder_ == null) { - content_ = builderForValue.build(); - onChanged(); - } else { - scorecardBuilder_.setMessage(builderForValue.build()); - } - contentCase_ = 3; - return this; - } - /** - * - * - *
-     * A scorecard summarizing time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; - */ - public Builder mergeScorecard(com.google.monitoring.dashboard.v1.Scorecard value) { - if (scorecardBuilder_ == null) { - if (contentCase_ == 3 - && content_ != com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance()) { - content_ = - com.google.monitoring.dashboard.v1.Scorecard.newBuilder( - (com.google.monitoring.dashboard.v1.Scorecard) content_) - .mergeFrom(value) - .buildPartial(); - } else { - content_ = value; - } - onChanged(); - } else { - if (contentCase_ == 3) { - scorecardBuilder_.mergeFrom(value); - } else { - scorecardBuilder_.setMessage(value); - } - } - contentCase_ = 3; - return this; - } - /** - * - * - *
-     * A scorecard summarizing time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; - */ - public Builder clearScorecard() { - if (scorecardBuilder_ == null) { - if (contentCase_ == 3) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - } else { - if (contentCase_ == 3) { - contentCase_ = 0; - content_ = null; - } - scorecardBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A scorecard summarizing time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; - */ - public com.google.monitoring.dashboard.v1.Scorecard.Builder getScorecardBuilder() { - return getScorecardFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A scorecard summarizing time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.ScorecardOrBuilder getScorecardOrBuilder() { - if ((contentCase_ == 3) && (scorecardBuilder_ != null)) { - return scorecardBuilder_.getMessageOrBuilder(); - } else { - if (contentCase_ == 3) { - return (com.google.monitoring.dashboard.v1.Scorecard) content_; - } - return com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance(); - } - } - /** - * - * - *
-     * A scorecard summarizing time series data.
-     * 
- * - * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard, - com.google.monitoring.dashboard.v1.Scorecard.Builder, - com.google.monitoring.dashboard.v1.ScorecardOrBuilder> - getScorecardFieldBuilder() { - if (scorecardBuilder_ == null) { - if (!(contentCase_ == 3)) { - content_ = com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance(); - } - scorecardBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard, - com.google.monitoring.dashboard.v1.Scorecard.Builder, - com.google.monitoring.dashboard.v1.ScorecardOrBuilder>( - (com.google.monitoring.dashboard.v1.Scorecard) content_, - getParentForChildren(), - isClean()); - content_ = null; - } - contentCase_ = 3; - onChanged(); - return scorecardBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Text, - com.google.monitoring.dashboard.v1.Text.Builder, - com.google.monitoring.dashboard.v1.TextOrBuilder> - textBuilder_; - /** - * - * - *
-     * A raw string or markdown displaying textual content.
-     * 
- * - * .google.monitoring.dashboard.v1.Text text = 4; - * - * @return Whether the text field is set. - */ - @java.lang.Override - public boolean hasText() { - return contentCase_ == 4; - } - /** - * - * - *
-     * A raw string or markdown displaying textual content.
-     * 
- * - * .google.monitoring.dashboard.v1.Text text = 4; - * - * @return The text. - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.Text getText() { - if (textBuilder_ == null) { - if (contentCase_ == 4) { - return (com.google.monitoring.dashboard.v1.Text) content_; - } - return com.google.monitoring.dashboard.v1.Text.getDefaultInstance(); - } else { - if (contentCase_ == 4) { - return textBuilder_.getMessage(); - } - return com.google.monitoring.dashboard.v1.Text.getDefaultInstance(); - } - } - /** - * - * - *
-     * A raw string or markdown displaying textual content.
-     * 
- * - * .google.monitoring.dashboard.v1.Text text = 4; - */ - public Builder setText(com.google.monitoring.dashboard.v1.Text value) { - if (textBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - onChanged(); - } else { - textBuilder_.setMessage(value); - } - contentCase_ = 4; - return this; - } - /** - * - * - *
-     * A raw string or markdown displaying textual content.
-     * 
- * - * .google.monitoring.dashboard.v1.Text text = 4; - */ - public Builder setText(com.google.monitoring.dashboard.v1.Text.Builder builderForValue) { - if (textBuilder_ == null) { - content_ = builderForValue.build(); - onChanged(); - } else { - textBuilder_.setMessage(builderForValue.build()); - } - contentCase_ = 4; - return this; - } - /** - * - * - *
-     * A raw string or markdown displaying textual content.
-     * 
- * - * .google.monitoring.dashboard.v1.Text text = 4; - */ - public Builder mergeText(com.google.monitoring.dashboard.v1.Text value) { - if (textBuilder_ == null) { - if (contentCase_ == 4 - && content_ != com.google.monitoring.dashboard.v1.Text.getDefaultInstance()) { - content_ = - com.google.monitoring.dashboard.v1.Text.newBuilder( - (com.google.monitoring.dashboard.v1.Text) content_) - .mergeFrom(value) - .buildPartial(); - } else { - content_ = value; - } - onChanged(); - } else { - if (contentCase_ == 4) { - textBuilder_.mergeFrom(value); - } else { - textBuilder_.setMessage(value); - } - } - contentCase_ = 4; - return this; - } - /** - * - * - *
-     * A raw string or markdown displaying textual content.
-     * 
- * - * .google.monitoring.dashboard.v1.Text text = 4; - */ - public Builder clearText() { - if (textBuilder_ == null) { - if (contentCase_ == 4) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - } else { - if (contentCase_ == 4) { - contentCase_ = 0; - content_ = null; - } - textBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A raw string or markdown displaying textual content.
-     * 
- * - * .google.monitoring.dashboard.v1.Text text = 4; - */ - public com.google.monitoring.dashboard.v1.Text.Builder getTextBuilder() { - return getTextFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A raw string or markdown displaying textual content.
-     * 
- * - * .google.monitoring.dashboard.v1.Text text = 4; - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.TextOrBuilder getTextOrBuilder() { - if ((contentCase_ == 4) && (textBuilder_ != null)) { - return textBuilder_.getMessageOrBuilder(); - } else { - if (contentCase_ == 4) { - return (com.google.monitoring.dashboard.v1.Text) content_; - } - return com.google.monitoring.dashboard.v1.Text.getDefaultInstance(); - } - } - /** - * - * - *
-     * A raw string or markdown displaying textual content.
-     * 
- * - * .google.monitoring.dashboard.v1.Text text = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Text, - com.google.monitoring.dashboard.v1.Text.Builder, - com.google.monitoring.dashboard.v1.TextOrBuilder> - getTextFieldBuilder() { - if (textBuilder_ == null) { - if (!(contentCase_ == 4)) { - content_ = com.google.monitoring.dashboard.v1.Text.getDefaultInstance(); - } - textBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Text, - com.google.monitoring.dashboard.v1.Text.Builder, - com.google.monitoring.dashboard.v1.TextOrBuilder>( - (com.google.monitoring.dashboard.v1.Text) content_, - getParentForChildren(), - isClean()); - content_ = null; - } - contentCase_ = 4; - onChanged(); - return textBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Empty, - com.google.protobuf.Empty.Builder, - com.google.protobuf.EmptyOrBuilder> - blankBuilder_; - /** - * - * - *
-     * A blank space.
-     * 
- * - * .google.protobuf.Empty blank = 5; - * - * @return Whether the blank field is set. - */ - @java.lang.Override - public boolean hasBlank() { - return contentCase_ == 5; - } - /** - * - * - *
-     * A blank space.
-     * 
- * - * .google.protobuf.Empty blank = 5; - * - * @return The blank. - */ - @java.lang.Override - public com.google.protobuf.Empty getBlank() { - if (blankBuilder_ == null) { - if (contentCase_ == 5) { - return (com.google.protobuf.Empty) content_; - } - return com.google.protobuf.Empty.getDefaultInstance(); - } else { - if (contentCase_ == 5) { - return blankBuilder_.getMessage(); - } - return com.google.protobuf.Empty.getDefaultInstance(); - } - } - /** - * - * - *
-     * A blank space.
-     * 
- * - * .google.protobuf.Empty blank = 5; - */ - public Builder setBlank(com.google.protobuf.Empty value) { - if (blankBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - onChanged(); - } else { - blankBuilder_.setMessage(value); - } - contentCase_ = 5; - return this; - } - /** - * - * - *
-     * A blank space.
-     * 
- * - * .google.protobuf.Empty blank = 5; - */ - public Builder setBlank(com.google.protobuf.Empty.Builder builderForValue) { - if (blankBuilder_ == null) { - content_ = builderForValue.build(); - onChanged(); - } else { - blankBuilder_.setMessage(builderForValue.build()); - } - contentCase_ = 5; - return this; - } - /** - * - * - *
-     * A blank space.
-     * 
- * - * .google.protobuf.Empty blank = 5; - */ - public Builder mergeBlank(com.google.protobuf.Empty value) { - if (blankBuilder_ == null) { - if (contentCase_ == 5 && content_ != com.google.protobuf.Empty.getDefaultInstance()) { - content_ = - com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) content_) - .mergeFrom(value) - .buildPartial(); - } else { - content_ = value; - } - onChanged(); - } else { - if (contentCase_ == 5) { - blankBuilder_.mergeFrom(value); - } else { - blankBuilder_.setMessage(value); - } - } - contentCase_ = 5; - return this; - } - /** - * - * - *
-     * A blank space.
-     * 
- * - * .google.protobuf.Empty blank = 5; - */ - public Builder clearBlank() { - if (blankBuilder_ == null) { - if (contentCase_ == 5) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - } else { - if (contentCase_ == 5) { - contentCase_ = 0; - content_ = null; - } - blankBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A blank space.
-     * 
- * - * .google.protobuf.Empty blank = 5; - */ - public com.google.protobuf.Empty.Builder getBlankBuilder() { - return getBlankFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A blank space.
-     * 
- * - * .google.protobuf.Empty blank = 5; - */ - @java.lang.Override - public com.google.protobuf.EmptyOrBuilder getBlankOrBuilder() { - if ((contentCase_ == 5) && (blankBuilder_ != null)) { - return blankBuilder_.getMessageOrBuilder(); - } else { - if (contentCase_ == 5) { - return (com.google.protobuf.Empty) content_; - } - return com.google.protobuf.Empty.getDefaultInstance(); - } - } - /** - * - * - *
-     * A blank space.
-     * 
- * - * .google.protobuf.Empty blank = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Empty, - com.google.protobuf.Empty.Builder, - com.google.protobuf.EmptyOrBuilder> - getBlankFieldBuilder() { - if (blankBuilder_ == null) { - if (!(contentCase_ == 5)) { - content_ = com.google.protobuf.Empty.getDefaultInstance(); - } - blankBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Empty, - com.google.protobuf.Empty.Builder, - com.google.protobuf.EmptyOrBuilder>( - (com.google.protobuf.Empty) content_, getParentForChildren(), isClean()); - content_ = null; - } - contentCase_ = 5; - onChanged(); - return blankBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.AlertChart, - com.google.monitoring.dashboard.v1.AlertChart.Builder, - com.google.monitoring.dashboard.v1.AlertChartOrBuilder> - alertChartBuilder_; - /** - * - * - *
-     * A chart of alert policy data.
-     * 
- * - * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; - * - * @return Whether the alertChart field is set. - */ - @java.lang.Override - public boolean hasAlertChart() { - return contentCase_ == 7; - } - /** - * - * - *
-     * A chart of alert policy data.
-     * 
- * - * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; - * - * @return The alertChart. - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.AlertChart getAlertChart() { - if (alertChartBuilder_ == null) { - if (contentCase_ == 7) { - return (com.google.monitoring.dashboard.v1.AlertChart) content_; - } - return com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance(); - } else { - if (contentCase_ == 7) { - return alertChartBuilder_.getMessage(); - } - return com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance(); - } - } - /** - * - * - *
-     * A chart of alert policy data.
-     * 
- * - * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; - */ - public Builder setAlertChart(com.google.monitoring.dashboard.v1.AlertChart value) { - if (alertChartBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - onChanged(); - } else { - alertChartBuilder_.setMessage(value); - } - contentCase_ = 7; - return this; - } - /** - * - * - *
-     * A chart of alert policy data.
-     * 
- * - * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; - */ - public Builder setAlertChart( - com.google.monitoring.dashboard.v1.AlertChart.Builder builderForValue) { - if (alertChartBuilder_ == null) { - content_ = builderForValue.build(); - onChanged(); - } else { - alertChartBuilder_.setMessage(builderForValue.build()); - } - contentCase_ = 7; - return this; - } - /** - * - * - *
-     * A chart of alert policy data.
-     * 
- * - * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; - */ - public Builder mergeAlertChart(com.google.monitoring.dashboard.v1.AlertChart value) { - if (alertChartBuilder_ == null) { - if (contentCase_ == 7 - && content_ != com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance()) { - content_ = - com.google.monitoring.dashboard.v1.AlertChart.newBuilder( - (com.google.monitoring.dashboard.v1.AlertChart) content_) - .mergeFrom(value) - .buildPartial(); - } else { - content_ = value; - } - onChanged(); - } else { - if (contentCase_ == 7) { - alertChartBuilder_.mergeFrom(value); - } else { - alertChartBuilder_.setMessage(value); - } - } - contentCase_ = 7; - return this; - } - /** - * - * - *
-     * A chart of alert policy data.
-     * 
- * - * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; - */ - public Builder clearAlertChart() { - if (alertChartBuilder_ == null) { - if (contentCase_ == 7) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - } else { - if (contentCase_ == 7) { - contentCase_ = 0; - content_ = null; - } - alertChartBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A chart of alert policy data.
-     * 
- * - * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; - */ - public com.google.monitoring.dashboard.v1.AlertChart.Builder getAlertChartBuilder() { - return getAlertChartFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A chart of alert policy data.
-     * 
- * - * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.AlertChartOrBuilder getAlertChartOrBuilder() { - if ((contentCase_ == 7) && (alertChartBuilder_ != null)) { - return alertChartBuilder_.getMessageOrBuilder(); - } else { - if (contentCase_ == 7) { - return (com.google.monitoring.dashboard.v1.AlertChart) content_; - } - return com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance(); - } - } - /** - * - * - *
-     * A chart of alert policy data.
-     * 
- * - * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.AlertChart, - com.google.monitoring.dashboard.v1.AlertChart.Builder, - com.google.monitoring.dashboard.v1.AlertChartOrBuilder> - getAlertChartFieldBuilder() { - if (alertChartBuilder_ == null) { - if (!(contentCase_ == 7)) { - content_ = com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance(); - } - alertChartBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.AlertChart, - com.google.monitoring.dashboard.v1.AlertChart.Builder, - com.google.monitoring.dashboard.v1.AlertChartOrBuilder>( - (com.google.monitoring.dashboard.v1.AlertChart) content_, - getParentForChildren(), - isClean()); - content_ = null; - } - contentCase_ = 7; - onChanged(); - return alertChartBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesTable, - com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder> - timeSeriesTableBuilder_; - /** - * - * - *
-     * A widget that displays time series data in a tabular format.
-     * 
- * - * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; - * - * @return Whether the timeSeriesTable field is set. - */ - @java.lang.Override - public boolean hasTimeSeriesTable() { - return contentCase_ == 8; - } - /** - * - * - *
-     * A widget that displays time series data in a tabular format.
-     * 
- * - * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; - * - * @return The timeSeriesTable. - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesTable getTimeSeriesTable() { - if (timeSeriesTableBuilder_ == null) { - if (contentCase_ == 8) { - return (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_; - } - return com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); - } else { - if (contentCase_ == 8) { - return timeSeriesTableBuilder_.getMessage(); - } - return com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); - } - } - /** - * - * - *
-     * A widget that displays time series data in a tabular format.
-     * 
- * - * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; - */ - public Builder setTimeSeriesTable(com.google.monitoring.dashboard.v1.TimeSeriesTable value) { - if (timeSeriesTableBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - onChanged(); - } else { - timeSeriesTableBuilder_.setMessage(value); - } - contentCase_ = 8; - return this; - } - /** - * - * - *
-     * A widget that displays time series data in a tabular format.
-     * 
- * - * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; - */ - public Builder setTimeSeriesTable( - com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder builderForValue) { - if (timeSeriesTableBuilder_ == null) { - content_ = builderForValue.build(); - onChanged(); - } else { - timeSeriesTableBuilder_.setMessage(builderForValue.build()); - } - contentCase_ = 8; - return this; - } - /** - * - * - *
-     * A widget that displays time series data in a tabular format.
-     * 
- * - * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; - */ - public Builder mergeTimeSeriesTable(com.google.monitoring.dashboard.v1.TimeSeriesTable value) { - if (timeSeriesTableBuilder_ == null) { - if (contentCase_ == 8 - && content_ - != com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance()) { - content_ = - com.google.monitoring.dashboard.v1.TimeSeriesTable.newBuilder( - (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_) - .mergeFrom(value) - .buildPartial(); - } else { - content_ = value; - } - onChanged(); - } else { - if (contentCase_ == 8) { - timeSeriesTableBuilder_.mergeFrom(value); - } else { - timeSeriesTableBuilder_.setMessage(value); - } - } - contentCase_ = 8; - return this; - } - /** - * - * - *
-     * A widget that displays time series data in a tabular format.
-     * 
- * - * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; - */ - public Builder clearTimeSeriesTable() { - if (timeSeriesTableBuilder_ == null) { - if (contentCase_ == 8) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - } else { - if (contentCase_ == 8) { - contentCase_ = 0; - content_ = null; - } - timeSeriesTableBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A widget that displays time series data in a tabular format.
-     * 
- * - * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; - */ - public com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder getTimeSeriesTableBuilder() { - return getTimeSeriesTableFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A widget that displays time series data in a tabular format.
-     * 
- * - * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder - getTimeSeriesTableOrBuilder() { - if ((contentCase_ == 8) && (timeSeriesTableBuilder_ != null)) { - return timeSeriesTableBuilder_.getMessageOrBuilder(); - } else { - if (contentCase_ == 8) { - return (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_; - } - return com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); - } - } - /** - * - * - *
-     * A widget that displays time series data in a tabular format.
-     * 
- * - * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesTable, - com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder> - getTimeSeriesTableFieldBuilder() { - if (timeSeriesTableBuilder_ == null) { - if (!(contentCase_ == 8)) { - content_ = com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); - } - timeSeriesTableBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesTable, - com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder>( - (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_, - getParentForChildren(), - isClean()); - content_ = null; - } - contentCase_ = 8; - onChanged(); - return timeSeriesTableBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.CollapsibleGroup, - com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder, - com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder> - collapsibleGroupBuilder_; - /** - * - * - *
-     * A widget that groups the other widgets. All widgets that are within
-     * the area spanned by the grouping widget are considered member widgets.
-     * 
- * - * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; - * - * @return Whether the collapsibleGroup field is set. - */ - @java.lang.Override - public boolean hasCollapsibleGroup() { - return contentCase_ == 9; - } - /** - * - * - *
-     * A widget that groups the other widgets. All widgets that are within
-     * the area spanned by the grouping widget are considered member widgets.
-     * 
- * - * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; - * - * @return The collapsibleGroup. - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.CollapsibleGroup getCollapsibleGroup() { - if (collapsibleGroupBuilder_ == null) { - if (contentCase_ == 9) { - return (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_; - } - return com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance(); - } else { - if (contentCase_ == 9) { - return collapsibleGroupBuilder_.getMessage(); - } - return com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance(); - } - } - /** - * - * - *
-     * A widget that groups the other widgets. All widgets that are within
-     * the area spanned by the grouping widget are considered member widgets.
-     * 
- * - * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; - */ - public Builder setCollapsibleGroup(com.google.monitoring.dashboard.v1.CollapsibleGroup value) { - if (collapsibleGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - onChanged(); - } else { - collapsibleGroupBuilder_.setMessage(value); - } - contentCase_ = 9; - return this; - } - /** - * - * - *
-     * A widget that groups the other widgets. All widgets that are within
-     * the area spanned by the grouping widget are considered member widgets.
-     * 
- * - * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; - */ - public Builder setCollapsibleGroup( - com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder builderForValue) { - if (collapsibleGroupBuilder_ == null) { - content_ = builderForValue.build(); - onChanged(); - } else { - collapsibleGroupBuilder_.setMessage(builderForValue.build()); - } - contentCase_ = 9; - return this; - } - /** - * - * - *
-     * A widget that groups the other widgets. All widgets that are within
-     * the area spanned by the grouping widget are considered member widgets.
-     * 
- * - * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; - */ - public Builder mergeCollapsibleGroup( - com.google.monitoring.dashboard.v1.CollapsibleGroup value) { - if (collapsibleGroupBuilder_ == null) { - if (contentCase_ == 9 - && content_ - != com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance()) { - content_ = - com.google.monitoring.dashboard.v1.CollapsibleGroup.newBuilder( - (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_) - .mergeFrom(value) - .buildPartial(); - } else { - content_ = value; - } - onChanged(); - } else { - if (contentCase_ == 9) { - collapsibleGroupBuilder_.mergeFrom(value); - } else { - collapsibleGroupBuilder_.setMessage(value); - } - } - contentCase_ = 9; - return this; - } - /** - * - * - *
-     * A widget that groups the other widgets. All widgets that are within
-     * the area spanned by the grouping widget are considered member widgets.
-     * 
- * - * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; - */ - public Builder clearCollapsibleGroup() { - if (collapsibleGroupBuilder_ == null) { - if (contentCase_ == 9) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - } else { - if (contentCase_ == 9) { - contentCase_ = 0; - content_ = null; - } - collapsibleGroupBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A widget that groups the other widgets. All widgets that are within
-     * the area spanned by the grouping widget are considered member widgets.
-     * 
- * - * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; - */ - public com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder - getCollapsibleGroupBuilder() { - return getCollapsibleGroupFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A widget that groups the other widgets. All widgets that are within
-     * the area spanned by the grouping widget are considered member widgets.
-     * 
- * - * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder - getCollapsibleGroupOrBuilder() { - if ((contentCase_ == 9) && (collapsibleGroupBuilder_ != null)) { - return collapsibleGroupBuilder_.getMessageOrBuilder(); - } else { - if (contentCase_ == 9) { - return (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_; - } - return com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance(); - } - } - /** - * - * - *
-     * A widget that groups the other widgets. All widgets that are within
-     * the area spanned by the grouping widget are considered member widgets.
-     * 
- * - * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.CollapsibleGroup, - com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder, - com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder> - getCollapsibleGroupFieldBuilder() { - if (collapsibleGroupBuilder_ == null) { - if (!(contentCase_ == 9)) { - content_ = com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance(); - } - collapsibleGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.CollapsibleGroup, - com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder, - com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder>( - (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_, - getParentForChildren(), - isClean()); - content_ = null; - } - contentCase_ = 9; - onChanged(); - return collapsibleGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.LogsPanel, - com.google.monitoring.dashboard.v1.LogsPanel.Builder, - com.google.monitoring.dashboard.v1.LogsPanelOrBuilder> - logsPanelBuilder_; - /** - * - * - *
-     * A widget that shows a stream of logs.
-     * 
- * - * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; - * - * @return Whether the logsPanel field is set. - */ - @java.lang.Override - public boolean hasLogsPanel() { - return contentCase_ == 10; - } - /** - * - * - *
-     * A widget that shows a stream of logs.
-     * 
- * - * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; - * - * @return The logsPanel. - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.LogsPanel getLogsPanel() { - if (logsPanelBuilder_ == null) { - if (contentCase_ == 10) { - return (com.google.monitoring.dashboard.v1.LogsPanel) content_; - } - return com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance(); - } else { - if (contentCase_ == 10) { - return logsPanelBuilder_.getMessage(); - } - return com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance(); - } - } - /** - * - * - *
-     * A widget that shows a stream of logs.
-     * 
- * - * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; - */ - public Builder setLogsPanel(com.google.monitoring.dashboard.v1.LogsPanel value) { - if (logsPanelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - onChanged(); - } else { - logsPanelBuilder_.setMessage(value); - } - contentCase_ = 10; - return this; - } - /** - * - * - *
-     * A widget that shows a stream of logs.
-     * 
- * - * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; - */ - public Builder setLogsPanel( - com.google.monitoring.dashboard.v1.LogsPanel.Builder builderForValue) { - if (logsPanelBuilder_ == null) { - content_ = builderForValue.build(); - onChanged(); - } else { - logsPanelBuilder_.setMessage(builderForValue.build()); - } - contentCase_ = 10; - return this; - } - /** - * - * - *
-     * A widget that shows a stream of logs.
-     * 
- * - * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; - */ - public Builder mergeLogsPanel(com.google.monitoring.dashboard.v1.LogsPanel value) { - if (logsPanelBuilder_ == null) { - if (contentCase_ == 10 - && content_ != com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance()) { - content_ = - com.google.monitoring.dashboard.v1.LogsPanel.newBuilder( - (com.google.monitoring.dashboard.v1.LogsPanel) content_) - .mergeFrom(value) - .buildPartial(); - } else { - content_ = value; - } - onChanged(); - } else { - if (contentCase_ == 10) { - logsPanelBuilder_.mergeFrom(value); - } else { - logsPanelBuilder_.setMessage(value); - } - } - contentCase_ = 10; - return this; - } - /** - * - * - *
-     * A widget that shows a stream of logs.
-     * 
- * - * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; - */ - public Builder clearLogsPanel() { - if (logsPanelBuilder_ == null) { - if (contentCase_ == 10) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - } else { - if (contentCase_ == 10) { - contentCase_ = 0; - content_ = null; - } - logsPanelBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A widget that shows a stream of logs.
-     * 
- * - * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; - */ - public com.google.monitoring.dashboard.v1.LogsPanel.Builder getLogsPanelBuilder() { - return getLogsPanelFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A widget that shows a stream of logs.
-     * 
- * - * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.LogsPanelOrBuilder getLogsPanelOrBuilder() { - if ((contentCase_ == 10) && (logsPanelBuilder_ != null)) { - return logsPanelBuilder_.getMessageOrBuilder(); - } else { - if (contentCase_ == 10) { - return (com.google.monitoring.dashboard.v1.LogsPanel) content_; - } - return com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance(); - } - } - /** - * - * - *
-     * A widget that shows a stream of logs.
-     * 
- * - * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.LogsPanel, - com.google.monitoring.dashboard.v1.LogsPanel.Builder, - com.google.monitoring.dashboard.v1.LogsPanelOrBuilder> - getLogsPanelFieldBuilder() { - if (logsPanelBuilder_ == null) { - if (!(contentCase_ == 10)) { - content_ = com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance(); - } - logsPanelBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.LogsPanel, - com.google.monitoring.dashboard.v1.LogsPanel.Builder, - com.google.monitoring.dashboard.v1.LogsPanelOrBuilder>( - (com.google.monitoring.dashboard.v1.LogsPanel) content_, - getParentForChildren(), - isClean()); - content_ = null; - } - contentCase_ = 10; - onChanged(); - return logsPanelBuilder_; - } - - @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.Widget) - } - - // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Widget) - private static final com.google.monitoring.dashboard.v1.Widget DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Widget(); - } - - public static com.google.monitoring.dashboard.v1.Widget getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Widget 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.Widget getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java deleted file mode 100644 index 7a669880a2ad..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/widget.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class WidgetProto { - private WidgetProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Widget_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Widget_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n+google/monitoring/dashboard/v1/widget." - + "proto\022\036google.monitoring.dashboard.v1\032\037g" - + "oogle/api/field_behavior.proto\032/google/m" - + "onitoring/dashboard/v1/alertchart.proto\032" - + "6google/monitoring/dashboard/v1/collapsi" - + "ble_group.proto\032/google/monitoring/dashb" - + "oard/v1/logs_panel.proto\032.google/monitor" - + "ing/dashboard/v1/scorecard.proto\032*google" - + "/monitoring/dashboard/v1/table.proto\032)go" - + "ogle/monitoring/dashboard/v1/text.proto\032" - + ",google/monitoring/dashboard/v1/xychart." - + "proto\032\033google/protobuf/empty.proto\"\244\004\n\006W" - + "idget\022\022\n\005title\030\001 \001(\tB\003\340A\001\022;\n\010xy_chart\030\002 " - + "\001(\0132\'.google.monitoring.dashboard.v1.XyC" - + "hartH\000\022>\n\tscorecard\030\003 \001(\0132).google.monit" - + "oring.dashboard.v1.ScorecardH\000\0224\n\004text\030\004" - + " \001(\0132$.google.monitoring.dashboard.v1.Te" - + "xtH\000\022\'\n\005blank\030\005 \001(\0132\026.google.protobuf.Em" - + "ptyH\000\022A\n\013alert_chart\030\007 \001(\0132*.google.moni" - + "toring.dashboard.v1.AlertChartH\000\022L\n\021time" - + "_series_table\030\010 \001(\0132/.google.monitoring." - + "dashboard.v1.TimeSeriesTableH\000\022M\n\021collap" - + "sible_group\030\t \001(\01320.google.monitoring.da" - + "shboard.v1.CollapsibleGroupH\000\022?\n\nlogs_pa" - + "nel\030\n \001(\0132).google.monitoring.dashboard." - + "v1.LogsPanelH\000B\t\n\007contentB\364\001\n\"com.google" - + ".monitoring.dashboard.v1B\013WidgetProtoP\001Z" - + "Fcloud.google.com/go/monitoring/dashboar" - + "d/apiv1/dashboardpb;dashboardpb\252\002$Google" - + ".Cloud.Monitoring.Dashboard.V1\312\002$Google\\" - + "Cloud\\Monitoring\\Dashboard\\V1\352\002(Google::" - + "Cloud::Monitoring::Dashboard::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.monitoring.dashboard.v1.AlertChartProto.getDescriptor(), - com.google.monitoring.dashboard.v1.CollapsibleGroupProto.getDescriptor(), - com.google.monitoring.dashboard.v1.LogsPanelProto.getDescriptor(), - com.google.monitoring.dashboard.v1.ScorecardProto.getDescriptor(), - com.google.monitoring.dashboard.v1.TableProto.getDescriptor(), - com.google.monitoring.dashboard.v1.TextProto.getDescriptor(), - com.google.monitoring.dashboard.v1.XyChartProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_Widget_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_Widget_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Widget_descriptor, - new java.lang.String[] { - "Title", - "XyChart", - "Scorecard", - "Text", - "Blank", - "AlertChart", - "TimeSeriesTable", - "CollapsibleGroup", - "LogsPanel", - "Content", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.monitoring.dashboard.v1.AlertChartProto.getDescriptor(); - com.google.monitoring.dashboard.v1.CollapsibleGroupProto.getDescriptor(); - com.google.monitoring.dashboard.v1.LogsPanelProto.getDescriptor(); - com.google.monitoring.dashboard.v1.ScorecardProto.getDescriptor(); - com.google.monitoring.dashboard.v1.TableProto.getDescriptor(); - com.google.monitoring.dashboard.v1.TextProto.getDescriptor(); - com.google.monitoring.dashboard.v1.XyChartProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java deleted file mode 100644 index 238bcf98f30d..000000000000 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/xychart.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class XyChartProto { - private XyChartProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_XyChart_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_XyChart_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_XyChart_Axis_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_ChartOptions_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/monitoring/dashboard/v1/xychart" - + ".proto\022\036google.monitoring.dashboard.v1\032\037" - + "google/api/field_behavior.proto\032,google/" - + "monitoring/dashboard/v1/metrics.proto\032\036g" - + "oogle/protobuf/duration.proto\"\315\010\n\007XyChar" - + "t\022G\n\tdata_sets\030\001 \003(\0132/.google.monitoring" - + ".dashboard.v1.XyChart.DataSetB\003\340A\002\0225\n\022ti" - + "meshift_duration\030\004 \001(\0132\031.google.protobuf" - + ".Duration\022=\n\nthresholds\030\005 \003(\0132).google.m" - + "onitoring.dashboard.v1.Threshold\022<\n\006x_ax" - + "is\030\006 \001(\0132,.google.monitoring.dashboard.v" - + "1.XyChart.Axis\022<\n\006y_axis\030\007 \001(\0132,.google." - + "monitoring.dashboard.v1.XyChart.Axis\022=\n\007" - + "y2_axis\030\t \001(\0132,.google.monitoring.dashbo" - + "ard.v1.XyChart.Axis\022C\n\rchart_options\030\010 \001" - + "(\0132,.google.monitoring.dashboard.v1.Char" - + "tOptions\032\360\003\n\007DataSet\022O\n\021time_series_quer" - + "y\030\001 \001(\0132/.google.monitoring.dashboard.v1" - + ".TimeSeriesQueryB\003\340A\002\022K\n\tplot_type\030\002 \001(\016" - + "28.google.monitoring.dashboard.v1.XyChar" - + "t.DataSet.PlotType\022\027\n\017legend_template\030\003 " - + "\001(\t\022<\n\024min_alignment_period\030\004 \001(\0132\031.goog" - + "le.protobuf.DurationB\003\340A\001\022T\n\013target_axis" - + "\030\005 \001(\0162:.google.monitoring.dashboard.v1." - + "XyChart.DataSet.TargetAxisB\003\340A\001\"_\n\010PlotT" - + "ype\022\031\n\025PLOT_TYPE_UNSPECIFIED\020\000\022\010\n\004LINE\020\001" - + "\022\020\n\014STACKED_AREA\020\002\022\017\n\013STACKED_BAR\020\003\022\013\n\007H" - + "EATMAP\020\004\"9\n\nTargetAxis\022\033\n\027TARGET_AXIS_UN" - + "SPECIFIED\020\000\022\006\n\002Y1\020\001\022\006\n\002Y2\020\002\032\217\001\n\004Axis\022\r\n\005" - + "label\030\001 \001(\t\022A\n\005scale\030\002 \001(\01622.google.moni" - + "toring.dashboard.v1.XyChart.Axis.Scale\"5" - + "\n\005Scale\022\025\n\021SCALE_UNSPECIFIED\020\000\022\n\n\006LINEAR" - + "\020\001\022\t\n\005LOG10\020\002\"\216\001\n\014ChartOptions\022?\n\004mode\030\001" - + " \001(\01621.google.monitoring.dashboard.v1.Ch" - + "artOptions.Mode\"=\n\004Mode\022\024\n\020MODE_UNSPECIF" - + "IED\020\000\022\t\n\005COLOR\020\001\022\t\n\005X_RAY\020\002\022\t\n\005STATS\020\003B\365" - + "\001\n\"com.google.monitoring.dashboard.v1B\014X" - + "yChartProtoP\001ZFcloud.google.com/go/monit" - + "oring/dashboard/apiv1/dashboardpb;dashbo" - + "ardpb\252\002$Google.Cloud.Monitoring.Dashboar" - + "d.V1\312\002$Google\\Cloud\\Monitoring\\Dashboard" - + "\\V1\352\002(Google::Cloud::Monitoring::Dashboa" - + "rd::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_XyChart_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_XyChart_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_XyChart_descriptor, - new java.lang.String[] { - "DataSets", - "TimeshiftDuration", - "Thresholds", - "XAxis", - "YAxis", - "Y2Axis", - "ChartOptions", - }); - internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor = - internal_static_google_monitoring_dashboard_v1_XyChart_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor, - new java.lang.String[] { - "TimeSeriesQuery", "PlotType", "LegendTemplate", "MinAlignmentPeriod", "TargetAxis", - }); - internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor = - internal_static_google_monitoring_dashboard_v1_XyChart_descriptor.getNestedTypes().get(1); - internal_static_google_monitoring_dashboard_v1_XyChart_Axis_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor, - new java.lang.String[] { - "Label", "Scale", - }); - internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_dashboard_v1_ChartOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor, - new java.lang.String[] { - "Mode", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java similarity index 68% rename from java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java rename to owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java index 06e670514794..edb97d7b5b64 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java @@ -29,10 +29,12 @@ import com.google.common.util.concurrent.MoreExecutors; import com.google.monitoring.dashboard.v1.CreateDashboardRequest; import com.google.monitoring.dashboard.v1.Dashboard; +import com.google.monitoring.dashboard.v1.DashboardName; import com.google.monitoring.dashboard.v1.DeleteDashboardRequest; import com.google.monitoring.dashboard.v1.GetDashboardRequest; import com.google.monitoring.dashboard.v1.ListDashboardsRequest; import com.google.monitoring.dashboard.v1.ListDashboardsResponse; +import com.google.monitoring.dashboard.v1.ProjectName; import com.google.monitoring.dashboard.v1.UpdateDashboardRequest; import com.google.protobuf.Empty; import java.io.IOException; @@ -55,13 +57,9 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) { - * CreateDashboardRequest request = - * CreateDashboardRequest.newBuilder() - * .setParent("parent-995424086") - * .setDashboard(Dashboard.newBuilder().build()) - * .setValidateOnly(true) - * .build(); - * Dashboard response = dashboardsServiceClient.createDashboard(request); + * ProjectName parent = ProjectName.of("[PROJECT]"); + * Dashboard dashboard = Dashboard.newBuilder().build(); + * Dashboard response = dashboardsServiceClient.createDashboard(parent, dashboard); * } * } * @@ -84,6 +82,11 @@ *
    *
  • createDashboard(CreateDashboardRequest request) *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createDashboard(ProjectName parent, Dashboard dashboard) + *

  • createDashboard(String parent, Dashboard dashboard) + *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    *
  • createDashboardCallable() @@ -99,6 +102,11 @@ *

      *
    • listDashboards(ListDashboardsRequest request) *

    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • listDashboards(ProjectName parent) + *

    • listDashboards(String parent) + *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      *
    • listDashboardsPagedCallable() @@ -115,6 +123,11 @@ *

        *
      • getDashboard(GetDashboardRequest request) *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • getDashboard(DashboardName name) + *

      • getDashboard(String name) + *

      *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      *
        *
      • getDashboardCallable() @@ -130,6 +143,11 @@ *

          *
        • deleteDashboard(DeleteDashboardRequest request) *

        + *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        + *
          + *
        • deleteDashboard(DashboardName name) + *

        • deleteDashboard(String name) + *

        *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        *
          *
        • deleteDashboardCallable() @@ -259,6 +277,79 @@ public DashboardsServiceStub getStub() { return stub; } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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). + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
          +   *   ProjectName parent = ProjectName.of("[PROJECT]");
          +   *   Dashboard dashboard = Dashboard.newBuilder().build();
          +   *   Dashboard response = dashboardsServiceClient.createDashboard(parent, dashboard);
          +   * }
          +   * }
          + * + * @param parent Required. The project on which to execute the request. The format is: + *

          projects/[PROJECT_ID_OR_NUMBER] + *

          The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name. + * @param dashboard Required. The initial dashboard specification. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Dashboard createDashboard(ProjectName parent, Dashboard dashboard) { + CreateDashboardRequest request = + CreateDashboardRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDashboard(dashboard) + .build(); + return createDashboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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). + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
          +   *   String parent = ProjectName.of("[PROJECT]").toString();
          +   *   Dashboard dashboard = Dashboard.newBuilder().build();
          +   *   Dashboard response = dashboardsServiceClient.createDashboard(parent, dashboard);
          +   * }
          +   * }
          + * + * @param parent Required. The project on which to execute the request. The format is: + *

          projects/[PROJECT_ID_OR_NUMBER] + *

          The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name. + * @param dashboard Required. The initial dashboard specification. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Dashboard createDashboard(String parent, Dashboard dashboard) { + CreateDashboardRequest request = + CreateDashboardRequest.newBuilder().setParent(parent).setDashboard(dashboard).build(); + return createDashboard(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new custom dashboard. For examples on how you can use this API to create dashboards, @@ -278,7 +369,7 @@ public DashboardsServiceStub getStub() { * try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) { * CreateDashboardRequest request = * CreateDashboardRequest.newBuilder() - * .setParent("parent-995424086") + * .setParent(ProjectName.of("[PROJECT]").toString()) * .setDashboard(Dashboard.newBuilder().build()) * .setValidateOnly(true) * .build(); @@ -312,7 +403,7 @@ public final Dashboard createDashboard(CreateDashboardRequest request) { * try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) { * CreateDashboardRequest request = * CreateDashboardRequest.newBuilder() - * .setParent("parent-995424086") + * .setParent(ProjectName.of("[PROJECT]").toString()) * .setDashboard(Dashboard.newBuilder().build()) * .setValidateOnly(true) * .build(); @@ -327,6 +418,73 @@ public final UnaryCallable createDashboardCal return stub.createDashboardCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the existing dashboards. + * + *

          This method requires the `monitoring.dashboards.list` permission on the specified project. + * For more information, see [Cloud Identity and Access Management](https://cloud.google.com/iam). + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
          +   *   ProjectName parent = ProjectName.of("[PROJECT]");
          +   *   for (Dashboard element : dashboardsServiceClient.listDashboards(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The scope of the dashboards to list. The format is: + *

          projects/[PROJECT_ID_OR_NUMBER] + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDashboardsPagedResponse listDashboards(ProjectName parent) { + ListDashboardsRequest request = + ListDashboardsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDashboards(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the existing dashboards. + * + *

          This method requires the `monitoring.dashboards.list` permission on the specified project. + * For more information, see [Cloud Identity and Access Management](https://cloud.google.com/iam). + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
          +   *   String parent = ProjectName.of("[PROJECT]").toString();
          +   *   for (Dashboard element : dashboardsServiceClient.listDashboards(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The scope of the dashboards to list. The format is: + *

          projects/[PROJECT_ID_OR_NUMBER] + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDashboardsPagedResponse listDashboards(String parent) { + ListDashboardsRequest request = ListDashboardsRequest.newBuilder().setParent(parent).build(); + return listDashboards(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the existing dashboards. @@ -441,6 +599,69 @@ public final ListDashboardsPagedResponse listDashboards(ListDashboardsRequest re return stub.listDashboardsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a specific dashboard. + * + *

          This method requires the `monitoring.dashboards.get` permission on the specified dashboard. + * For more information, see [Cloud Identity and Access Management](https://cloud.google.com/iam). + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
          +   *   DashboardName name = DashboardName.of("[PROJECT]", "[DASHBOARD]");
          +   *   Dashboard response = dashboardsServiceClient.getDashboard(name);
          +   * }
          +   * }
          + * + * @param name Required. The resource name of the Dashboard. The format is one of: + *

          - `dashboards/[DASHBOARD_ID]` (for system dashboards) - + * `projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]` (for custom dashboards). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Dashboard getDashboard(DashboardName name) { + GetDashboardRequest request = + GetDashboardRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDashboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a specific dashboard. + * + *

          This method requires the `monitoring.dashboards.get` permission on the specified dashboard. + * For more information, see [Cloud Identity and Access Management](https://cloud.google.com/iam). + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
          +   *   String name = DashboardName.of("[PROJECT]", "[DASHBOARD]").toString();
          +   *   Dashboard response = dashboardsServiceClient.getDashboard(name);
          +   * }
          +   * }
          + * + * @param name Required. The resource name of the Dashboard. The format is one of: + *

          - `dashboards/[DASHBOARD_ID]` (for system dashboards) - + * `projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]` (for custom dashboards). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Dashboard getDashboard(String name) { + GetDashboardRequest request = GetDashboardRequest.newBuilder().setName(name).build(); + return getDashboard(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Fetches a specific dashboard. @@ -503,6 +724,69 @@ public final UnaryCallable getDashboardCallable( return stub.getDashboardCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an existing custom dashboard. + * + *

          This method requires the `monitoring.dashboards.delete` permission on the specified + * dashboard. For more information, see [Cloud Identity and Access + * Management](https://cloud.google.com/iam). + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
          +   *   DashboardName name = DashboardName.of("[PROJECT]", "[DASHBOARD]");
          +   *   dashboardsServiceClient.deleteDashboard(name);
          +   * }
          +   * }
          + * + * @param name Required. The resource name of the Dashboard. The format is: + *

          projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID] + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDashboard(DashboardName name) { + DeleteDashboardRequest request = + DeleteDashboardRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteDashboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an existing custom dashboard. + * + *

          This method requires the `monitoring.dashboards.delete` permission on the specified + * dashboard. For more information, see [Cloud Identity and Access + * Management](https://cloud.google.com/iam). + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
          +   *   String name = DashboardName.of("[PROJECT]", "[DASHBOARD]").toString();
          +   *   dashboardsServiceClient.deleteDashboard(name);
          +   * }
          +   * }
          + * + * @param name Required. The resource name of the Dashboard. The format is: + *

          projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID] + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDashboard(String name) { + DeleteDashboardRequest request = DeleteDashboardRequest.newBuilder().setName(name).build(); + deleteDashboard(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an existing custom dashboard. diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java similarity index 99% rename from java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java rename to owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java index 8374d05c009a..c0a2c048d376 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.monitoring.dashboard.v1.stub.DashboardsServiceStubSettings; diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/gapic_metadata.json b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/gapic_metadata.json similarity index 62% rename from java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/gapic_metadata.json rename to owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/gapic_metadata.json index a175258c1027..1568f01c58ae 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/gapic_metadata.json +++ b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/gapic_metadata.json @@ -11,16 +11,16 @@ "libraryClient": "DashboardsServiceClient", "rpcs": { "CreateDashboard": { - "methods": ["createDashboard", "createDashboardCallable"] + "methods": ["createDashboard", "createDashboard", "createDashboard", "createDashboardCallable"] }, "DeleteDashboard": { - "methods": ["deleteDashboard", "deleteDashboardCallable"] + "methods": ["deleteDashboard", "deleteDashboard", "deleteDashboard", "deleteDashboardCallable"] }, "GetDashboard": { - "methods": ["getDashboard", "getDashboardCallable"] + "methods": ["getDashboard", "getDashboard", "getDashboard", "getDashboardCallable"] }, "ListDashboards": { - "methods": ["listDashboards", "listDashboardsPagedCallable", "listDashboardsCallable"] + "methods": ["listDashboards", "listDashboards", "listDashboards", "listDashboardsPagedCallable", "listDashboardsCallable"] }, "UpdateDashboard": { "methods": ["updateDashboard", "updateDashboardCallable"] diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/package-info.java b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/package-info.java similarity index 86% rename from java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/package-info.java rename to owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/package-info.java index 2c9756b90266..1bffa775de3b 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/package-info.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/package-info.java @@ -33,13 +33,9 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) { - * CreateDashboardRequest request = - * CreateDashboardRequest.newBuilder() - * .setParent("parent-995424086") - * .setDashboard(Dashboard.newBuilder().build()) - * .setValidateOnly(true) - * .build(); - * Dashboard response = dashboardsServiceClient.createDashboard(request); + * ProjectName parent = ProjectName.of("[PROJECT]"); + * Dashboard dashboard = Dashboard.newBuilder().build(); + * Dashboard response = dashboardsServiceClient.createDashboard(parent, dashboard); * } * } */ diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStub.java b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStub.java similarity index 100% rename from java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStub.java rename to owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStub.java diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java similarity index 100% rename from java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java rename to owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceCallableFactory.java b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceCallableFactory.java similarity index 100% rename from java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceCallableFactory.java rename to owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceCallableFactory.java diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceStub.java b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceStub.java similarity index 99% rename from java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceStub.java rename to owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceStub.java index 4c5f10674928..a21d1fb43833 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceStub.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceStub.java @@ -37,6 +37,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceCallableFactory.java b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceCallableFactory.java similarity index 100% rename from java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceCallableFactory.java rename to owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceCallableFactory.java diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceStub.java b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceStub.java similarity index 100% rename from java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceStub.java rename to owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceStub.java diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.dashboard.v1/reflect-config.json b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.dashboard.v1/reflect-config.json similarity index 85% rename from java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.dashboard.v1/reflect-config.json rename to owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.dashboard.v1/reflect-config.json index 29302c0557b5..722d1315509f 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.dashboard.v1/reflect-config.json +++ b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.dashboard.v1/reflect-config.json @@ -188,6 +188,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.LabelDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LabelDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LabelDescriptor$ValueType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.LaunchStage", "queryAllDeclaredConstructors": true, @@ -233,6 +260,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.MonitoredResource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MonitoredResource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MonitoredResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MonitoredResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MonitoredResourceMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MonitoredResourceMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.NodeSettings", "queryAllDeclaredConstructors": true, @@ -593,6 +674,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.monitoring.dashboard.v1.ErrorReportingPanel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.dashboard.v1.ErrorReportingPanel$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.monitoring.dashboard.v1.GetDashboardRequest", "queryAllDeclaredConstructors": true, @@ -629,6 +728,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.monitoring.dashboard.v1.IncidentList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.dashboard.v1.IncidentList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.monitoring.dashboard.v1.ListDashboardsRequest", "queryAllDeclaredConstructors": true, @@ -755,6 +872,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.monitoring.dashboard.v1.PieChart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.dashboard.v1.PieChart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.dashboard.v1.PieChart$PieChartDataSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.dashboard.v1.PieChart$PieChartDataSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.dashboard.v1.PieChart$PieChartType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.monitoring.dashboard.v1.RowLayout", "queryAllDeclaredConstructors": true, @@ -845,6 +1007,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.monitoring.dashboard.v1.SectionHeader", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.dashboard.v1.SectionHeader$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.dashboard.v1.SingleViewGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.dashboard.v1.SingleViewGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.monitoring.dashboard.v1.SparkChartType", "queryAllDeclaredConstructors": true, @@ -926,6 +1124,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.monitoring.dashboard.v1.Text$TextStyle", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.dashboard.v1.Text$TextStyle$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.dashboard.v1.Text$TextStyle$FontSize", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.dashboard.v1.Text$TextStyle$HorizontalAlignment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.dashboard.v1.Text$TextStyle$PaddingSize", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.dashboard.v1.Text$TextStyle$PointerLocation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.dashboard.v1.Text$TextStyle$VerticalAlignment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.monitoring.dashboard.v1.Threshold", "queryAllDeclaredConstructors": true, @@ -1987,5 +2248,104 @@ "allPublicMethods": true, "allDeclaredClasses": true, "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.NullValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Interval", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Interval$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true } ] \ No newline at end of file diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientHttpJsonTest.java b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientHttpJsonTest.java similarity index 61% rename from java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientHttpJsonTest.java rename to owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientHttpJsonTest.java index 5691746b70c9..cf3e26f8c9e9 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientHttpJsonTest.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientHttpJsonTest.java @@ -29,13 +29,9 @@ import com.google.api.gax.rpc.testing.FakeStatusCode; import com.google.cloud.monitoring.dashboard.v1.stub.HttpJsonDashboardsServiceStub; import com.google.common.collect.Lists; -import com.google.monitoring.dashboard.v1.CreateDashboardRequest; import com.google.monitoring.dashboard.v1.Dashboard; import com.google.monitoring.dashboard.v1.DashboardFilter; import com.google.monitoring.dashboard.v1.DashboardName; -import com.google.monitoring.dashboard.v1.DeleteDashboardRequest; -import com.google.monitoring.dashboard.v1.GetDashboardRequest; -import com.google.monitoring.dashboard.v1.ListDashboardsRequest; import com.google.monitoring.dashboard.v1.ListDashboardsResponse; import com.google.monitoring.dashboard.v1.ProjectName; import com.google.monitoring.dashboard.v1.UpdateDashboardRequest; @@ -100,14 +96,10 @@ public void createDashboardTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - CreateDashboardRequest request = - CreateDashboardRequest.newBuilder() - .setParent("projects/project-2353") - .setDashboard(Dashboard.newBuilder().build()) - .setValidateOnly(true) - .build(); + ProjectName parent = ProjectName.of("[PROJECT]"); + Dashboard dashboard = Dashboard.newBuilder().build(); - Dashboard actualResponse = client.createDashboard(request); + Dashboard actualResponse = client.createDashboard(parent, dashboard); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -133,13 +125,59 @@ public void createDashboardExceptionTest() throws Exception { mockService.addException(exception); try { - CreateDashboardRequest request = - CreateDashboardRequest.newBuilder() - .setParent("projects/project-2353") - .setDashboard(Dashboard.newBuilder().build()) - .setValidateOnly(true) - .build(); - client.createDashboard(request); + ProjectName parent = ProjectName.of("[PROJECT]"); + Dashboard dashboard = Dashboard.newBuilder().build(); + client.createDashboard(parent, dashboard); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDashboardTest2() throws Exception { + Dashboard expectedResponse = + Dashboard.newBuilder() + .setName(DashboardName.of("[PROJECT]", "[DASHBOARD]").toString()) + .setDisplayName("displayName1714148973") + .setEtag("etag3123477") + .addAllDashboardFilters(new ArrayList()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + Dashboard dashboard = Dashboard.newBuilder().build(); + + Dashboard actualResponse = client.createDashboard(parent, dashboard); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createDashboardExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + Dashboard dashboard = Dashboard.newBuilder().build(); + client.createDashboard(parent, dashboard); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -156,14 +194,9 @@ public void listDashboardsTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - ListDashboardsRequest request = - ListDashboardsRequest.newBuilder() - .setParent(ProjectName.of("[PROJECT]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); + ProjectName parent = ProjectName.of("[PROJECT]"); - ListDashboardsPagedResponse pagedListResponse = client.listDashboards(request); + ListDashboardsPagedResponse pagedListResponse = client.listDashboards(parent); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); @@ -193,13 +226,58 @@ public void listDashboardsExceptionTest() throws Exception { mockService.addException(exception); try { - ListDashboardsRequest request = - ListDashboardsRequest.newBuilder() - .setParent(ProjectName.of("[PROJECT]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listDashboards(request); + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listDashboards(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDashboardsTest2() throws Exception { + Dashboard responsesElement = Dashboard.newBuilder().build(); + ListDashboardsResponse expectedResponse = + ListDashboardsResponse.newBuilder() + .setNextPageToken("") + .addAllDashboards(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + + ListDashboardsPagedResponse pagedListResponse = client.listDashboards(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDashboardsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDashboardsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + client.listDashboards(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -218,12 +296,57 @@ public void getDashboardTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - GetDashboardRequest request = - GetDashboardRequest.newBuilder() + DashboardName name = DashboardName.of("[PROJECT]", "[DASHBOARD]"); + + Dashboard actualResponse = client.getDashboard(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDashboardExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DashboardName name = DashboardName.of("[PROJECT]", "[DASHBOARD]"); + client.getDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDashboardTest2() throws Exception { + Dashboard expectedResponse = + Dashboard.newBuilder() .setName(DashboardName.of("[PROJECT]", "[DASHBOARD]").toString()) + .setDisplayName("displayName1714148973") + .setEtag("etag3123477") + .addAllDashboardFilters(new ArrayList()) + .putAllLabels(new HashMap()) .build(); + mockService.addResponse(expectedResponse); - Dashboard actualResponse = client.getDashboard(request); + String name = "projects/project-3783/dashboards/dashboard-3783"; + + Dashboard actualResponse = client.getDashboard(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -242,18 +365,15 @@ public void getDashboardTest() throws Exception { } @Test - public void getDashboardExceptionTest() throws Exception { + public void getDashboardExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - GetDashboardRequest request = - GetDashboardRequest.newBuilder() - .setName(DashboardName.of("[PROJECT]", "[DASHBOARD]").toString()) - .build(); - client.getDashboard(request); + String name = "projects/project-3783/dashboards/dashboard-3783"; + client.getDashboard(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -265,12 +385,9 @@ public void deleteDashboardTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - DeleteDashboardRequest request = - DeleteDashboardRequest.newBuilder() - .setName(DashboardName.of("[PROJECT]", "[DASHBOARD]").toString()) - .build(); + DashboardName name = DashboardName.of("[PROJECT]", "[DASHBOARD]"); - client.deleteDashboard(request); + client.deleteDashboard(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -295,11 +412,48 @@ public void deleteDashboardExceptionTest() throws Exception { mockService.addException(exception); try { - DeleteDashboardRequest request = - DeleteDashboardRequest.newBuilder() - .setName(DashboardName.of("[PROJECT]", "[DASHBOARD]").toString()) - .build(); - client.deleteDashboard(request); + DashboardName name = DashboardName.of("[PROJECT]", "[DASHBOARD]"); + client.deleteDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDashboardTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3783/dashboards/dashboard-3783"; + + client.deleteDashboard(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteDashboardExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3783/dashboards/dashboard-3783"; + client.deleteDashboard(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientTest.java b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientTest.java similarity index 59% rename from java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientTest.java rename to owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientTest.java index 291bceb4d4b6..fb9a4ccdcb3c 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientTest.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientTest.java @@ -103,23 +103,18 @@ public void createDashboardTest() throws Exception { .build(); mockDashboardsService.addResponse(expectedResponse); - CreateDashboardRequest request = - CreateDashboardRequest.newBuilder() - .setParent("parent-995424086") - .setDashboard(Dashboard.newBuilder().build()) - .setValidateOnly(true) - .build(); + ProjectName parent = ProjectName.of("[PROJECT]"); + Dashboard dashboard = Dashboard.newBuilder().build(); - Dashboard actualResponse = client.createDashboard(request); + Dashboard actualResponse = client.createDashboard(parent, dashboard); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDashboardsService.getRequests(); Assert.assertEquals(1, actualRequests.size()); CreateDashboardRequest actualRequest = ((CreateDashboardRequest) actualRequests.get(0)); - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getDashboard(), actualRequest.getDashboard()); - Assert.assertEquals(request.getValidateOnly(), actualRequest.getValidateOnly()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(dashboard, actualRequest.getDashboard()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -132,13 +127,54 @@ public void createDashboardExceptionTest() throws Exception { mockDashboardsService.addException(exception); try { - CreateDashboardRequest request = - CreateDashboardRequest.newBuilder() - .setParent("parent-995424086") - .setDashboard(Dashboard.newBuilder().build()) - .setValidateOnly(true) - .build(); - client.createDashboard(request); + ProjectName parent = ProjectName.of("[PROJECT]"); + Dashboard dashboard = Dashboard.newBuilder().build(); + client.createDashboard(parent, dashboard); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDashboardTest2() throws Exception { + Dashboard expectedResponse = + Dashboard.newBuilder() + .setName(DashboardName.of("[PROJECT]", "[DASHBOARD]").toString()) + .setDisplayName("displayName1714148973") + .setEtag("etag3123477") + .addAllDashboardFilters(new ArrayList()) + .putAllLabels(new HashMap()) + .build(); + mockDashboardsService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Dashboard dashboard = Dashboard.newBuilder().build(); + + Dashboard actualResponse = client.createDashboard(parent, dashboard); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDashboardsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDashboardRequest actualRequest = ((CreateDashboardRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(dashboard, actualRequest.getDashboard()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDashboardExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDashboardsService.addException(exception); + + try { + String parent = "parent-995424086"; + Dashboard dashboard = Dashboard.newBuilder().build(); + client.createDashboard(parent, dashboard); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -155,14 +191,9 @@ public void listDashboardsTest() throws Exception { .build(); mockDashboardsService.addResponse(expectedResponse); - ListDashboardsRequest request = - ListDashboardsRequest.newBuilder() - .setParent(ProjectName.of("[PROJECT]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); + ProjectName parent = ProjectName.of("[PROJECT]"); - ListDashboardsPagedResponse pagedListResponse = client.listDashboards(request); + ListDashboardsPagedResponse pagedListResponse = client.listDashboards(parent); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); @@ -173,9 +204,7 @@ public void listDashboardsTest() throws Exception { Assert.assertEquals(1, actualRequests.size()); ListDashboardsRequest actualRequest = ((ListDashboardsRequest) actualRequests.get(0)); - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -188,13 +217,52 @@ public void listDashboardsExceptionTest() throws Exception { mockDashboardsService.addException(exception); try { - ListDashboardsRequest request = - ListDashboardsRequest.newBuilder() - .setParent(ProjectName.of("[PROJECT]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listDashboards(request); + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listDashboards(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDashboardsTest2() throws Exception { + Dashboard responsesElement = Dashboard.newBuilder().build(); + ListDashboardsResponse expectedResponse = + ListDashboardsResponse.newBuilder() + .setNextPageToken("") + .addAllDashboards(Arrays.asList(responsesElement)) + .build(); + mockDashboardsService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDashboardsPagedResponse pagedListResponse = client.listDashboards(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDashboardsList().get(0), resources.get(0)); + + List actualRequests = mockDashboardsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDashboardsRequest actualRequest = ((ListDashboardsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDashboardsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDashboardsService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDashboards(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -213,19 +281,58 @@ public void getDashboardTest() throws Exception { .build(); mockDashboardsService.addResponse(expectedResponse); - GetDashboardRequest request = - GetDashboardRequest.newBuilder() + DashboardName name = DashboardName.of("[PROJECT]", "[DASHBOARD]"); + + Dashboard actualResponse = client.getDashboard(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDashboardsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDashboardRequest actualRequest = ((GetDashboardRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDashboardExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDashboardsService.addException(exception); + + try { + DashboardName name = DashboardName.of("[PROJECT]", "[DASHBOARD]"); + client.getDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDashboardTest2() throws Exception { + Dashboard expectedResponse = + Dashboard.newBuilder() .setName(DashboardName.of("[PROJECT]", "[DASHBOARD]").toString()) + .setDisplayName("displayName1714148973") + .setEtag("etag3123477") + .addAllDashboardFilters(new ArrayList()) + .putAllLabels(new HashMap()) .build(); + mockDashboardsService.addResponse(expectedResponse); + + String name = "name3373707"; - Dashboard actualResponse = client.getDashboard(request); + Dashboard actualResponse = client.getDashboard(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDashboardsService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetDashboardRequest actualRequest = ((GetDashboardRequest) actualRequests.get(0)); - Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -233,16 +340,13 @@ public void getDashboardTest() throws Exception { } @Test - public void getDashboardExceptionTest() throws Exception { + public void getDashboardExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDashboardsService.addException(exception); try { - GetDashboardRequest request = - GetDashboardRequest.newBuilder() - .setName(DashboardName.of("[PROJECT]", "[DASHBOARD]").toString()) - .build(); - client.getDashboard(request); + String name = "name3373707"; + client.getDashboard(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -254,18 +358,15 @@ public void deleteDashboardTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockDashboardsService.addResponse(expectedResponse); - DeleteDashboardRequest request = - DeleteDashboardRequest.newBuilder() - .setName(DashboardName.of("[PROJECT]", "[DASHBOARD]").toString()) - .build(); + DashboardName name = DashboardName.of("[PROJECT]", "[DASHBOARD]"); - client.deleteDashboard(request); + client.deleteDashboard(name); List actualRequests = mockDashboardsService.getRequests(); Assert.assertEquals(1, actualRequests.size()); DeleteDashboardRequest actualRequest = ((DeleteDashboardRequest) actualRequests.get(0)); - Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -278,11 +379,42 @@ public void deleteDashboardExceptionTest() throws Exception { mockDashboardsService.addException(exception); try { - DeleteDashboardRequest request = - DeleteDashboardRequest.newBuilder() - .setName(DashboardName.of("[PROJECT]", "[DASHBOARD]").toString()) - .build(); - client.deleteDashboard(request); + DashboardName name = DashboardName.of("[PROJECT]", "[DASHBOARD]"); + client.deleteDashboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDashboardTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDashboardsService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteDashboard(name); + + List actualRequests = mockDashboardsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDashboardRequest actualRequest = ((DeleteDashboardRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDashboardExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDashboardsService.addException(exception); + + try { + String name = "name3373707"; + client.deleteDashboard(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsService.java b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsService.java similarity index 100% rename from java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsService.java rename to owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsService.java diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsServiceImpl.java b/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsServiceImpl.java similarity index 100% rename from java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsServiceImpl.java rename to owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsServiceImpl.java diff --git a/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java b/owl-bot-staging/java-monitoring-dashboards/v1/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java similarity index 52% rename from java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java rename to owl-bot-staging/java-monitoring-dashboards/v1/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java index 655c2f8cbc6f..fd7fda0f21a0 100644 --- a/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.monitoring.dashboard.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

            * Manages Stackdriver dashboards. A dashboard is an arrangement of data display
            * widgets in a specific layout.
          @@ -33,282 +16,209 @@ public final class DashboardsServiceGrpc {
           
             private DashboardsServiceGrpc() {}
           
          -  public static final java.lang.String SERVICE_NAME =
          -      "google.monitoring.dashboard.v1.DashboardsService";
          +  public static final java.lang.String SERVICE_NAME = "google.monitoring.dashboard.v1.DashboardsService";
           
             // Static method descriptors that strictly reflect the proto.
          -  private static volatile io.grpc.MethodDescriptor<
          -          com.google.monitoring.dashboard.v1.CreateDashboardRequest,
          -          com.google.monitoring.dashboard.v1.Dashboard>
          -      getCreateDashboardMethod;
          +  private static volatile io.grpc.MethodDescriptor getCreateDashboardMethod;
           
             @io.grpc.stub.annotations.RpcMethod(
                 fullMethodName = SERVICE_NAME + '/' + "CreateDashboard",
                 requestType = com.google.monitoring.dashboard.v1.CreateDashboardRequest.class,
                 responseType = com.google.monitoring.dashboard.v1.Dashboard.class,
                 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
          -  public static io.grpc.MethodDescriptor<
          -          com.google.monitoring.dashboard.v1.CreateDashboardRequest,
          -          com.google.monitoring.dashboard.v1.Dashboard>
          -      getCreateDashboardMethod() {
          -    io.grpc.MethodDescriptor<
          -            com.google.monitoring.dashboard.v1.CreateDashboardRequest,
          -            com.google.monitoring.dashboard.v1.Dashboard>
          -        getCreateDashboardMethod;
          +  public static io.grpc.MethodDescriptor getCreateDashboardMethod() {
          +    io.grpc.MethodDescriptor getCreateDashboardMethod;
               if ((getCreateDashboardMethod = DashboardsServiceGrpc.getCreateDashboardMethod) == null) {
                 synchronized (DashboardsServiceGrpc.class) {
                   if ((getCreateDashboardMethod = DashboardsServiceGrpc.getCreateDashboardMethod) == null) {
          -          DashboardsServiceGrpc.getCreateDashboardMethod =
          -              getCreateDashboardMethod =
          -                  io.grpc.MethodDescriptor
          -                      .
          -                          newBuilder()
          -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDashboard"))
          -                      .setSampledToLocalTracing(true)
          -                      .setRequestMarshaller(
          -                          io.grpc.protobuf.ProtoUtils.marshaller(
          -                              com.google.monitoring.dashboard.v1.CreateDashboardRequest
          -                                  .getDefaultInstance()))
          -                      .setResponseMarshaller(
          -                          io.grpc.protobuf.ProtoUtils.marshaller(
          -                              com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()))
          -                      .setSchemaDescriptor(
          -                          new DashboardsServiceMethodDescriptorSupplier("CreateDashboard"))
          -                      .build();
          +          DashboardsServiceGrpc.getCreateDashboardMethod = getCreateDashboardMethod =
          +              io.grpc.MethodDescriptor.newBuilder()
          +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDashboard"))
          +              .setSampledToLocalTracing(true)
          +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          +                  com.google.monitoring.dashboard.v1.CreateDashboardRequest.getDefaultInstance()))
          +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          +                  com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()))
          +              .setSchemaDescriptor(new DashboardsServiceMethodDescriptorSupplier("CreateDashboard"))
          +              .build();
                   }
                 }
               }
               return getCreateDashboardMethod;
             }
           
          -  private static volatile io.grpc.MethodDescriptor<
          -          com.google.monitoring.dashboard.v1.ListDashboardsRequest,
          -          com.google.monitoring.dashboard.v1.ListDashboardsResponse>
          -      getListDashboardsMethod;
          +  private static volatile io.grpc.MethodDescriptor getListDashboardsMethod;
           
             @io.grpc.stub.annotations.RpcMethod(
                 fullMethodName = SERVICE_NAME + '/' + "ListDashboards",
                 requestType = com.google.monitoring.dashboard.v1.ListDashboardsRequest.class,
                 responseType = com.google.monitoring.dashboard.v1.ListDashboardsResponse.class,
                 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
          -  public static io.grpc.MethodDescriptor<
          -          com.google.monitoring.dashboard.v1.ListDashboardsRequest,
          -          com.google.monitoring.dashboard.v1.ListDashboardsResponse>
          -      getListDashboardsMethod() {
          -    io.grpc.MethodDescriptor<
          -            com.google.monitoring.dashboard.v1.ListDashboardsRequest,
          -            com.google.monitoring.dashboard.v1.ListDashboardsResponse>
          -        getListDashboardsMethod;
          +  public static io.grpc.MethodDescriptor getListDashboardsMethod() {
          +    io.grpc.MethodDescriptor getListDashboardsMethod;
               if ((getListDashboardsMethod = DashboardsServiceGrpc.getListDashboardsMethod) == null) {
                 synchronized (DashboardsServiceGrpc.class) {
                   if ((getListDashboardsMethod = DashboardsServiceGrpc.getListDashboardsMethod) == null) {
          -          DashboardsServiceGrpc.getListDashboardsMethod =
          -              getListDashboardsMethod =
          -                  io.grpc.MethodDescriptor
          -                      .
          -                          newBuilder()
          -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDashboards"))
          -                      .setSampledToLocalTracing(true)
          -                      .setRequestMarshaller(
          -                          io.grpc.protobuf.ProtoUtils.marshaller(
          -                              com.google.monitoring.dashboard.v1.ListDashboardsRequest
          -                                  .getDefaultInstance()))
          -                      .setResponseMarshaller(
          -                          io.grpc.protobuf.ProtoUtils.marshaller(
          -                              com.google.monitoring.dashboard.v1.ListDashboardsResponse
          -                                  .getDefaultInstance()))
          -                      .setSchemaDescriptor(
          -                          new DashboardsServiceMethodDescriptorSupplier("ListDashboards"))
          -                      .build();
          +          DashboardsServiceGrpc.getListDashboardsMethod = getListDashboardsMethod =
          +              io.grpc.MethodDescriptor.newBuilder()
          +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDashboards"))
          +              .setSampledToLocalTracing(true)
          +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          +                  com.google.monitoring.dashboard.v1.ListDashboardsRequest.getDefaultInstance()))
          +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          +                  com.google.monitoring.dashboard.v1.ListDashboardsResponse.getDefaultInstance()))
          +              .setSchemaDescriptor(new DashboardsServiceMethodDescriptorSupplier("ListDashboards"))
          +              .build();
                   }
                 }
               }
               return getListDashboardsMethod;
             }
           
          -  private static volatile io.grpc.MethodDescriptor<
          -          com.google.monitoring.dashboard.v1.GetDashboardRequest,
          -          com.google.monitoring.dashboard.v1.Dashboard>
          -      getGetDashboardMethod;
          +  private static volatile io.grpc.MethodDescriptor getGetDashboardMethod;
           
             @io.grpc.stub.annotations.RpcMethod(
                 fullMethodName = SERVICE_NAME + '/' + "GetDashboard",
                 requestType = com.google.monitoring.dashboard.v1.GetDashboardRequest.class,
                 responseType = com.google.monitoring.dashboard.v1.Dashboard.class,
                 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
          -  public static io.grpc.MethodDescriptor<
          -          com.google.monitoring.dashboard.v1.GetDashboardRequest,
          -          com.google.monitoring.dashboard.v1.Dashboard>
          -      getGetDashboardMethod() {
          -    io.grpc.MethodDescriptor<
          -            com.google.monitoring.dashboard.v1.GetDashboardRequest,
          -            com.google.monitoring.dashboard.v1.Dashboard>
          -        getGetDashboardMethod;
          +  public static io.grpc.MethodDescriptor getGetDashboardMethod() {
          +    io.grpc.MethodDescriptor getGetDashboardMethod;
               if ((getGetDashboardMethod = DashboardsServiceGrpc.getGetDashboardMethod) == null) {
                 synchronized (DashboardsServiceGrpc.class) {
                   if ((getGetDashboardMethod = DashboardsServiceGrpc.getGetDashboardMethod) == null) {
          -          DashboardsServiceGrpc.getGetDashboardMethod =
          -              getGetDashboardMethod =
          -                  io.grpc.MethodDescriptor
          -                      .
          -                          newBuilder()
          -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDashboard"))
          -                      .setSampledToLocalTracing(true)
          -                      .setRequestMarshaller(
          -                          io.grpc.protobuf.ProtoUtils.marshaller(
          -                              com.google.monitoring.dashboard.v1.GetDashboardRequest
          -                                  .getDefaultInstance()))
          -                      .setResponseMarshaller(
          -                          io.grpc.protobuf.ProtoUtils.marshaller(
          -                              com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()))
          -                      .setSchemaDescriptor(
          -                          new DashboardsServiceMethodDescriptorSupplier("GetDashboard"))
          -                      .build();
          +          DashboardsServiceGrpc.getGetDashboardMethod = getGetDashboardMethod =
          +              io.grpc.MethodDescriptor.newBuilder()
          +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDashboard"))
          +              .setSampledToLocalTracing(true)
          +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          +                  com.google.monitoring.dashboard.v1.GetDashboardRequest.getDefaultInstance()))
          +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          +                  com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()))
          +              .setSchemaDescriptor(new DashboardsServiceMethodDescriptorSupplier("GetDashboard"))
          +              .build();
                   }
                 }
               }
               return getGetDashboardMethod;
             }
           
          -  private static volatile io.grpc.MethodDescriptor<
          -          com.google.monitoring.dashboard.v1.DeleteDashboardRequest, com.google.protobuf.Empty>
          -      getDeleteDashboardMethod;
          +  private static volatile io.grpc.MethodDescriptor getDeleteDashboardMethod;
           
             @io.grpc.stub.annotations.RpcMethod(
                 fullMethodName = SERVICE_NAME + '/' + "DeleteDashboard",
                 requestType = com.google.monitoring.dashboard.v1.DeleteDashboardRequest.class,
                 responseType = com.google.protobuf.Empty.class,
                 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
          -  public static io.grpc.MethodDescriptor<
          -          com.google.monitoring.dashboard.v1.DeleteDashboardRequest, com.google.protobuf.Empty>
          -      getDeleteDashboardMethod() {
          -    io.grpc.MethodDescriptor<
          -            com.google.monitoring.dashboard.v1.DeleteDashboardRequest, com.google.protobuf.Empty>
          -        getDeleteDashboardMethod;
          +  public static io.grpc.MethodDescriptor getDeleteDashboardMethod() {
          +    io.grpc.MethodDescriptor getDeleteDashboardMethod;
               if ((getDeleteDashboardMethod = DashboardsServiceGrpc.getDeleteDashboardMethod) == null) {
                 synchronized (DashboardsServiceGrpc.class) {
                   if ((getDeleteDashboardMethod = DashboardsServiceGrpc.getDeleteDashboardMethod) == null) {
          -          DashboardsServiceGrpc.getDeleteDashboardMethod =
          -              getDeleteDashboardMethod =
          -                  io.grpc.MethodDescriptor
          -                      .
          -                          newBuilder()
          -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDashboard"))
          -                      .setSampledToLocalTracing(true)
          -                      .setRequestMarshaller(
          -                          io.grpc.protobuf.ProtoUtils.marshaller(
          -                              com.google.monitoring.dashboard.v1.DeleteDashboardRequest
          -                                  .getDefaultInstance()))
          -                      .setResponseMarshaller(
          -                          io.grpc.protobuf.ProtoUtils.marshaller(
          -                              com.google.protobuf.Empty.getDefaultInstance()))
          -                      .setSchemaDescriptor(
          -                          new DashboardsServiceMethodDescriptorSupplier("DeleteDashboard"))
          -                      .build();
          +          DashboardsServiceGrpc.getDeleteDashboardMethod = getDeleteDashboardMethod =
          +              io.grpc.MethodDescriptor.newBuilder()
          +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDashboard"))
          +              .setSampledToLocalTracing(true)
          +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          +                  com.google.monitoring.dashboard.v1.DeleteDashboardRequest.getDefaultInstance()))
          +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          +                  com.google.protobuf.Empty.getDefaultInstance()))
          +              .setSchemaDescriptor(new DashboardsServiceMethodDescriptorSupplier("DeleteDashboard"))
          +              .build();
                   }
                 }
               }
               return getDeleteDashboardMethod;
             }
           
          -  private static volatile io.grpc.MethodDescriptor<
          -          com.google.monitoring.dashboard.v1.UpdateDashboardRequest,
          -          com.google.monitoring.dashboard.v1.Dashboard>
          -      getUpdateDashboardMethod;
          +  private static volatile io.grpc.MethodDescriptor getUpdateDashboardMethod;
           
             @io.grpc.stub.annotations.RpcMethod(
                 fullMethodName = SERVICE_NAME + '/' + "UpdateDashboard",
                 requestType = com.google.monitoring.dashboard.v1.UpdateDashboardRequest.class,
                 responseType = com.google.monitoring.dashboard.v1.Dashboard.class,
                 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
          -  public static io.grpc.MethodDescriptor<
          -          com.google.monitoring.dashboard.v1.UpdateDashboardRequest,
          -          com.google.monitoring.dashboard.v1.Dashboard>
          -      getUpdateDashboardMethod() {
          -    io.grpc.MethodDescriptor<
          -            com.google.monitoring.dashboard.v1.UpdateDashboardRequest,
          -            com.google.monitoring.dashboard.v1.Dashboard>
          -        getUpdateDashboardMethod;
          +  public static io.grpc.MethodDescriptor getUpdateDashboardMethod() {
          +    io.grpc.MethodDescriptor getUpdateDashboardMethod;
               if ((getUpdateDashboardMethod = DashboardsServiceGrpc.getUpdateDashboardMethod) == null) {
                 synchronized (DashboardsServiceGrpc.class) {
                   if ((getUpdateDashboardMethod = DashboardsServiceGrpc.getUpdateDashboardMethod) == null) {
          -          DashboardsServiceGrpc.getUpdateDashboardMethod =
          -              getUpdateDashboardMethod =
          -                  io.grpc.MethodDescriptor
          -                      .
          -                          newBuilder()
          -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDashboard"))
          -                      .setSampledToLocalTracing(true)
          -                      .setRequestMarshaller(
          -                          io.grpc.protobuf.ProtoUtils.marshaller(
          -                              com.google.monitoring.dashboard.v1.UpdateDashboardRequest
          -                                  .getDefaultInstance()))
          -                      .setResponseMarshaller(
          -                          io.grpc.protobuf.ProtoUtils.marshaller(
          -                              com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()))
          -                      .setSchemaDescriptor(
          -                          new DashboardsServiceMethodDescriptorSupplier("UpdateDashboard"))
          -                      .build();
          +          DashboardsServiceGrpc.getUpdateDashboardMethod = getUpdateDashboardMethod =
          +              io.grpc.MethodDescriptor.newBuilder()
          +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDashboard"))
          +              .setSampledToLocalTracing(true)
          +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          +                  com.google.monitoring.dashboard.v1.UpdateDashboardRequest.getDefaultInstance()))
          +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          +                  com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()))
          +              .setSchemaDescriptor(new DashboardsServiceMethodDescriptorSupplier("UpdateDashboard"))
          +              .build();
                   }
                 }
               }
               return getUpdateDashboardMethod;
             }
           
          -  /** Creates a new async stub that supports all call types for the service */
          +  /**
          +   * Creates a new async stub that supports all call types for the service
          +   */
             public static DashboardsServiceStub newStub(io.grpc.Channel channel) {
               io.grpc.stub.AbstractStub.StubFactory factory =
          -        new io.grpc.stub.AbstractStub.StubFactory() {
          -          @java.lang.Override
          -          public DashboardsServiceStub newStub(
          -              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          -            return new DashboardsServiceStub(channel, callOptions);
          -          }
          -        };
          +      new io.grpc.stub.AbstractStub.StubFactory() {
          +        @java.lang.Override
          +        public DashboardsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          +          return new DashboardsServiceStub(channel, callOptions);
          +        }
          +      };
               return DashboardsServiceStub.newStub(factory, channel);
             }
           
             /**
              * Creates a new blocking-style stub that supports unary and streaming output calls on the service
              */
          -  public static DashboardsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
          +  public static DashboardsServiceBlockingStub newBlockingStub(
          +      io.grpc.Channel channel) {
               io.grpc.stub.AbstractStub.StubFactory factory =
          -        new io.grpc.stub.AbstractStub.StubFactory() {
          -          @java.lang.Override
          -          public DashboardsServiceBlockingStub newStub(
          -              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          -            return new DashboardsServiceBlockingStub(channel, callOptions);
          -          }
          -        };
          +      new io.grpc.stub.AbstractStub.StubFactory() {
          +        @java.lang.Override
          +        public DashboardsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          +          return new DashboardsServiceBlockingStub(channel, callOptions);
          +        }
          +      };
               return DashboardsServiceBlockingStub.newStub(factory, channel);
             }
           
          -  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
          -  public static DashboardsServiceFutureStub newFutureStub(io.grpc.Channel channel) {
          +  /**
          +   * Creates a new ListenableFuture-style stub that supports unary calls on the service
          +   */
          +  public static DashboardsServiceFutureStub newFutureStub(
          +      io.grpc.Channel channel) {
               io.grpc.stub.AbstractStub.StubFactory factory =
          -        new io.grpc.stub.AbstractStub.StubFactory() {
          -          @java.lang.Override
          -          public DashboardsServiceFutureStub newStub(
          -              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          -            return new DashboardsServiceFutureStub(channel, callOptions);
          -          }
          -        };
          +      new io.grpc.stub.AbstractStub.StubFactory() {
          +        @java.lang.Override
          +        public DashboardsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          +          return new DashboardsServiceFutureStub(channel, callOptions);
          +        }
          +      };
               return DashboardsServiceFutureStub.newStub(factory, channel);
             }
           
             /**
          -   *
          -   *
              * 
              * Manages Stackdriver dashboards. A dashboard is an arrangement of data display
              * widgets in a specific layout.
          @@ -317,8 +227,6 @@ public DashboardsServiceFutureStub newStub(
             public interface AsyncService {
           
               /**
          -     *
          -     *
                * 
                * Creates a new custom dashboard. For examples on how you can use this API to
                * create dashboards, see [Managing dashboards by
          @@ -328,17 +236,12 @@ public interface AsyncService {
                * Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - default void createDashboard( - com.google.monitoring.dashboard.v1.CreateDashboardRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateDashboardMethod(), responseObserver); + default void createDashboard(com.google.monitoring.dashboard.v1.CreateDashboardRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDashboardMethod(), responseObserver); } /** - * - * *
                * Lists the existing dashboards.
                * This method requires the `monitoring.dashboards.list` permission
          @@ -346,17 +249,12 @@ default void createDashboard(
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - default void listDashboards( - com.google.monitoring.dashboard.v1.ListDashboardsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDashboardsMethod(), responseObserver); + default void listDashboards(com.google.monitoring.dashboard.v1.ListDashboardsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDashboardsMethod(), responseObserver); } /** - * - * *
                * Fetches a specific dashboard.
                * This method requires the `monitoring.dashboards.get` permission
          @@ -364,17 +262,12 @@ default void listDashboards(
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - default void getDashboard( - com.google.monitoring.dashboard.v1.GetDashboardRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDashboardMethod(), responseObserver); + default void getDashboard(com.google.monitoring.dashboard.v1.GetDashboardRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDashboardMethod(), responseObserver); } /** - * - * *
                * Deletes an existing custom dashboard.
                * This method requires the `monitoring.dashboards.delete` permission
          @@ -382,16 +275,12 @@ default void getDashboard(
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - default void deleteDashboard( - com.google.monitoring.dashboard.v1.DeleteDashboardRequest request, + default void deleteDashboard(com.google.monitoring.dashboard.v1.DeleteDashboardRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteDashboardMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDashboardMethod(), responseObserver); } /** - * - * *
                * Replaces an existing custom dashboard with a new definition.
                * This method requires the `monitoring.dashboards.update` permission
          @@ -399,35 +288,29 @@ default void deleteDashboard(
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - default void updateDashboard( - com.google.monitoring.dashboard.v1.UpdateDashboardRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateDashboardMethod(), responseObserver); + default void updateDashboard(com.google.monitoring.dashboard.v1.UpdateDashboardRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDashboardMethod(), responseObserver); } } /** * Base class for the server implementation of the service DashboardsService. - * *
              * Manages Stackdriver dashboards. A dashboard is an arrangement of data display
              * widgets in a specific layout.
              * 
          */ - public abstract static class DashboardsServiceImplBase + public static abstract class DashboardsServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return DashboardsServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service DashboardsService. - * *
              * Manages Stackdriver dashboards. A dashboard is an arrangement of data display
              * widgets in a specific layout.
          @@ -435,7 +318,8 @@ public final io.grpc.ServerServiceDefinition bindService() {
              */
             public static final class DashboardsServiceStub
                 extends io.grpc.stub.AbstractAsyncStub {
          -    private DashboardsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          +    private DashboardsServiceStub(
          +        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
                 super(channel, callOptions);
               }
           
          @@ -446,8 +330,6 @@ protected DashboardsServiceStub build(
               }
           
               /**
          -     *
          -     *
                * 
                * Creates a new custom dashboard. For examples on how you can use this API to
                * create dashboards, see [Managing dashboards by
          @@ -457,19 +339,13 @@ protected DashboardsServiceStub build(
                * Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public void createDashboard( - com.google.monitoring.dashboard.v1.CreateDashboardRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createDashboard(com.google.monitoring.dashboard.v1.CreateDashboardRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDashboardMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateDashboardMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                * Lists the existing dashboards.
                * This method requires the `monitoring.dashboards.list` permission
          @@ -477,19 +353,13 @@ public void createDashboard(
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public void listDashboards( - com.google.monitoring.dashboard.v1.ListDashboardsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listDashboards(com.google.monitoring.dashboard.v1.ListDashboardsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDashboardsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListDashboardsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                * Fetches a specific dashboard.
                * This method requires the `monitoring.dashboards.get` permission
          @@ -497,19 +367,13 @@ public void listDashboards(
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public void getDashboard( - com.google.monitoring.dashboard.v1.GetDashboardRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void getDashboard(com.google.monitoring.dashboard.v1.GetDashboardRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDashboardMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetDashboardMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                * Deletes an existing custom dashboard.
                * This method requires the `monitoring.dashboards.delete` permission
          @@ -517,18 +381,13 @@ public void getDashboard(
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public void deleteDashboard( - com.google.monitoring.dashboard.v1.DeleteDashboardRequest request, + public void deleteDashboard(com.google.monitoring.dashboard.v1.DeleteDashboardRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDashboardMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteDashboardMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                * Replaces an existing custom dashboard with a new definition.
                * This method requires the `monitoring.dashboards.update` permission
          @@ -536,20 +395,15 @@ public void deleteDashboard(
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public void updateDashboard( - com.google.monitoring.dashboard.v1.UpdateDashboardRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void updateDashboard(com.google.monitoring.dashboard.v1.UpdateDashboardRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDashboardMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateDashboardMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service DashboardsService. - * *
              * Manages Stackdriver dashboards. A dashboard is an arrangement of data display
              * widgets in a specific layout.
          @@ -569,8 +423,6 @@ protected DashboardsServiceBlockingStub build(
               }
           
               /**
          -     *
          -     *
                * 
                * Creates a new custom dashboard. For examples on how you can use this API to
                * create dashboards, see [Managing dashboards by
          @@ -580,15 +432,12 @@ protected DashboardsServiceBlockingStub build(
                * Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public com.google.monitoring.dashboard.v1.Dashboard createDashboard( - com.google.monitoring.dashboard.v1.CreateDashboardRequest request) { + public com.google.monitoring.dashboard.v1.Dashboard createDashboard(com.google.monitoring.dashboard.v1.CreateDashboardRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateDashboardMethod(), getCallOptions(), request); } /** - * - * *
                * Lists the existing dashboards.
                * This method requires the `monitoring.dashboards.list` permission
          @@ -596,15 +445,12 @@ public com.google.monitoring.dashboard.v1.Dashboard createDashboard(
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public com.google.monitoring.dashboard.v1.ListDashboardsResponse listDashboards( - com.google.monitoring.dashboard.v1.ListDashboardsRequest request) { + public com.google.monitoring.dashboard.v1.ListDashboardsResponse listDashboards(com.google.monitoring.dashboard.v1.ListDashboardsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListDashboardsMethod(), getCallOptions(), request); } /** - * - * *
                * Fetches a specific dashboard.
                * This method requires the `monitoring.dashboards.get` permission
          @@ -612,15 +458,12 @@ public com.google.monitoring.dashboard.v1.ListDashboardsResponse listDashboards(
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public com.google.monitoring.dashboard.v1.Dashboard getDashboard( - com.google.monitoring.dashboard.v1.GetDashboardRequest request) { + public com.google.monitoring.dashboard.v1.Dashboard getDashboard(com.google.monitoring.dashboard.v1.GetDashboardRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetDashboardMethod(), getCallOptions(), request); } /** - * - * *
                * Deletes an existing custom dashboard.
                * This method requires the `monitoring.dashboards.delete` permission
          @@ -628,15 +471,12 @@ public com.google.monitoring.dashboard.v1.Dashboard getDashboard(
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public com.google.protobuf.Empty deleteDashboard( - com.google.monitoring.dashboard.v1.DeleteDashboardRequest request) { + public com.google.protobuf.Empty deleteDashboard(com.google.monitoring.dashboard.v1.DeleteDashboardRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteDashboardMethod(), getCallOptions(), request); } /** - * - * *
                * Replaces an existing custom dashboard with a new definition.
                * This method requires the `monitoring.dashboards.update` permission
          @@ -644,8 +484,7 @@ public com.google.protobuf.Empty deleteDashboard(
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public com.google.monitoring.dashboard.v1.Dashboard updateDashboard( - com.google.monitoring.dashboard.v1.UpdateDashboardRequest request) { + public com.google.monitoring.dashboard.v1.Dashboard updateDashboard(com.google.monitoring.dashboard.v1.UpdateDashboardRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateDashboardMethod(), getCallOptions(), request); } @@ -653,7 +492,6 @@ public com.google.monitoring.dashboard.v1.Dashboard updateDashboard( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service DashboardsService. - * *
              * Manages Stackdriver dashboards. A dashboard is an arrangement of data display
              * widgets in a specific layout.
          @@ -661,7 +499,8 @@ public com.google.monitoring.dashboard.v1.Dashboard updateDashboard(
              */
             public static final class DashboardsServiceFutureStub
                 extends io.grpc.stub.AbstractFutureStub {
          -    private DashboardsServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          +    private DashboardsServiceFutureStub(
          +        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
                 super(channel, callOptions);
               }
           
          @@ -672,8 +511,6 @@ protected DashboardsServiceFutureStub build(
               }
           
               /**
          -     *
          -     *
                * 
                * Creates a new custom dashboard. For examples on how you can use this API to
                * create dashboards, see [Managing dashboards by
          @@ -683,16 +520,13 @@ protected DashboardsServiceFutureStub build(
                * Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.dashboard.v1.Dashboard> - createDashboard(com.google.monitoring.dashboard.v1.CreateDashboardRequest request) { + public com.google.common.util.concurrent.ListenableFuture createDashboard( + com.google.monitoring.dashboard.v1.CreateDashboardRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateDashboardMethod(), getCallOptions()), request); } /** - * - * *
                * Lists the existing dashboards.
                * This method requires the `monitoring.dashboards.list` permission
          @@ -700,16 +534,13 @@ protected DashboardsServiceFutureStub build(
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.dashboard.v1.ListDashboardsResponse> - listDashboards(com.google.monitoring.dashboard.v1.ListDashboardsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listDashboards( + com.google.monitoring.dashboard.v1.ListDashboardsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDashboardsMethod(), getCallOptions()), request); } /** - * - * *
                * Fetches a specific dashboard.
                * This method requires the `monitoring.dashboards.get` permission
          @@ -717,16 +548,13 @@ protected DashboardsServiceFutureStub build(
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.dashboard.v1.Dashboard> - getDashboard(com.google.monitoring.dashboard.v1.GetDashboardRequest request) { + public com.google.common.util.concurrent.ListenableFuture getDashboard( + com.google.monitoring.dashboard.v1.GetDashboardRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDashboardMethod(), getCallOptions()), request); } /** - * - * *
                * Deletes an existing custom dashboard.
                * This method requires the `monitoring.dashboards.delete` permission
          @@ -734,15 +562,13 @@ protected DashboardsServiceFutureStub build(
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public com.google.common.util.concurrent.ListenableFuture - deleteDashboard(com.google.monitoring.dashboard.v1.DeleteDashboardRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteDashboard( + com.google.monitoring.dashboard.v1.DeleteDashboardRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteDashboardMethod(), getCallOptions()), request); } /** - * - * *
                * Replaces an existing custom dashboard with a new definition.
                * This method requires the `monitoring.dashboards.update` permission
          @@ -750,9 +576,8 @@ protected DashboardsServiceFutureStub build(
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.dashboard.v1.Dashboard> - updateDashboard(com.google.monitoring.dashboard.v1.UpdateDashboardRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateDashboard( + com.google.monitoring.dashboard.v1.UpdateDashboardRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateDashboardMethod(), getCallOptions()), request); } @@ -764,11 +589,11 @@ protected DashboardsServiceFutureStub build( private static final int METHODID_DELETE_DASHBOARD = 3; private static final int METHODID_UPDATE_DASHBOARD = 4; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -782,34 +607,24 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_DASHBOARD: - serviceImpl.createDashboard( - (com.google.monitoring.dashboard.v1.CreateDashboardRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createDashboard((com.google.monitoring.dashboard.v1.CreateDashboardRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_DASHBOARDS: - serviceImpl.listDashboards( - (com.google.monitoring.dashboard.v1.ListDashboardsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.monitoring.dashboard.v1.ListDashboardsResponse>) - responseObserver); + serviceImpl.listDashboards((com.google.monitoring.dashboard.v1.ListDashboardsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_DASHBOARD: - serviceImpl.getDashboard( - (com.google.monitoring.dashboard.v1.GetDashboardRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getDashboard((com.google.monitoring.dashboard.v1.GetDashboardRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_DASHBOARD: - serviceImpl.deleteDashboard( - (com.google.monitoring.dashboard.v1.DeleteDashboardRequest) request, + serviceImpl.deleteDashboard((com.google.monitoring.dashboard.v1.DeleteDashboardRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_DASHBOARD: - serviceImpl.updateDashboard( - (com.google.monitoring.dashboard.v1.UpdateDashboardRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateDashboard((com.google.monitoring.dashboard.v1.UpdateDashboardRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -830,44 +645,45 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateDashboardMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.dashboard.v1.CreateDashboardRequest, - com.google.monitoring.dashboard.v1.Dashboard>( - service, METHODID_CREATE_DASHBOARD))) + getCreateDashboardMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.dashboard.v1.CreateDashboardRequest, + com.google.monitoring.dashboard.v1.Dashboard>( + service, METHODID_CREATE_DASHBOARD))) .addMethod( - getListDashboardsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.dashboard.v1.ListDashboardsRequest, - com.google.monitoring.dashboard.v1.ListDashboardsResponse>( - service, METHODID_LIST_DASHBOARDS))) + getListDashboardsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.dashboard.v1.ListDashboardsRequest, + com.google.monitoring.dashboard.v1.ListDashboardsResponse>( + service, METHODID_LIST_DASHBOARDS))) .addMethod( - getGetDashboardMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.dashboard.v1.GetDashboardRequest, - com.google.monitoring.dashboard.v1.Dashboard>(service, METHODID_GET_DASHBOARD))) + getGetDashboardMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.dashboard.v1.GetDashboardRequest, + com.google.monitoring.dashboard.v1.Dashboard>( + service, METHODID_GET_DASHBOARD))) .addMethod( - getDeleteDashboardMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.dashboard.v1.DeleteDashboardRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_DASHBOARD))) + getDeleteDashboardMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.dashboard.v1.DeleteDashboardRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_DASHBOARD))) .addMethod( - getUpdateDashboardMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.dashboard.v1.UpdateDashboardRequest, - com.google.monitoring.dashboard.v1.Dashboard>( - service, METHODID_UPDATE_DASHBOARD))) + getUpdateDashboardMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.dashboard.v1.UpdateDashboardRequest, + com.google.monitoring.dashboard.v1.Dashboard>( + service, METHODID_UPDATE_DASHBOARD))) .build(); } - private abstract static class DashboardsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class DashboardsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { DashboardsServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -909,16 +725,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (DashboardsServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DashboardsServiceFileDescriptorSupplier()) - .addMethod(getCreateDashboardMethod()) - .addMethod(getListDashboardsMethod()) - .addMethod(getGetDashboardMethod()) - .addMethod(getDeleteDashboardMethod()) - .addMethod(getUpdateDashboardMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DashboardsServiceFileDescriptorSupplier()) + .addMethod(getCreateDashboardMethod()) + .addMethod(getListDashboardsMethod()) + .addMethod(getGetDashboardMethod()) + .addMethod(getDeleteDashboardMethod()) + .addMethod(getUpdateDashboardMethod()) + .build(); } } } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java similarity index 85% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java index f7d2518e55f1..8364528f60e2 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/common.proto @@ -20,8 +5,6 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * Describes how to combine multiple time series to provide a different view of
            * the data.  Aggregation of time series is done in two steps. First, each time
          @@ -53,46 +36,43 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.Aggregation}
            */
          -public final class Aggregation extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class Aggregation extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Aggregation)
               AggregationOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use Aggregation.newBuilder() to construct.
             private Aggregation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
             private Aggregation() {
               perSeriesAligner_ = 0;
               crossSeriesReducer_ = 0;
          -    groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList();
          +    groupByFields_ =
          +        com.google.protobuf.LazyStringArrayList.emptyList();
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new Aggregation();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.CommonProto
          -        .internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.CommonProto
          -        .internal_static_google_monitoring_dashboard_v1_Aggregation_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_Aggregation_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.Aggregation.class,
          -            com.google.monitoring.dashboard.v1.Aggregation.Builder.class);
          +            com.google.monitoring.dashboard.v1.Aggregation.class, com.google.monitoring.dashboard.v1.Aggregation.Builder.class);
             }
           
             /**
          -   *
          -   *
              * 
              * The `Aligner` specifies the operation that will be applied to the data
              * points in each alignment period in a time series. Except for
          @@ -110,10 +90,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              *
              * Protobuf enum {@code google.monitoring.dashboard.v1.Aggregation.Aligner}
              */
          -  public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
          +  public enum Aligner
          +      implements com.google.protobuf.ProtocolMessageEnum {
               /**
          -     *
          -     *
                * 
                * No alignment. Raw data is returned. Not valid if cross-series reduction
                * is requested. The `value_type` of the result is the same as the
          @@ -124,8 +103,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_NONE(0),
               /**
          -     *
          -     *
                * 
                * Align and convert to
                * [DELTA][google.api.MetricDescriptor.MetricKind.DELTA].
          @@ -143,8 +120,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_DELTA(1),
               /**
          -     *
          -     *
                * 
                * Align and convert to a rate. The result is computed as
                * `rate = (y1 - y0)/(t1 - t0)`, or "delta over time".
          @@ -165,8 +140,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_RATE(2),
               /**
          -     *
          -     *
                * 
                * Align by interpolating between adjacent points around the alignment
                * period boundary. This aligner is valid for `GAUGE` metrics with
          @@ -178,8 +151,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_INTERPOLATE(3),
               /**
          -     *
          -     *
                * 
                * Align by moving the most recent data point before the end of the
                * alignment period to the boundary at the end of the alignment
          @@ -191,8 +162,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_NEXT_OLDER(4),
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the minimum value in each alignment
                * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
          @@ -204,8 +173,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_MIN(10),
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the maximum value in each alignment
                * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
          @@ -217,8 +184,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_MAX(11),
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the mean value in each alignment
                * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
          @@ -229,8 +194,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_MEAN(12),
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the number of values in each alignment
                * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
          @@ -242,8 +205,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_COUNT(13),
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the sum of the values in each
                * alignment period. This aligner is valid for `GAUGE` and `DELTA`
          @@ -255,8 +216,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_SUM(14),
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the standard deviation of the values
                * in each alignment period. This aligner is valid for `GAUGE` and
          @@ -268,8 +227,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_STDDEV(15),
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the number of `True` values in
                * each alignment period. This aligner is valid for `GAUGE` metrics with
          @@ -280,8 +237,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_COUNT_TRUE(16),
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the number of `False` values in
                * each alignment period. This aligner is valid for `GAUGE` metrics with
          @@ -292,8 +247,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_COUNT_FALSE(24),
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the ratio of the number of `True`
                * values to the total number of values in each alignment period. This
          @@ -305,8 +258,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_FRACTION_TRUE(17),
               /**
          -     *
          -     *
                * 
                * Align the time series by using [percentile
                * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
          @@ -320,8 +271,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_PERCENTILE_99(18),
               /**
          -     *
          -     *
                * 
                * Align the time series by using [percentile
                * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
          @@ -335,8 +284,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_PERCENTILE_95(19),
               /**
          -     *
          -     *
                * 
                * Align the time series by using [percentile
                * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
          @@ -350,8 +297,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_PERCENTILE_50(20),
               /**
          -     *
          -     *
                * 
                * Align the time series by using [percentile
                * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
          @@ -365,8 +310,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               ALIGN_PERCENTILE_05(21),
               /**
          -     *
          -     *
                * 
                * Align and convert to a percentage change. This aligner is valid for
                * `GAUGE` and `DELTA` metrics with numeric values. This alignment returns
          @@ -393,8 +336,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
               ;
           
               /**
          -     *
          -     *
                * 
                * No alignment. Raw data is returned. Not valid if cross-series reduction
                * is requested. The `value_type` of the result is the same as the
          @@ -405,8 +346,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_NONE_VALUE = 0;
               /**
          -     *
          -     *
                * 
                * Align and convert to
                * [DELTA][google.api.MetricDescriptor.MetricKind.DELTA].
          @@ -424,8 +363,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_DELTA_VALUE = 1;
               /**
          -     *
          -     *
                * 
                * Align and convert to a rate. The result is computed as
                * `rate = (y1 - y0)/(t1 - t0)`, or "delta over time".
          @@ -446,8 +383,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_RATE_VALUE = 2;
               /**
          -     *
          -     *
                * 
                * Align by interpolating between adjacent points around the alignment
                * period boundary. This aligner is valid for `GAUGE` metrics with
          @@ -459,8 +394,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_INTERPOLATE_VALUE = 3;
               /**
          -     *
          -     *
                * 
                * Align by moving the most recent data point before the end of the
                * alignment period to the boundary at the end of the alignment
          @@ -472,8 +405,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_NEXT_OLDER_VALUE = 4;
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the minimum value in each alignment
                * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
          @@ -485,8 +416,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_MIN_VALUE = 10;
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the maximum value in each alignment
                * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
          @@ -498,8 +427,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_MAX_VALUE = 11;
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the mean value in each alignment
                * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
          @@ -510,8 +437,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_MEAN_VALUE = 12;
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the number of values in each alignment
                * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
          @@ -523,8 +448,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_COUNT_VALUE = 13;
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the sum of the values in each
                * alignment period. This aligner is valid for `GAUGE` and `DELTA`
          @@ -536,8 +459,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_SUM_VALUE = 14;
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the standard deviation of the values
                * in each alignment period. This aligner is valid for `GAUGE` and
          @@ -549,8 +470,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_STDDEV_VALUE = 15;
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the number of `True` values in
                * each alignment period. This aligner is valid for `GAUGE` metrics with
          @@ -561,8 +480,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_COUNT_TRUE_VALUE = 16;
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the number of `False` values in
                * each alignment period. This aligner is valid for `GAUGE` metrics with
          @@ -573,8 +490,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_COUNT_FALSE_VALUE = 24;
               /**
          -     *
          -     *
                * 
                * Align the time series by returning the ratio of the number of `True`
                * values to the total number of values in each alignment period. This
          @@ -586,8 +501,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_FRACTION_TRUE_VALUE = 17;
               /**
          -     *
          -     *
                * 
                * Align the time series by using [percentile
                * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
          @@ -601,8 +514,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_PERCENTILE_99_VALUE = 18;
               /**
          -     *
          -     *
                * 
                * Align the time series by using [percentile
                * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
          @@ -616,8 +527,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_PERCENTILE_95_VALUE = 19;
               /**
          -     *
          -     *
                * 
                * Align the time series by using [percentile
                * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
          @@ -631,8 +540,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_PERCENTILE_50_VALUE = 20;
               /**
          -     *
          -     *
                * 
                * Align the time series by using [percentile
                * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
          @@ -646,8 +553,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_PERCENTILE_05_VALUE = 21;
               /**
          -     *
          -     *
                * 
                * Align and convert to a percentage change. This aligner is valid for
                * `GAUGE` and `DELTA` metrics with numeric values. This alignment returns
          @@ -671,6 +576,7 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ALIGN_PERCENT_CHANGE_VALUE = 23;
           
          +
               public final int getNumber() {
                 if (this == UNRECOGNIZED) {
                   throw new java.lang.IllegalArgumentException(
          @@ -695,81 +601,65 @@ public static Aligner valueOf(int value) {
                */
               public static Aligner forNumber(int value) {
                 switch (value) {
          -        case 0:
          -          return ALIGN_NONE;
          -        case 1:
          -          return ALIGN_DELTA;
          -        case 2:
          -          return ALIGN_RATE;
          -        case 3:
          -          return ALIGN_INTERPOLATE;
          -        case 4:
          -          return ALIGN_NEXT_OLDER;
          -        case 10:
          -          return ALIGN_MIN;
          -        case 11:
          -          return ALIGN_MAX;
          -        case 12:
          -          return ALIGN_MEAN;
          -        case 13:
          -          return ALIGN_COUNT;
          -        case 14:
          -          return ALIGN_SUM;
          -        case 15:
          -          return ALIGN_STDDEV;
          -        case 16:
          -          return ALIGN_COUNT_TRUE;
          -        case 24:
          -          return ALIGN_COUNT_FALSE;
          -        case 17:
          -          return ALIGN_FRACTION_TRUE;
          -        case 18:
          -          return ALIGN_PERCENTILE_99;
          -        case 19:
          -          return ALIGN_PERCENTILE_95;
          -        case 20:
          -          return ALIGN_PERCENTILE_50;
          -        case 21:
          -          return ALIGN_PERCENTILE_05;
          -        case 23:
          -          return ALIGN_PERCENT_CHANGE;
          -        default:
          -          return null;
          +        case 0: return ALIGN_NONE;
          +        case 1: return ALIGN_DELTA;
          +        case 2: return ALIGN_RATE;
          +        case 3: return ALIGN_INTERPOLATE;
          +        case 4: return ALIGN_NEXT_OLDER;
          +        case 10: return ALIGN_MIN;
          +        case 11: return ALIGN_MAX;
          +        case 12: return ALIGN_MEAN;
          +        case 13: return ALIGN_COUNT;
          +        case 14: return ALIGN_SUM;
          +        case 15: return ALIGN_STDDEV;
          +        case 16: return ALIGN_COUNT_TRUE;
          +        case 24: return ALIGN_COUNT_FALSE;
          +        case 17: return ALIGN_FRACTION_TRUE;
          +        case 18: return ALIGN_PERCENTILE_99;
          +        case 19: return ALIGN_PERCENTILE_95;
          +        case 20: return ALIGN_PERCENTILE_50;
          +        case 21: return ALIGN_PERCENTILE_05;
          +        case 23: return ALIGN_PERCENT_CHANGE;
          +        default: return null;
                 }
               }
           
          -    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
          +    public static com.google.protobuf.Internal.EnumLiteMap
          +        internalGetValueMap() {
                 return internalValueMap;
               }
          +    private static final com.google.protobuf.Internal.EnumLiteMap<
          +        Aligner> internalValueMap =
          +          new com.google.protobuf.Internal.EnumLiteMap() {
          +            public Aligner findValueByNumber(int number) {
          +              return Aligner.forNumber(number);
          +            }
          +          };
           
          -    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
          -        new com.google.protobuf.Internal.EnumLiteMap() {
          -          public Aligner findValueByNumber(int number) {
          -            return Aligner.forNumber(number);
          -          }
          -        };
          -
          -    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
          +    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() {
          +    public final com.google.protobuf.Descriptors.EnumDescriptor
          +        getDescriptorForType() {
                 return getDescriptor();
               }
          -
          -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
          +    public static final com.google.protobuf.Descriptors.EnumDescriptor
          +        getDescriptor() {
                 return com.google.monitoring.dashboard.v1.Aggregation.getDescriptor().getEnumTypes().get(0);
               }
           
               private static final Aligner[] VALUES = values();
           
          -    public static Aligner valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          +    public static Aligner valueOf(
          +        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                 if (desc.getType() != getDescriptor()) {
          -        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
          +        throw new java.lang.IllegalArgumentException(
          +          "EnumValueDescriptor is not for this type.");
                 }
                 if (desc.getIndex() == -1) {
                   return UNRECOGNIZED;
          @@ -787,8 +677,6 @@ private Aligner(int value) {
             }
           
             /**
          -   *
          -   *
              * 
              * A Reducer operation describes how to aggregate data points from multiple
              * time series into a single time series, where the value of each data point
          @@ -798,10 +686,9 @@ private Aligner(int value) {
              *
              * Protobuf enum {@code google.monitoring.dashboard.v1.Aggregation.Reducer}
              */
          -  public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
          +  public enum Reducer
          +      implements com.google.protobuf.ProtocolMessageEnum {
               /**
          -     *
          -     *
                * 
                * No cross-time series reduction. The output of the `Aligner` is
                * returned.
          @@ -811,8 +698,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               REDUCE_NONE(0),
               /**
          -     *
          -     *
                * 
                * Reduce by computing the mean value across time series for each
                * alignment period. This reducer is valid for
          @@ -826,8 +711,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               REDUCE_MEAN(1),
               /**
          -     *
          -     *
                * 
                * Reduce by computing the minimum value across time series for each
                * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
          @@ -839,8 +722,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               REDUCE_MIN(2),
               /**
          -     *
          -     *
                * 
                * Reduce by computing the maximum value across time series for each
                * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
          @@ -852,8 +733,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               REDUCE_MAX(3),
               /**
          -     *
          -     *
                * 
                * Reduce by computing the sum across time series for each
                * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
          @@ -865,8 +744,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               REDUCE_SUM(4),
               /**
          -     *
          -     *
                * 
                * Reduce by computing the standard deviation across time series
                * for each alignment period. This reducer is valid for `DELTA` and
          @@ -878,8 +755,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               REDUCE_STDDEV(5),
               /**
          -     *
          -     *
                * 
                * Reduce by computing the number of data points across time series
                * for each alignment period. This reducer is valid for `DELTA` and
          @@ -891,8 +766,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               REDUCE_COUNT(6),
               /**
          -     *
          -     *
                * 
                * Reduce by computing the number of `True`-valued data points across time
                * series for each alignment period. This reducer is valid for `DELTA` and
          @@ -904,8 +777,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               REDUCE_COUNT_TRUE(7),
               /**
          -     *
          -     *
                * 
                * Reduce by computing the number of `False`-valued data points across time
                * series for each alignment period. This reducer is valid for `DELTA` and
          @@ -917,8 +788,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               REDUCE_COUNT_FALSE(15),
               /**
          -     *
          -     *
                * 
                * Reduce by computing the ratio of the number of `True`-valued data points
                * to the total number of data points for each alignment period. This
          @@ -931,8 +800,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               REDUCE_FRACTION_TRUE(8),
               /**
          -     *
          -     *
                * 
                * Reduce by computing the [99th
                * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
          @@ -945,8 +812,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               REDUCE_PERCENTILE_99(9),
               /**
          -     *
          -     *
                * 
                * Reduce by computing the [95th
                * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
          @@ -959,8 +824,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               REDUCE_PERCENTILE_95(10),
               /**
          -     *
          -     *
                * 
                * Reduce by computing the [50th
                * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
          @@ -973,8 +836,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               REDUCE_PERCENTILE_50(11),
               /**
          -     *
          -     *
                * 
                * Reduce by computing the [5th
                * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
          @@ -990,8 +851,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
               ;
           
               /**
          -     *
          -     *
                * 
                * No cross-time series reduction. The output of the `Aligner` is
                * returned.
          @@ -1001,8 +860,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int REDUCE_NONE_VALUE = 0;
               /**
          -     *
          -     *
                * 
                * Reduce by computing the mean value across time series for each
                * alignment period. This reducer is valid for
          @@ -1016,8 +873,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int REDUCE_MEAN_VALUE = 1;
               /**
          -     *
          -     *
                * 
                * Reduce by computing the minimum value across time series for each
                * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
          @@ -1029,8 +884,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int REDUCE_MIN_VALUE = 2;
               /**
          -     *
          -     *
                * 
                * Reduce by computing the maximum value across time series for each
                * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
          @@ -1042,8 +895,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int REDUCE_MAX_VALUE = 3;
               /**
          -     *
          -     *
                * 
                * Reduce by computing the sum across time series for each
                * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
          @@ -1055,8 +906,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int REDUCE_SUM_VALUE = 4;
               /**
          -     *
          -     *
                * 
                * Reduce by computing the standard deviation across time series
                * for each alignment period. This reducer is valid for `DELTA` and
          @@ -1068,8 +917,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int REDUCE_STDDEV_VALUE = 5;
               /**
          -     *
          -     *
                * 
                * Reduce by computing the number of data points across time series
                * for each alignment period. This reducer is valid for `DELTA` and
          @@ -1081,8 +928,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int REDUCE_COUNT_VALUE = 6;
               /**
          -     *
          -     *
                * 
                * Reduce by computing the number of `True`-valued data points across time
                * series for each alignment period. This reducer is valid for `DELTA` and
          @@ -1094,8 +939,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int REDUCE_COUNT_TRUE_VALUE = 7;
               /**
          -     *
          -     *
                * 
                * Reduce by computing the number of `False`-valued data points across time
                * series for each alignment period. This reducer is valid for `DELTA` and
          @@ -1107,8 +950,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int REDUCE_COUNT_FALSE_VALUE = 15;
               /**
          -     *
          -     *
                * 
                * Reduce by computing the ratio of the number of `True`-valued data points
                * to the total number of data points for each alignment period. This
          @@ -1121,8 +962,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int REDUCE_FRACTION_TRUE_VALUE = 8;
               /**
          -     *
          -     *
                * 
                * Reduce by computing the [99th
                * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
          @@ -1135,8 +974,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int REDUCE_PERCENTILE_99_VALUE = 9;
               /**
          -     *
          -     *
                * 
                * Reduce by computing the [95th
                * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
          @@ -1149,8 +986,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int REDUCE_PERCENTILE_95_VALUE = 10;
               /**
          -     *
          -     *
                * 
                * Reduce by computing the [50th
                * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
          @@ -1163,8 +998,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int REDUCE_PERCENTILE_50_VALUE = 11;
               /**
          -     *
          -     *
                * 
                * Reduce by computing the [5th
                * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
          @@ -1177,6 +1010,7 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int REDUCE_PERCENTILE_05_VALUE = 12;
           
          +
               public final int getNumber() {
                 if (this == UNRECOGNIZED) {
                   throw new java.lang.IllegalArgumentException(
          @@ -1201,71 +1035,60 @@ public static Reducer valueOf(int value) {
                */
               public static Reducer forNumber(int value) {
                 switch (value) {
          -        case 0:
          -          return REDUCE_NONE;
          -        case 1:
          -          return REDUCE_MEAN;
          -        case 2:
          -          return REDUCE_MIN;
          -        case 3:
          -          return REDUCE_MAX;
          -        case 4:
          -          return REDUCE_SUM;
          -        case 5:
          -          return REDUCE_STDDEV;
          -        case 6:
          -          return REDUCE_COUNT;
          -        case 7:
          -          return REDUCE_COUNT_TRUE;
          -        case 15:
          -          return REDUCE_COUNT_FALSE;
          -        case 8:
          -          return REDUCE_FRACTION_TRUE;
          -        case 9:
          -          return REDUCE_PERCENTILE_99;
          -        case 10:
          -          return REDUCE_PERCENTILE_95;
          -        case 11:
          -          return REDUCE_PERCENTILE_50;
          -        case 12:
          -          return REDUCE_PERCENTILE_05;
          -        default:
          -          return null;
          +        case 0: return REDUCE_NONE;
          +        case 1: return REDUCE_MEAN;
          +        case 2: return REDUCE_MIN;
          +        case 3: return REDUCE_MAX;
          +        case 4: return REDUCE_SUM;
          +        case 5: return REDUCE_STDDEV;
          +        case 6: return REDUCE_COUNT;
          +        case 7: return REDUCE_COUNT_TRUE;
          +        case 15: return REDUCE_COUNT_FALSE;
          +        case 8: return REDUCE_FRACTION_TRUE;
          +        case 9: return REDUCE_PERCENTILE_99;
          +        case 10: return REDUCE_PERCENTILE_95;
          +        case 11: return REDUCE_PERCENTILE_50;
          +        case 12: return REDUCE_PERCENTILE_05;
          +        default: return null;
                 }
               }
           
          -    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
          +    public static com.google.protobuf.Internal.EnumLiteMap
          +        internalGetValueMap() {
                 return internalValueMap;
               }
          +    private static final com.google.protobuf.Internal.EnumLiteMap<
          +        Reducer> internalValueMap =
          +          new com.google.protobuf.Internal.EnumLiteMap() {
          +            public Reducer findValueByNumber(int number) {
          +              return Reducer.forNumber(number);
          +            }
          +          };
           
          -    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
          -        new com.google.protobuf.Internal.EnumLiteMap() {
          -          public Reducer findValueByNumber(int number) {
          -            return Reducer.forNumber(number);
          -          }
          -        };
          -
          -    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
          +    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() {
          +    public final com.google.protobuf.Descriptors.EnumDescriptor
          +        getDescriptorForType() {
                 return getDescriptor();
               }
          -
          -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
          +    public static final com.google.protobuf.Descriptors.EnumDescriptor
          +        getDescriptor() {
                 return com.google.monitoring.dashboard.v1.Aggregation.getDescriptor().getEnumTypes().get(1);
               }
           
               private static final Reducer[] VALUES = values();
           
          -    public static Reducer valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          +    public static Reducer valueOf(
          +        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                 if (desc.getType() != getDescriptor()) {
          -        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
          +        throw new java.lang.IllegalArgumentException(
          +          "EnumValueDescriptor is not for this type.");
                 }
                 if (desc.getIndex() == -1) {
                   return UNRECOGNIZED;
          @@ -1286,8 +1109,6 @@ private Reducer(int value) {
             public static final int ALIGNMENT_PERIOD_FIELD_NUMBER = 1;
             private com.google.protobuf.Duration alignmentPeriod_;
             /**
          -   *
          -   *
              * 
              * The `alignment_period` specifies a time interval, in seconds, that is used
              * to divide the data in all the
          @@ -1304,7 +1125,6 @@ private Reducer(int value) {
              * 
          * * .google.protobuf.Duration alignment_period = 1; - * * @return Whether the alignmentPeriod field is set. */ @java.lang.Override @@ -1312,8 +1132,6 @@ public boolean hasAlignmentPeriod() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
              * The `alignment_period` specifies a time interval, in seconds, that is used
              * to divide the data in all the
          @@ -1330,18 +1148,13 @@ public boolean hasAlignmentPeriod() {
              * 
          * * .google.protobuf.Duration alignment_period = 1; - * * @return The alignmentPeriod. */ @java.lang.Override public com.google.protobuf.Duration getAlignmentPeriod() { - return alignmentPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : alignmentPeriod_; + return alignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : alignmentPeriod_; } /** - * - * *
              * The `alignment_period` specifies a time interval, in seconds, that is used
              * to divide the data in all the
          @@ -1361,16 +1174,12 @@ public com.google.protobuf.Duration getAlignmentPeriod() {
              */
             @java.lang.Override
             public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
          -    return alignmentPeriod_ == null
          -        ? com.google.protobuf.Duration.getDefaultInstance()
          -        : alignmentPeriod_;
          +    return alignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : alignmentPeriod_;
             }
           
             public static final int PER_SERIES_ALIGNER_FIELD_NUMBER = 2;
             private int perSeriesAligner_ = 0;
             /**
          -   *
          -   *
              * 
              * An `Aligner` describes how to bring the data points in a single
              * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -1391,16 +1200,12 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
              * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; - * * @return The enum numeric value on the wire for perSeriesAligner. */ - @java.lang.Override - public int getPerSeriesAlignerValue() { + @java.lang.Override public int getPerSeriesAlignerValue() { return perSeriesAligner_; } /** - * - * *
              * An `Aligner` describes how to bring the data points in a single
              * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -1421,23 +1226,16 @@ public int getPerSeriesAlignerValue() {
              * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; - * * @return The perSeriesAligner. */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.Aggregation.Aligner getPerSeriesAligner() { - com.google.monitoring.dashboard.v1.Aggregation.Aligner result = - com.google.monitoring.dashboard.v1.Aggregation.Aligner.forNumber(perSeriesAligner_); - return result == null - ? com.google.monitoring.dashboard.v1.Aggregation.Aligner.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.dashboard.v1.Aggregation.Aligner getPerSeriesAligner() { + com.google.monitoring.dashboard.v1.Aggregation.Aligner result = com.google.monitoring.dashboard.v1.Aggregation.Aligner.forNumber(perSeriesAligner_); + return result == null ? com.google.monitoring.dashboard.v1.Aggregation.Aligner.UNRECOGNIZED : result; } public static final int CROSS_SERIES_REDUCER_FIELD_NUMBER = 4; private int crossSeriesReducer_ = 0; /** - * - * *
              * The reduction operation to be used to combine time series into a single
              * time series, where the value of each data point in the resulting series is
          @@ -1456,16 +1254,12 @@ public com.google.monitoring.dashboard.v1.Aggregation.Aligner getPerSeriesAligne
              * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; - * * @return The enum numeric value on the wire for crossSeriesReducer. */ - @java.lang.Override - public int getCrossSeriesReducerValue() { + @java.lang.Override public int getCrossSeriesReducerValue() { return crossSeriesReducer_; } /** - * - * *
              * The reduction operation to be used to combine time series into a single
              * time series, where the value of each data point in the resulting series is
          @@ -1484,26 +1278,18 @@ public int getCrossSeriesReducerValue() {
              * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; - * * @return The crossSeriesReducer. */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.Aggregation.Reducer getCrossSeriesReducer() { - com.google.monitoring.dashboard.v1.Aggregation.Reducer result = - com.google.monitoring.dashboard.v1.Aggregation.Reducer.forNumber(crossSeriesReducer_); - return result == null - ? com.google.monitoring.dashboard.v1.Aggregation.Reducer.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.dashboard.v1.Aggregation.Reducer getCrossSeriesReducer() { + com.google.monitoring.dashboard.v1.Aggregation.Reducer result = com.google.monitoring.dashboard.v1.Aggregation.Reducer.forNumber(crossSeriesReducer_); + return result == null ? com.google.monitoring.dashboard.v1.Aggregation.Reducer.UNRECOGNIZED : result; } public static final int GROUP_BY_FIELDS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
              * The set of fields to preserve when `cross_series_reducer` is
              * specified. The `group_by_fields` determine how the time series are
          @@ -1522,15 +1308,13 @@ public com.google.monitoring.dashboard.v1.Aggregation.Reducer getCrossSeriesRedu
              * 
          * * repeated string group_by_fields = 5; - * * @return A list containing the groupByFields. */ - public com.google.protobuf.ProtocolStringList getGroupByFieldsList() { + public com.google.protobuf.ProtocolStringList + getGroupByFieldsList() { return groupByFields_; } /** - * - * *
              * The set of fields to preserve when `cross_series_reducer` is
              * specified. The `group_by_fields` determine how the time series are
          @@ -1549,15 +1333,12 @@ public com.google.protobuf.ProtocolStringList getGroupByFieldsList() {
              * 
          * * repeated string group_by_fields = 5; - * * @return The count of groupByFields. */ public int getGroupByFieldsCount() { return groupByFields_.size(); } /** - * - * *
              * The set of fields to preserve when `cross_series_reducer` is
              * specified. The `group_by_fields` determine how the time series are
          @@ -1576,7 +1357,6 @@ public int getGroupByFieldsCount() {
              * 
          * * repeated string group_by_fields = 5; - * * @param index The index of the element to return. * @return The groupByFields at the given index. */ @@ -1584,8 +1364,6 @@ public java.lang.String getGroupByFields(int index) { return groupByFields_.get(index); } /** - * - * *
              * The set of fields to preserve when `cross_series_reducer` is
              * specified. The `group_by_fields` determine how the time series are
          @@ -1604,16 +1382,15 @@ public java.lang.String getGroupByFields(int index) {
              * 
          * * repeated string group_by_fields = 5; - * * @param index The index of the value to return. * @return The bytes of the groupByFields at the given index. */ - public com.google.protobuf.ByteString getGroupByFieldsBytes(int index) { + public com.google.protobuf.ByteString + getGroupByFieldsBytes(int index) { return groupByFields_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1625,16 +1402,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getAlignmentPeriod()); } - if (perSeriesAligner_ - != com.google.monitoring.dashboard.v1.Aggregation.Aligner.ALIGN_NONE.getNumber()) { + if (perSeriesAligner_ != com.google.monitoring.dashboard.v1.Aggregation.Aligner.ALIGN_NONE.getNumber()) { output.writeEnum(2, perSeriesAligner_); } - if (crossSeriesReducer_ - != com.google.monitoring.dashboard.v1.Aggregation.Reducer.REDUCE_NONE.getNumber()) { + if (crossSeriesReducer_ != com.google.monitoring.dashboard.v1.Aggregation.Reducer.REDUCE_NONE.getNumber()) { output.writeEnum(4, crossSeriesReducer_); } for (int i = 0; i < groupByFields_.size(); i++) { @@ -1650,15 +1426,16 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAlignmentPeriod()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAlignmentPeriod()); } - if (perSeriesAligner_ - != com.google.monitoring.dashboard.v1.Aggregation.Aligner.ALIGN_NONE.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, perSeriesAligner_); + if (perSeriesAligner_ != com.google.monitoring.dashboard.v1.Aggregation.Aligner.ALIGN_NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, perSeriesAligner_); } - if (crossSeriesReducer_ - != com.google.monitoring.dashboard.v1.Aggregation.Reducer.REDUCE_NONE.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, crossSeriesReducer_); + if (crossSeriesReducer_ != com.google.monitoring.dashboard.v1.Aggregation.Reducer.REDUCE_NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, crossSeriesReducer_); } { int dataSize = 0; @@ -1676,21 +1453,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.Aggregation)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.Aggregation other = - (com.google.monitoring.dashboard.v1.Aggregation) obj; + com.google.monitoring.dashboard.v1.Aggregation other = (com.google.monitoring.dashboard.v1.Aggregation) obj; if (hasAlignmentPeriod() != other.hasAlignmentPeriod()) return false; if (hasAlignmentPeriod()) { - if (!getAlignmentPeriod().equals(other.getAlignmentPeriod())) return false; + if (!getAlignmentPeriod() + .equals(other.getAlignmentPeriod())) return false; } if (perSeriesAligner_ != other.perSeriesAligner_) return false; if (crossSeriesReducer_ != other.crossSeriesReducer_) return false; - if (!getGroupByFieldsList().equals(other.getGroupByFieldsList())) return false; + if (!getGroupByFieldsList() + .equals(other.getGroupByFieldsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1719,104 +1497,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.Aggregation parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.Aggregation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.Aggregation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Aggregation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.Aggregation 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.Aggregation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.Aggregation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Aggregation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.Aggregation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Aggregation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.Aggregation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.Aggregation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Aggregation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.Aggregation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.Aggregation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Describes how to combine multiple time series to provide a different view of
              * the data.  Aggregation of time series is done in two steps. First, each time
          @@ -1848,23 +1621,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.Aggregation}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Aggregation)
                 com.google.monitoring.dashboard.v1.AggregationOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.CommonProto
          -          .internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.CommonProto
          -          .internal_static_google_monitoring_dashboard_v1_Aggregation_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_Aggregation_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.Aggregation.class,
          -              com.google.monitoring.dashboard.v1.Aggregation.Builder.class);
          +              com.google.monitoring.dashboard.v1.Aggregation.class, com.google.monitoring.dashboard.v1.Aggregation.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.Aggregation.newBuilder()
          @@ -1872,17 +1643,17 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          -
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
          +      if (com.google.protobuf.GeneratedMessageV3
          +              .alwaysUseFieldBuilders) {
                   getAlignmentPeriodFieldBuilder();
                 }
               }
          -
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -1894,14 +1665,15 @@ public Builder clear() {
                 }
                 perSeriesAligner_ = 0;
                 crossSeriesReducer_ = 0;
          -      groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList();
          +      groupByFields_ =
          +          com.google.protobuf.LazyStringArrayList.emptyList();
                 return this;
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.CommonProto
          -          .internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor;
               }
           
               @java.lang.Override
          @@ -1920,11 +1692,8 @@ public com.google.monitoring.dashboard.v1.Aggregation build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.Aggregation buildPartial() {
          -      com.google.monitoring.dashboard.v1.Aggregation result =
          -          new com.google.monitoring.dashboard.v1.Aggregation(this);
          -      if (bitField0_ != 0) {
          -        buildPartial0(result);
          -      }
          +      com.google.monitoring.dashboard.v1.Aggregation result = new com.google.monitoring.dashboard.v1.Aggregation(this);
          +      if (bitField0_ != 0) { buildPartial0(result); }
                 onBuilt();
                 return result;
               }
          @@ -1933,8 +1702,9 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Aggregation result
                 int from_bitField0_ = bitField0_;
                 int to_bitField0_ = 0;
                 if (((from_bitField0_ & 0x00000001) != 0)) {
          -        result.alignmentPeriod_ =
          -            alignmentPeriodBuilder_ == null ? alignmentPeriod_ : alignmentPeriodBuilder_.build();
          +        result.alignmentPeriod_ = alignmentPeriodBuilder_ == null
          +            ? alignmentPeriod_
          +            : alignmentPeriodBuilder_.build();
                   to_bitField0_ |= 0x00000001;
                 }
                 if (((from_bitField0_ & 0x00000002) != 0)) {
          @@ -1954,39 +1724,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Aggregation result
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.Aggregation) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.Aggregation) other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.Aggregation)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -2040,38 +1809,35 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10:
          -              {
          -                input.readMessage(getAlignmentPeriodFieldBuilder().getBuilder(), extensionRegistry);
          -                bitField0_ |= 0x00000001;
          -                break;
          -              } // case 10
          -            case 16:
          -              {
          -                perSeriesAligner_ = input.readEnum();
          -                bitField0_ |= 0x00000002;
          -                break;
          -              } // case 16
          -            case 32:
          -              {
          -                crossSeriesReducer_ = input.readEnum();
          -                bitField0_ |= 0x00000004;
          -                break;
          -              } // case 32
          -            case 42:
          -              {
          -                java.lang.String s = input.readStringRequireUtf8();
          -                ensureGroupByFieldsIsMutable();
          -                groupByFields_.add(s);
          -                break;
          -              } // case 42
          -            default:
          -              {
          -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                  done = true; // was an endgroup tag
          -                }
          -                break;
          -              } // default:
          +            case 10: {
          +              input.readMessage(
          +                  getAlignmentPeriodFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              bitField0_ |= 0x00000001;
          +              break;
          +            } // case 10
          +            case 16: {
          +              perSeriesAligner_ = input.readEnum();
          +              bitField0_ |= 0x00000002;
          +              break;
          +            } // case 16
          +            case 32: {
          +              crossSeriesReducer_ = input.readEnum();
          +              bitField0_ |= 0x00000004;
          +              break;
          +            } // case 32
          +            case 42: {
          +              java.lang.String s = input.readStringRequireUtf8();
          +              ensureGroupByFieldsIsMutable();
          +              groupByFields_.add(s);
          +              break;
          +            } // case 42
          +            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) {
          @@ -2081,18 +1847,12 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          -
               private int bitField0_;
           
               private com.google.protobuf.Duration alignmentPeriod_;
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.protobuf.Duration,
          -            com.google.protobuf.Duration.Builder,
          -            com.google.protobuf.DurationOrBuilder>
          -        alignmentPeriodBuilder_;
          +        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> alignmentPeriodBuilder_;
               /**
          -     *
          -     *
                * 
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -2109,15 +1869,12 @@ public Builder mergeFrom(
                * 
          * * .google.protobuf.Duration alignment_period = 1; - * * @return Whether the alignmentPeriod field is set. */ public boolean hasAlignmentPeriod() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -2134,21 +1891,16 @@ public boolean hasAlignmentPeriod() {
                * 
          * * .google.protobuf.Duration alignment_period = 1; - * * @return The alignmentPeriod. */ public com.google.protobuf.Duration getAlignmentPeriod() { if (alignmentPeriodBuilder_ == null) { - return alignmentPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : alignmentPeriod_; + return alignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : alignmentPeriod_; } else { return alignmentPeriodBuilder_.getMessage(); } } /** - * - * *
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -2180,8 +1932,6 @@ public Builder setAlignmentPeriod(com.google.protobuf.Duration value) {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -2199,7 +1949,8 @@ public Builder setAlignmentPeriod(com.google.protobuf.Duration value) {
                *
                * .google.protobuf.Duration alignment_period = 1;
                */
          -    public Builder setAlignmentPeriod(com.google.protobuf.Duration.Builder builderForValue) {
          +    public Builder setAlignmentPeriod(
          +        com.google.protobuf.Duration.Builder builderForValue) {
                 if (alignmentPeriodBuilder_ == null) {
                   alignmentPeriod_ = builderForValue.build();
                 } else {
          @@ -2210,8 +1961,6 @@ public Builder setAlignmentPeriod(com.google.protobuf.Duration.Builder builderFo
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -2231,9 +1980,9 @@ public Builder setAlignmentPeriod(com.google.protobuf.Duration.Builder builderFo
                */
               public Builder mergeAlignmentPeriod(com.google.protobuf.Duration value) {
                 if (alignmentPeriodBuilder_ == null) {
          -        if (((bitField0_ & 0x00000001) != 0)
          -            && alignmentPeriod_ != null
          -            && alignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
          +        if (((bitField0_ & 0x00000001) != 0) &&
          +          alignmentPeriod_ != null &&
          +          alignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
                     getAlignmentPeriodBuilder().mergeFrom(value);
                   } else {
                     alignmentPeriod_ = value;
          @@ -2248,8 +1997,6 @@ public Builder mergeAlignmentPeriod(com.google.protobuf.Duration value) {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -2278,8 +2025,6 @@ public Builder clearAlignmentPeriod() {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -2303,8 +2048,6 @@ public com.google.protobuf.Duration.Builder getAlignmentPeriodBuilder() {
                 return getAlignmentPeriodFieldBuilder().getBuilder();
               }
               /**
          -     *
          -     *
                * 
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -2326,14 +2069,11 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
                 if (alignmentPeriodBuilder_ != null) {
                   return alignmentPeriodBuilder_.getMessageOrBuilder();
                 } else {
          -        return alignmentPeriod_ == null
          -            ? com.google.protobuf.Duration.getDefaultInstance()
          -            : alignmentPeriod_;
          +        return alignmentPeriod_ == null ?
          +            com.google.protobuf.Duration.getDefaultInstance() : alignmentPeriod_;
                 }
               }
               /**
          -     *
          -     *
                * 
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -2352,17 +2092,14 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
                * .google.protobuf.Duration alignment_period = 1;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.protobuf.Duration,
          -            com.google.protobuf.Duration.Builder,
          -            com.google.protobuf.DurationOrBuilder>
          +        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
                   getAlignmentPeriodFieldBuilder() {
                 if (alignmentPeriodBuilder_ == null) {
          -        alignmentPeriodBuilder_ =
          -            new com.google.protobuf.SingleFieldBuilderV3<
          -                com.google.protobuf.Duration,
          -                com.google.protobuf.Duration.Builder,
          -                com.google.protobuf.DurationOrBuilder>(
          -                getAlignmentPeriod(), getParentForChildren(), isClean());
          +        alignmentPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          +            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
          +                getAlignmentPeriod(),
          +                getParentForChildren(),
          +                isClean());
                   alignmentPeriod_ = null;
                 }
                 return alignmentPeriodBuilder_;
          @@ -2370,8 +2107,6 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
           
               private int perSeriesAligner_ = 0;
               /**
          -     *
          -     *
                * 
                * An `Aligner` describes how to bring the data points in a single
                * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -2392,16 +2127,12 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; - * * @return The enum numeric value on the wire for perSeriesAligner. */ - @java.lang.Override - public int getPerSeriesAlignerValue() { + @java.lang.Override public int getPerSeriesAlignerValue() { return perSeriesAligner_; } /** - * - * *
                * An `Aligner` describes how to bring the data points in a single
                * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -2422,7 +2153,6 @@ public int getPerSeriesAlignerValue() {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; - * * @param value The enum numeric value on the wire for perSeriesAligner to set. * @return This builder for chaining. */ @@ -2433,8 +2163,6 @@ public Builder setPerSeriesAlignerValue(int value) { return this; } /** - * - * *
                * An `Aligner` describes how to bring the data points in a single
                * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -2455,20 +2183,14 @@ public Builder setPerSeriesAlignerValue(int value) {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; - * * @return The perSeriesAligner. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Aggregation.Aligner getPerSeriesAligner() { - com.google.monitoring.dashboard.v1.Aggregation.Aligner result = - com.google.monitoring.dashboard.v1.Aggregation.Aligner.forNumber(perSeriesAligner_); - return result == null - ? com.google.monitoring.dashboard.v1.Aggregation.Aligner.UNRECOGNIZED - : result; + com.google.monitoring.dashboard.v1.Aggregation.Aligner result = com.google.monitoring.dashboard.v1.Aggregation.Aligner.forNumber(perSeriesAligner_); + return result == null ? com.google.monitoring.dashboard.v1.Aggregation.Aligner.UNRECOGNIZED : result; } /** - * - * *
                * An `Aligner` describes how to bring the data points in a single
                * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -2489,12 +2211,10 @@ public com.google.monitoring.dashboard.v1.Aggregation.Aligner getPerSeriesAligne
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; - * * @param value The perSeriesAligner to set. * @return This builder for chaining. */ - public Builder setPerSeriesAligner( - com.google.monitoring.dashboard.v1.Aggregation.Aligner value) { + public Builder setPerSeriesAligner(com.google.monitoring.dashboard.v1.Aggregation.Aligner value) { if (value == null) { throw new NullPointerException(); } @@ -2504,8 +2224,6 @@ public Builder setPerSeriesAligner( return this; } /** - * - * *
                * An `Aligner` describes how to bring the data points in a single
                * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -2526,7 +2244,6 @@ public Builder setPerSeriesAligner(
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; - * * @return This builder for chaining. */ public Builder clearPerSeriesAligner() { @@ -2538,8 +2255,6 @@ public Builder clearPerSeriesAligner() { private int crossSeriesReducer_ = 0; /** - * - * *
                * The reduction operation to be used to combine time series into a single
                * time series, where the value of each data point in the resulting series is
          @@ -2558,16 +2273,12 @@ public Builder clearPerSeriesAligner() {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; - * * @return The enum numeric value on the wire for crossSeriesReducer. */ - @java.lang.Override - public int getCrossSeriesReducerValue() { + @java.lang.Override public int getCrossSeriesReducerValue() { return crossSeriesReducer_; } /** - * - * *
                * The reduction operation to be used to combine time series into a single
                * time series, where the value of each data point in the resulting series is
          @@ -2586,7 +2297,6 @@ public int getCrossSeriesReducerValue() {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; - * * @param value The enum numeric value on the wire for crossSeriesReducer to set. * @return This builder for chaining. */ @@ -2597,8 +2307,6 @@ public Builder setCrossSeriesReducerValue(int value) { return this; } /** - * - * *
                * The reduction operation to be used to combine time series into a single
                * time series, where the value of each data point in the resulting series is
          @@ -2617,20 +2325,14 @@ public Builder setCrossSeriesReducerValue(int value) {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; - * * @return The crossSeriesReducer. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Aggregation.Reducer getCrossSeriesReducer() { - com.google.monitoring.dashboard.v1.Aggregation.Reducer result = - com.google.monitoring.dashboard.v1.Aggregation.Reducer.forNumber(crossSeriesReducer_); - return result == null - ? com.google.monitoring.dashboard.v1.Aggregation.Reducer.UNRECOGNIZED - : result; + com.google.monitoring.dashboard.v1.Aggregation.Reducer result = com.google.monitoring.dashboard.v1.Aggregation.Reducer.forNumber(crossSeriesReducer_); + return result == null ? com.google.monitoring.dashboard.v1.Aggregation.Reducer.UNRECOGNIZED : result; } /** - * - * *
                * The reduction operation to be used to combine time series into a single
                * time series, where the value of each data point in the resulting series is
          @@ -2649,12 +2351,10 @@ public com.google.monitoring.dashboard.v1.Aggregation.Reducer getCrossSeriesRedu
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; - * * @param value The crossSeriesReducer to set. * @return This builder for chaining. */ - public Builder setCrossSeriesReducer( - com.google.monitoring.dashboard.v1.Aggregation.Reducer value) { + public Builder setCrossSeriesReducer(com.google.monitoring.dashboard.v1.Aggregation.Reducer value) { if (value == null) { throw new NullPointerException(); } @@ -2664,8 +2364,6 @@ public Builder setCrossSeriesReducer( return this; } /** - * - * *
                * The reduction operation to be used to combine time series into a single
                * time series, where the value of each data point in the resulting series is
          @@ -2684,7 +2382,6 @@ public Builder setCrossSeriesReducer(
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; - * * @return This builder for chaining. */ public Builder clearCrossSeriesReducer() { @@ -2696,7 +2393,6 @@ public Builder clearCrossSeriesReducer() { private com.google.protobuf.LazyStringArrayList groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureGroupByFieldsIsMutable() { if (!groupByFields_.isModifiable()) { groupByFields_ = new com.google.protobuf.LazyStringArrayList(groupByFields_); @@ -2704,8 +2400,6 @@ private void ensureGroupByFieldsIsMutable() { bitField0_ |= 0x00000008; } /** - * - * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2724,16 +2418,14 @@ private void ensureGroupByFieldsIsMutable() {
                * 
          * * repeated string group_by_fields = 5; - * * @return A list containing the groupByFields. */ - public com.google.protobuf.ProtocolStringList getGroupByFieldsList() { + public com.google.protobuf.ProtocolStringList + getGroupByFieldsList() { groupByFields_.makeImmutable(); return groupByFields_; } /** - * - * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2752,15 +2444,12 @@ public com.google.protobuf.ProtocolStringList getGroupByFieldsList() {
                * 
          * * repeated string group_by_fields = 5; - * * @return The count of groupByFields. */ public int getGroupByFieldsCount() { return groupByFields_.size(); } /** - * - * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2779,7 +2468,6 @@ public int getGroupByFieldsCount() {
                * 
          * * repeated string group_by_fields = 5; - * * @param index The index of the element to return. * @return The groupByFields at the given index. */ @@ -2787,8 +2475,6 @@ public java.lang.String getGroupByFields(int index) { return groupByFields_.get(index); } /** - * - * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2807,16 +2493,14 @@ public java.lang.String getGroupByFields(int index) {
                * 
          * * repeated string group_by_fields = 5; - * * @param index The index of the value to return. * @return The bytes of the groupByFields at the given index. */ - public com.google.protobuf.ByteString getGroupByFieldsBytes(int index) { + public com.google.protobuf.ByteString + getGroupByFieldsBytes(int index) { return groupByFields_.getByteString(index); } /** - * - * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2835,15 +2519,13 @@ public com.google.protobuf.ByteString getGroupByFieldsBytes(int index) {
                * 
          * * repeated string group_by_fields = 5; - * * @param index The index to set the value at. * @param value The groupByFields to set. * @return This builder for chaining. */ - public Builder setGroupByFields(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGroupByFields( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureGroupByFieldsIsMutable(); groupByFields_.set(index, value); bitField0_ |= 0x00000008; @@ -2851,8 +2533,6 @@ public Builder setGroupByFields(int index, java.lang.String value) { return this; } /** - * - * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2871,14 +2551,12 @@ public Builder setGroupByFields(int index, java.lang.String value) {
                * 
          * * repeated string group_by_fields = 5; - * * @param value The groupByFields to add. * @return This builder for chaining. */ - public Builder addGroupByFields(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addGroupByFields( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureGroupByFieldsIsMutable(); groupByFields_.add(value); bitField0_ |= 0x00000008; @@ -2886,8 +2564,6 @@ public Builder addGroupByFields(java.lang.String value) { return this; } /** - * - * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2906,20 +2582,19 @@ public Builder addGroupByFields(java.lang.String value) {
                * 
          * * repeated string group_by_fields = 5; - * * @param values The groupByFields to add. * @return This builder for chaining. */ - public Builder addAllGroupByFields(java.lang.Iterable values) { + public Builder addAllGroupByFields( + java.lang.Iterable values) { ensureGroupByFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByFields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, groupByFields_); bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2938,19 +2613,16 @@ public Builder addAllGroupByFields(java.lang.Iterable values)
                * 
          * * repeated string group_by_fields = 5; - * * @return This builder for chaining. */ public Builder clearGroupByFields() { - groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; + groupByFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** - * - * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2969,14 +2641,12 @@ public Builder clearGroupByFields() {
                * 
          * * repeated string group_by_fields = 5; - * * @param value The bytes of the groupByFields to add. * @return This builder for chaining. */ - public Builder addGroupByFieldsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addGroupByFieldsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureGroupByFieldsIsMutable(); groupByFields_.add(value); @@ -2984,9 +2654,9 @@ public Builder addGroupByFieldsBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2996,12 +2666,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.Aggregation) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Aggregation) private static final com.google.monitoring.dashboard.v1.Aggregation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Aggregation(); } @@ -3010,27 +2680,27 @@ public static com.google.monitoring.dashboard.v1.Aggregation getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Aggregation 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Aggregation 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; @@ -3045,4 +2715,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.Aggregation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java similarity index 92% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java index d0a51174d250..69dc4210f6b6 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/common.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface AggregationOrBuilder - extends +public interface AggregationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Aggregation) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * The `alignment_period` specifies a time interval, in seconds, that is used
              * to divide the data in all the
          @@ -43,13 +25,10 @@ public interface AggregationOrBuilder
              * 
          * * .google.protobuf.Duration alignment_period = 1; - * * @return Whether the alignmentPeriod field is set. */ boolean hasAlignmentPeriod(); /** - * - * *
              * The `alignment_period` specifies a time interval, in seconds, that is used
              * to divide the data in all the
          @@ -66,13 +45,10 @@ public interface AggregationOrBuilder
              * 
          * * .google.protobuf.Duration alignment_period = 1; - * * @return The alignmentPeriod. */ com.google.protobuf.Duration getAlignmentPeriod(); /** - * - * *
              * The `alignment_period` specifies a time interval, in seconds, that is used
              * to divide the data in all the
          @@ -93,8 +69,6 @@ public interface AggregationOrBuilder
             com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder();
           
             /**
          -   *
          -   *
              * 
              * An `Aligner` describes how to bring the data points in a single
              * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -115,13 +89,10 @@ public interface AggregationOrBuilder
              * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; - * * @return The enum numeric value on the wire for perSeriesAligner. */ int getPerSeriesAlignerValue(); /** - * - * *
              * An `Aligner` describes how to bring the data points in a single
              * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -142,14 +113,11 @@ public interface AggregationOrBuilder
              * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; - * * @return The perSeriesAligner. */ com.google.monitoring.dashboard.v1.Aggregation.Aligner getPerSeriesAligner(); /** - * - * *
              * The reduction operation to be used to combine time series into a single
              * time series, where the value of each data point in the resulting series is
          @@ -168,13 +136,10 @@ public interface AggregationOrBuilder
              * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; - * * @return The enum numeric value on the wire for crossSeriesReducer. */ int getCrossSeriesReducerValue(); /** - * - * *
              * The reduction operation to be used to combine time series into a single
              * time series, where the value of each data point in the resulting series is
          @@ -193,14 +158,11 @@ public interface AggregationOrBuilder
              * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; - * * @return The crossSeriesReducer. */ com.google.monitoring.dashboard.v1.Aggregation.Reducer getCrossSeriesReducer(); /** - * - * *
              * The set of fields to preserve when `cross_series_reducer` is
              * specified. The `group_by_fields` determine how the time series are
          @@ -219,13 +181,11 @@ public interface AggregationOrBuilder
              * 
          * * repeated string group_by_fields = 5; - * * @return A list containing the groupByFields. */ - java.util.List getGroupByFieldsList(); + java.util.List + getGroupByFieldsList(); /** - * - * *
              * The set of fields to preserve when `cross_series_reducer` is
              * specified. The `group_by_fields` determine how the time series are
          @@ -244,13 +204,10 @@ public interface AggregationOrBuilder
              * 
          * * repeated string group_by_fields = 5; - * * @return The count of groupByFields. */ int getGroupByFieldsCount(); /** - * - * *
              * The set of fields to preserve when `cross_series_reducer` is
              * specified. The `group_by_fields` determine how the time series are
          @@ -269,14 +226,11 @@ public interface AggregationOrBuilder
              * 
          * * repeated string group_by_fields = 5; - * * @param index The index of the element to return. * @return The groupByFields at the given index. */ java.lang.String getGroupByFields(int index); /** - * - * *
              * The set of fields to preserve when `cross_series_reducer` is
              * specified. The `group_by_fields` determine how the time series are
          @@ -295,9 +249,9 @@ public interface AggregationOrBuilder
              * 
          * * repeated string group_by_fields = 5; - * * @param index The index of the value to return. * @return The bytes of the groupByFields at the given index. */ - com.google.protobuf.ByteString getGroupByFieldsBytes(int index); + com.google.protobuf.ByteString + getGroupByFieldsBytes(int index); } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java similarity index 66% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java index 6fd6c3f911cb..4430e854d994 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/alertchart.proto @@ -20,56 +5,49 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * A chart that displays alert policy data.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.AlertChart} */ -public final class AlertChart extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AlertChart extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.AlertChart) AlertChartOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AlertChart.newBuilder() to construct. private AlertChart(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AlertChart() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AlertChart(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.AlertChartProto - .internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.AlertChartProto.internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.AlertChartProto - .internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable + return com.google.monitoring.dashboard.v1.AlertChartProto.internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.AlertChart.class, - com.google.monitoring.dashboard.v1.AlertChart.Builder.class); + com.google.monitoring.dashboard.v1.AlertChart.class, com.google.monitoring.dashboard.v1.AlertChart.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
              * Required. The resource name of the alert policy. The format is:
              *
          @@ -77,7 +55,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -86,15 +63,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
              * Required. The resource name of the alert policy. The format is:
              *
          @@ -102,15 +78,16 @@ public java.lang.String getName() {
              * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -119,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -155,15 +132,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.AlertChart)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.AlertChart other = - (com.google.monitoring.dashboard.v1.AlertChart) obj; + com.google.monitoring.dashboard.v1.AlertChart other = (com.google.monitoring.dashboard.v1.AlertChart) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +159,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.AlertChart parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.AlertChart parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.AlertChart parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.AlertChart parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.AlertChart 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.AlertChart parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.AlertChart parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.AlertChart parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.AlertChart parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.AlertChart parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.AlertChart parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.AlertChart parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.AlertChart parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.AlertChart parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.AlertChart prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * A chart that displays alert policy data.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.AlertChart} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.AlertChart) com.google.monitoring.dashboard.v1.AlertChartOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.AlertChartProto - .internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.AlertChartProto.internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.AlertChartProto - .internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable + return com.google.monitoring.dashboard.v1.AlertChartProto.internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.AlertChart.class, - com.google.monitoring.dashboard.v1.AlertChart.Builder.class); + com.google.monitoring.dashboard.v1.AlertChart.class, com.google.monitoring.dashboard.v1.AlertChart.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.AlertChart.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +294,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.AlertChartProto - .internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.AlertChartProto.internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor; } @java.lang.Override @@ -342,11 +315,8 @@ public com.google.monitoring.dashboard.v1.AlertChart build() { @java.lang.Override public com.google.monitoring.dashboard.v1.AlertChart buildPartial() { - com.google.monitoring.dashboard.v1.AlertChart result = - new com.google.monitoring.dashboard.v1.AlertChart(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.dashboard.v1.AlertChart result = new com.google.monitoring.dashboard.v1.AlertChart(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -362,39 +332,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.AlertChart result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.AlertChart) { - return mergeFrom((com.google.monitoring.dashboard.v1.AlertChart) other); + return mergeFrom((com.google.monitoring.dashboard.v1.AlertChart)other); } else { super.mergeFrom(other); return this; @@ -434,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -456,13 +423,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                * Required. The resource name of the alert policy. The format is:
                *
          @@ -470,13 +434,13 @@ public Builder mergeFrom(
                * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -485,8 +449,6 @@ public java.lang.String getName() { } } /** - * - * *
                * Required. The resource name of the alert policy. The format is:
                *
          @@ -494,14 +456,15 @@ public java.lang.String getName() {
                * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -509,8 +472,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                * Required. The resource name of the alert policy. The format is:
                *
          @@ -518,22 +479,18 @@ public com.google.protobuf.ByteString getNameBytes() {
                * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                * Required. The resource name of the alert policy. The format is:
                *
          @@ -541,7 +498,6 @@ public Builder setName(java.lang.String value) {
                * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -551,8 +507,6 @@ public Builder clearName() { return this; } /** - * - * *
                * Required. The resource name of the alert policy. The format is:
                *
          @@ -560,23 +514,21 @@ public Builder clearName() {
                * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -586,12 +538,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.AlertChart) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.AlertChart) private static final com.google.monitoring.dashboard.v1.AlertChart DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.AlertChart(); } @@ -600,27 +552,27 @@ public static com.google.monitoring.dashboard.v1.AlertChart getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AlertChart 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlertChart 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; @@ -635,4 +587,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.AlertChart getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartOrBuilder.java similarity index 56% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartOrBuilder.java index 9d2c860ccda3..2cabcd3e0e22 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/alertchart.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface AlertChartOrBuilder - extends +public interface AlertChartOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.AlertChart) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * Required. The resource name of the alert policy. The format is:
              *
          @@ -34,13 +16,10 @@ public interface AlertChartOrBuilder
              * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
              * Required. The resource name of the alert policy. The format is:
              *
          @@ -48,8 +27,8 @@ public interface AlertChartOrBuilder
              * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java new file mode 100644 index 000000000000..f1becdffebd1 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java @@ -0,0 +1,70 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/alertchart.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class AlertChartProto { + private AlertChartProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n/google/monitoring/dashboard/v1/alertch" + + "art.proto\022\036google.monitoring.dashboard.v" + + "1\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\"|\n\nAlertChart\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\002:[\352AX\n%monitoring.googleap" + + "is.com/AlertPolicy\022/projects/{project}/a" + + "lertPolicies/{alert_policy}B\370\001\n\"com.goog" + + "le.monitoring.dashboard.v1B\017AlertChartPr" + + "otoP\001ZFcloud.google.com/go/monitoring/da" + + "shboard/apiv1/dashboardpb;dashboardpb\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" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor, + new java.lang.String[] { "Name", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptions.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptions.java similarity index 67% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptions.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptions.java index d6d675ccbfe5..dd03b78d9883 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptions.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptions.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/xychart.proto @@ -20,62 +5,55 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * Options to control visual rendering of a chart.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ChartOptions} */ -public final class ChartOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ChartOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.ChartOptions) ChartOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ChartOptions.newBuilder() to construct. private ChartOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ChartOptions() { mode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ChartOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_ChartOptions_fieldAccessorTable + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_ChartOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ChartOptions.class, - com.google.monitoring.dashboard.v1.ChartOptions.Builder.class); + com.google.monitoring.dashboard.v1.ChartOptions.class, com.google.monitoring.dashboard.v1.ChartOptions.Builder.class); } /** - * - * *
              * Chart mode options.
              * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.ChartOptions.Mode} */ - public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + public enum Mode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                * Mode is unspecified. The view will default to `COLOR`.
                * 
          @@ -84,8 +62,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { */ MODE_UNSPECIFIED(0), /** - * - * *
                * The chart distinguishes data series using different color. Line
                * colors may get reused when there are many lines in the chart.
          @@ -95,8 +71,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
                */
               COLOR(1),
               /**
          -     *
          -     *
                * 
                * The chart uses the Stackdriver x-ray mode, in which each
                * data set is plotted using the same semi-transparent color.
          @@ -106,8 +80,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
                */
               X_RAY(2),
               /**
          -     *
          -     *
                * 
                * The chart displays statistics such as average, median, 95th percentile,
                * and more.
          @@ -120,8 +92,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
               ;
           
               /**
          -     *
          -     *
                * 
                * Mode is unspecified. The view will default to `COLOR`.
                * 
          @@ -130,8 +100,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
                * The chart distinguishes data series using different color. Line
                * colors may get reused when there are many lines in the chart.
          @@ -141,8 +109,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int COLOR_VALUE = 1;
               /**
          -     *
          -     *
                * 
                * The chart uses the Stackdriver x-ray mode, in which each
                * data set is plotted using the same semi-transparent color.
          @@ -152,8 +118,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int X_RAY_VALUE = 2;
               /**
          -     *
          -     *
                * 
                * The chart displays statistics such as average, median, 95th percentile,
                * and more.
          @@ -163,6 +127,7 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int STATS_VALUE = 3;
           
          +
               public final int getNumber() {
                 if (this == UNRECOGNIZED) {
                   throw new java.lang.IllegalArgumentException(
          @@ -187,51 +152,50 @@ public static Mode valueOf(int value) {
                */
               public static Mode forNumber(int value) {
                 switch (value) {
          -        case 0:
          -          return MODE_UNSPECIFIED;
          -        case 1:
          -          return COLOR;
          -        case 2:
          -          return X_RAY;
          -        case 3:
          -          return STATS;
          -        default:
          -          return null;
          +        case 0: return MODE_UNSPECIFIED;
          +        case 1: return COLOR;
          +        case 2: return X_RAY;
          +        case 3: return STATS;
          +        default: return null;
                 }
               }
           
          -    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
          +    public static com.google.protobuf.Internal.EnumLiteMap
          +        internalGetValueMap() {
                 return internalValueMap;
               }
          +    private static final com.google.protobuf.Internal.EnumLiteMap<
          +        Mode> internalValueMap =
          +          new com.google.protobuf.Internal.EnumLiteMap() {
          +            public Mode findValueByNumber(int number) {
          +              return Mode.forNumber(number);
          +            }
          +          };
           
          -    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
          -        new com.google.protobuf.Internal.EnumLiteMap() {
          -          public Mode findValueByNumber(int number) {
          -            return Mode.forNumber(number);
          -          }
          -        };
          -
          -    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
          +    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() {
          +    public final com.google.protobuf.Descriptors.EnumDescriptor
          +        getDescriptorForType() {
                 return getDescriptor();
               }
          -
          -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
          +    public static final com.google.protobuf.Descriptors.EnumDescriptor
          +        getDescriptor() {
                 return com.google.monitoring.dashboard.v1.ChartOptions.getDescriptor().getEnumTypes().get(0);
               }
           
               private static final Mode[] VALUES = values();
           
          -    public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          +    public static Mode valueOf(
          +        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                 if (desc.getType() != getDescriptor()) {
          -        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
          +        throw new java.lang.IllegalArgumentException(
          +          "EnumValueDescriptor is not for this type.");
                 }
                 if (desc.getIndex() == -1) {
                   return UNRECOGNIZED;
          @@ -251,42 +215,30 @@ private Mode(int value) {
             public static final int MODE_FIELD_NUMBER = 1;
             private int mode_ = 0;
             /**
          -   *
          -   *
              * 
              * The chart mode.
              * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; - * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override - public int getModeValue() { + @java.lang.Override public int getModeValue() { return mode_; } /** - * - * *
              * The chart mode.
              * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; - * * @return The mode. */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.ChartOptions.Mode getMode() { - com.google.monitoring.dashboard.v1.ChartOptions.Mode result = - com.google.monitoring.dashboard.v1.ChartOptions.Mode.forNumber(mode_); - return result == null - ? com.google.monitoring.dashboard.v1.ChartOptions.Mode.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.dashboard.v1.ChartOptions.Mode getMode() { + com.google.monitoring.dashboard.v1.ChartOptions.Mode result = com.google.monitoring.dashboard.v1.ChartOptions.Mode.forNumber(mode_); + return result == null ? com.google.monitoring.dashboard.v1.ChartOptions.Mode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,9 +250,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (mode_ - != com.google.monitoring.dashboard.v1.ChartOptions.Mode.MODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (mode_ != com.google.monitoring.dashboard.v1.ChartOptions.Mode.MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, mode_); } getUnknownFields().writeTo(output); @@ -312,9 +264,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (mode_ - != com.google.monitoring.dashboard.v1.ChartOptions.Mode.MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + if (mode_ != com.google.monitoring.dashboard.v1.ChartOptions.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, mode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -324,13 +276,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.ChartOptions)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.ChartOptions other = - (com.google.monitoring.dashboard.v1.ChartOptions) obj; + com.google.monitoring.dashboard.v1.ChartOptions other = (com.google.monitoring.dashboard.v1.ChartOptions) obj; if (mode_ != other.mode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -351,136 +302,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.ChartOptions parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.ChartOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.ChartOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ChartOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.ChartOptions 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.ChartOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.ChartOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ChartOptions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.ChartOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ChartOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.ChartOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.ChartOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ChartOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.ChartOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.ChartOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Options to control visual rendering of a chart.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ChartOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.ChartOptions) com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_ChartOptions_fieldAccessorTable + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_ChartOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ChartOptions.class, - com.google.monitoring.dashboard.v1.ChartOptions.Builder.class); + com.google.monitoring.dashboard.v1.ChartOptions.class, com.google.monitoring.dashboard.v1.ChartOptions.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.ChartOptions.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor; } @java.lang.Override @@ -511,11 +458,8 @@ public com.google.monitoring.dashboard.v1.ChartOptions build() { @java.lang.Override public com.google.monitoring.dashboard.v1.ChartOptions buildPartial() { - com.google.monitoring.dashboard.v1.ChartOptions result = - new com.google.monitoring.dashboard.v1.ChartOptions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.dashboard.v1.ChartOptions result = new com.google.monitoring.dashboard.v1.ChartOptions(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -531,39 +475,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.ChartOptions resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ChartOptions) { - return mergeFrom((com.google.monitoring.dashboard.v1.ChartOptions) other); + return mergeFrom((com.google.monitoring.dashboard.v1.ChartOptions)other); } else { super.mergeFrom(other); return this; @@ -571,8 +514,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.ChartOptions other) { - if (other == com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance()) - return this; + if (other == com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance()) return this; if (other.mode_ != 0) { setModeValue(other.getModeValue()); } @@ -602,19 +544,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - mode_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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) { @@ -624,34 +564,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int mode_ = 0; /** - * - * *
                * The chart mode.
                * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; - * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override - public int getModeValue() { + @java.lang.Override public int getModeValue() { return mode_; } /** - * - * *
                * The chart mode.
                * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; - * * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ @@ -662,33 +594,24 @@ public Builder setModeValue(int value) { return this; } /** - * - * *
                * The chart mode.
                * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; - * * @return The mode. */ @java.lang.Override public com.google.monitoring.dashboard.v1.ChartOptions.Mode getMode() { - com.google.monitoring.dashboard.v1.ChartOptions.Mode result = - com.google.monitoring.dashboard.v1.ChartOptions.Mode.forNumber(mode_); - return result == null - ? com.google.monitoring.dashboard.v1.ChartOptions.Mode.UNRECOGNIZED - : result; + com.google.monitoring.dashboard.v1.ChartOptions.Mode result = com.google.monitoring.dashboard.v1.ChartOptions.Mode.forNumber(mode_); + return result == null ? com.google.monitoring.dashboard.v1.ChartOptions.Mode.UNRECOGNIZED : result; } /** - * - * *
                * The chart mode.
                * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; - * * @param value The mode to set. * @return This builder for chaining. */ @@ -702,14 +625,11 @@ public Builder setMode(com.google.monitoring.dashboard.v1.ChartOptions.Mode valu return this; } /** - * - * *
                * The chart mode.
                * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; - * * @return This builder for chaining. */ public Builder clearMode() { @@ -718,9 +638,9 @@ public Builder clearMode() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -730,12 +650,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.ChartOptions) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.ChartOptions) private static final com.google.monitoring.dashboard.v1.ChartOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.ChartOptions(); } @@ -744,27 +664,27 @@ public static com.google.monitoring.dashboard.v1.ChartOptions getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChartOptions 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChartOptions 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; @@ -779,4 +699,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.ChartOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptionsOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptionsOrBuilder.java similarity index 53% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptionsOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptionsOrBuilder.java index 74a5f5df01a6..5dc0be6c5746 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptionsOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptionsOrBuilder.java @@ -1,50 +1,28 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/xychart.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface ChartOptionsOrBuilder - extends +public interface ChartOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.ChartOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * The chart mode.
              * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; - * * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** - * - * *
              * The chart mode.
              * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; - * * @return The mode. */ com.google.monitoring.dashboard.v1.ChartOptions.Mode getMode(); diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java similarity index 66% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java index 3c571270622f..4d9fddfb05b2 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/collapsible_group.proto @@ -20,8 +5,6 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * A widget that groups the other widgets. All widgets that are within
            * the area spanned by the grouping widget are considered member widgets.
          @@ -29,50 +12,46 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.CollapsibleGroup}
            */
          -public final class CollapsibleGroup extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class CollapsibleGroup extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.CollapsibleGroup)
               CollapsibleGroupOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use CollapsibleGroup.newBuilder() to construct.
             private CollapsibleGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
          -  private CollapsibleGroup() {}
          +  private CollapsibleGroup() {
          +  }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new CollapsibleGroup();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.CollapsibleGroupProto
          -        .internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.CollapsibleGroupProto.internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.CollapsibleGroupProto
          -        .internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.CollapsibleGroupProto.internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.CollapsibleGroup.class,
          -            com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder.class);
          +            com.google.monitoring.dashboard.v1.CollapsibleGroup.class, com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder.class);
             }
           
             public static final int COLLAPSED_FIELD_NUMBER = 1;
             private boolean collapsed_ = false;
             /**
          -   *
          -   *
              * 
              * The collapsed state of the widget on first page load.
              * 
          * * bool collapsed = 1; - * * @return The collapsed. */ @java.lang.Override @@ -81,7 +60,6 @@ public boolean getCollapsed() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -93,7 +71,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (collapsed_ != false) { output.writeBool(1, collapsed_); } @@ -107,7 +86,8 @@ public int getSerializedSize() { size = 0; if (collapsed_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, collapsed_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, collapsed_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -117,15 +97,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.CollapsibleGroup)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.CollapsibleGroup other = - (com.google.monitoring.dashboard.v1.CollapsibleGroup) obj; + com.google.monitoring.dashboard.v1.CollapsibleGroup other = (com.google.monitoring.dashboard.v1.CollapsibleGroup) obj; - if (getCollapsed() != other.getCollapsed()) return false; + if (getCollapsed() + != other.getCollapsed()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -138,110 +118,106 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COLLAPSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCollapsed()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCollapsed()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CollapsibleGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.CollapsibleGroup 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.CollapsibleGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.CollapsibleGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * A widget that groups the other widgets. All widgets that are within
              * the area spanned by the grouping widget are considered member widgets.
          @@ -249,32 +225,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.CollapsibleGroup}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.CollapsibleGroup)
                 com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.CollapsibleGroupProto
          -          .internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.CollapsibleGroupProto.internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.CollapsibleGroupProto
          -          .internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.CollapsibleGroupProto.internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.CollapsibleGroup.class,
          -              com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder.class);
          +              com.google.monitoring.dashboard.v1.CollapsibleGroup.class, com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.CollapsibleGroup.newBuilder()
          -    private Builder() {}
          +    private Builder() {
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          -      super(parent);
               }
           
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +      super(parent);
          +
          +    }
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -284,9 +261,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.CollapsibleGroupProto
          -          .internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.CollapsibleGroupProto.internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor;
               }
           
               @java.lang.Override
          @@ -305,11 +282,8 @@ public com.google.monitoring.dashboard.v1.CollapsibleGroup build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.CollapsibleGroup buildPartial() {
          -      com.google.monitoring.dashboard.v1.CollapsibleGroup result =
          -          new com.google.monitoring.dashboard.v1.CollapsibleGroup(this);
          -      if (bitField0_ != 0) {
          -        buildPartial0(result);
          -      }
          +      com.google.monitoring.dashboard.v1.CollapsibleGroup result = new com.google.monitoring.dashboard.v1.CollapsibleGroup(this);
          +      if (bitField0_ != 0) { buildPartial0(result); }
                 onBuilt();
                 return result;
               }
          @@ -325,39 +299,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.CollapsibleGroup r
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.CollapsibleGroup) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.CollapsibleGroup) other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.CollapsibleGroup)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -365,8 +338,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.CollapsibleGroup other) {
          -      if (other == com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance())
          -        return this;
          +      if (other == com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance()) return this;
                 if (other.getCollapsed() != false) {
                   setCollapsed(other.getCollapsed());
                 }
          @@ -396,19 +368,17 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 8:
          -              {
          -                collapsed_ = input.readBool();
          -                bitField0_ |= 0x00000001;
          -                break;
          -              } // case 8
          -            default:
          -              {
          -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                  done = true; // was an endgroup tag
          -                }
          -                break;
          -              } // default:
          +            case 8: {
          +              collapsed_ = input.readBool();
          +              bitField0_ |= 0x00000001;
          +              break;
          +            } // case 8
          +            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) {
          @@ -418,19 +388,15 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          -
               private int bitField0_;
           
          -    private boolean collapsed_;
          +    private boolean collapsed_ ;
               /**
          -     *
          -     *
                * 
                * The collapsed state of the widget on first page load.
                * 
          * * bool collapsed = 1; - * * @return The collapsed. */ @java.lang.Override @@ -438,14 +404,11 @@ public boolean getCollapsed() { return collapsed_; } /** - * - * *
                * The collapsed state of the widget on first page load.
                * 
          * * bool collapsed = 1; - * * @param value The collapsed to set. * @return This builder for chaining. */ @@ -457,14 +420,11 @@ public Builder setCollapsed(boolean value) { return this; } /** - * - * *
                * The collapsed state of the widget on first page load.
                * 
          * * bool collapsed = 1; - * * @return This builder for chaining. */ public Builder clearCollapsed() { @@ -473,9 +433,9 @@ public Builder clearCollapsed() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -485,12 +445,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.CollapsibleGroup) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.CollapsibleGroup) private static final com.google.monitoring.dashboard.v1.CollapsibleGroup DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.CollapsibleGroup(); } @@ -499,27 +459,27 @@ public static com.google.monitoring.dashboard.v1.CollapsibleGroup getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CollapsibleGroup 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CollapsibleGroup 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; @@ -534,4 +494,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.CollapsibleGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java new file mode 100644 index 000000000000..f8fdc39e3f38 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/collapsible_group.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public interface CollapsibleGroupOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.CollapsibleGroup) + com.google.protobuf.MessageOrBuilder { + + /** + *
          +   * The collapsed state of the widget on first page load.
          +   * 
          + * + * bool collapsed = 1; + * @return The collapsed. + */ + boolean getCollapsed(); +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java new file mode 100644 index 000000000000..aa0a38cb5a54 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/collapsible_group.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class CollapsibleGroupProto { + private CollapsibleGroupProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n6google/monitoring/dashboard/v1/collaps" + + "ible_group.proto\022\036google.monitoring.dash" + + "board.v1\"%\n\020CollapsibleGroup\022\021\n\tcollapse" + + "d\030\001 \001(\010B\376\001\n\"com.google.monitoring.dashbo" + + "ard.v1B\025CollapsibleGroupProtoP\001ZFcloud.g" + + "oogle.com/go/monitoring/dashboard/apiv1/" + + "dashboardpb;dashboardpb\252\002$Google.Cloud.M" + + "onitoring.Dashboard.V1\312\002$Google\\Cloud\\Mo" + + "nitoring\\Dashboard\\V1\352\002(Google::Cloud::M" + + "onitoring::Dashboard::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor, + new java.lang.String[] { "Collapsed", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayout.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayout.java similarity index 74% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayout.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayout.java index 76e793951f70..75d34c3141e6 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayout.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayout.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/layouts.proto @@ -20,8 +5,6 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * A simplified layout that divides the available space into vertical columns
            * and arranges a set of widgets vertically in each column.
          @@ -29,49 +12,44 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.ColumnLayout}
            */
          -public final class ColumnLayout extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class ColumnLayout extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.ColumnLayout)
               ColumnLayoutOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use ColumnLayout.newBuilder() to construct.
             private ColumnLayout(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
             private ColumnLayout() {
               columns_ = java.util.Collections.emptyList();
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new ColumnLayout();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.LayoutsProto
          -        .internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.LayoutsProto
          -        .internal_static_google_monitoring_dashboard_v1_ColumnLayout_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.ColumnLayout.class,
          -            com.google.monitoring.dashboard.v1.ColumnLayout.Builder.class);
          +            com.google.monitoring.dashboard.v1.ColumnLayout.class, com.google.monitoring.dashboard.v1.ColumnLayout.Builder.class);
             }
           
          -  public interface ColumnOrBuilder
          -      extends
          +  public interface ColumnOrBuilder extends
                 // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.ColumnLayout.Column)
                 com.google.protobuf.MessageOrBuilder {
           
               /**
          -     *
          -     *
                * 
                * The relative weight of this column. The column weight is used to adjust
                * the width of columns on the screen (relative to peers).
          @@ -80,24 +58,20 @@ public interface ColumnOrBuilder
                * 
          * * int64 weight = 1; - * * @return The weight. */ long getWeight(); /** - * - * *
                * The display widgets arranged vertically in this column.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - java.util.List getWidgetsList(); + java.util.List + getWidgetsList(); /** - * - * *
                * The display widgets arranged vertically in this column.
                * 
          @@ -106,8 +80,6 @@ public interface ColumnOrBuilder */ com.google.monitoring.dashboard.v1.Widget getWidgets(int index); /** - * - * *
                * The display widgets arranged vertically in this column.
                * 
          @@ -116,76 +88,67 @@ public interface ColumnOrBuilder */ int getWidgetsCount(); /** - * - * *
                * The display widgets arranged vertically in this column.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - java.util.List + java.util.List getWidgetsOrBuilderList(); /** - * - * *
                * The display widgets arranged vertically in this column.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index); + com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( + int index); } /** - * - * *
              * Defines the layout properties and content for a column.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ColumnLayout.Column} */ - public static final class Column extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Column extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.ColumnLayout.Column) ColumnOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Column.newBuilder() to construct. private Column(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Column() { widgets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Column(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.LayoutsProto - .internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.LayoutsProto - .internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_fieldAccessorTable + return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ColumnLayout.Column.class, - com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder.class); + com.google.monitoring.dashboard.v1.ColumnLayout.Column.class, com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder.class); } public static final int WEIGHT_FIELD_NUMBER = 1; private long weight_ = 0L; /** - * - * *
                * The relative weight of this column. The column weight is used to adjust
                * the width of columns on the screen (relative to peers).
          @@ -194,7 +157,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                * 
          * * int64 weight = 1; - * * @return The weight. */ @java.lang.Override @@ -203,12 +165,9 @@ public long getWeight() { } public static final int WIDGETS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List widgets_; /** - * - * *
                * The display widgets arranged vertically in this column.
                * 
          @@ -220,8 +179,6 @@ public java.util.List getWidgetsList( return widgets_; } /** - * - * *
                * The display widgets arranged vertically in this column.
                * 
          @@ -229,13 +186,11 @@ public java.util.List getWidgetsList( * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ @java.lang.Override - public java.util.List + public java.util.List getWidgetsOrBuilderList() { return widgets_; } /** - * - * *
                * The display widgets arranged vertically in this column.
                * 
          @@ -247,8 +202,6 @@ public int getWidgetsCount() { return widgets_.size(); } /** - * - * *
                * The display widgets arranged vertically in this column.
                * 
          @@ -260,8 +213,6 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { return widgets_.get(index); } /** - * - * *
                * The display widgets arranged vertically in this column.
                * 
          @@ -269,12 +220,12 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index) { + public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( + int index) { return widgets_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,7 +237,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (weight_ != 0L) { output.writeInt64(1, weight_); } @@ -303,10 +255,12 @@ public int getSerializedSize() { size = 0; if (weight_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, weight_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, weight_); } for (int i = 0; i < widgets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, widgets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, widgets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -316,16 +270,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.ColumnLayout.Column)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.ColumnLayout.Column other = - (com.google.monitoring.dashboard.v1.ColumnLayout.Column) obj; + com.google.monitoring.dashboard.v1.ColumnLayout.Column other = (com.google.monitoring.dashboard.v1.ColumnLayout.Column) obj; - if (getWeight() != other.getWeight()) return false; - if (!getWidgetsList().equals(other.getWidgetsList())) return false; + if (getWeight() + != other.getWeight()) return false; + if (!getWidgetsList() + .equals(other.getWidgetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -338,7 +293,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWeight()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getWeight()); if (getWidgetsCount() > 0) { hash = (37 * hash) + WIDGETS_FIELD_NUMBER; hash = (53 * hash) + getWidgetsList().hashCode(); @@ -349,94 +305,89 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ColumnLayout.Column parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.ColumnLayout.Column 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.ColumnLayout.Column parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.dashboard.v1.ColumnLayout.Column prototype) { + public static Builder newBuilder(com.google.monitoring.dashboard.v1.ColumnLayout.Column prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -446,41 +397,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                * Defines the layout properties and content for a column.
                * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ColumnLayout.Column} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.ColumnLayout.Column) com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.LayoutsProto - .internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.LayoutsProto - .internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_fieldAccessorTable + return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ColumnLayout.Column.class, - com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder.class); + com.google.monitoring.dashboard.v1.ColumnLayout.Column.class, com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.ColumnLayout.Column.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.LayoutsProto - .internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor; } @java.lang.Override @@ -518,18 +467,14 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.Column build() { @java.lang.Override public com.google.monitoring.dashboard.v1.ColumnLayout.Column buildPartial() { - com.google.monitoring.dashboard.v1.ColumnLayout.Column result = - new com.google.monitoring.dashboard.v1.ColumnLayout.Column(this); + com.google.monitoring.dashboard.v1.ColumnLayout.Column result = new com.google.monitoring.dashboard.v1.ColumnLayout.Column(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.dashboard.v1.ColumnLayout.Column result) { + private void buildPartialRepeatedFields(com.google.monitoring.dashboard.v1.ColumnLayout.Column result) { if (widgetsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { widgets_ = java.util.Collections.unmodifiableList(widgets_); @@ -552,41 +497,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.ColumnLayout.Colum public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ColumnLayout.Column) { - return mergeFrom((com.google.monitoring.dashboard.v1.ColumnLayout.Column) other); + return mergeFrom((com.google.monitoring.dashboard.v1.ColumnLayout.Column)other); } else { super.mergeFrom(other); return this; @@ -594,8 +536,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.ColumnLayout.Column other) { - if (other == com.google.monitoring.dashboard.v1.ColumnLayout.Column.getDefaultInstance()) - return this; + if (other == com.google.monitoring.dashboard.v1.ColumnLayout.Column.getDefaultInstance()) return this; if (other.getWeight() != 0L) { setWeight(other.getWeight()); } @@ -617,10 +558,9 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.ColumnLayout.Column widgetsBuilder_ = null; widgets_ = other.widgets_; bitField0_ = (bitField0_ & ~0x00000002); - widgetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWidgetsFieldBuilder() - : null; + widgetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWidgetsFieldBuilder() : null; } else { widgetsBuilder_.addAllMessages(other.widgets_); } @@ -652,32 +592,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - weight_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - com.google.monitoring.dashboard.v1.Widget m = - input.readMessage( - com.google.monitoring.dashboard.v1.Widget.parser(), extensionRegistry); - if (widgetsBuilder_ == null) { - ensureWidgetsIsMutable(); - widgets_.add(m); - } else { - widgetsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + weight_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + com.google.monitoring.dashboard.v1.Widget m = + input.readMessage( + com.google.monitoring.dashboard.v1.Widget.parser(), + extensionRegistry); + if (widgetsBuilder_ == null) { + ensureWidgetsIsMutable(); + widgets_.add(m); + } else { + widgetsBuilder_.addMessage(m); + } + break; + } // case 18 + 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) { @@ -687,13 +625,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long weight_; + private long weight_ ; /** - * - * *
                  * The relative weight of this column. The column weight is used to adjust
                  * the width of columns on the screen (relative to peers).
          @@ -702,7 +637,6 @@ public Builder mergeFrom(
                  * 
          * * int64 weight = 1; - * * @return The weight. */ @java.lang.Override @@ -710,8 +644,6 @@ public long getWeight() { return weight_; } /** - * - * *
                  * The relative weight of this column. The column weight is used to adjust
                  * the width of columns on the screen (relative to peers).
          @@ -720,7 +652,6 @@ public long getWeight() {
                  * 
          * * int64 weight = 1; - * * @param value The weight to set. * @return This builder for chaining. */ @@ -732,8 +663,6 @@ public Builder setWeight(long value) { return this; } /** - * - * *
                  * The relative weight of this column. The column weight is used to adjust
                  * the width of columns on the screen (relative to peers).
          @@ -742,7 +671,6 @@ public Builder setWeight(long value) {
                  * 
          * * int64 weight = 1; - * * @return This builder for chaining. */ public Builder clearWeight() { @@ -753,24 +681,18 @@ public Builder clearWeight() { } private java.util.List widgets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWidgetsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { widgets_ = new java.util.ArrayList(widgets_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, - com.google.monitoring.dashboard.v1.Widget.Builder, - com.google.monitoring.dashboard.v1.WidgetOrBuilder> - widgetsBuilder_; + com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder> widgetsBuilder_; /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -785,8 +707,6 @@ public java.util.List getWidgetsList( } } /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -801,8 +721,6 @@ public int getWidgetsCount() { } } /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -817,15 +735,14 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { } } /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder setWidgets(int index, com.google.monitoring.dashboard.v1.Widget value) { + public Builder setWidgets( + int index, com.google.monitoring.dashboard.v1.Widget value) { if (widgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -839,8 +756,6 @@ public Builder setWidgets(int index, com.google.monitoring.dashboard.v1.Widget v return this; } /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -859,8 +774,6 @@ public Builder setWidgets( return this; } /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -881,15 +794,14 @@ public Builder addWidgets(com.google.monitoring.dashboard.v1.Widget value) { return this; } /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder addWidgets(int index, com.google.monitoring.dashboard.v1.Widget value) { + public Builder addWidgets( + int index, com.google.monitoring.dashboard.v1.Widget value) { if (widgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -903,15 +815,14 @@ public Builder addWidgets(int index, com.google.monitoring.dashboard.v1.Widget v return this; } /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder addWidgets(com.google.monitoring.dashboard.v1.Widget.Builder builderForValue) { + public Builder addWidgets( + com.google.monitoring.dashboard.v1.Widget.Builder builderForValue) { if (widgetsBuilder_ == null) { ensureWidgetsIsMutable(); widgets_.add(builderForValue.build()); @@ -922,8 +833,6 @@ public Builder addWidgets(com.google.monitoring.dashboard.v1.Widget.Builder buil return this; } /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -942,8 +851,6 @@ public Builder addWidgets( return this; } /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -954,7 +861,8 @@ public Builder addAllWidgets( java.lang.Iterable values) { if (widgetsBuilder_ == null) { ensureWidgetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, widgets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, widgets_); onChanged(); } else { widgetsBuilder_.addAllMessages(values); @@ -962,8 +870,6 @@ public Builder addAllWidgets( return this; } /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -981,8 +887,6 @@ public Builder clearWidgets() { return this; } /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -1000,44 +904,39 @@ public Builder removeWidgets(int index) { return this; } /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.Widget.Builder getWidgetsBuilder(int index) { + public com.google.monitoring.dashboard.v1.Widget.Builder getWidgetsBuilder( + int index) { return getWidgetsFieldBuilder().getBuilder(index); } /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index) { + public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( + int index) { if (widgetsBuilder_ == null) { - return widgets_.get(index); - } else { + return widgets_.get(index); } else { return widgetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public java.util.List - getWidgetsOrBuilderList() { + public java.util.List + getWidgetsOrBuilderList() { if (widgetsBuilder_ != null) { return widgetsBuilder_.getMessageOrBuilderList(); } else { @@ -1045,8 +944,6 @@ public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(in } } /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -1054,53 +951,46 @@ public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(in * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder() { - return getWidgetsFieldBuilder() - .addBuilder(com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); + return getWidgetsFieldBuilder().addBuilder( + com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); } /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder(int index) { - return getWidgetsFieldBuilder() - .addBuilder(index, com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); + public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder( + int index) { + return getWidgetsFieldBuilder().addBuilder( + index, com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); } /** - * - * *
                  * The display widgets arranged vertically in this column.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public java.util.List - getWidgetsBuilderList() { + public java.util.List + getWidgetsBuilderList() { return getWidgetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, - com.google.monitoring.dashboard.v1.Widget.Builder, - com.google.monitoring.dashboard.v1.WidgetOrBuilder> + com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder> getWidgetsFieldBuilder() { if (widgetsBuilder_ == null) { - widgetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, - com.google.monitoring.dashboard.v1.Widget.Builder, - com.google.monitoring.dashboard.v1.WidgetOrBuilder>( - widgets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + widgetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder>( + widgets_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); widgets_ = null; } return widgetsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1113,12 +1003,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.ColumnLayout.Column) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.ColumnLayout.Column) private static final com.google.monitoring.dashboard.v1.ColumnLayout.Column DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.ColumnLayout.Column(); } @@ -1127,28 +1017,27 @@ public static com.google.monitoring.dashboard.v1.ColumnLayout.Column getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Column 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Column 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; @@ -1163,15 +1052,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.ColumnLayout.Column getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int COLUMNS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List columns_; /** - * - * *
              * The columns of content to display.
              * 
          @@ -1183,8 +1070,6 @@ public java.util.List ge return columns_; } /** - * - * *
              * The columns of content to display.
              * 
          @@ -1192,13 +1077,11 @@ public java.util.List ge * repeated .google.monitoring.dashboard.v1.ColumnLayout.Column columns = 1; */ @java.lang.Override - public java.util.List + public java.util.List getColumnsOrBuilderList() { return columns_; } /** - * - * *
              * The columns of content to display.
              * 
          @@ -1210,8 +1093,6 @@ public int getColumnsCount() { return columns_.size(); } /** - * - * *
              * The columns of content to display.
              * 
          @@ -1223,8 +1104,6 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.Column getColumns(int ind return columns_.get(index); } /** - * - * *
              * The columns of content to display.
              * 
          @@ -1238,7 +1117,6 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder getColumn } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1250,7 +1128,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < columns_.size(); i++) { output.writeMessage(1, columns_.get(i)); } @@ -1264,7 +1143,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < columns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, columns_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, columns_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1274,15 +1154,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.ColumnLayout)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.ColumnLayout other = - (com.google.monitoring.dashboard.v1.ColumnLayout) obj; + com.google.monitoring.dashboard.v1.ColumnLayout other = (com.google.monitoring.dashboard.v1.ColumnLayout) obj; - if (!getColumnsList().equals(other.getColumnsList())) return false; + if (!getColumnsList() + .equals(other.getColumnsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1303,104 +1183,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.ColumnLayout parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.ColumnLayout parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.ColumnLayout parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ColumnLayout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.ColumnLayout 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.ColumnLayout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.ColumnLayout parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ColumnLayout parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.ColumnLayout parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ColumnLayout parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.ColumnLayout parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.ColumnLayout parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ColumnLayout parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.ColumnLayout parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.ColumnLayout prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * A simplified layout that divides the available space into vertical columns
              * and arranges a set of widgets vertically in each column.
          @@ -1408,32 +1283,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.ColumnLayout}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.ColumnLayout)
                 com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto
          -          .internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto
          -          .internal_static_google_monitoring_dashboard_v1_ColumnLayout_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.ColumnLayout.class,
          -              com.google.monitoring.dashboard.v1.ColumnLayout.Builder.class);
          +              com.google.monitoring.dashboard.v1.ColumnLayout.class, com.google.monitoring.dashboard.v1.ColumnLayout.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.ColumnLayout.newBuilder()
          -    private Builder() {}
          +    private Builder() {
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          -      super(parent);
               }
           
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +      super(parent);
          +
          +    }
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -1449,9 +1325,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto
          -          .internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor;
               }
           
               @java.lang.Override
          @@ -1470,18 +1346,14 @@ public com.google.monitoring.dashboard.v1.ColumnLayout build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.ColumnLayout buildPartial() {
          -      com.google.monitoring.dashboard.v1.ColumnLayout result =
          -          new com.google.monitoring.dashboard.v1.ColumnLayout(this);
          +      com.google.monitoring.dashboard.v1.ColumnLayout result = new com.google.monitoring.dashboard.v1.ColumnLayout(this);
                 buildPartialRepeatedFields(result);
          -      if (bitField0_ != 0) {
          -        buildPartial0(result);
          -      }
          +      if (bitField0_ != 0) { buildPartial0(result); }
                 onBuilt();
                 return result;
               }
           
          -    private void buildPartialRepeatedFields(
          -        com.google.monitoring.dashboard.v1.ColumnLayout result) {
          +    private void buildPartialRepeatedFields(com.google.monitoring.dashboard.v1.ColumnLayout result) {
                 if (columnsBuilder_ == null) {
                   if (((bitField0_ & 0x00000001) != 0)) {
                     columns_ = java.util.Collections.unmodifiableList(columns_);
          @@ -1501,39 +1373,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.ColumnLayout resul
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.ColumnLayout) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.ColumnLayout) other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.ColumnLayout)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1541,8 +1412,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.ColumnLayout other) {
          -      if (other == com.google.monitoring.dashboard.v1.ColumnLayout.getDefaultInstance())
          -        return this;
          +      if (other == com.google.monitoring.dashboard.v1.ColumnLayout.getDefaultInstance()) return this;
                 if (columnsBuilder_ == null) {
                   if (!other.columns_.isEmpty()) {
                     if (columns_.isEmpty()) {
          @@ -1561,10 +1431,9 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.ColumnLayout other)
                       columnsBuilder_ = null;
                       columns_ = other.columns_;
                       bitField0_ = (bitField0_ & ~0x00000001);
          -            columnsBuilder_ =
          -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          -                    ? getColumnsFieldBuilder()
          -                    : null;
          +            columnsBuilder_ = 
          +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          +                 getColumnsFieldBuilder() : null;
                     } else {
                       columnsBuilder_.addAllMessages(other.columns_);
                     }
          @@ -1596,27 +1465,25 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10:
          -              {
          -                com.google.monitoring.dashboard.v1.ColumnLayout.Column m =
          -                    input.readMessage(
          -                        com.google.monitoring.dashboard.v1.ColumnLayout.Column.parser(),
          -                        extensionRegistry);
          -                if (columnsBuilder_ == null) {
          -                  ensureColumnsIsMutable();
          -                  columns_.add(m);
          -                } else {
          -                  columnsBuilder_.addMessage(m);
          -                }
          -                break;
          -              } // case 10
          -            default:
          -              {
          -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                  done = true; // was an endgroup tag
          -                }
          -                break;
          -              } // default:
          +            case 10: {
          +              com.google.monitoring.dashboard.v1.ColumnLayout.Column m =
          +                  input.readMessage(
          +                      com.google.monitoring.dashboard.v1.ColumnLayout.Column.parser(),
          +                      extensionRegistry);
          +              if (columnsBuilder_ == null) {
          +                ensureColumnsIsMutable();
          +                columns_.add(m);
          +              } else {
          +                columnsBuilder_.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) {
          @@ -1626,30 +1493,21 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          -
               private int bitField0_;
           
               private java.util.List columns_ =
          -        java.util.Collections.emptyList();
          -
          +      java.util.Collections.emptyList();
               private void ensureColumnsIsMutable() {
                 if (!((bitField0_ & 0x00000001) != 0)) {
          -        columns_ =
          -            new java.util.ArrayList(
          -                columns_);
          +        columns_ = new java.util.ArrayList(columns_);
                   bitField0_ |= 0x00000001;
          -      }
          +       }
               }
           
               private com.google.protobuf.RepeatedFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.ColumnLayout.Column,
          -            com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder,
          -            com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder>
          -        columnsBuilder_;
          +        com.google.monitoring.dashboard.v1.ColumnLayout.Column, com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder, com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder> columnsBuilder_;
           
               /**
          -     *
          -     *
                * 
                * The columns of content to display.
                * 
          @@ -1664,8 +1522,6 @@ public java.util.List ge } } /** - * - * *
                * The columns of content to display.
                * 
          @@ -1680,8 +1536,6 @@ public int getColumnsCount() { } } /** - * - * *
                * The columns of content to display.
                * 
          @@ -1696,8 +1550,6 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.Column getColumns(int ind } } /** - * - * *
                * The columns of content to display.
                * 
          @@ -1719,8 +1571,6 @@ public Builder setColumns( return this; } /** - * - * *
                * The columns of content to display.
                * 
          @@ -1739,8 +1589,6 @@ public Builder setColumns( return this; } /** - * - * *
                * The columns of content to display.
                * 
          @@ -1761,8 +1609,6 @@ public Builder addColumns(com.google.monitoring.dashboard.v1.ColumnLayout.Column return this; } /** - * - * *
                * The columns of content to display.
                * 
          @@ -1784,8 +1630,6 @@ public Builder addColumns( return this; } /** - * - * *
                * The columns of content to display.
                * 
          @@ -1804,8 +1648,6 @@ public Builder addColumns( return this; } /** - * - * *
                * The columns of content to display.
                * 
          @@ -1824,8 +1666,6 @@ public Builder addColumns( return this; } /** - * - * *
                * The columns of content to display.
                * 
          @@ -1833,11 +1673,11 @@ public Builder addColumns( * repeated .google.monitoring.dashboard.v1.ColumnLayout.Column columns = 1; */ public Builder addAllColumns( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, columns_); onChanged(); } else { columnsBuilder_.addAllMessages(values); @@ -1845,8 +1685,6 @@ public Builder addAllColumns( return this; } /** - * - * *
                * The columns of content to display.
                * 
          @@ -1864,8 +1702,6 @@ public Builder clearColumns() { return this; } /** - * - * *
                * The columns of content to display.
                * 
          @@ -1883,8 +1719,6 @@ public Builder removeColumns(int index) { return this; } /** - * - * *
                * The columns of content to display.
                * 
          @@ -1896,8 +1730,6 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder getColumns return getColumnsFieldBuilder().getBuilder(index); } /** - * - * *
                * The columns of content to display.
                * 
          @@ -1907,22 +1739,19 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder getColumns public com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder getColumnsOrBuilder( int index) { if (columnsBuilder_ == null) { - return columns_.get(index); - } else { + return columns_.get(index); } else { return columnsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                * The columns of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.ColumnLayout.Column columns = 1; */ - public java.util.List - getColumnsOrBuilderList() { + public java.util.List + getColumnsOrBuilderList() { if (columnsBuilder_ != null) { return columnsBuilder_.getMessageOrBuilderList(); } else { @@ -1930,8 +1759,6 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder getColumn } } /** - * - * *
                * The columns of content to display.
                * 
          @@ -1939,12 +1766,10 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder getColumn * repeated .google.monitoring.dashboard.v1.ColumnLayout.Column columns = 1; */ public com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder addColumnsBuilder() { - return getColumnsFieldBuilder() - .addBuilder(com.google.monitoring.dashboard.v1.ColumnLayout.Column.getDefaultInstance()); + return getColumnsFieldBuilder().addBuilder( + com.google.monitoring.dashboard.v1.ColumnLayout.Column.getDefaultInstance()); } /** - * - * *
                * The columns of content to display.
                * 
          @@ -1953,43 +1778,37 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder addColumns */ public com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder addColumnsBuilder( int index) { - return getColumnsFieldBuilder() - .addBuilder( - index, com.google.monitoring.dashboard.v1.ColumnLayout.Column.getDefaultInstance()); + return getColumnsFieldBuilder().addBuilder( + index, com.google.monitoring.dashboard.v1.ColumnLayout.Column.getDefaultInstance()); } /** - * - * *
                * The columns of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.ColumnLayout.Column columns = 1; */ - public java.util.List - getColumnsBuilderList() { + public java.util.List + getColumnsBuilderList() { return getColumnsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.ColumnLayout.Column, - com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder, - com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder> + com.google.monitoring.dashboard.v1.ColumnLayout.Column, com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder, com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder> getColumnsFieldBuilder() { if (columnsBuilder_ == null) { - columnsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.ColumnLayout.Column, - com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder, - com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder>( - columns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.ColumnLayout.Column, com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder, com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder>( + columns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); columns_ = null; } return columnsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1999,12 +1818,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.ColumnLayout) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.ColumnLayout) private static final com.google.monitoring.dashboard.v1.ColumnLayout DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.ColumnLayout(); } @@ -2013,27 +1832,27 @@ public static com.google.monitoring.dashboard.v1.ColumnLayout getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColumnLayout 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColumnLayout 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; @@ -2048,4 +1867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.ColumnLayout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayoutOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayoutOrBuilder.java similarity index 66% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayoutOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayoutOrBuilder.java index 7f3de53c6d6b..a1d5222e3d78 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayoutOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayoutOrBuilder.java @@ -1,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/layouts.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface ColumnLayoutOrBuilder - extends +public interface ColumnLayoutOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.ColumnLayout) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * The columns of content to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.ColumnLayout.Column columns = 1; */ - java.util.List getColumnsList(); + java.util.List + getColumnsList(); /** - * - * *
              * The columns of content to display.
              * 
          @@ -45,8 +26,6 @@ public interface ColumnLayoutOrBuilder */ com.google.monitoring.dashboard.v1.ColumnLayout.Column getColumns(int index); /** - * - * *
              * The columns of content to display.
              * 
          @@ -55,24 +34,21 @@ public interface ColumnLayoutOrBuilder */ int getColumnsCount(); /** - * - * *
              * The columns of content to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.ColumnLayout.Column columns = 1; */ - java.util.List + java.util.List getColumnsOrBuilderList(); /** - * - * *
              * The columns of content to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.ColumnLayout.Column columns = 1; */ - com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder getColumnsOrBuilder(int index); + com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder getColumnsOrBuilder( + int index); } diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CommonProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CommonProto.java new file mode 100644 index 000000000000..9ff79edebb5f --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CommonProto.java @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/common.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class CommonProto { + private CommonProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_Aggregation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n+google/monitoring/dashboard/v1/common." + + "proto\022\036google.monitoring.dashboard.v1\032\036g" + + "oogle/protobuf/duration.proto\032\032google/ty" + + "pe/interval.proto\"\301\007\n\013Aggregation\0223\n\020ali" + + "gnment_period\030\001 \001(\0132\031.google.protobuf.Du" + + "ration\022O\n\022per_series_aligner\030\002 \001(\01623.goo" + + "gle.monitoring.dashboard.v1.Aggregation." + + "Aligner\022Q\n\024cross_series_reducer\030\004 \001(\01623." + + "google.monitoring.dashboard.v1.Aggregati" + + "on.Reducer\022\027\n\017group_by_fields\030\005 \003(\t\"\213\003\n\007" + + "Aligner\022\016\n\nALIGN_NONE\020\000\022\017\n\013ALIGN_DELTA\020\001" + + "\022\016\n\nALIGN_RATE\020\002\022\025\n\021ALIGN_INTERPOLATE\020\003\022" + + "\024\n\020ALIGN_NEXT_OLDER\020\004\022\r\n\tALIGN_MIN\020\n\022\r\n\t" + + "ALIGN_MAX\020\013\022\016\n\nALIGN_MEAN\020\014\022\017\n\013ALIGN_COU" + + "NT\020\r\022\r\n\tALIGN_SUM\020\016\022\020\n\014ALIGN_STDDEV\020\017\022\024\n" + + "\020ALIGN_COUNT_TRUE\020\020\022\025\n\021ALIGN_COUNT_FALSE" + + "\020\030\022\027\n\023ALIGN_FRACTION_TRUE\020\021\022\027\n\023ALIGN_PER" + + "CENTILE_99\020\022\022\027\n\023ALIGN_PERCENTILE_95\020\023\022\027\n" + + "\023ALIGN_PERCENTILE_50\020\024\022\027\n\023ALIGN_PERCENTI" + + "LE_05\020\025\022\030\n\024ALIGN_PERCENT_CHANGE\020\027\"\261\002\n\007Re" + + "ducer\022\017\n\013REDUCE_NONE\020\000\022\017\n\013REDUCE_MEAN\020\001\022" + + "\016\n\nREDUCE_MIN\020\002\022\016\n\nREDUCE_MAX\020\003\022\016\n\nREDUC" + + "E_SUM\020\004\022\021\n\rREDUCE_STDDEV\020\005\022\020\n\014REDUCE_COU" + + "NT\020\006\022\025\n\021REDUCE_COUNT_TRUE\020\007\022\026\n\022REDUCE_CO" + + "UNT_FALSE\020\017\022\030\n\024REDUCE_FRACTION_TRUE\020\010\022\030\n" + + "\024REDUCE_PERCENTILE_99\020\t\022\030\n\024REDUCE_PERCEN" + + "TILE_95\020\n\022\030\n\024REDUCE_PERCENTILE_50\020\013\022\030\n\024R" + + "EDUCE_PERCENTILE_05\020\014\"\263\003\n\024PickTimeSeries" + + "Filter\022S\n\016ranking_method\030\001 \001(\0162;.google." + + "monitoring.dashboard.v1.PickTimeSeriesFi" + + "lter.Method\022\027\n\017num_time_series\030\002 \001(\005\022Q\n\t" + + "direction\030\003 \001(\0162>.google.monitoring.dash" + + "board.v1.PickTimeSeriesFilter.Direction\022" + + "\'\n\010interval\030\004 \001(\0132\025.google.type.Interval" + + "\"t\n\006Method\022\026\n\022METHOD_UNSPECIFIED\020\000\022\017\n\013ME" + + "THOD_MEAN\020\001\022\016\n\nMETHOD_MAX\020\002\022\016\n\nMETHOD_MI" + + "N\020\003\022\016\n\nMETHOD_SUM\020\004\022\021\n\rMETHOD_LATEST\020\005\";" + + "\n\tDirection\022\031\n\025DIRECTION_UNSPECIFIED\020\000\022\007" + + "\n\003TOP\020\001\022\n\n\006BOTTOM\020\002\"\320\001\n\033StatisticalTimeS" + + "eriesFilter\022Z\n\016ranking_method\030\001 \001(\0162B.go" + + "ogle.monitoring.dashboard.v1.Statistical" + + "TimeSeriesFilter.Method\022\027\n\017num_time_seri" + + "es\030\002 \001(\005\"<\n\006Method\022\026\n\022METHOD_UNSPECIFIED" + + "\020\000\022\032\n\026METHOD_CLUSTER_OUTLIER\020\001B\364\001\n\"com.g" + + "oogle.monitoring.dashboard.v1B\013CommonPro" + + "toP\001ZFcloud.google.com/go/monitoring/das" + + "hboard/apiv1/dashboardpb;dashboardpb\252\002$G" + + "oogle.Cloud.Monitoring.Dashboard.V1\312\002$Go" + + "ogle\\Cloud\\Monitoring\\Dashboard\\V1\352\002(Goo" + + "gle::Cloud::Monitoring::Dashboard::V1b\006p" + + "roto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + com.google.type.IntervalProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_Aggregation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor, + new java.lang.String[] { "AlignmentPeriod", "PerSeriesAligner", "CrossSeriesReducer", "GroupByFields", }); + internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor, + new java.lang.String[] { "RankingMethod", "NumTimeSeries", "Direction", "Interval", }); + internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor, + new java.lang.String[] { "RankingMethod", "NumTimeSeries", }); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.type.IntervalProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequest.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequest.java similarity index 66% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequest.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequest.java index d6f3d54d196b..5c3039675d4a 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequest.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto @@ -20,57 +5,50 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * The `CreateDashboard` request.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.CreateDashboardRequest} */ -public final class CreateDashboardRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateDashboardRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.CreateDashboardRequest) CreateDashboardRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateDashboardRequest.newBuilder() to construct. private CreateDashboardRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateDashboardRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateDashboardRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.CreateDashboardRequest.class, - com.google.monitoring.dashboard.v1.CreateDashboardRequest.Builder.class); + com.google.monitoring.dashboard.v1.CreateDashboardRequest.class, com.google.monitoring.dashboard.v1.CreateDashboardRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
              * Required. The project on which to execute the request. The format is:
              *
          @@ -79,8 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -89,15 +66,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
              * Required. The project on which to execute the request. The format is:
              *
          @@ -106,16 +82,17 @@ public java.lang.String getParent() {
              * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -126,16 +103,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DASHBOARD_FIELD_NUMBER = 2; private com.google.monitoring.dashboard.v1.Dashboard dashboard_; /** - * - * *
              * Required. The initial dashboard specification.
              * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dashboard field is set. */ @java.lang.Override @@ -143,54 +115,38 @@ public boolean hasDashboard() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
              * Required. The initial dashboard specification.
              * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The dashboard. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Dashboard getDashboard() { - return dashboard_ == null - ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() - : dashboard_; + return dashboard_ == null ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() : dashboard_; } /** - * - * *
              * Required. The initial dashboard specification.
              * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardOrBuilder() { - return dashboard_ == null - ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() - : dashboard_; + return dashboard_ == null ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() : dashboard_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
              * If set, validate the request and preview the review, but do not actually
              * save it.
              * 
          * * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -199,7 +155,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,7 +166,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -234,10 +190,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDashboard()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDashboard()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -247,20 +205,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.CreateDashboardRequest)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.CreateDashboardRequest other = - (com.google.monitoring.dashboard.v1.CreateDashboardRequest) obj; + com.google.monitoring.dashboard.v1.CreateDashboardRequest other = (com.google.monitoring.dashboard.v1.CreateDashboardRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasDashboard() != other.hasDashboard()) return false; if (hasDashboard()) { - if (!getDashboard().equals(other.getDashboard())) return false; + if (!getDashboard() + .equals(other.getDashboard())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -279,134 +239,127 @@ public int hashCode() { hash = (53 * hash) + getDashboard().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CreateDashboardRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.CreateDashboardRequest 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.CreateDashboardRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.dashboard.v1.CreateDashboardRequest prototype) { + public static Builder newBuilder(com.google.monitoring.dashboard.v1.CreateDashboardRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * The `CreateDashboard` request.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.CreateDashboardRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.CreateDashboardRequest) com.google.monitoring.dashboard.v1.CreateDashboardRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.CreateDashboardRequest.class, - com.google.monitoring.dashboard.v1.CreateDashboardRequest.Builder.class); + com.google.monitoring.dashboard.v1.CreateDashboardRequest.class, com.google.monitoring.dashboard.v1.CreateDashboardRequest.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.CreateDashboardRequest.newBuilder() @@ -414,17 +367,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getDashboardFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +393,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor; } @java.lang.Override @@ -461,11 +414,8 @@ public com.google.monitoring.dashboard.v1.CreateDashboardRequest build() { @java.lang.Override public com.google.monitoring.dashboard.v1.CreateDashboardRequest buildPartial() { - com.google.monitoring.dashboard.v1.CreateDashboardRequest result = - new com.google.monitoring.dashboard.v1.CreateDashboardRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.dashboard.v1.CreateDashboardRequest result = new com.google.monitoring.dashboard.v1.CreateDashboardRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -477,7 +427,9 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.CreateDashboardReq } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.dashboard_ = dashboardBuilder_ == null ? dashboard_ : dashboardBuilder_.build(); + result.dashboard_ = dashboardBuilder_ == null + ? dashboard_ + : dashboardBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -490,39 +442,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.CreateDashboardReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.CreateDashboardRequest) { - return mergeFrom((com.google.monitoring.dashboard.v1.CreateDashboardRequest) other); + return mergeFrom((com.google.monitoring.dashboard.v1.CreateDashboardRequest)other); } else { super.mergeFrom(other); return this; @@ -530,8 +481,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.CreateDashboardRequest other) { - if (other == com.google.monitoring.dashboard.v1.CreateDashboardRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.dashboard.v1.CreateDashboardRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -569,31 +519,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getDashboardFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDashboardFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + 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) { @@ -603,13 +551,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
                * Required. The project on which to execute the request. The format is:
                *
          @@ -618,14 +563,14 @@ public Builder mergeFrom(
                * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -634,8 +579,6 @@ public java.lang.String getParent() { } } /** - * - * *
                * Required. The project on which to execute the request. The format is:
                *
          @@ -644,15 +587,16 @@ public java.lang.String getParent() {
                * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -660,8 +604,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
                * Required. The project on which to execute the request. The format is:
                *
          @@ -670,23 +612,19 @@ public com.google.protobuf.ByteString getParentBytes() {
                * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                * Required. The project on which to execute the request. The format is:
                *
          @@ -695,8 +633,7 @@ public Builder setParent(java.lang.String value) {
                * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -706,8 +643,6 @@ public Builder clearParent() { return this; } /** - * - * *
                * Required. The project on which to execute the request. The format is:
                *
          @@ -716,15 +651,13 @@ public Builder clearParent() {
                * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -734,58 +667,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.monitoring.dashboard.v1.Dashboard dashboard_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, - com.google.monitoring.dashboard.v1.Dashboard.Builder, - com.google.monitoring.dashboard.v1.DashboardOrBuilder> - dashboardBuilder_; + com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder> dashboardBuilder_; /** - * - * *
                * Required. The initial dashboard specification.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dashboard field is set. */ public boolean hasDashboard() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * Required. The initial dashboard specification.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The dashboard. */ public com.google.monitoring.dashboard.v1.Dashboard getDashboard() { if (dashboardBuilder_ == null) { - return dashboard_ == null - ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() - : dashboard_; + return dashboard_ == null ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() : dashboard_; } else { return dashboardBuilder_.getMessage(); } } /** - * - * *
                * Required. The initial dashboard specification.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDashboard(com.google.monitoring.dashboard.v1.Dashboard value) { if (dashboardBuilder_ == null) { @@ -801,15 +715,11 @@ public Builder setDashboard(com.google.monitoring.dashboard.v1.Dashboard value) return this; } /** - * - * *
                * Required. The initial dashboard specification.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDashboard( com.google.monitoring.dashboard.v1.Dashboard.Builder builderForValue) { @@ -823,21 +733,17 @@ public Builder setDashboard( return this; } /** - * - * *
                * Required. The initial dashboard specification.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDashboard(com.google.monitoring.dashboard.v1.Dashboard value) { if (dashboardBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && dashboard_ != null - && dashboard_ != com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + dashboard_ != null && + dashboard_ != com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()) { getDashboardBuilder().mergeFrom(value); } else { dashboard_ = value; @@ -852,15 +758,11 @@ public Builder mergeDashboard(com.google.monitoring.dashboard.v1.Dashboard value return this; } /** - * - * *
                * Required. The initial dashboard specification.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDashboard() { bitField0_ = (bitField0_ & ~0x00000002); @@ -873,15 +775,11 @@ public Builder clearDashboard() { return this; } /** - * - * *
                * Required. The initial dashboard specification.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.dashboard.v1.Dashboard.Builder getDashboardBuilder() { bitField0_ |= 0x00000002; @@ -889,64 +787,49 @@ public com.google.monitoring.dashboard.v1.Dashboard.Builder getDashboardBuilder( return getDashboardFieldBuilder().getBuilder(); } /** - * - * *
                * Required. The initial dashboard specification.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardOrBuilder() { if (dashboardBuilder_ != null) { return dashboardBuilder_.getMessageOrBuilder(); } else { - return dashboard_ == null - ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() - : dashboard_; + return dashboard_ == null ? + com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() : dashboard_; } } /** - * - * *
                * Required. The initial dashboard specification.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, - com.google.monitoring.dashboard.v1.Dashboard.Builder, - com.google.monitoring.dashboard.v1.DashboardOrBuilder> + com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder> getDashboardFieldBuilder() { if (dashboardBuilder_ == null) { - dashboardBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, - com.google.monitoring.dashboard.v1.Dashboard.Builder, - com.google.monitoring.dashboard.v1.DashboardOrBuilder>( - getDashboard(), getParentForChildren(), isClean()); + dashboardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder>( + getDashboard(), + getParentForChildren(), + isClean()); dashboard_ = null; } return dashboardBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
                * If set, validate the request and preview the review, but do not actually
                * save it.
                * 
          * * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -954,15 +837,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
                * If set, validate the request and preview the review, but do not actually
                * save it.
                * 
          * * bool validate_only = 3; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -974,15 +854,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
                * If set, validate the request and preview the review, but do not actually
                * save it.
                * 
          * * bool validate_only = 3; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -991,9 +868,9 @@ public Builder clearValidateOnly() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1003,12 +880,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.CreateDashboardRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.CreateDashboardRequest) private static final com.google.monitoring.dashboard.v1.CreateDashboardRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.CreateDashboardRequest(); } @@ -1017,27 +894,27 @@ public static com.google.monitoring.dashboard.v1.CreateDashboardRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDashboardRequest 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDashboardRequest 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; @@ -1052,4 +929,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.CreateDashboardRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequestOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequestOrBuilder.java similarity index 60% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequestOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequestOrBuilder.java index ea81a6505a6c..cc724fce57d5 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface CreateDashboardRequestOrBuilder - extends +public interface CreateDashboardRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.CreateDashboardRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * Required. The project on which to execute the request. The format is:
              *
          @@ -35,14 +17,11 @@ public interface CreateDashboardRequestOrBuilder
              * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
              * Required. The project on which to execute the request. The format is:
              *
          @@ -51,63 +30,46 @@ public interface CreateDashboardRequestOrBuilder
              * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
              * Required. The initial dashboard specification.
              * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dashboard field is set. */ boolean hasDashboard(); /** - * - * *
              * Required. The initial dashboard specification.
              * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The dashboard. */ com.google.monitoring.dashboard.v1.Dashboard getDashboard(); /** - * - * *
              * Required. The initial dashboard specification.
              * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardOrBuilder(); /** - * - * *
              * If set, validate the request and preview the review, but do not actually
              * save it.
              * 
          * * bool validate_only = 3; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java similarity index 73% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java index 2b764b2e865a..61cb0a86b7e7 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboard.proto @@ -20,8 +5,6 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * A Google Stackdriver dashboard. Dashboards define the content and layout
            * of pages in the Stackdriver web application.
          @@ -29,16 +12,15 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.Dashboard}
            */
          -public final class Dashboard extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class Dashboard extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Dashboard)
               DashboardOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use Dashboard.newBuilder() to construct.
             private Dashboard(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
             private Dashboard() {
               name_ = "";
               displayName_ = "";
          @@ -48,13 +30,14 @@ private Dashboard() {
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new Dashboard();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.DashboardsProto
          -        .internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.DashboardsProto.internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor;
             }
           
             @SuppressWarnings({"rawtypes"})
          @@ -65,28 +48,23 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
                 case 12:
                   return internalGetLabels();
                 default:
          -        throw new RuntimeException("Invalid map field number: " + number);
          +        throw new RuntimeException(
          +            "Invalid map field number: " + number);
               }
             }
          -
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.DashboardsProto
          -        .internal_static_google_monitoring_dashboard_v1_Dashboard_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.DashboardsProto.internal_static_google_monitoring_dashboard_v1_Dashboard_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.Dashboard.class,
          -            com.google.monitoring.dashboard.v1.Dashboard.Builder.class);
          +            com.google.monitoring.dashboard.v1.Dashboard.class, com.google.monitoring.dashboard.v1.Dashboard.Builder.class);
             }
           
             private int layoutCase_ = 0;
          -
             @SuppressWarnings("serial")
             private java.lang.Object layout_;
          -
             public enum LayoutCase
          -      implements
          -          com.google.protobuf.Internal.EnumLite,
          +      implements com.google.protobuf.Internal.EnumLite,
                     com.google.protobuf.AbstractMessage.InternalOneOfEnum {
               GRID_LAYOUT(5),
               MOSAIC_LAYOUT(6),
          @@ -94,7 +72,6 @@ public enum LayoutCase
               COLUMN_LAYOUT(9),
               LAYOUT_NOT_SET(0);
               private final int value;
          -
               private LayoutCase(int value) {
                 this.value = value;
               }
          @@ -110,43 +87,34 @@ public static LayoutCase valueOf(int value) {
           
               public static LayoutCase forNumber(int value) {
                 switch (value) {
          -        case 5:
          -          return GRID_LAYOUT;
          -        case 6:
          -          return MOSAIC_LAYOUT;
          -        case 8:
          -          return ROW_LAYOUT;
          -        case 9:
          -          return COLUMN_LAYOUT;
          -        case 0:
          -          return LAYOUT_NOT_SET;
          -        default:
          -          return null;
          +        case 5: return GRID_LAYOUT;
          +        case 6: return MOSAIC_LAYOUT;
          +        case 8: return ROW_LAYOUT;
          +        case 9: return COLUMN_LAYOUT;
          +        case 0: return LAYOUT_NOT_SET;
          +        default: return null;
                 }
               }
          -
               public int getNumber() {
                 return this.value;
               }
             };
           
          -  public LayoutCase getLayoutCase() {
          -    return LayoutCase.forNumber(layoutCase_);
          +  public LayoutCase
          +  getLayoutCase() {
          +    return LayoutCase.forNumber(
          +        layoutCase_);
             }
           
             public static final int NAME_FIELD_NUMBER = 1;
          -
             @SuppressWarnings("serial")
             private volatile java.lang.Object name_ = "";
             /**
          -   *
          -   *
              * 
          -   * Immutable. The resource name of the dashboard.
          +   * Identifier. The resource name of the dashboard.
              * 
          * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * @return The name. */ @java.lang.Override @@ -155,29 +123,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
          -   * Immutable. The resource name of the dashboard.
          +   * Identifier. The resource name of the dashboard.
              * 
          * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -186,18 +154,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
              * Required. The mutable, human-readable name.
              * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -206,29 +170,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
              * Required. The mutable, human-readable name.
              * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -237,12 +201,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int ETAG_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
              * `etag` is used for optimistic concurrency control as a way to help
              * prevent simultaneous updates of a policy from overwriting each other.
          @@ -254,7 +215,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
              * 
          * * string etag = 4; - * * @return The etag. */ @java.lang.Override @@ -263,15 +223,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
              * `etag` is used for optimistic concurrency control as a way to help
              * prevent simultaneous updates of a policy from overwriting each other.
          @@ -283,15 +242,16 @@ public java.lang.String getEtag() {
              * 
          * * string etag = 4; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -301,15 +261,12 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int GRID_LAYOUT_FIELD_NUMBER = 5; /** - * - * *
              * Content is arranged with a basic layout that re-flows a simple list of
              * informational elements like widgets or tiles.
              * 
          * * .google.monitoring.dashboard.v1.GridLayout grid_layout = 5; - * * @return Whether the gridLayout field is set. */ @java.lang.Override @@ -317,27 +274,22 @@ public boolean hasGridLayout() { return layoutCase_ == 5; } /** - * - * *
              * Content is arranged with a basic layout that re-flows a simple list of
              * informational elements like widgets or tiles.
              * 
          * * .google.monitoring.dashboard.v1.GridLayout grid_layout = 5; - * * @return The gridLayout. */ @java.lang.Override public com.google.monitoring.dashboard.v1.GridLayout getGridLayout() { if (layoutCase_ == 5) { - return (com.google.monitoring.dashboard.v1.GridLayout) layout_; + return (com.google.monitoring.dashboard.v1.GridLayout) layout_; } return com.google.monitoring.dashboard.v1.GridLayout.getDefaultInstance(); } /** - * - * *
              * Content is arranged with a basic layout that re-flows a simple list of
              * informational elements like widgets or tiles.
          @@ -348,22 +300,19 @@ public com.google.monitoring.dashboard.v1.GridLayout getGridLayout() {
             @java.lang.Override
             public com.google.monitoring.dashboard.v1.GridLayoutOrBuilder getGridLayoutOrBuilder() {
               if (layoutCase_ == 5) {
          -      return (com.google.monitoring.dashboard.v1.GridLayout) layout_;
          +       return (com.google.monitoring.dashboard.v1.GridLayout) layout_;
               }
               return com.google.monitoring.dashboard.v1.GridLayout.getDefaultInstance();
             }
           
             public static final int MOSAIC_LAYOUT_FIELD_NUMBER = 6;
             /**
          -   *
          -   *
              * 
              * The content is arranged as a grid of tiles, with each content widget
              * occupying one or more grid blocks.
              * 
          * * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; - * * @return Whether the mosaicLayout field is set. */ @java.lang.Override @@ -371,27 +320,22 @@ public boolean hasMosaicLayout() { return layoutCase_ == 6; } /** - * - * *
              * The content is arranged as a grid of tiles, with each content widget
              * occupying one or more grid blocks.
              * 
          * * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; - * * @return The mosaicLayout. */ @java.lang.Override public com.google.monitoring.dashboard.v1.MosaicLayout getMosaicLayout() { if (layoutCase_ == 6) { - return (com.google.monitoring.dashboard.v1.MosaicLayout) layout_; + return (com.google.monitoring.dashboard.v1.MosaicLayout) layout_; } return com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance(); } /** - * - * *
              * The content is arranged as a grid of tiles, with each content widget
              * occupying one or more grid blocks.
          @@ -402,22 +346,19 @@ public com.google.monitoring.dashboard.v1.MosaicLayout getMosaicLayout() {
             @java.lang.Override
             public com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder getMosaicLayoutOrBuilder() {
               if (layoutCase_ == 6) {
          -      return (com.google.monitoring.dashboard.v1.MosaicLayout) layout_;
          +       return (com.google.monitoring.dashboard.v1.MosaicLayout) layout_;
               }
               return com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance();
             }
           
             public static final int ROW_LAYOUT_FIELD_NUMBER = 8;
             /**
          -   *
          -   *
              * 
              * The content is divided into equally spaced rows and the widgets are
              * arranged horizontally.
              * 
          * * .google.monitoring.dashboard.v1.RowLayout row_layout = 8; - * * @return Whether the rowLayout field is set. */ @java.lang.Override @@ -425,27 +366,22 @@ public boolean hasRowLayout() { return layoutCase_ == 8; } /** - * - * *
              * The content is divided into equally spaced rows and the widgets are
              * arranged horizontally.
              * 
          * * .google.monitoring.dashboard.v1.RowLayout row_layout = 8; - * * @return The rowLayout. */ @java.lang.Override public com.google.monitoring.dashboard.v1.RowLayout getRowLayout() { if (layoutCase_ == 8) { - return (com.google.monitoring.dashboard.v1.RowLayout) layout_; + return (com.google.monitoring.dashboard.v1.RowLayout) layout_; } return com.google.monitoring.dashboard.v1.RowLayout.getDefaultInstance(); } /** - * - * *
              * The content is divided into equally spaced rows and the widgets are
              * arranged horizontally.
          @@ -456,22 +392,19 @@ public com.google.monitoring.dashboard.v1.RowLayout getRowLayout() {
             @java.lang.Override
             public com.google.monitoring.dashboard.v1.RowLayoutOrBuilder getRowLayoutOrBuilder() {
               if (layoutCase_ == 8) {
          -      return (com.google.monitoring.dashboard.v1.RowLayout) layout_;
          +       return (com.google.monitoring.dashboard.v1.RowLayout) layout_;
               }
               return com.google.monitoring.dashboard.v1.RowLayout.getDefaultInstance();
             }
           
             public static final int COLUMN_LAYOUT_FIELD_NUMBER = 9;
             /**
          -   *
          -   *
              * 
              * The content is divided into equally spaced columns and the widgets are
              * arranged vertically.
              * 
          * * .google.monitoring.dashboard.v1.ColumnLayout column_layout = 9; - * * @return Whether the columnLayout field is set. */ @java.lang.Override @@ -479,27 +412,22 @@ public boolean hasColumnLayout() { return layoutCase_ == 9; } /** - * - * *
              * The content is divided into equally spaced columns and the widgets are
              * arranged vertically.
              * 
          * * .google.monitoring.dashboard.v1.ColumnLayout column_layout = 9; - * * @return The columnLayout. */ @java.lang.Override public com.google.monitoring.dashboard.v1.ColumnLayout getColumnLayout() { if (layoutCase_ == 9) { - return (com.google.monitoring.dashboard.v1.ColumnLayout) layout_; + return (com.google.monitoring.dashboard.v1.ColumnLayout) layout_; } return com.google.monitoring.dashboard.v1.ColumnLayout.getDefaultInstance(); } /** - * - * *
              * The content is divided into equally spaced columns and the widgets are
              * arranged vertically.
          @@ -510,18 +438,15 @@ public com.google.monitoring.dashboard.v1.ColumnLayout getColumnLayout() {
             @java.lang.Override
             public com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder getColumnLayoutOrBuilder() {
               if (layoutCase_ == 9) {
          -      return (com.google.monitoring.dashboard.v1.ColumnLayout) layout_;
          +       return (com.google.monitoring.dashboard.v1.ColumnLayout) layout_;
               }
               return com.google.monitoring.dashboard.v1.ColumnLayout.getDefaultInstance();
             }
           
             public static final int DASHBOARD_FILTERS_FIELD_NUMBER = 11;
          -
             @SuppressWarnings("serial")
             private java.util.List dashboardFilters_;
             /**
          -   *
          -   *
              * 
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          @@ -529,13 +454,10 @@ public com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder getColumnLayoutO * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; */ @java.lang.Override - public java.util.List - getDashboardFiltersList() { + public java.util.List getDashboardFiltersList() { return dashboardFilters_; } /** - * - * *
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          @@ -543,13 +465,11 @@ public com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder getColumnLayoutO * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; */ @java.lang.Override - public java.util.List + public java.util.List getDashboardFiltersOrBuilderList() { return dashboardFilters_; } /** - * - * *
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          @@ -561,8 +481,6 @@ public int getDashboardFiltersCount() { return dashboardFilters_.size(); } /** - * - * *
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          @@ -574,8 +492,6 @@ public com.google.monitoring.dashboard.v1.DashboardFilter getDashboardFilters(in return dashboardFilters_.get(index); } /** - * - * *
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          @@ -589,34 +505,32 @@ public com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder getDashboardF } public static final int LABELS_FIELD_NUMBER = 12; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.monitoring.dashboard.v1.DashboardsProto - .internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.monitoring.dashboard.v1.DashboardsProto.internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
              * Labels applied to the dashboard
              * 
          @@ -624,21 +538,20 @@ public int getLabelsCount() { * map<string, string> labels = 12; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
              * Labels applied to the dashboard
              * 
          @@ -650,8 +563,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
              * Labels applied to the dashboard
              * 
          @@ -659,19 +570,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 12; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
              * Labels applied to the dashboard
              * 
          @@ -679,11 +588,11 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 12; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -691,7 +600,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -703,7 +611,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -728,8 +637,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < dashboardFilters_.size(); i++) { output.writeMessage(11, dashboardFilters_.get(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 12); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 12); getUnknownFields().writeTo(output); } @@ -749,38 +662,34 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); } if (layoutCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.monitoring.dashboard.v1.GridLayout) layout_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.monitoring.dashboard.v1.GridLayout) layout_); } if (layoutCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.monitoring.dashboard.v1.MosaicLayout) layout_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.monitoring.dashboard.v1.MosaicLayout) layout_); } if (layoutCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.monitoring.dashboard.v1.RowLayout) layout_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.monitoring.dashboard.v1.RowLayout) layout_); } if (layoutCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, (com.google.monitoring.dashboard.v1.ColumnLayout) layout_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.monitoring.dashboard.v1.ColumnLayout) layout_); } for (int i = 0; i < dashboardFilters_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(11, dashboardFilters_.get(i)); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, dashboardFilters_.get(i)); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, labels__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -790,32 +699,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.Dashboard)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.Dashboard other = - (com.google.monitoring.dashboard.v1.Dashboard) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!getDashboardFiltersList().equals(other.getDashboardFiltersList())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + com.google.monitoring.dashboard.v1.Dashboard other = (com.google.monitoring.dashboard.v1.Dashboard) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getDashboardFiltersList() + .equals(other.getDashboardFiltersList())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!getLayoutCase().equals(other.getLayoutCase())) return false; switch (layoutCase_) { case 5: - if (!getGridLayout().equals(other.getGridLayout())) return false; + if (!getGridLayout() + .equals(other.getGridLayout())) return false; break; case 6: - if (!getMosaicLayout().equals(other.getMosaicLayout())) return false; + if (!getMosaicLayout() + .equals(other.getMosaicLayout())) return false; break; case 8: - if (!getRowLayout().equals(other.getRowLayout())) return false; + if (!getRowLayout() + .equals(other.getRowLayout())) return false; break; case 9: - if (!getColumnLayout().equals(other.getColumnLayout())) return false; + if (!getColumnLayout() + .equals(other.getColumnLayout())) return false; break; case 0: default: @@ -870,104 +787,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.Dashboard parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.Dashboard parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.Dashboard parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Dashboard parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.Dashboard 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.Dashboard parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.Dashboard parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Dashboard parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.Dashboard parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Dashboard parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.Dashboard parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.Dashboard parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Dashboard parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.Dashboard parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.Dashboard prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * A Google Stackdriver dashboard. Dashboards define the content and layout
              * of pages in the Stackdriver web application.
          @@ -975,13 +887,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.Dashboard}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Dashboard)
                 com.google.monitoring.dashboard.v1.DashboardOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.DashboardsProto
          -          .internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.DashboardsProto.internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor;
               }
           
               @SuppressWarnings({"rawtypes"})
          @@ -991,10 +903,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
                   case 12:
                     return internalGetLabels();
                   default:
          -          throw new RuntimeException("Invalid map field number: " + number);
          +          throw new RuntimeException(
          +              "Invalid map field number: " + number);
                 }
               }
          -
               @SuppressWarnings({"rawtypes"})
               protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
                   int number) {
          @@ -1002,27 +914,28 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi
                   case 12:
                     return internalGetMutableLabels();
                   default:
          -          throw new RuntimeException("Invalid map field number: " + number);
          +          throw new RuntimeException(
          +              "Invalid map field number: " + number);
                 }
               }
          -
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.DashboardsProto
          -          .internal_static_google_monitoring_dashboard_v1_Dashboard_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.DashboardsProto.internal_static_google_monitoring_dashboard_v1_Dashboard_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.Dashboard.class,
          -              com.google.monitoring.dashboard.v1.Dashboard.Builder.class);
          +              com.google.monitoring.dashboard.v1.Dashboard.class, com.google.monitoring.dashboard.v1.Dashboard.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.Dashboard.newBuilder()
          -    private Builder() {}
          +    private Builder() {
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          -      super(parent);
               }
           
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +      super(parent);
          +
          +    }
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -1056,9 +969,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.DashboardsProto
          -          .internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.DashboardsProto.internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor;
               }
           
               @java.lang.Override
          @@ -1077,12 +990,9 @@ public com.google.monitoring.dashboard.v1.Dashboard build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.Dashboard buildPartial() {
          -      com.google.monitoring.dashboard.v1.Dashboard result =
          -          new com.google.monitoring.dashboard.v1.Dashboard(this);
          +      com.google.monitoring.dashboard.v1.Dashboard result = new com.google.monitoring.dashboard.v1.Dashboard(this);
                 buildPartialRepeatedFields(result);
          -      if (bitField0_ != 0) {
          -        buildPartial0(result);
          -      }
          +      if (bitField0_ != 0) { buildPartial0(result); }
                 buildPartialOneofs(result);
                 onBuilt();
                 return result;
          @@ -1120,16 +1030,20 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Dashboard result)
               private void buildPartialOneofs(com.google.monitoring.dashboard.v1.Dashboard result) {
                 result.layoutCase_ = layoutCase_;
                 result.layout_ = this.layout_;
          -      if (layoutCase_ == 5 && gridLayoutBuilder_ != null) {
          +      if (layoutCase_ == 5 &&
          +          gridLayoutBuilder_ != null) {
                   result.layout_ = gridLayoutBuilder_.build();
                 }
          -      if (layoutCase_ == 6 && mosaicLayoutBuilder_ != null) {
          +      if (layoutCase_ == 6 &&
          +          mosaicLayoutBuilder_ != null) {
                   result.layout_ = mosaicLayoutBuilder_.build();
                 }
          -      if (layoutCase_ == 8 && rowLayoutBuilder_ != null) {
          +      if (layoutCase_ == 8 &&
          +          rowLayoutBuilder_ != null) {
                   result.layout_ = rowLayoutBuilder_.build();
                 }
          -      if (layoutCase_ == 9 && columnLayoutBuilder_ != null) {
          +      if (layoutCase_ == 9 &&
          +          columnLayoutBuilder_ != null) {
                   result.layout_ = columnLayoutBuilder_.build();
                 }
               }
          @@ -1138,39 +1052,38 @@ private void buildPartialOneofs(com.google.monitoring.dashboard.v1.Dashboard res
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.Dashboard) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.Dashboard) other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.Dashboard)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1212,42 +1125,37 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.Dashboard other) {
                       dashboardFiltersBuilder_ = null;
                       dashboardFilters_ = other.dashboardFilters_;
                       bitField0_ = (bitField0_ & ~0x00000080);
          -            dashboardFiltersBuilder_ =
          -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          -                    ? getDashboardFiltersFieldBuilder()
          -                    : null;
          +            dashboardFiltersBuilder_ = 
          +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          +                 getDashboardFiltersFieldBuilder() : null;
                     } else {
                       dashboardFiltersBuilder_.addAllMessages(other.dashboardFilters_);
                     }
                   }
                 }
          -      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
          +      internalGetMutableLabels().mergeFrom(
          +          other.internalGetLabels());
                 bitField0_ |= 0x00000100;
                 switch (other.getLayoutCase()) {
          -        case GRID_LAYOUT:
          -          {
          -            mergeGridLayout(other.getGridLayout());
          -            break;
          -          }
          -        case MOSAIC_LAYOUT:
          -          {
          -            mergeMosaicLayout(other.getMosaicLayout());
          -            break;
          -          }
          -        case ROW_LAYOUT:
          -          {
          -            mergeRowLayout(other.getRowLayout());
          -            break;
          -          }
          -        case COLUMN_LAYOUT:
          -          {
          -            mergeColumnLayout(other.getColumnLayout());
          -            break;
          -          }
          -        case LAYOUT_NOT_SET:
          -          {
          -            break;
          -          }
          +        case GRID_LAYOUT: {
          +          mergeGridLayout(other.getGridLayout());
          +          break;
          +        }
          +        case MOSAIC_LAYOUT: {
          +          mergeMosaicLayout(other.getMosaicLayout());
          +          break;
          +        }
          +        case ROW_LAYOUT: {
          +          mergeRowLayout(other.getRowLayout());
          +          break;
          +        }
          +        case COLUMN_LAYOUT: {
          +          mergeColumnLayout(other.getColumnLayout());
          +          break;
          +        }
          +        case LAYOUT_NOT_SET: {
          +          break;
          +        }
                 }
                 this.mergeUnknownFields(other.getUnknownFields());
                 onChanged();
          @@ -1275,81 +1183,77 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10:
          -              {
          -                name_ = input.readStringRequireUtf8();
          -                bitField0_ |= 0x00000001;
          -                break;
          -              } // case 10
          -            case 18:
          -              {
          -                displayName_ = input.readStringRequireUtf8();
          -                bitField0_ |= 0x00000002;
          -                break;
          -              } // case 18
          -            case 34:
          -              {
          -                etag_ = input.readStringRequireUtf8();
          -                bitField0_ |= 0x00000004;
          -                break;
          -              } // case 34
          -            case 42:
          -              {
          -                input.readMessage(getGridLayoutFieldBuilder().getBuilder(), extensionRegistry);
          -                layoutCase_ = 5;
          -                break;
          -              } // case 42
          -            case 50:
          -              {
          -                input.readMessage(getMosaicLayoutFieldBuilder().getBuilder(), extensionRegistry);
          -                layoutCase_ = 6;
          -                break;
          -              } // case 50
          -            case 66:
          -              {
          -                input.readMessage(getRowLayoutFieldBuilder().getBuilder(), extensionRegistry);
          -                layoutCase_ = 8;
          -                break;
          -              } // case 66
          -            case 74:
          -              {
          -                input.readMessage(getColumnLayoutFieldBuilder().getBuilder(), extensionRegistry);
          -                layoutCase_ = 9;
          -                break;
          -              } // case 74
          -            case 90:
          -              {
          -                com.google.monitoring.dashboard.v1.DashboardFilter m =
          -                    input.readMessage(
          -                        com.google.monitoring.dashboard.v1.DashboardFilter.parser(),
          -                        extensionRegistry);
          -                if (dashboardFiltersBuilder_ == null) {
          -                  ensureDashboardFiltersIsMutable();
          -                  dashboardFilters_.add(m);
          -                } else {
          -                  dashboardFiltersBuilder_.addMessage(m);
          -                }
          -                break;
          -              } // case 90
          -            case 98:
          -              {
          -                com.google.protobuf.MapEntry labels__ =
          -                    input.readMessage(
          -                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
          -                        extensionRegistry);
          -                internalGetMutableLabels()
          -                    .getMutableMap()
          -                    .put(labels__.getKey(), labels__.getValue());
          -                bitField0_ |= 0x00000100;
          -                break;
          -              } // case 98
          -            default:
          -              {
          -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                  done = true; // was an endgroup tag
          -                }
          -                break;
          -              } // default:
          +            case 10: {
          +              name_ = input.readStringRequireUtf8();
          +              bitField0_ |= 0x00000001;
          +              break;
          +            } // case 10
          +            case 18: {
          +              displayName_ = input.readStringRequireUtf8();
          +              bitField0_ |= 0x00000002;
          +              break;
          +            } // case 18
          +            case 34: {
          +              etag_ = input.readStringRequireUtf8();
          +              bitField0_ |= 0x00000004;
          +              break;
          +            } // case 34
          +            case 42: {
          +              input.readMessage(
          +                  getGridLayoutFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              layoutCase_ = 5;
          +              break;
          +            } // case 42
          +            case 50: {
          +              input.readMessage(
          +                  getMosaicLayoutFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              layoutCase_ = 6;
          +              break;
          +            } // case 50
          +            case 66: {
          +              input.readMessage(
          +                  getRowLayoutFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              layoutCase_ = 8;
          +              break;
          +            } // case 66
          +            case 74: {
          +              input.readMessage(
          +                  getColumnLayoutFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              layoutCase_ = 9;
          +              break;
          +            } // case 74
          +            case 90: {
          +              com.google.monitoring.dashboard.v1.DashboardFilter m =
          +                  input.readMessage(
          +                      com.google.monitoring.dashboard.v1.DashboardFilter.parser(),
          +                      extensionRegistry);
          +              if (dashboardFiltersBuilder_ == null) {
          +                ensureDashboardFiltersIsMutable();
          +                dashboardFilters_.add(m);
          +              } else {
          +                dashboardFiltersBuilder_.addMessage(m);
          +              }
          +              break;
          +            } // case 90
          +            case 98: {
          +              com.google.protobuf.MapEntry
          +              labels__ = input.readMessage(
          +                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
          +              internalGetMutableLabels().getMutableMap().put(
          +                  labels__.getKey(), labels__.getValue());
          +              bitField0_ |= 0x00000100;
          +              break;
          +            } // case 98
          +            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) {
          @@ -1359,12 +1263,12 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          -
               private int layoutCase_ = 0;
               private java.lang.Object layout_;
          -
          -    public LayoutCase getLayoutCase() {
          -      return LayoutCase.forNumber(layoutCase_);
          +    public LayoutCase
          +        getLayoutCase() {
          +      return LayoutCase.forNumber(
          +          layoutCase_);
               }
           
               public Builder clearLayout() {
          @@ -1378,20 +1282,18 @@ public Builder clearLayout() {
           
               private java.lang.Object name_ = "";
               /**
          -     *
          -     *
                * 
          -     * Immutable. The resource name of the dashboard.
          +     * Identifier. The resource name of the dashboard.
                * 
          * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1400,21 +1302,20 @@ public java.lang.String getName() { } } /** - * - * *
          -     * Immutable. The resource name of the dashboard.
          +     * Identifier. The resource name of the dashboard.
                * 
          * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1422,35 +1323,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
          -     * Immutable. The resource name of the dashboard.
          +     * Identifier. The resource name of the dashboard.
                * 
          * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          -     * Immutable. The resource name of the dashboard.
          +     * Identifier. The resource name of the dashboard.
                * 
          * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * @return This builder for chaining. */ public Builder clearName() { @@ -1460,21 +1354,17 @@ public Builder clearName() { return this; } /** - * - * *
          -     * Immutable. The resource name of the dashboard.
          +     * Identifier. The resource name of the dashboard.
                * 
          * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1484,20 +1374,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
                * Required. The mutable, human-readable name.
                * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1506,21 +1394,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
                * Required. The mutable, human-readable name.
                * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1528,35 +1415,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
                * Required. The mutable, human-readable name.
                * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                * Required. The mutable, human-readable name.
                * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1566,21 +1446,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
                * Required. The mutable, human-readable name.
                * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1590,8 +1466,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
                * `etag` is used for optimistic concurrency control as a way to help
                * prevent simultaneous updates of a policy from overwriting each other.
          @@ -1603,13 +1477,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
                * 
          * * string etag = 4; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -1618,8 +1492,6 @@ public java.lang.String getEtag() { } } /** - * - * *
                * `etag` is used for optimistic concurrency control as a way to help
                * prevent simultaneous updates of a policy from overwriting each other.
          @@ -1631,14 +1503,15 @@ public java.lang.String getEtag() {
                * 
          * * string etag = 4; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -1646,8 +1519,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
                * `etag` is used for optimistic concurrency control as a way to help
                * prevent simultaneous updates of a policy from overwriting each other.
          @@ -1659,22 +1530,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
                * 
          * * string etag = 4; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                * `etag` is used for optimistic concurrency control as a way to help
                * prevent simultaneous updates of a policy from overwriting each other.
          @@ -1686,7 +1553,6 @@ public Builder setEtag(java.lang.String value) {
                * 
          * * string etag = 4; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1696,8 +1562,6 @@ public Builder clearEtag() { return this; } /** - * - * *
                * `etag` is used for optimistic concurrency control as a way to help
                * prevent simultaneous updates of a policy from overwriting each other.
          @@ -1709,14 +1573,12 @@ public Builder clearEtag() {
                * 
          * * string etag = 4; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -1725,20 +1587,14 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.GridLayout, - com.google.monitoring.dashboard.v1.GridLayout.Builder, - com.google.monitoring.dashboard.v1.GridLayoutOrBuilder> - gridLayoutBuilder_; + com.google.monitoring.dashboard.v1.GridLayout, com.google.monitoring.dashboard.v1.GridLayout.Builder, com.google.monitoring.dashboard.v1.GridLayoutOrBuilder> gridLayoutBuilder_; /** - * - * *
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
                * 
          * * .google.monitoring.dashboard.v1.GridLayout grid_layout = 5; - * * @return Whether the gridLayout field is set. */ @java.lang.Override @@ -1746,15 +1602,12 @@ public boolean hasGridLayout() { return layoutCase_ == 5; } /** - * - * *
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
                * 
          * * .google.monitoring.dashboard.v1.GridLayout grid_layout = 5; - * * @return The gridLayout. */ @java.lang.Override @@ -1772,8 +1625,6 @@ public com.google.monitoring.dashboard.v1.GridLayout getGridLayout() { } } /** - * - * *
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
          @@ -1795,8 +1646,6 @@ public Builder setGridLayout(com.google.monitoring.dashboard.v1.GridLayout value
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
          @@ -1816,8 +1665,6 @@ public Builder setGridLayout(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
          @@ -1827,13 +1674,10 @@ public Builder setGridLayout(
                */
               public Builder mergeGridLayout(com.google.monitoring.dashboard.v1.GridLayout value) {
                 if (gridLayoutBuilder_ == null) {
          -        if (layoutCase_ == 5
          -            && layout_ != com.google.monitoring.dashboard.v1.GridLayout.getDefaultInstance()) {
          -          layout_ =
          -              com.google.monitoring.dashboard.v1.GridLayout.newBuilder(
          -                      (com.google.monitoring.dashboard.v1.GridLayout) layout_)
          -                  .mergeFrom(value)
          -                  .buildPartial();
          +        if (layoutCase_ == 5 &&
          +            layout_ != com.google.monitoring.dashboard.v1.GridLayout.getDefaultInstance()) {
          +          layout_ = com.google.monitoring.dashboard.v1.GridLayout.newBuilder((com.google.monitoring.dashboard.v1.GridLayout) layout_)
          +              .mergeFrom(value).buildPartial();
                   } else {
                     layout_ = value;
                   }
          @@ -1849,8 +1693,6 @@ public Builder mergeGridLayout(com.google.monitoring.dashboard.v1.GridLayout val
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
          @@ -1875,8 +1717,6 @@ public Builder clearGridLayout() {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
          @@ -1888,8 +1728,6 @@ public com.google.monitoring.dashboard.v1.GridLayout.Builder getGridLayoutBuilde
                 return getGridLayoutFieldBuilder().getBuilder();
               }
               /**
          -     *
          -     *
                * 
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
          @@ -1909,8 +1747,6 @@ public com.google.monitoring.dashboard.v1.GridLayoutOrBuilder getGridLayoutOrBui
                 }
               }
               /**
          -     *
          -     *
                * 
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
          @@ -1919,19 +1755,14 @@ public com.google.monitoring.dashboard.v1.GridLayoutOrBuilder getGridLayoutOrBui
                * .google.monitoring.dashboard.v1.GridLayout grid_layout = 5;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.GridLayout,
          -            com.google.monitoring.dashboard.v1.GridLayout.Builder,
          -            com.google.monitoring.dashboard.v1.GridLayoutOrBuilder>
          +        com.google.monitoring.dashboard.v1.GridLayout, com.google.monitoring.dashboard.v1.GridLayout.Builder, com.google.monitoring.dashboard.v1.GridLayoutOrBuilder> 
                   getGridLayoutFieldBuilder() {
                 if (gridLayoutBuilder_ == null) {
                   if (!(layoutCase_ == 5)) {
                     layout_ = com.google.monitoring.dashboard.v1.GridLayout.getDefaultInstance();
                   }
          -        gridLayoutBuilder_ =
          -            new com.google.protobuf.SingleFieldBuilderV3<
          -                com.google.monitoring.dashboard.v1.GridLayout,
          -                com.google.monitoring.dashboard.v1.GridLayout.Builder,
          -                com.google.monitoring.dashboard.v1.GridLayoutOrBuilder>(
          +        gridLayoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          +            com.google.monitoring.dashboard.v1.GridLayout, com.google.monitoring.dashboard.v1.GridLayout.Builder, com.google.monitoring.dashboard.v1.GridLayoutOrBuilder>(
                           (com.google.monitoring.dashboard.v1.GridLayout) layout_,
                           getParentForChildren(),
                           isClean());
          @@ -1943,20 +1774,14 @@ public com.google.monitoring.dashboard.v1.GridLayoutOrBuilder getGridLayoutOrBui
               }
           
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.MosaicLayout,
          -            com.google.monitoring.dashboard.v1.MosaicLayout.Builder,
          -            com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder>
          -        mosaicLayoutBuilder_;
          +        com.google.monitoring.dashboard.v1.MosaicLayout, com.google.monitoring.dashboard.v1.MosaicLayout.Builder, com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder> mosaicLayoutBuilder_;
               /**
          -     *
          -     *
                * 
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
                * 
          * * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; - * * @return Whether the mosaicLayout field is set. */ @java.lang.Override @@ -1964,15 +1789,12 @@ public boolean hasMosaicLayout() { return layoutCase_ == 6; } /** - * - * *
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
                * 
          * * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; - * * @return The mosaicLayout. */ @java.lang.Override @@ -1990,8 +1812,6 @@ public com.google.monitoring.dashboard.v1.MosaicLayout getMosaicLayout() { } } /** - * - * *
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
          @@ -2013,8 +1833,6 @@ public Builder setMosaicLayout(com.google.monitoring.dashboard.v1.MosaicLayout v
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
          @@ -2034,8 +1852,6 @@ public Builder setMosaicLayout(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
          @@ -2045,13 +1861,10 @@ public Builder setMosaicLayout(
                */
               public Builder mergeMosaicLayout(com.google.monitoring.dashboard.v1.MosaicLayout value) {
                 if (mosaicLayoutBuilder_ == null) {
          -        if (layoutCase_ == 6
          -            && layout_ != com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance()) {
          -          layout_ =
          -              com.google.monitoring.dashboard.v1.MosaicLayout.newBuilder(
          -                      (com.google.monitoring.dashboard.v1.MosaicLayout) layout_)
          -                  .mergeFrom(value)
          -                  .buildPartial();
          +        if (layoutCase_ == 6 &&
          +            layout_ != com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance()) {
          +          layout_ = com.google.monitoring.dashboard.v1.MosaicLayout.newBuilder((com.google.monitoring.dashboard.v1.MosaicLayout) layout_)
          +              .mergeFrom(value).buildPartial();
                   } else {
                     layout_ = value;
                   }
          @@ -2067,8 +1880,6 @@ public Builder mergeMosaicLayout(com.google.monitoring.dashboard.v1.MosaicLayout
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
          @@ -2093,8 +1904,6 @@ public Builder clearMosaicLayout() {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
          @@ -2106,8 +1915,6 @@ public com.google.monitoring.dashboard.v1.MosaicLayout.Builder getMosaicLayoutBu
                 return getMosaicLayoutFieldBuilder().getBuilder();
               }
               /**
          -     *
          -     *
                * 
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
          @@ -2127,8 +1934,6 @@ public com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder getMosaicLayoutO
                 }
               }
               /**
          -     *
          -     *
                * 
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
          @@ -2137,19 +1942,14 @@ public com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder getMosaicLayoutO
                * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.MosaicLayout,
          -            com.google.monitoring.dashboard.v1.MosaicLayout.Builder,
          -            com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder>
          +        com.google.monitoring.dashboard.v1.MosaicLayout, com.google.monitoring.dashboard.v1.MosaicLayout.Builder, com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder> 
                   getMosaicLayoutFieldBuilder() {
                 if (mosaicLayoutBuilder_ == null) {
                   if (!(layoutCase_ == 6)) {
                     layout_ = com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance();
                   }
          -        mosaicLayoutBuilder_ =
          -            new com.google.protobuf.SingleFieldBuilderV3<
          -                com.google.monitoring.dashboard.v1.MosaicLayout,
          -                com.google.monitoring.dashboard.v1.MosaicLayout.Builder,
          -                com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder>(
          +        mosaicLayoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          +            com.google.monitoring.dashboard.v1.MosaicLayout, com.google.monitoring.dashboard.v1.MosaicLayout.Builder, com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder>(
                           (com.google.monitoring.dashboard.v1.MosaicLayout) layout_,
                           getParentForChildren(),
                           isClean());
          @@ -2161,20 +1961,14 @@ public com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder getMosaicLayoutO
               }
           
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.RowLayout,
          -            com.google.monitoring.dashboard.v1.RowLayout.Builder,
          -            com.google.monitoring.dashboard.v1.RowLayoutOrBuilder>
          -        rowLayoutBuilder_;
          +        com.google.monitoring.dashboard.v1.RowLayout, com.google.monitoring.dashboard.v1.RowLayout.Builder, com.google.monitoring.dashboard.v1.RowLayoutOrBuilder> rowLayoutBuilder_;
               /**
          -     *
          -     *
                * 
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
                * 
          * * .google.monitoring.dashboard.v1.RowLayout row_layout = 8; - * * @return Whether the rowLayout field is set. */ @java.lang.Override @@ -2182,15 +1976,12 @@ public boolean hasRowLayout() { return layoutCase_ == 8; } /** - * - * *
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
                * 
          * * .google.monitoring.dashboard.v1.RowLayout row_layout = 8; - * * @return The rowLayout. */ @java.lang.Override @@ -2208,8 +1999,6 @@ public com.google.monitoring.dashboard.v1.RowLayout getRowLayout() { } } /** - * - * *
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
          @@ -2231,8 +2020,6 @@ public Builder setRowLayout(com.google.monitoring.dashboard.v1.RowLayout value)
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
          @@ -2252,8 +2039,6 @@ public Builder setRowLayout(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
          @@ -2263,13 +2048,10 @@ public Builder setRowLayout(
                */
               public Builder mergeRowLayout(com.google.monitoring.dashboard.v1.RowLayout value) {
                 if (rowLayoutBuilder_ == null) {
          -        if (layoutCase_ == 8
          -            && layout_ != com.google.monitoring.dashboard.v1.RowLayout.getDefaultInstance()) {
          -          layout_ =
          -              com.google.monitoring.dashboard.v1.RowLayout.newBuilder(
          -                      (com.google.monitoring.dashboard.v1.RowLayout) layout_)
          -                  .mergeFrom(value)
          -                  .buildPartial();
          +        if (layoutCase_ == 8 &&
          +            layout_ != com.google.monitoring.dashboard.v1.RowLayout.getDefaultInstance()) {
          +          layout_ = com.google.monitoring.dashboard.v1.RowLayout.newBuilder((com.google.monitoring.dashboard.v1.RowLayout) layout_)
          +              .mergeFrom(value).buildPartial();
                   } else {
                     layout_ = value;
                   }
          @@ -2285,8 +2067,6 @@ public Builder mergeRowLayout(com.google.monitoring.dashboard.v1.RowLayout value
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
          @@ -2311,8 +2091,6 @@ public Builder clearRowLayout() {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
          @@ -2324,8 +2102,6 @@ public com.google.monitoring.dashboard.v1.RowLayout.Builder getRowLayoutBuilder(
                 return getRowLayoutFieldBuilder().getBuilder();
               }
               /**
          -     *
          -     *
                * 
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
          @@ -2345,8 +2121,6 @@ public com.google.monitoring.dashboard.v1.RowLayoutOrBuilder getRowLayoutOrBuild
                 }
               }
               /**
          -     *
          -     *
                * 
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
          @@ -2355,19 +2129,14 @@ public com.google.monitoring.dashboard.v1.RowLayoutOrBuilder getRowLayoutOrBuild
                * .google.monitoring.dashboard.v1.RowLayout row_layout = 8;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.RowLayout,
          -            com.google.monitoring.dashboard.v1.RowLayout.Builder,
          -            com.google.monitoring.dashboard.v1.RowLayoutOrBuilder>
          +        com.google.monitoring.dashboard.v1.RowLayout, com.google.monitoring.dashboard.v1.RowLayout.Builder, com.google.monitoring.dashboard.v1.RowLayoutOrBuilder> 
                   getRowLayoutFieldBuilder() {
                 if (rowLayoutBuilder_ == null) {
                   if (!(layoutCase_ == 8)) {
                     layout_ = com.google.monitoring.dashboard.v1.RowLayout.getDefaultInstance();
                   }
          -        rowLayoutBuilder_ =
          -            new com.google.protobuf.SingleFieldBuilderV3<
          -                com.google.monitoring.dashboard.v1.RowLayout,
          -                com.google.monitoring.dashboard.v1.RowLayout.Builder,
          -                com.google.monitoring.dashboard.v1.RowLayoutOrBuilder>(
          +        rowLayoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          +            com.google.monitoring.dashboard.v1.RowLayout, com.google.monitoring.dashboard.v1.RowLayout.Builder, com.google.monitoring.dashboard.v1.RowLayoutOrBuilder>(
                           (com.google.monitoring.dashboard.v1.RowLayout) layout_,
                           getParentForChildren(),
                           isClean());
          @@ -2379,20 +2148,14 @@ public com.google.monitoring.dashboard.v1.RowLayoutOrBuilder getRowLayoutOrBuild
               }
           
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.ColumnLayout,
          -            com.google.monitoring.dashboard.v1.ColumnLayout.Builder,
          -            com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder>
          -        columnLayoutBuilder_;
          +        com.google.monitoring.dashboard.v1.ColumnLayout, com.google.monitoring.dashboard.v1.ColumnLayout.Builder, com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder> columnLayoutBuilder_;
               /**
          -     *
          -     *
                * 
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
                * 
          * * .google.monitoring.dashboard.v1.ColumnLayout column_layout = 9; - * * @return Whether the columnLayout field is set. */ @java.lang.Override @@ -2400,15 +2163,12 @@ public boolean hasColumnLayout() { return layoutCase_ == 9; } /** - * - * *
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
                * 
          * * .google.monitoring.dashboard.v1.ColumnLayout column_layout = 9; - * * @return The columnLayout. */ @java.lang.Override @@ -2426,8 +2186,6 @@ public com.google.monitoring.dashboard.v1.ColumnLayout getColumnLayout() { } } /** - * - * *
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
          @@ -2449,8 +2207,6 @@ public Builder setColumnLayout(com.google.monitoring.dashboard.v1.ColumnLayout v
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
          @@ -2470,8 +2226,6 @@ public Builder setColumnLayout(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
          @@ -2481,13 +2235,10 @@ public Builder setColumnLayout(
                */
               public Builder mergeColumnLayout(com.google.monitoring.dashboard.v1.ColumnLayout value) {
                 if (columnLayoutBuilder_ == null) {
          -        if (layoutCase_ == 9
          -            && layout_ != com.google.monitoring.dashboard.v1.ColumnLayout.getDefaultInstance()) {
          -          layout_ =
          -              com.google.monitoring.dashboard.v1.ColumnLayout.newBuilder(
          -                      (com.google.monitoring.dashboard.v1.ColumnLayout) layout_)
          -                  .mergeFrom(value)
          -                  .buildPartial();
          +        if (layoutCase_ == 9 &&
          +            layout_ != com.google.monitoring.dashboard.v1.ColumnLayout.getDefaultInstance()) {
          +          layout_ = com.google.monitoring.dashboard.v1.ColumnLayout.newBuilder((com.google.monitoring.dashboard.v1.ColumnLayout) layout_)
          +              .mergeFrom(value).buildPartial();
                   } else {
                     layout_ = value;
                   }
          @@ -2503,8 +2254,6 @@ public Builder mergeColumnLayout(com.google.monitoring.dashboard.v1.ColumnLayout
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
          @@ -2529,8 +2278,6 @@ public Builder clearColumnLayout() {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
          @@ -2542,8 +2289,6 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.Builder getColumnLayoutBu
                 return getColumnLayoutFieldBuilder().getBuilder();
               }
               /**
          -     *
          -     *
                * 
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
          @@ -2563,8 +2308,6 @@ public com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder getColumnLayoutO
                 }
               }
               /**
          -     *
          -     *
                * 
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
          @@ -2573,19 +2316,14 @@ public com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder getColumnLayoutO
                * .google.monitoring.dashboard.v1.ColumnLayout column_layout = 9;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.ColumnLayout,
          -            com.google.monitoring.dashboard.v1.ColumnLayout.Builder,
          -            com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder>
          +        com.google.monitoring.dashboard.v1.ColumnLayout, com.google.monitoring.dashboard.v1.ColumnLayout.Builder, com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder> 
                   getColumnLayoutFieldBuilder() {
                 if (columnLayoutBuilder_ == null) {
                   if (!(layoutCase_ == 9)) {
                     layout_ = com.google.monitoring.dashboard.v1.ColumnLayout.getDefaultInstance();
                   }
          -        columnLayoutBuilder_ =
          -            new com.google.protobuf.SingleFieldBuilderV3<
          -                com.google.monitoring.dashboard.v1.ColumnLayout,
          -                com.google.monitoring.dashboard.v1.ColumnLayout.Builder,
          -                com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder>(
          +        columnLayoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          +            com.google.monitoring.dashboard.v1.ColumnLayout, com.google.monitoring.dashboard.v1.ColumnLayout.Builder, com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder>(
                           (com.google.monitoring.dashboard.v1.ColumnLayout) layout_,
                           getParentForChildren(),
                           isClean());
          @@ -2597,34 +2335,25 @@ public com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder getColumnLayoutO
               }
           
               private java.util.List dashboardFilters_ =
          -        java.util.Collections.emptyList();
          -
          +      java.util.Collections.emptyList();
               private void ensureDashboardFiltersIsMutable() {
                 if (!((bitField0_ & 0x00000080) != 0)) {
          -        dashboardFilters_ =
          -            new java.util.ArrayList(
          -                dashboardFilters_);
          +        dashboardFilters_ = new java.util.ArrayList(dashboardFilters_);
                   bitField0_ |= 0x00000080;
          -      }
          +       }
               }
           
               private com.google.protobuf.RepeatedFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.DashboardFilter,
          -            com.google.monitoring.dashboard.v1.DashboardFilter.Builder,
          -            com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder>
          -        dashboardFiltersBuilder_;
          +        com.google.monitoring.dashboard.v1.DashboardFilter, com.google.monitoring.dashboard.v1.DashboardFilter.Builder, com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder> dashboardFiltersBuilder_;
           
               /**
          -     *
          -     *
                * 
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          * * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; */ - public java.util.List - getDashboardFiltersList() { + public java.util.List getDashboardFiltersList() { if (dashboardFiltersBuilder_ == null) { return java.util.Collections.unmodifiableList(dashboardFilters_); } else { @@ -2632,8 +2361,6 @@ private void ensureDashboardFiltersIsMutable() { } } /** - * - * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2648,8 +2375,6 @@ public int getDashboardFiltersCount() { } } /** - * - * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2664,8 +2389,6 @@ public com.google.monitoring.dashboard.v1.DashboardFilter getDashboardFilters(in } } /** - * - * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2687,8 +2410,6 @@ public Builder setDashboardFilters( return this; } /** - * - * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2707,8 +2428,6 @@ public Builder setDashboardFilters( return this; } /** - * - * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2729,8 +2448,6 @@ public Builder addDashboardFilters(com.google.monitoring.dashboard.v1.DashboardF return this; } /** - * - * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2752,8 +2469,6 @@ public Builder addDashboardFilters( return this; } /** - * - * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2772,8 +2487,6 @@ public Builder addDashboardFilters( return this; } /** - * - * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2792,8 +2505,6 @@ public Builder addDashboardFilters( return this; } /** - * - * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2804,7 +2515,8 @@ public Builder addAllDashboardFilters( java.lang.Iterable values) { if (dashboardFiltersBuilder_ == null) { ensureDashboardFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dashboardFilters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dashboardFilters_); onChanged(); } else { dashboardFiltersBuilder_.addAllMessages(values); @@ -2812,8 +2524,6 @@ public Builder addAllDashboardFilters( return this; } /** - * - * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2831,8 +2541,6 @@ public Builder clearDashboardFilters() { return this; } /** - * - * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2850,8 +2558,6 @@ public Builder removeDashboardFilters(int index) { return this; } /** - * - * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2863,8 +2569,6 @@ public com.google.monitoring.dashboard.v1.DashboardFilter.Builder getDashboardFi return getDashboardFiltersFieldBuilder().getBuilder(index); } /** - * - * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2874,22 +2578,19 @@ public com.google.monitoring.dashboard.v1.DashboardFilter.Builder getDashboardFi public com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder getDashboardFiltersOrBuilder( int index) { if (dashboardFiltersBuilder_ == null) { - return dashboardFilters_.get(index); - } else { + return dashboardFilters_.get(index); } else { return dashboardFiltersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          * * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; */ - public java.util.List - getDashboardFiltersOrBuilderList() { + public java.util.List + getDashboardFiltersOrBuilderList() { if (dashboardFiltersBuilder_ != null) { return dashboardFiltersBuilder_.getMessageOrBuilderList(); } else { @@ -2897,8 +2598,6 @@ public com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder getDashboardF } } /** - * - * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2906,12 +2605,10 @@ public com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder getDashboardF * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; */ public com.google.monitoring.dashboard.v1.DashboardFilter.Builder addDashboardFiltersBuilder() { - return getDashboardFiltersFieldBuilder() - .addBuilder(com.google.monitoring.dashboard.v1.DashboardFilter.getDefaultInstance()); + return getDashboardFiltersFieldBuilder().addBuilder( + com.google.monitoring.dashboard.v1.DashboardFilter.getDefaultInstance()); } /** - * - * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2920,35 +2617,26 @@ public com.google.monitoring.dashboard.v1.DashboardFilter.Builder addDashboardFi */ public com.google.monitoring.dashboard.v1.DashboardFilter.Builder addDashboardFiltersBuilder( int index) { - return getDashboardFiltersFieldBuilder() - .addBuilder( - index, com.google.monitoring.dashboard.v1.DashboardFilter.getDefaultInstance()); + return getDashboardFiltersFieldBuilder().addBuilder( + index, com.google.monitoring.dashboard.v1.DashboardFilter.getDefaultInstance()); } /** - * - * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          * * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; */ - public java.util.List - getDashboardFiltersBuilderList() { + public java.util.List + getDashboardFiltersBuilderList() { return getDashboardFiltersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.DashboardFilter, - com.google.monitoring.dashboard.v1.DashboardFilter.Builder, - com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder> + com.google.monitoring.dashboard.v1.DashboardFilter, com.google.monitoring.dashboard.v1.DashboardFilter.Builder, com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder> getDashboardFiltersFieldBuilder() { if (dashboardFiltersBuilder_ == null) { - dashboardFiltersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.DashboardFilter, - com.google.monitoring.dashboard.v1.DashboardFilter.Builder, - com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder>( + dashboardFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.DashboardFilter, com.google.monitoring.dashboard.v1.DashboardFilter.Builder, com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder>( dashboardFilters_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), @@ -2958,19 +2646,21 @@ public com.google.monitoring.dashboard.v1.DashboardFilter.Builder addDashboardFi return dashboardFiltersBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2979,13 +2669,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
                * Labels applied to the dashboard
                * 
          @@ -2993,21 +2680,20 @@ public int getLabelsCount() { * map<string, string> labels = 12; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
                * Labels applied to the dashboard
                * 
          @@ -3019,8 +2705,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
                * Labels applied to the dashboard
                * 
          @@ -3028,19 +2712,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 12; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
                * Labels applied to the dashboard
                * 
          @@ -3048,81 +2730,79 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 12; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000100); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
                * Labels applied to the dashboard
                * 
          * * map<string, string> labels = 12; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { bitField0_ |= 0x00000100; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
                * Labels applied to the dashboard
                * 
          * * map<string, string> labels = 12; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); bitField0_ |= 0x00000100; return this; } /** - * - * *
                * Labels applied to the dashboard
                * 
          * * map<string, string> labels = 12; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000100; return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3132,12 +2812,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.Dashboard) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Dashboard) private static final com.google.monitoring.dashboard.v1.Dashboard DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Dashboard(); } @@ -3146,27 +2826,27 @@ public static com.google.monitoring.dashboard.v1.Dashboard getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Dashboard 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Dashboard 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; @@ -3181,4 +2861,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.Dashboard getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java similarity index 71% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java index c99702810f0c..bd27fa784bb7 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboard_filter.proto @@ -20,24 +5,21 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * A filter to reduce the amount of data charted in relevant widgets.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.DashboardFilter} */ -public final class DashboardFilter extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DashboardFilter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.DashboardFilter) DashboardFilterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DashboardFilter.newBuilder() to construct. private DashboardFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DashboardFilter() { labelKey_ = ""; templateVariable_ = ""; @@ -46,38 +28,34 @@ private DashboardFilter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DashboardFilter(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardFilterProto - .internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardFilterProto.internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardFilterProto - .internal_static_google_monitoring_dashboard_v1_DashboardFilter_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardFilterProto.internal_static_google_monitoring_dashboard_v1_DashboardFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.DashboardFilter.class, - com.google.monitoring.dashboard.v1.DashboardFilter.Builder.class); + com.google.monitoring.dashboard.v1.DashboardFilter.class, com.google.monitoring.dashboard.v1.DashboardFilter.Builder.class); } /** - * - * *
              * The type for the dashboard filter
              * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.DashboardFilter.FilterType} */ - public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { + public enum FilterType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                * Filter type is unspecified. This is not valid in a well-formed request.
                * 
          @@ -86,8 +64,6 @@ public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { */ FILTER_TYPE_UNSPECIFIED(0), /** - * - * *
                * Filter on a resource label value
                * 
          @@ -96,8 +72,6 @@ public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { */ RESOURCE_LABEL(1), /** - * - * *
                * Filter on a metrics label value
                * 
          @@ -106,8 +80,6 @@ public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { */ METRIC_LABEL(2), /** - * - * *
                * Filter on a user metadata label value
                * 
          @@ -116,8 +88,6 @@ public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { */ USER_METADATA_LABEL(3), /** - * - * *
                * Filter on a system metadata label value
                * 
          @@ -126,8 +96,6 @@ public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { */ SYSTEM_METADATA_LABEL(4), /** - * - * *
                * Filter on a group id
                * 
          @@ -139,8 +107,6 @@ public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                * Filter type is unspecified. This is not valid in a well-formed request.
                * 
          @@ -149,8 +115,6 @@ public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FILTER_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
                * Filter on a resource label value
                * 
          @@ -159,8 +123,6 @@ public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESOURCE_LABEL_VALUE = 1; /** - * - * *
                * Filter on a metrics label value
                * 
          @@ -169,8 +131,6 @@ public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int METRIC_LABEL_VALUE = 2; /** - * - * *
                * Filter on a user metadata label value
                * 
          @@ -179,8 +139,6 @@ public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int USER_METADATA_LABEL_VALUE = 3; /** - * - * *
                * Filter on a system metadata label value
                * 
          @@ -189,8 +147,6 @@ public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SYSTEM_METADATA_LABEL_VALUE = 4; /** - * - * *
                * Filter on a group id
                * 
          @@ -199,6 +155,7 @@ public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GROUP_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -223,57 +180,52 @@ public static FilterType valueOf(int value) { */ public static FilterType forNumber(int value) { switch (value) { - case 0: - return FILTER_TYPE_UNSPECIFIED; - case 1: - return RESOURCE_LABEL; - case 2: - return METRIC_LABEL; - case 3: - return USER_METADATA_LABEL; - case 4: - return SYSTEM_METADATA_LABEL; - case 5: - return GROUP; - default: - return null; + case 0: return FILTER_TYPE_UNSPECIFIED; + case 1: return RESOURCE_LABEL; + case 2: return METRIC_LABEL; + case 3: return USER_METADATA_LABEL; + case 4: return SYSTEM_METADATA_LABEL; + case 5: return GROUP; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + FilterType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FilterType findValueByNumber(int number) { + return FilterType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FilterType findValueByNumber(int number) { - return FilterType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + 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.DashboardFilter.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardFilter.getDescriptor().getEnumTypes().get(0); } private static final FilterType[] VALUES = values(); - public static FilterType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static FilterType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -291,18 +243,14 @@ private FilterType(int value) { } private int defaultValueCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object defaultValue_; - public enum DefaultValueCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STRING_VALUE(4), DEFAULTVALUE_NOT_SET(0); private final int value; - private DefaultValueCase(int value) { this.value = value; } @@ -318,37 +266,31 @@ public static DefaultValueCase valueOf(int value) { public static DefaultValueCase forNumber(int value) { switch (value) { - case 4: - return STRING_VALUE; - case 0: - return DEFAULTVALUE_NOT_SET; - default: - return null; + case 4: return STRING_VALUE; + case 0: return DEFAULTVALUE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DefaultValueCase getDefaultValueCase() { - return DefaultValueCase.forNumber(defaultValueCase_); + public DefaultValueCase + getDefaultValueCase() { + return DefaultValueCase.forNumber( + defaultValueCase_); } public static final int LABEL_KEY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object labelKey_ = ""; /** - * - * *
              * Required. The key for the label
              * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The labelKey. */ @java.lang.Override @@ -357,29 +299,29 @@ public java.lang.String getLabelKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); labelKey_ = s; return s; } } /** - * - * *
              * Required. The key for the label
              * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for labelKey. */ @java.lang.Override - public com.google.protobuf.ByteString getLabelKeyBytes() { + public com.google.protobuf.ByteString + getLabelKeyBytes() { java.lang.Object ref = labelKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); labelKey_ = b; return b; } else { @@ -388,12 +330,9 @@ public com.google.protobuf.ByteString getLabelKeyBytes() { } public static final int TEMPLATE_VARIABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object templateVariable_ = ""; /** - * - * *
              * The placeholder text that can be referenced in a filter string or MQL
              * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -401,7 +340,6 @@ public com.google.protobuf.ByteString getLabelKeyBytes() {
              * 
          * * string template_variable = 3; - * * @return The templateVariable. */ @java.lang.Override @@ -410,15 +348,14 @@ public java.lang.String getTemplateVariable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); templateVariable_ = s; return s; } } /** - * - * *
              * The placeholder text that can be referenced in a filter string or MQL
              * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -426,15 +363,16 @@ public java.lang.String getTemplateVariable() {
              * 
          * * string template_variable = 3; - * * @return The bytes for templateVariable. */ @java.lang.Override - public com.google.protobuf.ByteString getTemplateVariableBytes() { + public com.google.protobuf.ByteString + getTemplateVariableBytes() { java.lang.Object ref = templateVariable_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); templateVariable_ = b; return b; } else { @@ -444,28 +382,22 @@ public com.google.protobuf.ByteString getTemplateVariableBytes() { public static final int STRING_VALUE_FIELD_NUMBER = 4; /** - * - * *
              * A variable-length string value.
              * 
          * * string string_value = 4; - * * @return Whether the stringValue field is set. */ public boolean hasStringValue() { return defaultValueCase_ == 4; } /** - * - * *
              * A variable-length string value.
              * 
          * * string string_value = 4; - * * @return The stringValue. */ public java.lang.String getStringValue() { @@ -476,7 +408,8 @@ public java.lang.String getStringValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (defaultValueCase_ == 4) { defaultValue_ = s; @@ -485,24 +418,23 @@ public java.lang.String getStringValue() { } } /** - * - * *
              * A variable-length string value.
              * 
          * * string string_value = 4; - * * @return The bytes for stringValue. */ - public com.google.protobuf.ByteString getStringValueBytes() { + public com.google.protobuf.ByteString + getStringValueBytes() { java.lang.Object ref = ""; if (defaultValueCase_ == 4) { ref = defaultValue_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (defaultValueCase_ == 4) { defaultValue_ = b; } @@ -515,42 +447,30 @@ public com.google.protobuf.ByteString getStringValueBytes() { public static final int FILTER_TYPE_FIELD_NUMBER = 5; private int filterType_ = 0; /** - * - * *
              * The specified filter type
              * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; - * * @return The enum numeric value on the wire for filterType. */ - @java.lang.Override - public int getFilterTypeValue() { + @java.lang.Override public int getFilterTypeValue() { return filterType_; } /** - * - * *
              * The specified filter type
              * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; - * * @return The filterType. */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.DashboardFilter.FilterType getFilterType() { - com.google.monitoring.dashboard.v1.DashboardFilter.FilterType result = - com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.forNumber(filterType_); - return result == null - ? com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.dashboard.v1.DashboardFilter.FilterType getFilterType() { + com.google.monitoring.dashboard.v1.DashboardFilter.FilterType result = com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.forNumber(filterType_); + return result == null ? com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -562,7 +482,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, labelKey_); } @@ -572,9 +493,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (defaultValueCase_ == 4) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, defaultValue_); } - if (filterType_ - != com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.FILTER_TYPE_UNSPECIFIED - .getNumber()) { + if (filterType_ != com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.FILTER_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(5, filterType_); } getUnknownFields().writeTo(output); @@ -595,10 +514,9 @@ public int getSerializedSize() { if (defaultValueCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, defaultValue_); } - if (filterType_ - != com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.FILTER_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, filterType_); + if (filterType_ != com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.FILTER_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, filterType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -608,21 +526,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.DashboardFilter)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.DashboardFilter other = - (com.google.monitoring.dashboard.v1.DashboardFilter) obj; + com.google.monitoring.dashboard.v1.DashboardFilter other = (com.google.monitoring.dashboard.v1.DashboardFilter) obj; - if (!getLabelKey().equals(other.getLabelKey())) return false; - if (!getTemplateVariable().equals(other.getTemplateVariable())) return false; + if (!getLabelKey() + .equals(other.getLabelKey())) return false; + if (!getTemplateVariable() + .equals(other.getTemplateVariable())) return false; if (filterType_ != other.filterType_) return false; if (!getDefaultValueCase().equals(other.getDefaultValueCase())) return false; switch (defaultValueCase_) { case 4: - if (!getStringValue().equals(other.getStringValue())) return false; + if (!getStringValue() + .equals(other.getStringValue())) return false; break; case 0: default: @@ -658,135 +578,131 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.DashboardFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.DashboardFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DashboardFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.DashboardFilter 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.DashboardFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.DashboardFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.DashboardFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.DashboardFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.DashboardFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.DashboardFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.DashboardFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.DashboardFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.DashboardFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.DashboardFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.DashboardFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * A filter to reduce the amount of data charted in relevant widgets.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.DashboardFilter} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.DashboardFilter) com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardFilterProto - .internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardFilterProto.internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardFilterProto - .internal_static_google_monitoring_dashboard_v1_DashboardFilter_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardFilterProto.internal_static_google_monitoring_dashboard_v1_DashboardFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.DashboardFilter.class, - com.google.monitoring.dashboard.v1.DashboardFilter.Builder.class); + com.google.monitoring.dashboard.v1.DashboardFilter.class, com.google.monitoring.dashboard.v1.DashboardFilter.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.DashboardFilter.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -800,9 +716,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.DashboardFilterProto - .internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.DashboardFilterProto.internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor; } @java.lang.Override @@ -821,11 +737,8 @@ public com.google.monitoring.dashboard.v1.DashboardFilter build() { @java.lang.Override public com.google.monitoring.dashboard.v1.DashboardFilter buildPartial() { - com.google.monitoring.dashboard.v1.DashboardFilter result = - new com.google.monitoring.dashboard.v1.DashboardFilter(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.dashboard.v1.DashboardFilter result = new com.google.monitoring.dashboard.v1.DashboardFilter(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -853,39 +766,38 @@ private void buildPartialOneofs(com.google.monitoring.dashboard.v1.DashboardFilt public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DashboardFilter) { - return mergeFrom((com.google.monitoring.dashboard.v1.DashboardFilter) other); + return mergeFrom((com.google.monitoring.dashboard.v1.DashboardFilter)other); } else { super.mergeFrom(other); return this; @@ -893,8 +805,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.DashboardFilter other) { - if (other == com.google.monitoring.dashboard.v1.DashboardFilter.getDefaultInstance()) - return this; + if (other == com.google.monitoring.dashboard.v1.DashboardFilter.getDefaultInstance()) return this; if (!other.getLabelKey().isEmpty()) { labelKey_ = other.labelKey_; bitField0_ |= 0x00000001; @@ -909,17 +820,15 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.DashboardFilter othe setFilterTypeValue(other.getFilterTypeValue()); } switch (other.getDefaultValueCase()) { - case STRING_VALUE: - { - defaultValueCase_ = 4; - defaultValue_ = other.defaultValue_; - onChanged(); - break; - } - case DEFAULTVALUE_NOT_SET: - { - break; - } + case STRING_VALUE: { + defaultValueCase_ = 4; + defaultValue_ = other.defaultValue_; + onChanged(); + break; + } + case DEFAULTVALUE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -947,38 +856,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - labelKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - templateVariable_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - defaultValueCase_ = 4; - defaultValue_ = s; - break; - } // case 34 - case 40: - { - filterType_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + labelKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + templateVariable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + defaultValueCase_ = 4; + defaultValue_ = s; + break; + } // case 34 + case 40: { + filterType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + 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) { @@ -988,12 +892,12 @@ public Builder mergeFrom( } // finally return this; } - private int defaultValueCase_ = 0; private java.lang.Object defaultValue_; - - public DefaultValueCase getDefaultValueCase() { - return DefaultValueCase.forNumber(defaultValueCase_); + public DefaultValueCase + getDefaultValueCase() { + return DefaultValueCase.forNumber( + defaultValueCase_); } public Builder clearDefaultValue() { @@ -1007,20 +911,18 @@ public Builder clearDefaultValue() { private java.lang.Object labelKey_ = ""; /** - * - * *
                * Required. The key for the label
                * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The labelKey. */ public java.lang.String getLabelKey() { java.lang.Object ref = labelKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); labelKey_ = s; return s; @@ -1029,21 +931,20 @@ public java.lang.String getLabelKey() { } } /** - * - * *
                * Required. The key for the label
                * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for labelKey. */ - public com.google.protobuf.ByteString getLabelKeyBytes() { + public com.google.protobuf.ByteString + getLabelKeyBytes() { java.lang.Object ref = labelKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); labelKey_ = b; return b; } else { @@ -1051,35 +952,28 @@ public com.google.protobuf.ByteString getLabelKeyBytes() { } } /** - * - * *
                * Required. The key for the label
                * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The labelKey to set. * @return This builder for chaining. */ - public Builder setLabelKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLabelKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } labelKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                * Required. The key for the label
                * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLabelKey() { @@ -1089,21 +983,17 @@ public Builder clearLabelKey() { return this; } /** - * - * *
                * Required. The key for the label
                * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for labelKey to set. * @return This builder for chaining. */ - public Builder setLabelKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLabelKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); labelKey_ = value; bitField0_ |= 0x00000001; @@ -1113,8 +1003,6 @@ public Builder setLabelKeyBytes(com.google.protobuf.ByteString value) { private java.lang.Object templateVariable_ = ""; /** - * - * *
                * The placeholder text that can be referenced in a filter string or MQL
                * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -1122,13 +1010,13 @@ public Builder setLabelKeyBytes(com.google.protobuf.ByteString value) {
                * 
          * * string template_variable = 3; - * * @return The templateVariable. */ public java.lang.String getTemplateVariable() { java.lang.Object ref = templateVariable_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); templateVariable_ = s; return s; @@ -1137,8 +1025,6 @@ public java.lang.String getTemplateVariable() { } } /** - * - * *
                * The placeholder text that can be referenced in a filter string or MQL
                * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -1146,14 +1032,15 @@ public java.lang.String getTemplateVariable() {
                * 
          * * string template_variable = 3; - * * @return The bytes for templateVariable. */ - public com.google.protobuf.ByteString getTemplateVariableBytes() { + public com.google.protobuf.ByteString + getTemplateVariableBytes() { java.lang.Object ref = templateVariable_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); templateVariable_ = b; return b; } else { @@ -1161,8 +1048,6 @@ public com.google.protobuf.ByteString getTemplateVariableBytes() { } } /** - * - * *
                * The placeholder text that can be referenced in a filter string or MQL
                * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -1170,22 +1055,18 @@ public com.google.protobuf.ByteString getTemplateVariableBytes() {
                * 
          * * string template_variable = 3; - * * @param value The templateVariable to set. * @return This builder for chaining. */ - public Builder setTemplateVariable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTemplateVariable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } templateVariable_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                * The placeholder text that can be referenced in a filter string or MQL
                * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -1193,7 +1074,6 @@ public Builder setTemplateVariable(java.lang.String value) {
                * 
          * * string template_variable = 3; - * * @return This builder for chaining. */ public Builder clearTemplateVariable() { @@ -1203,8 +1083,6 @@ public Builder clearTemplateVariable() { return this; } /** - * - * *
                * The placeholder text that can be referenced in a filter string or MQL
                * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -1212,14 +1090,12 @@ public Builder clearTemplateVariable() {
                * 
          * * string template_variable = 3; - * * @param value The bytes for templateVariable to set. * @return This builder for chaining. */ - public Builder setTemplateVariableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTemplateVariableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); templateVariable_ = value; bitField0_ |= 0x00000002; @@ -1228,14 +1104,11 @@ public Builder setTemplateVariableBytes(com.google.protobuf.ByteString value) { } /** - * - * *
                * A variable-length string value.
                * 
          * * string string_value = 4; - * * @return Whether the stringValue field is set. */ @java.lang.Override @@ -1243,14 +1116,11 @@ public boolean hasStringValue() { return defaultValueCase_ == 4; } /** - * - * *
                * A variable-length string value.
                * 
          * * string string_value = 4; - * * @return The stringValue. */ @java.lang.Override @@ -1260,7 +1130,8 @@ public java.lang.String getStringValue() { ref = defaultValue_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (defaultValueCase_ == 4) { defaultValue_ = s; @@ -1271,25 +1142,24 @@ public java.lang.String getStringValue() { } } /** - * - * *
                * A variable-length string value.
                * 
          * * string string_value = 4; - * * @return The bytes for stringValue. */ @java.lang.Override - public com.google.protobuf.ByteString getStringValueBytes() { + public com.google.protobuf.ByteString + getStringValueBytes() { java.lang.Object ref = ""; if (defaultValueCase_ == 4) { ref = defaultValue_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (defaultValueCase_ == 4) { defaultValue_ = b; } @@ -1299,35 +1169,28 @@ public com.google.protobuf.ByteString getStringValueBytes() { } } /** - * - * *
                * A variable-length string value.
                * 
          * * string string_value = 4; - * * @param value The stringValue to set. * @return This builder for chaining. */ - public Builder setStringValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStringValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } defaultValueCase_ = 4; defaultValue_ = value; onChanged(); return this; } /** - * - * *
                * A variable-length string value.
                * 
          * * string string_value = 4; - * * @return This builder for chaining. */ public Builder clearStringValue() { @@ -1339,21 +1202,17 @@ public Builder clearStringValue() { return this; } /** - * - * *
                * A variable-length string value.
                * 
          * * string string_value = 4; - * * @param value The bytes for stringValue to set. * @return This builder for chaining. */ - public Builder setStringValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStringValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); defaultValueCase_ = 4; defaultValue_ = value; @@ -1363,29 +1222,22 @@ public Builder setStringValueBytes(com.google.protobuf.ByteString value) { private int filterType_ = 0; /** - * - * *
                * The specified filter type
                * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; - * * @return The enum numeric value on the wire for filterType. */ - @java.lang.Override - public int getFilterTypeValue() { + @java.lang.Override public int getFilterTypeValue() { return filterType_; } /** - * - * *
                * The specified filter type
                * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; - * * @param value The enum numeric value on the wire for filterType to set. * @return This builder for chaining. */ @@ -1396,38 +1248,28 @@ public Builder setFilterTypeValue(int value) { return this; } /** - * - * *
                * The specified filter type
                * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; - * * @return The filterType. */ @java.lang.Override public com.google.monitoring.dashboard.v1.DashboardFilter.FilterType getFilterType() { - com.google.monitoring.dashboard.v1.DashboardFilter.FilterType result = - com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.forNumber(filterType_); - return result == null - ? com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.UNRECOGNIZED - : result; + com.google.monitoring.dashboard.v1.DashboardFilter.FilterType result = com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.forNumber(filterType_); + return result == null ? com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.UNRECOGNIZED : result; } /** - * - * *
                * The specified filter type
                * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; - * * @param value The filterType to set. * @return This builder for chaining. */ - public Builder setFilterType( - com.google.monitoring.dashboard.v1.DashboardFilter.FilterType value) { + public Builder setFilterType(com.google.monitoring.dashboard.v1.DashboardFilter.FilterType value) { if (value == null) { throw new NullPointerException(); } @@ -1437,14 +1279,11 @@ public Builder setFilterType( return this; } /** - * - * *
                * The specified filter type
                * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; - * * @return This builder for chaining. */ public Builder clearFilterType() { @@ -1453,9 +1292,9 @@ public Builder clearFilterType() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1465,12 +1304,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.DashboardFilter) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.DashboardFilter) private static final com.google.monitoring.dashboard.v1.DashboardFilter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.DashboardFilter(); } @@ -1479,27 +1318,27 @@ public static com.google.monitoring.dashboard.v1.DashboardFilter getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DashboardFilter 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DashboardFilter 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; @@ -1514,4 +1353,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.DashboardFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java similarity index 73% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java index ee280145ca7f..9629556463d0 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java @@ -1,57 +1,34 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboard_filter.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface DashboardFilterOrBuilder - extends +public interface DashboardFilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.DashboardFilter) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * Required. The key for the label
              * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The labelKey. */ java.lang.String getLabelKey(); /** - * - * *
              * Required. The key for the label
              * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for labelKey. */ - com.google.protobuf.ByteString getLabelKeyBytes(); + com.google.protobuf.ByteString + getLabelKeyBytes(); /** - * - * *
              * The placeholder text that can be referenced in a filter string or MQL
              * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -59,13 +36,10 @@ public interface DashboardFilterOrBuilder
              * 
          * * string template_variable = 3; - * * @return The templateVariable. */ java.lang.String getTemplateVariable(); /** - * - * *
              * The placeholder text that can be referenced in a filter string or MQL
              * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -73,69 +47,55 @@ public interface DashboardFilterOrBuilder
              * 
          * * string template_variable = 3; - * * @return The bytes for templateVariable. */ - com.google.protobuf.ByteString getTemplateVariableBytes(); + com.google.protobuf.ByteString + getTemplateVariableBytes(); /** - * - * *
              * A variable-length string value.
              * 
          * * string string_value = 4; - * * @return Whether the stringValue field is set. */ boolean hasStringValue(); /** - * - * *
              * A variable-length string value.
              * 
          * * string string_value = 4; - * * @return The stringValue. */ java.lang.String getStringValue(); /** - * - * *
              * A variable-length string value.
              * 
          * * string string_value = 4; - * * @return The bytes for stringValue. */ - com.google.protobuf.ByteString getStringValueBytes(); + com.google.protobuf.ByteString + getStringValueBytes(); /** - * - * *
              * The specified filter type
              * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; - * * @return The enum numeric value on the wire for filterType. */ int getFilterTypeValue(); /** - * - * *
              * The specified filter type
              * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; - * * @return The filterType. */ com.google.monitoring.dashboard.v1.DashboardFilter.FilterType getFilterType(); diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java new file mode 100644 index 000000000000..06e09719d52f --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java @@ -0,0 +1,72 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/dashboard_filter.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class DashboardFilterProto { + private DashboardFilterProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_DashboardFilter_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n5google/monitoring/dashboard/v1/dashboa" + + "rd_filter.proto\022\036google.monitoring.dashb" + + "oard.v1\032\037google/api/field_behavior.proto" + + "\"\317\002\n\017DashboardFilter\022\026\n\tlabel_key\030\001 \001(\tB" + + "\003\340A\002\022\031\n\021template_variable\030\003 \001(\t\022\026\n\014strin" + + "g_value\030\004 \001(\tH\000\022O\n\013filter_type\030\005 \001(\0162:.g" + + "oogle.monitoring.dashboard.v1.DashboardF" + + "ilter.FilterType\"\216\001\n\nFilterType\022\033\n\027FILTE" + + "R_TYPE_UNSPECIFIED\020\000\022\022\n\016RESOURCE_LABEL\020\001" + + "\022\020\n\014METRIC_LABEL\020\002\022\027\n\023USER_METADATA_LABE" + + "L\020\003\022\031\n\025SYSTEM_METADATA_LABEL\020\004\022\t\n\005GROUP\020" + + "\005B\017\n\rdefault_valueB\375\001\n\"com.google.monito" + + "ring.dashboard.v1B\024DashboardFilterProtoP" + + "\001ZFcloud.google.com/go/monitoring/dashbo" + + "ard/apiv1/dashboardpb;dashboardpb\252\002$Goog" + + "le.Cloud.Monitoring.Dashboard.V1\312\002$Googl" + + "e\\Cloud\\Monitoring\\Dashboard\\V1\352\002(Google" + + "::Cloud::Monitoring::Dashboard::V1b\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_DashboardFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor, + new java.lang.String[] { "LabelKey", "TemplateVariable", "StringValue", "FilterType", "DefaultValue", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardName.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardName.java similarity index 100% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardName.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardName.java diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java similarity index 81% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java index bfe7b84a0607..b60bc8652e1f 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java @@ -1,82 +1,54 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboard.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface DashboardOrBuilder - extends +public interface DashboardOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Dashboard) com.google.protobuf.MessageOrBuilder { /** - * - * *
          -   * Immutable. The resource name of the dashboard.
          +   * Identifier. The resource name of the dashboard.
              * 
          * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * @return The name. */ java.lang.String getName(); /** - * - * *
          -   * Immutable. The resource name of the dashboard.
          +   * Identifier. The resource name of the dashboard.
              * 
          * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
              * Required. The mutable, human-readable name.
              * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
              * Required. The mutable, human-readable name.
              * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
              * `etag` is used for optimistic concurrency control as a way to help
              * prevent simultaneous updates of a policy from overwriting each other.
          @@ -88,13 +60,10 @@ public interface DashboardOrBuilder
              * 
          * * string etag = 4; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
              * `etag` is used for optimistic concurrency control as a way to help
              * prevent simultaneous updates of a policy from overwriting each other.
          @@ -106,40 +75,32 @@ public interface DashboardOrBuilder
              * 
          * * string etag = 4; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
              * Content is arranged with a basic layout that re-flows a simple list of
              * informational elements like widgets or tiles.
              * 
          * * .google.monitoring.dashboard.v1.GridLayout grid_layout = 5; - * * @return Whether the gridLayout field is set. */ boolean hasGridLayout(); /** - * - * *
              * Content is arranged with a basic layout that re-flows a simple list of
              * informational elements like widgets or tiles.
              * 
          * * .google.monitoring.dashboard.v1.GridLayout grid_layout = 5; - * * @return The gridLayout. */ com.google.monitoring.dashboard.v1.GridLayout getGridLayout(); /** - * - * *
              * Content is arranged with a basic layout that re-flows a simple list of
              * informational elements like widgets or tiles.
          @@ -150,34 +111,26 @@ public interface DashboardOrBuilder
             com.google.monitoring.dashboard.v1.GridLayoutOrBuilder getGridLayoutOrBuilder();
           
             /**
          -   *
          -   *
              * 
              * The content is arranged as a grid of tiles, with each content widget
              * occupying one or more grid blocks.
              * 
          * * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; - * * @return Whether the mosaicLayout field is set. */ boolean hasMosaicLayout(); /** - * - * *
              * The content is arranged as a grid of tiles, with each content widget
              * occupying one or more grid blocks.
              * 
          * * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; - * * @return The mosaicLayout. */ com.google.monitoring.dashboard.v1.MosaicLayout getMosaicLayout(); /** - * - * *
              * The content is arranged as a grid of tiles, with each content widget
              * occupying one or more grid blocks.
          @@ -188,34 +141,26 @@ public interface DashboardOrBuilder
             com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder getMosaicLayoutOrBuilder();
           
             /**
          -   *
          -   *
              * 
              * The content is divided into equally spaced rows and the widgets are
              * arranged horizontally.
              * 
          * * .google.monitoring.dashboard.v1.RowLayout row_layout = 8; - * * @return Whether the rowLayout field is set. */ boolean hasRowLayout(); /** - * - * *
              * The content is divided into equally spaced rows and the widgets are
              * arranged horizontally.
              * 
          * * .google.monitoring.dashboard.v1.RowLayout row_layout = 8; - * * @return The rowLayout. */ com.google.monitoring.dashboard.v1.RowLayout getRowLayout(); /** - * - * *
              * The content is divided into equally spaced rows and the widgets are
              * arranged horizontally.
          @@ -226,34 +171,26 @@ public interface DashboardOrBuilder
             com.google.monitoring.dashboard.v1.RowLayoutOrBuilder getRowLayoutOrBuilder();
           
             /**
          -   *
          -   *
              * 
              * The content is divided into equally spaced columns and the widgets are
              * arranged vertically.
              * 
          * * .google.monitoring.dashboard.v1.ColumnLayout column_layout = 9; - * * @return Whether the columnLayout field is set. */ boolean hasColumnLayout(); /** - * - * *
              * The content is divided into equally spaced columns and the widgets are
              * arranged vertically.
              * 
          * * .google.monitoring.dashboard.v1.ColumnLayout column_layout = 9; - * * @return The columnLayout. */ com.google.monitoring.dashboard.v1.ColumnLayout getColumnLayout(); /** - * - * *
              * The content is divided into equally spaced columns and the widgets are
              * arranged vertically.
          @@ -264,18 +201,15 @@ public interface DashboardOrBuilder
             com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder getColumnLayoutOrBuilder();
           
             /**
          -   *
          -   *
              * 
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          * * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; */ - java.util.List getDashboardFiltersList(); + java.util.List + getDashboardFiltersList(); /** - * - * *
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          @@ -284,8 +218,6 @@ public interface DashboardOrBuilder */ com.google.monitoring.dashboard.v1.DashboardFilter getDashboardFilters(int index); /** - * - * *
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          @@ -294,19 +226,15 @@ public interface DashboardOrBuilder */ int getDashboardFiltersCount(); /** - * - * *
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          * * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; */ - java.util.List + java.util.List getDashboardFiltersOrBuilderList(); /** - * - * *
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          @@ -317,8 +245,6 @@ com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder getDashboardFiltersO int index); /** - * - * *
              * Labels applied to the dashboard
              * 
          @@ -327,31 +253,30 @@ com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder getDashboardFiltersO */ int getLabelsCount(); /** - * - * *
              * Labels applied to the dashboard
              * 
          * * map<string, string> labels = 12; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
              * Labels applied to the dashboard
              * 
          * * map<string, string> labels = 12; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
              * Labels applied to the dashboard
              * 
          @@ -359,20 +284,19 @@ com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder getDashboardFiltersO * map<string, string> labels = 12; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
              * Labels applied to the dashboard
              * 
          * * map<string, string> labels = 12; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); com.google.monitoring.dashboard.v1.Dashboard.LayoutCase getLayoutCase(); } diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java new file mode 100644 index 000000000000..a93c2787e4a1 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java @@ -0,0 +1,100 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/dashboard.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class DashboardsProto { + private DashboardsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_Dashboard_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n.google/monitoring/dashboard/v1/dashboa" + + "rd.proto\022\036google.monitoring.dashboard.v1" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\0325google/monitoring/" + + "dashboard/v1/dashboard_filter.proto\032,goo" + + "gle/monitoring/dashboard/v1/layouts.prot" + + "o\"\372\004\n\tDashboard\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\031\n\014di" + + "splay_name\030\002 \001(\tB\003\340A\002\022\014\n\004etag\030\004 \001(\t\022A\n\013g" + + "rid_layout\030\005 \001(\0132*.google.monitoring.das" + + "hboard.v1.GridLayoutH\000\022E\n\rmosaic_layout\030" + + "\006 \001(\0132,.google.monitoring.dashboard.v1.M" + + "osaicLayoutH\000\022?\n\nrow_layout\030\010 \001(\0132).goog" + + "le.monitoring.dashboard.v1.RowLayoutH\000\022E" + + "\n\rcolumn_layout\030\t \001(\0132,.google.monitorin" + + "g.dashboard.v1.ColumnLayoutH\000\022J\n\021dashboa" + + "rd_filters\030\013 \003(\0132/.google.monitoring.das" + + "hboard.v1.DashboardFilter\022E\n\006labels\030\014 \003(" + + "\01325.google.monitoring.dashboard.v1.Dashb" + + "oard.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:S\352AP\n#monitoring" + + ".googleapis.com/Dashboard\022)projects/{pro" + + "ject}/dashboards/{dashboard}B\010\n\006layoutB\370" + + "\001\n\"com.google.monitoring.dashboard.v1B\017D" + + "ashboardsProtoP\001ZFcloud.google.com/go/mo" + + "nitoring/dashboard/apiv1/dashboardpb;das" + + "hboardpb\252\002$Google.Cloud.Monitoring.Dashb" + + "oard.V1\312\002$Google\\Cloud\\Monitoring\\Dashbo" + + "ard\\V1\352\002(Google::Cloud::Monitoring::Dash" + + "board::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.monitoring.dashboard.v1.DashboardFilterProto.getDescriptor(), + com.google.monitoring.dashboard.v1.LayoutsProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_Dashboard_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Etag", "GridLayout", "MosaicLayout", "RowLayout", "ColumnLayout", "DashboardFilters", "Labels", "Layout", }); + internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_descriptor = + internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.monitoring.dashboard.v1.DashboardFilterProto.getDescriptor(); + com.google.monitoring.dashboard.v1.LayoutsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java new file mode 100644 index 000000000000..63041a271930 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java @@ -0,0 +1,183 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/dashboards_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class DashboardsServiceProto { + private DashboardsServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n7google/monitoring/dashboard/v1/dashboa" + + "rds_service.proto\022\036google.monitoring.das" + + "hboard.v1\032\034google/api/annotations.proto\032" + + "\027google/api/client.proto\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\032.google/monitoring/dashboard/v1/das" + + "hboard.proto\032\033google/protobuf/empty.prot" + + "o\"\267\001\n\026CreateDashboardRequest\022C\n\006parent\030\001" + + " \001(\tB3\340A\002\372A-\n+cloudresourcemanager.googl" + + "eapis.com/Project\022A\n\tdashboard\030\002 \001(\0132).g" + + "oogle.monitoring.dashboard.v1.DashboardB" + + "\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\"\210\001\n\025ListDash" + + "boardsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+c" + + "loudresourcemanager.googleapis.com/Proje" + + "ct\022\021\n\tpage_size\030\002 \001(\005\022\027\n\npage_token\030\003 \001(" + + "\tB\003\340A\001\"p\n\026ListDashboardsResponse\022=\n\ndash" + + "boards\030\001 \003(\0132).google.monitoring.dashboa" + + "rd.v1.Dashboard\022\027\n\017next_page_token\030\002 \001(\t" + + "\"P\n\023GetDashboardRequest\0229\n\004name\030\001 \001(\tB+\340" + + "A\002\372A%\n#monitoring.googleapis.com/Dashboa" + + "rd\"S\n\026DeleteDashboardRequest\0229\n\004name\030\001 \001" + + "(\tB+\340A\002\372A%\n#monitoring.googleapis.com/Da" + + "shboard\"r\n\026UpdateDashboardRequest\022A\n\tdas" + + "hboard\030\001 \001(\0132).google.monitoring.dashboa" + + "rd.v1.DashboardB\003\340A\002\022\025\n\rvalidate_only\030\003 " + + "\001(\0102\333\010\n\021DashboardsService\022\276\001\n\017CreateDash" + + "board\0226.google.monitoring.dashboard.v1.C" + + "reateDashboardRequest\032).google.monitorin" + + "g.dashboard.v1.Dashboard\"H\332A\020parent,dash" + + "board\202\323\344\223\002/\"\"/v1/{parent=projects/*}/das" + + "hboards:\tdashboard\022\264\001\n\016ListDashboards\0225." + + "google.monitoring.dashboard.v1.ListDashb" + + "oardsRequest\0326.google.monitoring.dashboa" + + "rd.v1.ListDashboardsResponse\"3\332A\006parent\202" + + "\323\344\223\002$\022\"/v1/{parent=projects/*}/dashboard" + + "s\022\241\001\n\014GetDashboard\0223.google.monitoring.d" + + "ashboard.v1.GetDashboardRequest\032).google" + + ".monitoring.dashboard.v1.Dashboard\"1\332A\004n" + + "ame\202\323\344\223\002$\022\"/v1/{name=projects/*/dashboar" + + "ds/*}\022\224\001\n\017DeleteDashboard\0226.google.monit" + + "oring.dashboard.v1.DeleteDashboardReques" + + "t\032\026.google.protobuf.Empty\"1\332A\004name\202\323\344\223\002$" + + "*\"/v1/{name=projects/*/dashboards/*}\022\265\001\n" + + "\017UpdateDashboard\0226.google.monitoring.das" + + "hboard.v1.UpdateDashboardRequest\032).googl" + + "e.monitoring.dashboard.v1.Dashboard\"?\202\323\344" + + "\223\00292,/v1/{dashboard.name=projects/*/dash" + + "boards/*}:\tdashboard\032\332\001\312A\031monitoring.goo" + + "gleapis.com\322A\272\001https://www.googleapis.co" + + "m/auth/cloud-platform,https://www.google" + + "apis.com/auth/monitoring,https://www.goo" + + "gleapis.com/auth/monitoring.read,https:/" + + "/www.googleapis.com/auth/monitoring.writ" + + "eB\377\001\n\"com.google.monitoring.dashboard.v1" + + "B\026DashboardsServiceProtoP\001ZFcloud.google" + + ".com/go/monitoring/dashboard/apiv1/dashb" + + "oardpb;dashboardpb\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(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.monitoring.dashboard.v1.DashboardsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor, + new java.lang.String[] { "Parent", "Dashboard", "ValidateOnly", }); + internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor, + new java.lang.String[] { "Dashboards", "NextPageToken", }); + internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor, + new java.lang.String[] { "Dashboard", "ValidateOnly", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.monitoring.dashboard.v1.DashboardsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequest.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequest.java similarity index 63% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequest.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequest.java index 547bc5b55735..658bce480698 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequest.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto @@ -20,66 +5,56 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * The `DeleteDashboard` request.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.DeleteDashboardRequest} */ -public final class DeleteDashboardRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteDashboardRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.DeleteDashboardRequest) DeleteDashboardRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteDashboardRequest.newBuilder() to construct. private DeleteDashboardRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteDashboardRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteDashboardRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.DeleteDashboardRequest.class, - com.google.monitoring.dashboard.v1.DeleteDashboardRequest.Builder.class); + com.google.monitoring.dashboard.v1.DeleteDashboardRequest.class, com.google.monitoring.dashboard.v1.DeleteDashboardRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
              * Required. The resource name of the Dashboard. The format is:
              *
              *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
              * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -88,33 +63,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
              * Required. The resource name of the Dashboard. The format is:
              *
              *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
              * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +132,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.DeleteDashboardRequest)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.DeleteDashboardRequest other = - (com.google.monitoring.dashboard.v1.DeleteDashboardRequest) obj; + com.google.monitoring.dashboard.v1.DeleteDashboardRequest other = (com.google.monitoring.dashboard.v1.DeleteDashboardRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +160,131 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeleteDashboardRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest 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.DeleteDashboardRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.dashboard.v1.DeleteDashboardRequest prototype) { + public static Builder newBuilder(com.google.monitoring.dashboard.v1.DeleteDashboardRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * The `DeleteDashboard` request.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.DeleteDashboardRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.DeleteDashboardRequest) com.google.monitoring.dashboard.v1.DeleteDashboardRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.DeleteDashboardRequest.class, - com.google.monitoring.dashboard.v1.DeleteDashboardRequest.Builder.class); + com.google.monitoring.dashboard.v1.DeleteDashboardRequest.class, com.google.monitoring.dashboard.v1.DeleteDashboardRequest.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.DeleteDashboardRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +294,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor; } @java.lang.Override @@ -347,11 +315,8 @@ public com.google.monitoring.dashboard.v1.DeleteDashboardRequest build() { @java.lang.Override public com.google.monitoring.dashboard.v1.DeleteDashboardRequest buildPartial() { - com.google.monitoring.dashboard.v1.DeleteDashboardRequest result = - new com.google.monitoring.dashboard.v1.DeleteDashboardRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.dashboard.v1.DeleteDashboardRequest result = new com.google.monitoring.dashboard.v1.DeleteDashboardRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +332,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.DeleteDashboardReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DeleteDashboardRequest) { - return mergeFrom((com.google.monitoring.dashboard.v1.DeleteDashboardRequest) other); + return mergeFrom((com.google.monitoring.dashboard.v1.DeleteDashboardRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.DeleteDashboardRequest other) { - if (other == com.google.monitoring.dashboard.v1.DeleteDashboardRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.dashboard.v1.DeleteDashboardRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -462,29 +423,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                * Required. The resource name of the Dashboard. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -493,25 +449,22 @@ public java.lang.String getName() { } } /** - * - * *
                * Required. The resource name of the Dashboard. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -519,43 +472,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                * Required. The resource name of the Dashboard. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                * Required. The resource name of the Dashboard. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -565,34 +507,28 @@ public Builder clearName() { return this; } /** - * - * *
                * Required. The resource name of the Dashboard. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -602,12 +538,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.DeleteDashboardRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.DeleteDashboardRequest) private static final com.google.monitoring.dashboard.v1.DeleteDashboardRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.DeleteDashboardRequest(); } @@ -616,27 +552,27 @@ public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDashboardRequest 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDashboardRequest 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; @@ -651,4 +587,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.DeleteDashboardRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequestOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequestOrBuilder.java new file mode 100644 index 000000000000..a72bccaa3f15 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequestOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/dashboards_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public interface DeleteDashboardRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.DeleteDashboardRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
          +   * Required. The resource name of the Dashboard. The format is:
          +   *
          +   *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
          +   * Required. The resource name of the Dashboard. The format is:
          +   *
          +   *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DrilldownsProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DrilldownsProto.java new file mode 100644 index 000000000000..6c8008bdc36a --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DrilldownsProto.java @@ -0,0 +1,44 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/drilldowns.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class DrilldownsProto { + private DrilldownsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n/google/monitoring/dashboard/v1/drilldo" + + "wns.proto\022\036google.monitoring.dashboard.v" + + "1B\370\001\n\"com.google.monitoring.dashboard.v1" + + "B\017DrilldownsProtoP\001ZFcloud.google.com/go" + + "/monitoring/dashboard/apiv1/dashboardpb;" + + "dashboardpb\252\002$Google.Cloud.Monitoring.Da" + + "shboard.V1\312\002$Google\\Cloud\\Monitoring\\Das" + + "hboard\\V1\352\002(Google::Cloud::Monitoring::D" + + "ashboard::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanel.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanel.java new file mode 100644 index 000000000000..a26bfeacea64 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanel.java @@ -0,0 +1,1319 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/error_reporting_panel.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +/** + *
          + * A widget that displays a list of error groups.
          + * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.ErrorReportingPanel} + */ +public final class ErrorReportingPanel extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.ErrorReportingPanel) + ErrorReportingPanelOrBuilder { +private static final long serialVersionUID = 0L; + // Use ErrorReportingPanel.newBuilder() to construct. + private ErrorReportingPanel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ErrorReportingPanel() { + projectNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + versions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ErrorReportingPanel(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.ErrorReportingPanelProto.internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.ErrorReportingPanelProto.internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.ErrorReportingPanel.class, com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder.class); + } + + public static final int PROJECT_NAMES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList projectNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
          +   * The resource name of the Google Cloud Platform project. Written
          +   * as `projects/{projectID}` or `projects/{projectNumber}`, where
          +   * `{projectID}` and `{projectNumber}` can be found in the
          +   * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
          +   *
          +   * Examples: `projects/my-project-123`, `projects/5551234`.
          +   * 
          + * + * repeated string project_names = 1; + * @return A list containing the projectNames. + */ + public com.google.protobuf.ProtocolStringList + getProjectNamesList() { + return projectNames_; + } + /** + *
          +   * The resource name of the Google Cloud Platform project. Written
          +   * as `projects/{projectID}` or `projects/{projectNumber}`, where
          +   * `{projectID}` and `{projectNumber}` can be found in the
          +   * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
          +   *
          +   * Examples: `projects/my-project-123`, `projects/5551234`.
          +   * 
          + * + * repeated string project_names = 1; + * @return The count of projectNames. + */ + public int getProjectNamesCount() { + return projectNames_.size(); + } + /** + *
          +   * The resource name of the Google Cloud Platform project. Written
          +   * as `projects/{projectID}` or `projects/{projectNumber}`, where
          +   * `{projectID}` and `{projectNumber}` can be found in the
          +   * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
          +   *
          +   * Examples: `projects/my-project-123`, `projects/5551234`.
          +   * 
          + * + * repeated string project_names = 1; + * @param index The index of the element to return. + * @return The projectNames at the given index. + */ + public java.lang.String getProjectNames(int index) { + return projectNames_.get(index); + } + /** + *
          +   * The resource name of the Google Cloud Platform project. Written
          +   * as `projects/{projectID}` or `projects/{projectNumber}`, where
          +   * `{projectID}` and `{projectNumber}` can be found in the
          +   * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
          +   *
          +   * Examples: `projects/my-project-123`, `projects/5551234`.
          +   * 
          + * + * repeated string project_names = 1; + * @param index The index of the value to return. + * @return The bytes of the projectNames at the given index. + */ + public com.google.protobuf.ByteString + getProjectNamesBytes(int index) { + return projectNames_.getByteString(index); + } + + public static final int SERVICES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList services_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
          +   * An identifier of the service, such as the name of the
          +   * executable, job, or Google App Engine service name. This field is expected
          +   * to have a low number of values that are relatively stable over time, as
          +   * opposed to `version`, which can be changed whenever new code is deployed.
          +   *
          +   * Contains the service name for error reports extracted from Google
          +   * App Engine logs or `default` if the App Engine default service is used.
          +   * 
          + * + * repeated string services = 2; + * @return A list containing the services. + */ + public com.google.protobuf.ProtocolStringList + getServicesList() { + return services_; + } + /** + *
          +   * An identifier of the service, such as the name of the
          +   * executable, job, or Google App Engine service name. This field is expected
          +   * to have a low number of values that are relatively stable over time, as
          +   * opposed to `version`, which can be changed whenever new code is deployed.
          +   *
          +   * Contains the service name for error reports extracted from Google
          +   * App Engine logs or `default` if the App Engine default service is used.
          +   * 
          + * + * repeated string services = 2; + * @return The count of services. + */ + public int getServicesCount() { + return services_.size(); + } + /** + *
          +   * An identifier of the service, such as the name of the
          +   * executable, job, or Google App Engine service name. This field is expected
          +   * to have a low number of values that are relatively stable over time, as
          +   * opposed to `version`, which can be changed whenever new code is deployed.
          +   *
          +   * Contains the service name for error reports extracted from Google
          +   * App Engine logs or `default` if the App Engine default service is used.
          +   * 
          + * + * repeated string services = 2; + * @param index The index of the element to return. + * @return The services at the given index. + */ + public java.lang.String getServices(int index) { + return services_.get(index); + } + /** + *
          +   * An identifier of the service, such as the name of the
          +   * executable, job, or Google App Engine service name. This field is expected
          +   * to have a low number of values that are relatively stable over time, as
          +   * opposed to `version`, which can be changed whenever new code is deployed.
          +   *
          +   * Contains the service name for error reports extracted from Google
          +   * App Engine logs or `default` if the App Engine default service is used.
          +   * 
          + * + * repeated string services = 2; + * @param index The index of the value to return. + * @return The bytes of the services at the given index. + */ + public com.google.protobuf.ByteString + getServicesBytes(int index) { + return services_.getByteString(index); + } + + public static final int VERSIONS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList versions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
          +   * Represents the source code version that the developer provided,
          +   * which could represent a version label or a Git SHA-1 hash, for example.
          +   * For App Engine standard environment, the version is set to the version of
          +   * the app.
          +   * 
          + * + * repeated string versions = 3; + * @return A list containing the versions. + */ + public com.google.protobuf.ProtocolStringList + getVersionsList() { + return versions_; + } + /** + *
          +   * Represents the source code version that the developer provided,
          +   * which could represent a version label or a Git SHA-1 hash, for example.
          +   * For App Engine standard environment, the version is set to the version of
          +   * the app.
          +   * 
          + * + * repeated string versions = 3; + * @return The count of versions. + */ + public int getVersionsCount() { + return versions_.size(); + } + /** + *
          +   * Represents the source code version that the developer provided,
          +   * which could represent a version label or a Git SHA-1 hash, for example.
          +   * For App Engine standard environment, the version is set to the version of
          +   * the app.
          +   * 
          + * + * repeated string versions = 3; + * @param index The index of the element to return. + * @return The versions at the given index. + */ + public java.lang.String getVersions(int index) { + return versions_.get(index); + } + /** + *
          +   * Represents the source code version that the developer provided,
          +   * which could represent a version label or a Git SHA-1 hash, for example.
          +   * For App Engine standard environment, the version is set to the version of
          +   * the app.
          +   * 
          + * + * repeated string versions = 3; + * @param index The index of the value to return. + * @return The bytes of the versions at the given index. + */ + public com.google.protobuf.ByteString + getVersionsBytes(int index) { + return versions_.getByteString(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 < projectNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectNames_.getRaw(i)); + } + for (int i = 0; i < services_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, services_.getRaw(i)); + } + for (int i = 0; i < versions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, versions_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < projectNames_.size(); i++) { + dataSize += computeStringSizeNoTag(projectNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getProjectNamesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < services_.size(); i++) { + dataSize += computeStringSizeNoTag(services_.getRaw(i)); + } + size += dataSize; + size += 1 * getServicesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < versions_.size(); i++) { + dataSize += computeStringSizeNoTag(versions_.getRaw(i)); + } + size += dataSize; + size += 1 * getVersionsList().size(); + } + 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.ErrorReportingPanel)) { + return super.equals(obj); + } + com.google.monitoring.dashboard.v1.ErrorReportingPanel other = (com.google.monitoring.dashboard.v1.ErrorReportingPanel) obj; + + if (!getProjectNamesList() + .equals(other.getProjectNamesList())) return false; + if (!getServicesList() + .equals(other.getServicesList())) return false; + if (!getVersionsList() + .equals(other.getVersionsList())) 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 (getProjectNamesCount() > 0) { + hash = (37 * hash) + PROJECT_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getProjectNamesList().hashCode(); + } + if (getServicesCount() > 0) { + hash = (37 * hash) + SERVICES_FIELD_NUMBER; + hash = (53 * hash) + getServicesList().hashCode(); + } + if (getVersionsCount() > 0) { + hash = (37 * hash) + VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getVersionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.dashboard.v1.ErrorReportingPanel parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.ErrorReportingPanel 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.ErrorReportingPanel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.ErrorReportingPanel 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.ErrorReportingPanel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.ErrorReportingPanel 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.ErrorReportingPanel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.dashboard.v1.ErrorReportingPanel 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.ErrorReportingPanel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.ErrorReportingPanel 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.ErrorReportingPanel 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.ErrorReportingPanel 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.ErrorReportingPanel 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 widget that displays a list of error groups.
          +   * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.ErrorReportingPanel} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.ErrorReportingPanel) + com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.ErrorReportingPanelProto.internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.ErrorReportingPanelProto.internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.ErrorReportingPanel.class, com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder.class); + } + + // Construct using com.google.monitoring.dashboard.v1.ErrorReportingPanel.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + versions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.ErrorReportingPanelProto.internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.ErrorReportingPanel getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.ErrorReportingPanel.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.ErrorReportingPanel build() { + com.google.monitoring.dashboard.v1.ErrorReportingPanel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.ErrorReportingPanel buildPartial() { + com.google.monitoring.dashboard.v1.ErrorReportingPanel result = new com.google.monitoring.dashboard.v1.ErrorReportingPanel(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.monitoring.dashboard.v1.ErrorReportingPanel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + projectNames_.makeImmutable(); + result.projectNames_ = projectNames_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + services_.makeImmutable(); + result.services_ = services_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + versions_.makeImmutable(); + result.versions_ = versions_; + } + } + + @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.ErrorReportingPanel) { + return mergeFrom((com.google.monitoring.dashboard.v1.ErrorReportingPanel)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.dashboard.v1.ErrorReportingPanel other) { + if (other == com.google.monitoring.dashboard.v1.ErrorReportingPanel.getDefaultInstance()) return this; + if (!other.projectNames_.isEmpty()) { + if (projectNames_.isEmpty()) { + projectNames_ = other.projectNames_; + bitField0_ |= 0x00000001; + } else { + ensureProjectNamesIsMutable(); + projectNames_.addAll(other.projectNames_); + } + onChanged(); + } + if (!other.services_.isEmpty()) { + if (services_.isEmpty()) { + services_ = other.services_; + bitField0_ |= 0x00000002; + } else { + ensureServicesIsMutable(); + services_.addAll(other.services_); + } + onChanged(); + } + if (!other.versions_.isEmpty()) { + if (versions_.isEmpty()) { + versions_ = other.versions_; + bitField0_ |= 0x00000004; + } else { + ensureVersionsIsMutable(); + versions_.addAll(other.versions_); + } + onChanged(); + } + 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: { + java.lang.String s = input.readStringRequireUtf8(); + ensureProjectNamesIsMutable(); + projectNames_.add(s); + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureServicesIsMutable(); + services_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureVersionsIsMutable(); + versions_.add(s); + break; + } // case 26 + 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 com.google.protobuf.LazyStringArrayList projectNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureProjectNamesIsMutable() { + if (!projectNames_.isModifiable()) { + projectNames_ = new com.google.protobuf.LazyStringArrayList(projectNames_); + } + bitField0_ |= 0x00000001; + } + /** + *
          +     * The resource name of the Google Cloud Platform project. Written
          +     * as `projects/{projectID}` or `projects/{projectNumber}`, where
          +     * `{projectID}` and `{projectNumber}` can be found in the
          +     * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
          +     *
          +     * Examples: `projects/my-project-123`, `projects/5551234`.
          +     * 
          + * + * repeated string project_names = 1; + * @return A list containing the projectNames. + */ + public com.google.protobuf.ProtocolStringList + getProjectNamesList() { + projectNames_.makeImmutable(); + return projectNames_; + } + /** + *
          +     * The resource name of the Google Cloud Platform project. Written
          +     * as `projects/{projectID}` or `projects/{projectNumber}`, where
          +     * `{projectID}` and `{projectNumber}` can be found in the
          +     * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
          +     *
          +     * Examples: `projects/my-project-123`, `projects/5551234`.
          +     * 
          + * + * repeated string project_names = 1; + * @return The count of projectNames. + */ + public int getProjectNamesCount() { + return projectNames_.size(); + } + /** + *
          +     * The resource name of the Google Cloud Platform project. Written
          +     * as `projects/{projectID}` or `projects/{projectNumber}`, where
          +     * `{projectID}` and `{projectNumber}` can be found in the
          +     * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
          +     *
          +     * Examples: `projects/my-project-123`, `projects/5551234`.
          +     * 
          + * + * repeated string project_names = 1; + * @param index The index of the element to return. + * @return The projectNames at the given index. + */ + public java.lang.String getProjectNames(int index) { + return projectNames_.get(index); + } + /** + *
          +     * The resource name of the Google Cloud Platform project. Written
          +     * as `projects/{projectID}` or `projects/{projectNumber}`, where
          +     * `{projectID}` and `{projectNumber}` can be found in the
          +     * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
          +     *
          +     * Examples: `projects/my-project-123`, `projects/5551234`.
          +     * 
          + * + * repeated string project_names = 1; + * @param index The index of the value to return. + * @return The bytes of the projectNames at the given index. + */ + public com.google.protobuf.ByteString + getProjectNamesBytes(int index) { + return projectNames_.getByteString(index); + } + /** + *
          +     * The resource name of the Google Cloud Platform project. Written
          +     * as `projects/{projectID}` or `projects/{projectNumber}`, where
          +     * `{projectID}` and `{projectNumber}` can be found in the
          +     * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
          +     *
          +     * Examples: `projects/my-project-123`, `projects/5551234`.
          +     * 
          + * + * repeated string project_names = 1; + * @param index The index to set the value at. + * @param value The projectNames to set. + * @return This builder for chaining. + */ + public Builder setProjectNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureProjectNamesIsMutable(); + projectNames_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
          +     * The resource name of the Google Cloud Platform project. Written
          +     * as `projects/{projectID}` or `projects/{projectNumber}`, where
          +     * `{projectID}` and `{projectNumber}` can be found in the
          +     * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
          +     *
          +     * Examples: `projects/my-project-123`, `projects/5551234`.
          +     * 
          + * + * repeated string project_names = 1; + * @param value The projectNames to add. + * @return This builder for chaining. + */ + public Builder addProjectNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureProjectNamesIsMutable(); + projectNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
          +     * The resource name of the Google Cloud Platform project. Written
          +     * as `projects/{projectID}` or `projects/{projectNumber}`, where
          +     * `{projectID}` and `{projectNumber}` can be found in the
          +     * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
          +     *
          +     * Examples: `projects/my-project-123`, `projects/5551234`.
          +     * 
          + * + * repeated string project_names = 1; + * @param values The projectNames to add. + * @return This builder for chaining. + */ + public Builder addAllProjectNames( + java.lang.Iterable values) { + ensureProjectNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, projectNames_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
          +     * The resource name of the Google Cloud Platform project. Written
          +     * as `projects/{projectID}` or `projects/{projectNumber}`, where
          +     * `{projectID}` and `{projectNumber}` can be found in the
          +     * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
          +     *
          +     * Examples: `projects/my-project-123`, `projects/5551234`.
          +     * 
          + * + * repeated string project_names = 1; + * @return This builder for chaining. + */ + public Builder clearProjectNames() { + projectNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + *
          +     * The resource name of the Google Cloud Platform project. Written
          +     * as `projects/{projectID}` or `projects/{projectNumber}`, where
          +     * `{projectID}` and `{projectNumber}` can be found in the
          +     * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
          +     *
          +     * Examples: `projects/my-project-123`, `projects/5551234`.
          +     * 
          + * + * repeated string project_names = 1; + * @param value The bytes of the projectNames to add. + * @return This builder for chaining. + */ + public Builder addProjectNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureProjectNamesIsMutable(); + projectNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList services_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureServicesIsMutable() { + if (!services_.isModifiable()) { + services_ = new com.google.protobuf.LazyStringArrayList(services_); + } + bitField0_ |= 0x00000002; + } + /** + *
          +     * An identifier of the service, such as the name of the
          +     * executable, job, or Google App Engine service name. This field is expected
          +     * to have a low number of values that are relatively stable over time, as
          +     * opposed to `version`, which can be changed whenever new code is deployed.
          +     *
          +     * Contains the service name for error reports extracted from Google
          +     * App Engine logs or `default` if the App Engine default service is used.
          +     * 
          + * + * repeated string services = 2; + * @return A list containing the services. + */ + public com.google.protobuf.ProtocolStringList + getServicesList() { + services_.makeImmutable(); + return services_; + } + /** + *
          +     * An identifier of the service, such as the name of the
          +     * executable, job, or Google App Engine service name. This field is expected
          +     * to have a low number of values that are relatively stable over time, as
          +     * opposed to `version`, which can be changed whenever new code is deployed.
          +     *
          +     * Contains the service name for error reports extracted from Google
          +     * App Engine logs or `default` if the App Engine default service is used.
          +     * 
          + * + * repeated string services = 2; + * @return The count of services. + */ + public int getServicesCount() { + return services_.size(); + } + /** + *
          +     * An identifier of the service, such as the name of the
          +     * executable, job, or Google App Engine service name. This field is expected
          +     * to have a low number of values that are relatively stable over time, as
          +     * opposed to `version`, which can be changed whenever new code is deployed.
          +     *
          +     * Contains the service name for error reports extracted from Google
          +     * App Engine logs or `default` if the App Engine default service is used.
          +     * 
          + * + * repeated string services = 2; + * @param index The index of the element to return. + * @return The services at the given index. + */ + public java.lang.String getServices(int index) { + return services_.get(index); + } + /** + *
          +     * An identifier of the service, such as the name of the
          +     * executable, job, or Google App Engine service name. This field is expected
          +     * to have a low number of values that are relatively stable over time, as
          +     * opposed to `version`, which can be changed whenever new code is deployed.
          +     *
          +     * Contains the service name for error reports extracted from Google
          +     * App Engine logs or `default` if the App Engine default service is used.
          +     * 
          + * + * repeated string services = 2; + * @param index The index of the value to return. + * @return The bytes of the services at the given index. + */ + public com.google.protobuf.ByteString + getServicesBytes(int index) { + return services_.getByteString(index); + } + /** + *
          +     * An identifier of the service, such as the name of the
          +     * executable, job, or Google App Engine service name. This field is expected
          +     * to have a low number of values that are relatively stable over time, as
          +     * opposed to `version`, which can be changed whenever new code is deployed.
          +     *
          +     * Contains the service name for error reports extracted from Google
          +     * App Engine logs or `default` if the App Engine default service is used.
          +     * 
          + * + * repeated string services = 2; + * @param index The index to set the value at. + * @param value The services to set. + * @return This builder for chaining. + */ + public Builder setServices( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureServicesIsMutable(); + services_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
          +     * An identifier of the service, such as the name of the
          +     * executable, job, or Google App Engine service name. This field is expected
          +     * to have a low number of values that are relatively stable over time, as
          +     * opposed to `version`, which can be changed whenever new code is deployed.
          +     *
          +     * Contains the service name for error reports extracted from Google
          +     * App Engine logs or `default` if the App Engine default service is used.
          +     * 
          + * + * repeated string services = 2; + * @param value The services to add. + * @return This builder for chaining. + */ + public Builder addServices( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureServicesIsMutable(); + services_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
          +     * An identifier of the service, such as the name of the
          +     * executable, job, or Google App Engine service name. This field is expected
          +     * to have a low number of values that are relatively stable over time, as
          +     * opposed to `version`, which can be changed whenever new code is deployed.
          +     *
          +     * Contains the service name for error reports extracted from Google
          +     * App Engine logs or `default` if the App Engine default service is used.
          +     * 
          + * + * repeated string services = 2; + * @param values The services to add. + * @return This builder for chaining. + */ + public Builder addAllServices( + java.lang.Iterable values) { + ensureServicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, services_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
          +     * An identifier of the service, such as the name of the
          +     * executable, job, or Google App Engine service name. This field is expected
          +     * to have a low number of values that are relatively stable over time, as
          +     * opposed to `version`, which can be changed whenever new code is deployed.
          +     *
          +     * Contains the service name for error reports extracted from Google
          +     * App Engine logs or `default` if the App Engine default service is used.
          +     * 
          + * + * repeated string services = 2; + * @return This builder for chaining. + */ + public Builder clearServices() { + services_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + *
          +     * An identifier of the service, such as the name of the
          +     * executable, job, or Google App Engine service name. This field is expected
          +     * to have a low number of values that are relatively stable over time, as
          +     * opposed to `version`, which can be changed whenever new code is deployed.
          +     *
          +     * Contains the service name for error reports extracted from Google
          +     * App Engine logs or `default` if the App Engine default service is used.
          +     * 
          + * + * repeated string services = 2; + * @param value The bytes of the services to add. + * @return This builder for chaining. + */ + public Builder addServicesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureServicesIsMutable(); + services_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList versions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureVersionsIsMutable() { + if (!versions_.isModifiable()) { + versions_ = new com.google.protobuf.LazyStringArrayList(versions_); + } + bitField0_ |= 0x00000004; + } + /** + *
          +     * Represents the source code version that the developer provided,
          +     * which could represent a version label or a Git SHA-1 hash, for example.
          +     * For App Engine standard environment, the version is set to the version of
          +     * the app.
          +     * 
          + * + * repeated string versions = 3; + * @return A list containing the versions. + */ + public com.google.protobuf.ProtocolStringList + getVersionsList() { + versions_.makeImmutable(); + return versions_; + } + /** + *
          +     * Represents the source code version that the developer provided,
          +     * which could represent a version label or a Git SHA-1 hash, for example.
          +     * For App Engine standard environment, the version is set to the version of
          +     * the app.
          +     * 
          + * + * repeated string versions = 3; + * @return The count of versions. + */ + public int getVersionsCount() { + return versions_.size(); + } + /** + *
          +     * Represents the source code version that the developer provided,
          +     * which could represent a version label or a Git SHA-1 hash, for example.
          +     * For App Engine standard environment, the version is set to the version of
          +     * the app.
          +     * 
          + * + * repeated string versions = 3; + * @param index The index of the element to return. + * @return The versions at the given index. + */ + public java.lang.String getVersions(int index) { + return versions_.get(index); + } + /** + *
          +     * Represents the source code version that the developer provided,
          +     * which could represent a version label or a Git SHA-1 hash, for example.
          +     * For App Engine standard environment, the version is set to the version of
          +     * the app.
          +     * 
          + * + * repeated string versions = 3; + * @param index The index of the value to return. + * @return The bytes of the versions at the given index. + */ + public com.google.protobuf.ByteString + getVersionsBytes(int index) { + return versions_.getByteString(index); + } + /** + *
          +     * Represents the source code version that the developer provided,
          +     * which could represent a version label or a Git SHA-1 hash, for example.
          +     * For App Engine standard environment, the version is set to the version of
          +     * the app.
          +     * 
          + * + * repeated string versions = 3; + * @param index The index to set the value at. + * @param value The versions to set. + * @return This builder for chaining. + */ + public Builder setVersions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureVersionsIsMutable(); + versions_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
          +     * Represents the source code version that the developer provided,
          +     * which could represent a version label or a Git SHA-1 hash, for example.
          +     * For App Engine standard environment, the version is set to the version of
          +     * the app.
          +     * 
          + * + * repeated string versions = 3; + * @param value The versions to add. + * @return This builder for chaining. + */ + public Builder addVersions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureVersionsIsMutable(); + versions_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
          +     * Represents the source code version that the developer provided,
          +     * which could represent a version label or a Git SHA-1 hash, for example.
          +     * For App Engine standard environment, the version is set to the version of
          +     * the app.
          +     * 
          + * + * repeated string versions = 3; + * @param values The versions to add. + * @return This builder for chaining. + */ + public Builder addAllVersions( + java.lang.Iterable values) { + ensureVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, versions_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
          +     * Represents the source code version that the developer provided,
          +     * which could represent a version label or a Git SHA-1 hash, for example.
          +     * For App Engine standard environment, the version is set to the version of
          +     * the app.
          +     * 
          + * + * repeated string versions = 3; + * @return This builder for chaining. + */ + public Builder clearVersions() { + versions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
          +     * Represents the source code version that the developer provided,
          +     * which could represent a version label or a Git SHA-1 hash, for example.
          +     * For App Engine standard environment, the version is set to the version of
          +     * the app.
          +     * 
          + * + * repeated string versions = 3; + * @param value The bytes of the versions to add. + * @return This builder for chaining. + */ + public Builder addVersionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureVersionsIsMutable(); + versions_.add(value); + bitField0_ |= 0x00000004; + 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.ErrorReportingPanel) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.ErrorReportingPanel) + private static final com.google.monitoring.dashboard.v1.ErrorReportingPanel DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.ErrorReportingPanel(); + } + + public static com.google.monitoring.dashboard.v1.ErrorReportingPanel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorReportingPanel 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.ErrorReportingPanel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelOrBuilder.java new file mode 100644 index 000000000000..f7774555bd45 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelOrBuilder.java @@ -0,0 +1,189 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/error_reporting_panel.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public interface ErrorReportingPanelOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.ErrorReportingPanel) + com.google.protobuf.MessageOrBuilder { + + /** + *
          +   * The resource name of the Google Cloud Platform project. Written
          +   * as `projects/{projectID}` or `projects/{projectNumber}`, where
          +   * `{projectID}` and `{projectNumber}` can be found in the
          +   * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
          +   *
          +   * Examples: `projects/my-project-123`, `projects/5551234`.
          +   * 
          + * + * repeated string project_names = 1; + * @return A list containing the projectNames. + */ + java.util.List + getProjectNamesList(); + /** + *
          +   * The resource name of the Google Cloud Platform project. Written
          +   * as `projects/{projectID}` or `projects/{projectNumber}`, where
          +   * `{projectID}` and `{projectNumber}` can be found in the
          +   * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
          +   *
          +   * Examples: `projects/my-project-123`, `projects/5551234`.
          +   * 
          + * + * repeated string project_names = 1; + * @return The count of projectNames. + */ + int getProjectNamesCount(); + /** + *
          +   * The resource name of the Google Cloud Platform project. Written
          +   * as `projects/{projectID}` or `projects/{projectNumber}`, where
          +   * `{projectID}` and `{projectNumber}` can be found in the
          +   * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
          +   *
          +   * Examples: `projects/my-project-123`, `projects/5551234`.
          +   * 
          + * + * repeated string project_names = 1; + * @param index The index of the element to return. + * @return The projectNames at the given index. + */ + java.lang.String getProjectNames(int index); + /** + *
          +   * The resource name of the Google Cloud Platform project. Written
          +   * as `projects/{projectID}` or `projects/{projectNumber}`, where
          +   * `{projectID}` and `{projectNumber}` can be found in the
          +   * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
          +   *
          +   * Examples: `projects/my-project-123`, `projects/5551234`.
          +   * 
          + * + * repeated string project_names = 1; + * @param index The index of the value to return. + * @return The bytes of the projectNames at the given index. + */ + com.google.protobuf.ByteString + getProjectNamesBytes(int index); + + /** + *
          +   * An identifier of the service, such as the name of the
          +   * executable, job, or Google App Engine service name. This field is expected
          +   * to have a low number of values that are relatively stable over time, as
          +   * opposed to `version`, which can be changed whenever new code is deployed.
          +   *
          +   * Contains the service name for error reports extracted from Google
          +   * App Engine logs or `default` if the App Engine default service is used.
          +   * 
          + * + * repeated string services = 2; + * @return A list containing the services. + */ + java.util.List + getServicesList(); + /** + *
          +   * An identifier of the service, such as the name of the
          +   * executable, job, or Google App Engine service name. This field is expected
          +   * to have a low number of values that are relatively stable over time, as
          +   * opposed to `version`, which can be changed whenever new code is deployed.
          +   *
          +   * Contains the service name for error reports extracted from Google
          +   * App Engine logs or `default` if the App Engine default service is used.
          +   * 
          + * + * repeated string services = 2; + * @return The count of services. + */ + int getServicesCount(); + /** + *
          +   * An identifier of the service, such as the name of the
          +   * executable, job, or Google App Engine service name. This field is expected
          +   * to have a low number of values that are relatively stable over time, as
          +   * opposed to `version`, which can be changed whenever new code is deployed.
          +   *
          +   * Contains the service name for error reports extracted from Google
          +   * App Engine logs or `default` if the App Engine default service is used.
          +   * 
          + * + * repeated string services = 2; + * @param index The index of the element to return. + * @return The services at the given index. + */ + java.lang.String getServices(int index); + /** + *
          +   * An identifier of the service, such as the name of the
          +   * executable, job, or Google App Engine service name. This field is expected
          +   * to have a low number of values that are relatively stable over time, as
          +   * opposed to `version`, which can be changed whenever new code is deployed.
          +   *
          +   * Contains the service name for error reports extracted from Google
          +   * App Engine logs or `default` if the App Engine default service is used.
          +   * 
          + * + * repeated string services = 2; + * @param index The index of the value to return. + * @return The bytes of the services at the given index. + */ + com.google.protobuf.ByteString + getServicesBytes(int index); + + /** + *
          +   * Represents the source code version that the developer provided,
          +   * which could represent a version label or a Git SHA-1 hash, for example.
          +   * For App Engine standard environment, the version is set to the version of
          +   * the app.
          +   * 
          + * + * repeated string versions = 3; + * @return A list containing the versions. + */ + java.util.List + getVersionsList(); + /** + *
          +   * Represents the source code version that the developer provided,
          +   * which could represent a version label or a Git SHA-1 hash, for example.
          +   * For App Engine standard environment, the version is set to the version of
          +   * the app.
          +   * 
          + * + * repeated string versions = 3; + * @return The count of versions. + */ + int getVersionsCount(); + /** + *
          +   * Represents the source code version that the developer provided,
          +   * which could represent a version label or a Git SHA-1 hash, for example.
          +   * For App Engine standard environment, the version is set to the version of
          +   * the app.
          +   * 
          + * + * repeated string versions = 3; + * @param index The index of the element to return. + * @return The versions at the given index. + */ + java.lang.String getVersions(int index); + /** + *
          +   * Represents the source code version that the developer provided,
          +   * which could represent a version label or a Git SHA-1 hash, for example.
          +   * For App Engine standard environment, the version is set to the version of
          +   * the app.
          +   * 
          + * + * repeated string versions = 3; + * @param index The index of the value to return. + * @return The bytes of the versions at the given index. + */ + com.google.protobuf.ByteString + getVersionsBytes(int index); +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelProto.java new file mode 100644 index 000000000000..875b2a3ccb59 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelProto.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/error_reporting_panel.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class ErrorReportingPanelProto { + private ErrorReportingPanelProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n:google/monitoring/dashboard/v1/error_r" + + "eporting_panel.proto\022\036google.monitoring." + + "dashboard.v1\"P\n\023ErrorReportingPanel\022\025\n\rp" + + "roject_names\030\001 \003(\t\022\020\n\010services\030\002 \003(\t\022\020\n\010" + + "versions\030\003 \003(\tB\326\001\n\"com.google.monitoring" + + ".dashboard.v1B\030ErrorReportingPanelProtoP" + + "\001ZFcloud.google.com/go/monitoring/dashbo" + + "ard/apiv1/dashboardpb;dashboardpb\252\002$Goog" + + "le.Cloud.Monitoring.Dashboard.V1\312\002$Googl" + + "e\\Cloud\\Monitoring\\Dashboard\\V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor, + new java.lang.String[] { "ProjectNames", "Services", "Versions", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequest.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequest.java similarity index 65% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequest.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequest.java index 1f421cf716b7..39559cedbef4 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequest.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto @@ -20,56 +5,49 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * The `GetDashboard` request.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.GetDashboardRequest} */ -public final class GetDashboardRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetDashboardRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.GetDashboardRequest) GetDashboardRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetDashboardRequest.newBuilder() to construct. private GetDashboardRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetDashboardRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetDashboardRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.GetDashboardRequest.class, - com.google.monitoring.dashboard.v1.GetDashboardRequest.Builder.class); + com.google.monitoring.dashboard.v1.GetDashboardRequest.class, com.google.monitoring.dashboard.v1.GetDashboardRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
              * Required. The resource name of the Dashboard. The format is one of:
              *
          @@ -78,10 +56,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              *       (for custom dashboards).
              * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,15 +65,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
              * Required. The resource name of the Dashboard. The format is one of:
              *
          @@ -107,18 +81,17 @@ public java.lang.String getName() {
              *       (for custom dashboards).
              * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -127,7 +100,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,7 +111,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -163,15 +136,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.GetDashboardRequest)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.GetDashboardRequest other = - (com.google.monitoring.dashboard.v1.GetDashboardRequest) obj; + com.google.monitoring.dashboard.v1.GetDashboardRequest other = (com.google.monitoring.dashboard.v1.GetDashboardRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -191,136 +164,131 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetDashboardRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.GetDashboardRequest 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.GetDashboardRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.dashboard.v1.GetDashboardRequest prototype) { + public static Builder newBuilder(com.google.monitoring.dashboard.v1.GetDashboardRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * The `GetDashboard` request.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.GetDashboardRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.GetDashboardRequest) com.google.monitoring.dashboard.v1.GetDashboardRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.GetDashboardRequest.class, - com.google.monitoring.dashboard.v1.GetDashboardRequest.Builder.class); + com.google.monitoring.dashboard.v1.GetDashboardRequest.class, com.google.monitoring.dashboard.v1.GetDashboardRequest.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.GetDashboardRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -330,9 +298,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor; } @java.lang.Override @@ -351,11 +319,8 @@ public com.google.monitoring.dashboard.v1.GetDashboardRequest build() { @java.lang.Override public com.google.monitoring.dashboard.v1.GetDashboardRequest buildPartial() { - com.google.monitoring.dashboard.v1.GetDashboardRequest result = - new com.google.monitoring.dashboard.v1.GetDashboardRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.dashboard.v1.GetDashboardRequest result = new com.google.monitoring.dashboard.v1.GetDashboardRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -371,39 +336,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.GetDashboardReques public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GetDashboardRequest) { - return mergeFrom((com.google.monitoring.dashboard.v1.GetDashboardRequest) other); + return mergeFrom((com.google.monitoring.dashboard.v1.GetDashboardRequest)other); } else { super.mergeFrom(other); return this; @@ -411,8 +375,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.GetDashboardRequest other) { - if (other == com.google.monitoring.dashboard.v1.GetDashboardRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.dashboard.v1.GetDashboardRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -444,19 +407,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -466,13 +427,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                * Required. The resource name of the Dashboard. The format is one of:
                *
          @@ -481,16 +439,14 @@ public Builder mergeFrom(
                *       (for custom dashboards).
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -499,8 +455,6 @@ public java.lang.String getName() { } } /** - * - * *
                * Required. The resource name of the Dashboard. The format is one of:
                *
          @@ -509,17 +463,16 @@ public java.lang.String getName() {
                *       (for custom dashboards).
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -527,8 +480,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                * Required. The resource name of the Dashboard. The format is one of:
                *
          @@ -537,25 +488,19 @@ public com.google.protobuf.ByteString getNameBytes() {
                *       (for custom dashboards).
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                * Required. The resource name of the Dashboard. The format is one of:
                *
          @@ -564,10 +509,7 @@ public Builder setName(java.lang.String value) {
                *       (for custom dashboards).
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -577,8 +519,6 @@ public Builder clearName() { return this; } /** - * - * *
                * Required. The resource name of the Dashboard. The format is one of:
                *
          @@ -587,26 +527,22 @@ public Builder clearName() {
                *       (for custom dashboards).
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -616,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.GetDashboardRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.GetDashboardRequest) private static final com.google.monitoring.dashboard.v1.GetDashboardRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.GetDashboardRequest(); } @@ -630,27 +566,27 @@ public static com.google.monitoring.dashboard.v1.GetDashboardRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDashboardRequest 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDashboardRequest 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; @@ -665,4 +601,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.GetDashboardRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequestOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequestOrBuilder.java similarity index 50% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequestOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequestOrBuilder.java index 7bc4eafd15a3..46bea49588e9 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface GetDashboardRequestOrBuilder - extends +public interface GetDashboardRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.GetDashboardRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * Required. The resource name of the Dashboard. The format is one of:
              *
          @@ -35,16 +17,11 @@ public interface GetDashboardRequestOrBuilder
              *       (for custom dashboards).
              * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
              * Required. The resource name of the Dashboard. The format is one of:
              *
          @@ -53,11 +30,9 @@ public interface GetDashboardRequestOrBuilder
              *       (for custom dashboards).
              * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayout.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayout.java similarity index 72% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayout.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayout.java index 42320e267e31..09993b73f2bf 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayout.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayout.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/layouts.proto @@ -20,8 +5,6 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * A basic layout divides the available space into vertical columns of equal
            * width and arranges a list of widgets using a row-first strategy.
          @@ -29,53 +12,48 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.GridLayout}
            */
          -public final class GridLayout extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class GridLayout extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.GridLayout)
               GridLayoutOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use GridLayout.newBuilder() to construct.
             private GridLayout(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
             private GridLayout() {
               widgets_ = java.util.Collections.emptyList();
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new GridLayout();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.LayoutsProto
          -        .internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.LayoutsProto
          -        .internal_static_google_monitoring_dashboard_v1_GridLayout_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_GridLayout_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.GridLayout.class,
          -            com.google.monitoring.dashboard.v1.GridLayout.Builder.class);
          +            com.google.monitoring.dashboard.v1.GridLayout.class, com.google.monitoring.dashboard.v1.GridLayout.Builder.class);
             }
           
             public static final int COLUMNS_FIELD_NUMBER = 1;
             private long columns_ = 0L;
             /**
          -   *
          -   *
              * 
              * The number of columns into which the view's width is divided. If omitted
              * or set to zero, a system default will be used while rendering.
              * 
          * * int64 columns = 1; - * * @return The columns. */ @java.lang.Override @@ -84,12 +62,9 @@ public long getColumns() { } public static final int WIDGETS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List widgets_; /** - * - * *
              * The informational elements that are arranged into the columns row-first.
              * 
          @@ -101,8 +76,6 @@ public java.util.List getWidgetsList( return widgets_; } /** - * - * *
              * The informational elements that are arranged into the columns row-first.
              * 
          @@ -110,13 +83,11 @@ public java.util.List getWidgetsList( * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ @java.lang.Override - public java.util.List + public java.util.List getWidgetsOrBuilderList() { return widgets_; } /** - * - * *
              * The informational elements that are arranged into the columns row-first.
              * 
          @@ -128,8 +99,6 @@ public int getWidgetsCount() { return widgets_.size(); } /** - * - * *
              * The informational elements that are arranged into the columns row-first.
              * 
          @@ -141,8 +110,6 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { return widgets_.get(index); } /** - * - * *
              * The informational elements that are arranged into the columns row-first.
              * 
          @@ -150,12 +117,12 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index) { + public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( + int index) { return widgets_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,7 +134,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (columns_ != 0L) { output.writeInt64(1, columns_); } @@ -184,10 +152,12 @@ public int getSerializedSize() { size = 0; if (columns_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, columns_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, columns_); } for (int i = 0; i < widgets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, widgets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, widgets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -197,16 +167,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.GridLayout)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.GridLayout other = - (com.google.monitoring.dashboard.v1.GridLayout) obj; + com.google.monitoring.dashboard.v1.GridLayout other = (com.google.monitoring.dashboard.v1.GridLayout) obj; - if (getColumns() != other.getColumns()) return false; - if (!getWidgetsList().equals(other.getWidgetsList())) return false; + if (getColumns() + != other.getColumns()) return false; + if (!getWidgetsList() + .equals(other.getWidgetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -219,7 +190,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getColumns()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getColumns()); if (getWidgetsCount() > 0) { hash = (37 * hash) + WIDGETS_FIELD_NUMBER; hash = (53 * hash) + getWidgetsList().hashCode(); @@ -229,104 +201,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.GridLayout parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.GridLayout parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.GridLayout parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GridLayout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.GridLayout 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.GridLayout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.GridLayout parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.GridLayout parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.GridLayout parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.GridLayout parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.GridLayout parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.GridLayout parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.GridLayout parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.GridLayout parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.GridLayout prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * A basic layout divides the available space into vertical columns of equal
              * width and arranges a list of widgets using a row-first strategy.
          @@ -334,32 +301,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.GridLayout}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.GridLayout)
                 com.google.monitoring.dashboard.v1.GridLayoutOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto
          -          .internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto
          -          .internal_static_google_monitoring_dashboard_v1_GridLayout_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_GridLayout_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.GridLayout.class,
          -              com.google.monitoring.dashboard.v1.GridLayout.Builder.class);
          +              com.google.monitoring.dashboard.v1.GridLayout.class, com.google.monitoring.dashboard.v1.GridLayout.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.GridLayout.newBuilder()
          -    private Builder() {}
          +    private Builder() {
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          -      super(parent);
               }
           
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +      super(parent);
          +
          +    }
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -376,9 +344,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto
          -          .internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor;
               }
           
               @java.lang.Override
          @@ -397,12 +365,9 @@ public com.google.monitoring.dashboard.v1.GridLayout build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.GridLayout buildPartial() {
          -      com.google.monitoring.dashboard.v1.GridLayout result =
          -          new com.google.monitoring.dashboard.v1.GridLayout(this);
          +      com.google.monitoring.dashboard.v1.GridLayout result = new com.google.monitoring.dashboard.v1.GridLayout(this);
                 buildPartialRepeatedFields(result);
          -      if (bitField0_ != 0) {
          -        buildPartial0(result);
          -      }
          +      if (bitField0_ != 0) { buildPartial0(result); }
                 onBuilt();
                 return result;
               }
          @@ -430,39 +395,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.GridLayout result)
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.GridLayout) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.GridLayout) other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.GridLayout)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -492,10 +456,9 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.GridLayout other) {
                       widgetsBuilder_ = null;
                       widgets_ = other.widgets_;
                       bitField0_ = (bitField0_ & ~0x00000002);
          -            widgetsBuilder_ =
          -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          -                    ? getWidgetsFieldBuilder()
          -                    : null;
          +            widgetsBuilder_ = 
          +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          +                 getWidgetsFieldBuilder() : null;
                     } else {
                       widgetsBuilder_.addAllMessages(other.widgets_);
                     }
          @@ -527,32 +490,30 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 8:
          -              {
          -                columns_ = input.readInt64();
          -                bitField0_ |= 0x00000001;
          -                break;
          -              } // case 8
          -            case 18:
          -              {
          -                com.google.monitoring.dashboard.v1.Widget m =
          -                    input.readMessage(
          -                        com.google.monitoring.dashboard.v1.Widget.parser(), extensionRegistry);
          -                if (widgetsBuilder_ == null) {
          -                  ensureWidgetsIsMutable();
          -                  widgets_.add(m);
          -                } else {
          -                  widgetsBuilder_.addMessage(m);
          -                }
          -                break;
          -              } // case 18
          -            default:
          -              {
          -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                  done = true; // was an endgroup tag
          -                }
          -                break;
          -              } // default:
          +            case 8: {
          +              columns_ = input.readInt64();
          +              bitField0_ |= 0x00000001;
          +              break;
          +            } // case 8
          +            case 18: {
          +              com.google.monitoring.dashboard.v1.Widget m =
          +                  input.readMessage(
          +                      com.google.monitoring.dashboard.v1.Widget.parser(),
          +                      extensionRegistry);
          +              if (widgetsBuilder_ == null) {
          +                ensureWidgetsIsMutable();
          +                widgets_.add(m);
          +              } else {
          +                widgetsBuilder_.addMessage(m);
          +              }
          +              break;
          +            } // case 18
          +            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) {
          @@ -562,20 +523,16 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          -
               private int bitField0_;
           
          -    private long columns_;
          +    private long columns_ ;
               /**
          -     *
          -     *
                * 
                * The number of columns into which the view's width is divided. If omitted
                * or set to zero, a system default will be used while rendering.
                * 
          * * int64 columns = 1; - * * @return The columns. */ @java.lang.Override @@ -583,15 +540,12 @@ public long getColumns() { return columns_; } /** - * - * *
                * The number of columns into which the view's width is divided. If omitted
                * or set to zero, a system default will be used while rendering.
                * 
          * * int64 columns = 1; - * * @param value The columns to set. * @return This builder for chaining. */ @@ -603,15 +557,12 @@ public Builder setColumns(long value) { return this; } /** - * - * *
                * The number of columns into which the view's width is divided. If omitted
                * or set to zero, a system default will be used while rendering.
                * 
          * * int64 columns = 1; - * * @return This builder for chaining. */ public Builder clearColumns() { @@ -622,24 +573,18 @@ public Builder clearColumns() { } private java.util.List widgets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWidgetsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { widgets_ = new java.util.ArrayList(widgets_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, - com.google.monitoring.dashboard.v1.Widget.Builder, - com.google.monitoring.dashboard.v1.WidgetOrBuilder> - widgetsBuilder_; + com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder> widgetsBuilder_; /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -654,8 +599,6 @@ public java.util.List getWidgetsList( } } /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -670,8 +613,6 @@ public int getWidgetsCount() { } } /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -686,15 +627,14 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { } } /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder setWidgets(int index, com.google.monitoring.dashboard.v1.Widget value) { + public Builder setWidgets( + int index, com.google.monitoring.dashboard.v1.Widget value) { if (widgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -708,8 +648,6 @@ public Builder setWidgets(int index, com.google.monitoring.dashboard.v1.Widget v return this; } /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -728,8 +666,6 @@ public Builder setWidgets( return this; } /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -750,15 +686,14 @@ public Builder addWidgets(com.google.monitoring.dashboard.v1.Widget value) { return this; } /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder addWidgets(int index, com.google.monitoring.dashboard.v1.Widget value) { + public Builder addWidgets( + int index, com.google.monitoring.dashboard.v1.Widget value) { if (widgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -772,15 +707,14 @@ public Builder addWidgets(int index, com.google.monitoring.dashboard.v1.Widget v return this; } /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder addWidgets(com.google.monitoring.dashboard.v1.Widget.Builder builderForValue) { + public Builder addWidgets( + com.google.monitoring.dashboard.v1.Widget.Builder builderForValue) { if (widgetsBuilder_ == null) { ensureWidgetsIsMutable(); widgets_.add(builderForValue.build()); @@ -791,8 +725,6 @@ public Builder addWidgets(com.google.monitoring.dashboard.v1.Widget.Builder buil return this; } /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -811,8 +743,6 @@ public Builder addWidgets( return this; } /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -823,7 +753,8 @@ public Builder addAllWidgets( java.lang.Iterable values) { if (widgetsBuilder_ == null) { ensureWidgetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, widgets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, widgets_); onChanged(); } else { widgetsBuilder_.addAllMessages(values); @@ -831,8 +762,6 @@ public Builder addAllWidgets( return this; } /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -850,8 +779,6 @@ public Builder clearWidgets() { return this; } /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -869,44 +796,39 @@ public Builder removeWidgets(int index) { return this; } /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.Widget.Builder getWidgetsBuilder(int index) { + public com.google.monitoring.dashboard.v1.Widget.Builder getWidgetsBuilder( + int index) { return getWidgetsFieldBuilder().getBuilder(index); } /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index) { + public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( + int index) { if (widgetsBuilder_ == null) { - return widgets_.get(index); - } else { + return widgets_.get(index); } else { return widgetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public java.util.List - getWidgetsOrBuilderList() { + public java.util.List + getWidgetsOrBuilderList() { if (widgetsBuilder_ != null) { return widgetsBuilder_.getMessageOrBuilderList(); } else { @@ -914,8 +836,6 @@ public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(in } } /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -923,55 +843,49 @@ public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(in * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder() { - return getWidgetsFieldBuilder() - .addBuilder(com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); + return getWidgetsFieldBuilder().addBuilder( + com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); } /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder(int index) { - return getWidgetsFieldBuilder() - .addBuilder(index, com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); + public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder( + int index) { + return getWidgetsFieldBuilder().addBuilder( + index, com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); } /** - * - * *
                * The informational elements that are arranged into the columns row-first.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public java.util.List - getWidgetsBuilderList() { + public java.util.List + getWidgetsBuilderList() { return getWidgetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, - com.google.monitoring.dashboard.v1.Widget.Builder, - com.google.monitoring.dashboard.v1.WidgetOrBuilder> + com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder> getWidgetsFieldBuilder() { if (widgetsBuilder_ == null) { - widgetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, - com.google.monitoring.dashboard.v1.Widget.Builder, - com.google.monitoring.dashboard.v1.WidgetOrBuilder>( - widgets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + widgetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder>( + widgets_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); widgets_ = null; } return widgetsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -981,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.GridLayout) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.GridLayout) private static final com.google.monitoring.dashboard.v1.GridLayout DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.GridLayout(); } @@ -995,27 +909,27 @@ public static com.google.monitoring.dashboard.v1.GridLayout getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GridLayout 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GridLayout 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; @@ -1030,4 +944,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.GridLayout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayoutOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayoutOrBuilder.java similarity index 69% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayoutOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayoutOrBuilder.java index afe261de914c..bd960df12cdc 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayoutOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayoutOrBuilder.java @@ -1,56 +1,34 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/layouts.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface GridLayoutOrBuilder - extends +public interface GridLayoutOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.GridLayout) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * The number of columns into which the view's width is divided. If omitted
              * or set to zero, a system default will be used while rendering.
              * 
          * * int64 columns = 1; - * * @return The columns. */ long getColumns(); /** - * - * *
              * The informational elements that are arranged into the columns row-first.
              * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - java.util.List getWidgetsList(); + java.util.List + getWidgetsList(); /** - * - * *
              * The informational elements that are arranged into the columns row-first.
              * 
          @@ -59,8 +37,6 @@ public interface GridLayoutOrBuilder */ com.google.monitoring.dashboard.v1.Widget getWidgets(int index); /** - * - * *
              * The informational elements that are arranged into the columns row-first.
              * 
          @@ -69,24 +45,21 @@ public interface GridLayoutOrBuilder */ int getWidgetsCount(); /** - * - * *
              * The informational elements that are arranged into the columns row-first.
              * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - java.util.List + java.util.List getWidgetsOrBuilderList(); /** - * - * *
              * The informational elements that are arranged into the columns row-first.
              * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index); + com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( + int index); } diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentList.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentList.java new file mode 100644 index 000000000000..c3963ef434e8 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentList.java @@ -0,0 +1,1196 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/incident_list.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +/** + *
          + * A widget that displays a list of incidents
          + * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.IncidentList} + */ +public final class IncidentList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.IncidentList) + IncidentListOrBuilder { +private static final long serialVersionUID = 0L; + // Use IncidentList.newBuilder() to construct. + private IncidentList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IncidentList() { + monitoredResources_ = java.util.Collections.emptyList(); + policyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new IncidentList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.IncidentListProto.internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.IncidentListProto.internal_static_google_monitoring_dashboard_v1_IncidentList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.IncidentList.class, com.google.monitoring.dashboard.v1.IncidentList.Builder.class); + } + + public static final int MONITORED_RESOURCES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List monitoredResources_; + /** + *
          +   * Optional. The monitored resource for which incidents are listed.
          +   * The resource doesn't need to be fully specified. That is, you can specify
          +   * the resource type but not the values of the resource labels.
          +   * The resource type and labels are used for filtering.
          +   * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.List getMonitoredResourcesList() { + return monitoredResources_; + } + /** + *
          +   * Optional. The monitored resource for which incidents are listed.
          +   * The resource doesn't need to be fully specified. That is, you can specify
          +   * the resource type but not the values of the resource labels.
          +   * The resource type and labels are used for filtering.
          +   * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.List + getMonitoredResourcesOrBuilderList() { + return monitoredResources_; + } + /** + *
          +   * Optional. The monitored resource for which incidents are listed.
          +   * The resource doesn't need to be fully specified. That is, you can specify
          +   * the resource type but not the values of the resource labels.
          +   * The resource type and labels are used for filtering.
          +   * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public int getMonitoredResourcesCount() { + return monitoredResources_.size(); + } + /** + *
          +   * Optional. The monitored resource for which incidents are listed.
          +   * The resource doesn't need to be fully specified. That is, you can specify
          +   * the resource type but not the values of the resource labels.
          +   * The resource type and labels are used for filtering.
          +   * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.api.MonitoredResource getMonitoredResources(int index) { + return monitoredResources_.get(index); + } + /** + *
          +   * Optional. The monitored resource for which incidents are listed.
          +   * The resource doesn't need to be fully specified. That is, you can specify
          +   * the resource type but not the values of the resource labels.
          +   * The resource type and labels are used for filtering.
          +   * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder( + int index) { + return monitoredResources_.get(index); + } + + public static final int POLICY_NAMES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList policyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
          +   * Optional. A list of alert policy names to filter the incident list by.
          +   * Don't include the project ID prefix in the policy name. For
          +   * example, use `alertPolicies/utilization`.
          +   * 
          + * + * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return A list containing the policyNames. + */ + public com.google.protobuf.ProtocolStringList + getPolicyNamesList() { + return policyNames_; + } + /** + *
          +   * Optional. A list of alert policy names to filter the incident list by.
          +   * Don't include the project ID prefix in the policy name. For
          +   * example, use `alertPolicies/utilization`.
          +   * 
          + * + * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The count of policyNames. + */ + public int getPolicyNamesCount() { + return policyNames_.size(); + } + /** + *
          +   * Optional. A list of alert policy names to filter the incident list by.
          +   * Don't include the project ID prefix in the policy name. For
          +   * example, use `alertPolicies/utilization`.
          +   * 
          + * + * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the element to return. + * @return The policyNames at the given index. + */ + public java.lang.String getPolicyNames(int index) { + return policyNames_.get(index); + } + /** + *
          +   * Optional. A list of alert policy names to filter the incident list by.
          +   * Don't include the project ID prefix in the policy name. For
          +   * example, use `alertPolicies/utilization`.
          +   * 
          + * + * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the value to return. + * @return The bytes of the policyNames at the given index. + */ + public com.google.protobuf.ByteString + getPolicyNamesBytes(int index) { + return policyNames_.getByteString(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 < monitoredResources_.size(); i++) { + output.writeMessage(1, monitoredResources_.get(i)); + } + for (int i = 0; i < policyNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, policyNames_.getRaw(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 < monitoredResources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, monitoredResources_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < policyNames_.size(); i++) { + dataSize += computeStringSizeNoTag(policyNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getPolicyNamesList().size(); + } + 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.IncidentList)) { + return super.equals(obj); + } + com.google.monitoring.dashboard.v1.IncidentList other = (com.google.monitoring.dashboard.v1.IncidentList) obj; + + if (!getMonitoredResourcesList() + .equals(other.getMonitoredResourcesList())) return false; + if (!getPolicyNamesList() + .equals(other.getPolicyNamesList())) 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 (getMonitoredResourcesCount() > 0) { + hash = (37 * hash) + MONITORED_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getMonitoredResourcesList().hashCode(); + } + if (getPolicyNamesCount() > 0) { + hash = (37 * hash) + POLICY_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getPolicyNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.dashboard.v1.IncidentList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.IncidentList 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.IncidentList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.IncidentList 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.IncidentList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.IncidentList 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.IncidentList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.dashboard.v1.IncidentList 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.IncidentList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.IncidentList 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.IncidentList 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.IncidentList 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.IncidentList 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 widget that displays a list of incidents
          +   * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.IncidentList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.IncidentList) + com.google.monitoring.dashboard.v1.IncidentListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.IncidentListProto.internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.IncidentListProto.internal_static_google_monitoring_dashboard_v1_IncidentList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.IncidentList.class, com.google.monitoring.dashboard.v1.IncidentList.Builder.class); + } + + // Construct using com.google.monitoring.dashboard.v1.IncidentList.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (monitoredResourcesBuilder_ == null) { + monitoredResources_ = java.util.Collections.emptyList(); + } else { + monitoredResources_ = null; + monitoredResourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + policyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.IncidentListProto.internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.IncidentList getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.IncidentList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.IncidentList build() { + com.google.monitoring.dashboard.v1.IncidentList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.IncidentList buildPartial() { + com.google.monitoring.dashboard.v1.IncidentList result = new com.google.monitoring.dashboard.v1.IncidentList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.monitoring.dashboard.v1.IncidentList result) { + if (monitoredResourcesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + monitoredResources_ = java.util.Collections.unmodifiableList(monitoredResources_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.monitoredResources_ = monitoredResources_; + } else { + result.monitoredResources_ = monitoredResourcesBuilder_.build(); + } + } + + private void buildPartial0(com.google.monitoring.dashboard.v1.IncidentList result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + policyNames_.makeImmutable(); + result.policyNames_ = policyNames_; + } + } + + @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.IncidentList) { + return mergeFrom((com.google.monitoring.dashboard.v1.IncidentList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.dashboard.v1.IncidentList other) { + if (other == com.google.monitoring.dashboard.v1.IncidentList.getDefaultInstance()) return this; + if (monitoredResourcesBuilder_ == null) { + if (!other.monitoredResources_.isEmpty()) { + if (monitoredResources_.isEmpty()) { + monitoredResources_ = other.monitoredResources_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMonitoredResourcesIsMutable(); + monitoredResources_.addAll(other.monitoredResources_); + } + onChanged(); + } + } else { + if (!other.monitoredResources_.isEmpty()) { + if (monitoredResourcesBuilder_.isEmpty()) { + monitoredResourcesBuilder_.dispose(); + monitoredResourcesBuilder_ = null; + monitoredResources_ = other.monitoredResources_; + bitField0_ = (bitField0_ & ~0x00000001); + monitoredResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMonitoredResourcesFieldBuilder() : null; + } else { + monitoredResourcesBuilder_.addAllMessages(other.monitoredResources_); + } + } + } + if (!other.policyNames_.isEmpty()) { + if (policyNames_.isEmpty()) { + policyNames_ = other.policyNames_; + bitField0_ |= 0x00000002; + } else { + ensurePolicyNamesIsMutable(); + policyNames_.addAll(other.policyNames_); + } + onChanged(); + } + 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.api.MonitoredResource m = + input.readMessage( + com.google.api.MonitoredResource.parser(), + extensionRegistry); + if (monitoredResourcesBuilder_ == null) { + ensureMonitoredResourcesIsMutable(); + monitoredResources_.add(m); + } else { + monitoredResourcesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePolicyNamesIsMutable(); + policyNames_.add(s); + break; + } // case 18 + 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 monitoredResources_ = + java.util.Collections.emptyList(); + private void ensureMonitoredResourcesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + monitoredResources_ = new java.util.ArrayList(monitoredResources_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> monitoredResourcesBuilder_; + + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public java.util.List getMonitoredResourcesList() { + if (monitoredResourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(monitoredResources_); + } else { + return monitoredResourcesBuilder_.getMessageList(); + } + } + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public int getMonitoredResourcesCount() { + if (monitoredResourcesBuilder_ == null) { + return monitoredResources_.size(); + } else { + return monitoredResourcesBuilder_.getCount(); + } + } + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.api.MonitoredResource getMonitoredResources(int index) { + if (monitoredResourcesBuilder_ == null) { + return monitoredResources_.get(index); + } else { + return monitoredResourcesBuilder_.getMessage(index); + } + } + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setMonitoredResources( + int index, com.google.api.MonitoredResource value) { + if (monitoredResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMonitoredResourcesIsMutable(); + monitoredResources_.set(index, value); + onChanged(); + } else { + monitoredResourcesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setMonitoredResources( + int index, com.google.api.MonitoredResource.Builder builderForValue) { + if (monitoredResourcesBuilder_ == null) { + ensureMonitoredResourcesIsMutable(); + monitoredResources_.set(index, builderForValue.build()); + onChanged(); + } else { + monitoredResourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addMonitoredResources(com.google.api.MonitoredResource value) { + if (monitoredResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMonitoredResourcesIsMutable(); + monitoredResources_.add(value); + onChanged(); + } else { + monitoredResourcesBuilder_.addMessage(value); + } + return this; + } + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addMonitoredResources( + int index, com.google.api.MonitoredResource value) { + if (monitoredResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMonitoredResourcesIsMutable(); + monitoredResources_.add(index, value); + onChanged(); + } else { + monitoredResourcesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addMonitoredResources( + com.google.api.MonitoredResource.Builder builderForValue) { + if (monitoredResourcesBuilder_ == null) { + ensureMonitoredResourcesIsMutable(); + monitoredResources_.add(builderForValue.build()); + onChanged(); + } else { + monitoredResourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addMonitoredResources( + int index, com.google.api.MonitoredResource.Builder builderForValue) { + if (monitoredResourcesBuilder_ == null) { + ensureMonitoredResourcesIsMutable(); + monitoredResources_.add(index, builderForValue.build()); + onChanged(); + } else { + monitoredResourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addAllMonitoredResources( + java.lang.Iterable values) { + if (monitoredResourcesBuilder_ == null) { + ensureMonitoredResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, monitoredResources_); + onChanged(); + } else { + monitoredResourcesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearMonitoredResources() { + if (monitoredResourcesBuilder_ == null) { + monitoredResources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + monitoredResourcesBuilder_.clear(); + } + return this; + } + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeMonitoredResources(int index) { + if (monitoredResourcesBuilder_ == null) { + ensureMonitoredResourcesIsMutable(); + monitoredResources_.remove(index); + onChanged(); + } else { + monitoredResourcesBuilder_.remove(index); + } + return this; + } + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.api.MonitoredResource.Builder getMonitoredResourcesBuilder( + int index) { + return getMonitoredResourcesFieldBuilder().getBuilder(index); + } + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder( + int index) { + if (monitoredResourcesBuilder_ == null) { + return monitoredResources_.get(index); } else { + return monitoredResourcesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public java.util.List + getMonitoredResourcesOrBuilderList() { + if (monitoredResourcesBuilder_ != null) { + return monitoredResourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(monitoredResources_); + } + } + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.api.MonitoredResource.Builder addMonitoredResourcesBuilder() { + return getMonitoredResourcesFieldBuilder().addBuilder( + com.google.api.MonitoredResource.getDefaultInstance()); + } + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.api.MonitoredResource.Builder addMonitoredResourcesBuilder( + int index) { + return getMonitoredResourcesFieldBuilder().addBuilder( + index, com.google.api.MonitoredResource.getDefaultInstance()); + } + /** + *
          +     * Optional. The monitored resource for which incidents are listed.
          +     * The resource doesn't need to be fully specified. That is, you can specify
          +     * the resource type but not the values of the resource labels.
          +     * The resource type and labels are used for filtering.
          +     * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public java.util.List + getMonitoredResourcesBuilderList() { + return getMonitoredResourcesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> + getMonitoredResourcesFieldBuilder() { + if (monitoredResourcesBuilder_ == null) { + monitoredResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder>( + monitoredResources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + monitoredResources_ = null; + } + return monitoredResourcesBuilder_; + } + + private com.google.protobuf.LazyStringArrayList policyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePolicyNamesIsMutable() { + if (!policyNames_.isModifiable()) { + policyNames_ = new com.google.protobuf.LazyStringArrayList(policyNames_); + } + bitField0_ |= 0x00000002; + } + /** + *
          +     * Optional. A list of alert policy names to filter the incident list by.
          +     * Don't include the project ID prefix in the policy name. For
          +     * example, use `alertPolicies/utilization`.
          +     * 
          + * + * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return A list containing the policyNames. + */ + public com.google.protobuf.ProtocolStringList + getPolicyNamesList() { + policyNames_.makeImmutable(); + return policyNames_; + } + /** + *
          +     * Optional. A list of alert policy names to filter the incident list by.
          +     * Don't include the project ID prefix in the policy name. For
          +     * example, use `alertPolicies/utilization`.
          +     * 
          + * + * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The count of policyNames. + */ + public int getPolicyNamesCount() { + return policyNames_.size(); + } + /** + *
          +     * Optional. A list of alert policy names to filter the incident list by.
          +     * Don't include the project ID prefix in the policy name. For
          +     * example, use `alertPolicies/utilization`.
          +     * 
          + * + * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the element to return. + * @return The policyNames at the given index. + */ + public java.lang.String getPolicyNames(int index) { + return policyNames_.get(index); + } + /** + *
          +     * Optional. A list of alert policy names to filter the incident list by.
          +     * Don't include the project ID prefix in the policy name. For
          +     * example, use `alertPolicies/utilization`.
          +     * 
          + * + * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the value to return. + * @return The bytes of the policyNames at the given index. + */ + public com.google.protobuf.ByteString + getPolicyNamesBytes(int index) { + return policyNames_.getByteString(index); + } + /** + *
          +     * Optional. A list of alert policy names to filter the incident list by.
          +     * Don't include the project ID prefix in the policy name. For
          +     * example, use `alertPolicies/utilization`.
          +     * 
          + * + * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index to set the value at. + * @param value The policyNames to set. + * @return This builder for chaining. + */ + public Builder setPolicyNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePolicyNamesIsMutable(); + policyNames_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
          +     * Optional. A list of alert policy names to filter the incident list by.
          +     * Don't include the project ID prefix in the policy name. For
          +     * example, use `alertPolicies/utilization`.
          +     * 
          + * + * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The policyNames to add. + * @return This builder for chaining. + */ + public Builder addPolicyNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePolicyNamesIsMutable(); + policyNames_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
          +     * Optional. A list of alert policy names to filter the incident list by.
          +     * Don't include the project ID prefix in the policy name. For
          +     * example, use `alertPolicies/utilization`.
          +     * 
          + * + * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param values The policyNames to add. + * @return This builder for chaining. + */ + public Builder addAllPolicyNames( + java.lang.Iterable values) { + ensurePolicyNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, policyNames_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
          +     * Optional. A list of alert policy names to filter the incident list by.
          +     * Don't include the project ID prefix in the policy name. For
          +     * example, use `alertPolicies/utilization`.
          +     * 
          + * + * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearPolicyNames() { + policyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + *
          +     * Optional. A list of alert policy names to filter the incident list by.
          +     * Don't include the project ID prefix in the policy name. For
          +     * example, use `alertPolicies/utilization`.
          +     * 
          + * + * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes of the policyNames to add. + * @return This builder for chaining. + */ + public Builder addPolicyNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePolicyNamesIsMutable(); + policyNames_.add(value); + bitField0_ |= 0x00000002; + 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.IncidentList) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.IncidentList) + private static final com.google.monitoring.dashboard.v1.IncidentList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.IncidentList(); + } + + public static com.google.monitoring.dashboard.v1.IncidentList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IncidentList 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.IncidentList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListOrBuilder.java new file mode 100644 index 000000000000..f61f1206b049 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListOrBuilder.java @@ -0,0 +1,118 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/incident_list.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public interface IncidentListOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.IncidentList) + com.google.protobuf.MessageOrBuilder { + + /** + *
          +   * Optional. The monitored resource for which incidents are listed.
          +   * The resource doesn't need to be fully specified. That is, you can specify
          +   * the resource type but not the values of the resource labels.
          +   * The resource type and labels are used for filtering.
          +   * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.List + getMonitoredResourcesList(); + /** + *
          +   * Optional. The monitored resource for which incidents are listed.
          +   * The resource doesn't need to be fully specified. That is, you can specify
          +   * the resource type but not the values of the resource labels.
          +   * The resource type and labels are used for filtering.
          +   * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.api.MonitoredResource getMonitoredResources(int index); + /** + *
          +   * Optional. The monitored resource for which incidents are listed.
          +   * The resource doesn't need to be fully specified. That is, you can specify
          +   * the resource type but not the values of the resource labels.
          +   * The resource type and labels are used for filtering.
          +   * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getMonitoredResourcesCount(); + /** + *
          +   * Optional. The monitored resource for which incidents are listed.
          +   * The resource doesn't need to be fully specified. That is, you can specify
          +   * the resource type but not the values of the resource labels.
          +   * The resource type and labels are used for filtering.
          +   * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.List + getMonitoredResourcesOrBuilderList(); + /** + *
          +   * Optional. The monitored resource for which incidents are listed.
          +   * The resource doesn't need to be fully specified. That is, you can specify
          +   * the resource type but not the values of the resource labels.
          +   * The resource type and labels are used for filtering.
          +   * 
          + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder( + int index); + + /** + *
          +   * Optional. A list of alert policy names to filter the incident list by.
          +   * Don't include the project ID prefix in the policy name. For
          +   * example, use `alertPolicies/utilization`.
          +   * 
          + * + * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return A list containing the policyNames. + */ + java.util.List + getPolicyNamesList(); + /** + *
          +   * Optional. A list of alert policy names to filter the incident list by.
          +   * Don't include the project ID prefix in the policy name. For
          +   * example, use `alertPolicies/utilization`.
          +   * 
          + * + * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The count of policyNames. + */ + int getPolicyNamesCount(); + /** + *
          +   * Optional. A list of alert policy names to filter the incident list by.
          +   * Don't include the project ID prefix in the policy name. For
          +   * example, use `alertPolicies/utilization`.
          +   * 
          + * + * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the element to return. + * @return The policyNames at the given index. + */ + java.lang.String getPolicyNames(int index); + /** + *
          +   * Optional. A list of alert policy names to filter the incident list by.
          +   * Don't include the project ID prefix in the policy name. For
          +   * example, use `alertPolicies/utilization`.
          +   * 
          + * + * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the value to return. + * @return The bytes of the policyNames at the given index. + */ + com.google.protobuf.ByteString + getPolicyNamesBytes(int index); +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListProto.java new file mode 100644 index 000000000000..1109917c82eb --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListProto.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/incident_list.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class IncidentListProto { + private IncidentListProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_IncidentList_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2google/monitoring/dashboard/v1/inciden" + + "t_list.proto\022\036google.monitoring.dashboar" + + "d.v1\032\037google/api/field_behavior.proto\032#g" + + "oogle/api/monitored_resource.proto\"j\n\014In" + + "cidentList\022?\n\023monitored_resources\030\001 \003(\0132" + + "\035.google.api.MonitoredResourceB\003\340A\001\022\031\n\014p" + + "olicy_names\030\002 \003(\tB\003\340A\001B\372\001\n\"com.google.mo" + + "nitoring.dashboard.v1B\021IncidentListProto" + + "P\001ZFcloud.google.com/go/monitoring/dashb" + + "oard/apiv1/dashboardpb;dashboardpb\252\002$Goo" + + "gle.Cloud.Monitoring.Dashboard.V1\312\002$Goog" + + "le\\Cloud\\Monitoring\\Dashboard\\V1\352\002(Googl" + + "e::Cloud::Monitoring::Dashboard::V1b\006pro" + + "to3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.MonitoredResourceProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_IncidentList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor, + new java.lang.String[] { "MonitoredResources", "PolicyNames", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.MonitoredResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java new file mode 100644 index 000000000000..0111a0d2571b --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java @@ -0,0 +1,140 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/layouts.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class LayoutsProto { + private LayoutsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_GridLayout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_RowLayout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_RowLayout_Row_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_ColumnLayout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/monitoring/dashboard/v1/layouts" + + ".proto\022\036google.monitoring.dashboard.v1\032+" + + "google/monitoring/dashboard/v1/widget.pr" + + "oto\"V\n\nGridLayout\022\017\n\007columns\030\001 \001(\003\0227\n\007wi" + + "dgets\030\002 \003(\0132&.google.monitoring.dashboar" + + "d.v1.Widget\"\336\001\n\014MosaicLayout\022\017\n\007columns\030" + + "\001 \001(\005\022@\n\005tiles\030\003 \003(\01321.google.monitoring" + + ".dashboard.v1.MosaicLayout.Tile\032{\n\004Tile\022" + + "\r\n\005x_pos\030\001 \001(\005\022\r\n\005y_pos\030\002 \001(\005\022\r\n\005width\030\003" + + " \001(\005\022\016\n\006height\030\004 \001(\005\0226\n\006widget\030\005 \001(\0132&.g" + + "oogle.monitoring.dashboard.v1.Widget\"\230\001\n" + + "\tRowLayout\022;\n\004rows\030\001 \003(\0132-.google.monito" + + "ring.dashboard.v1.RowLayout.Row\032N\n\003Row\022\016" + + "\n\006weight\030\001 \001(\003\0227\n\007widgets\030\002 \003(\0132&.google" + + ".monitoring.dashboard.v1.Widget\"\247\001\n\014Colu" + + "mnLayout\022D\n\007columns\030\001 \003(\01323.google.monit" + + "oring.dashboard.v1.ColumnLayout.Column\032Q" + + "\n\006Column\022\016\n\006weight\030\001 \001(\003\0227\n\007widgets\030\002 \003(" + + "\0132&.google.monitoring.dashboard.v1.Widge" + + "tB\365\001\n\"com.google.monitoring.dashboard.v1" + + "B\014LayoutsProtoP\001ZFcloud.google.com/go/mo" + + "nitoring/dashboard/apiv1/dashboardpb;das" + + "hboardpb\252\002$Google.Cloud.Monitoring.Dashb" + + "oard.V1\312\002$Google\\Cloud\\Monitoring\\Dashbo" + + "ard\\V1\352\002(Google::Cloud::Monitoring::Dash" + + "board::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.monitoring.dashboard.v1.WidgetProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_GridLayout_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor, + new java.lang.String[] { "Columns", "Widgets", }); + internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor, + new java.lang.String[] { "Columns", "Tiles", }); + internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor = + internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor, + new java.lang.String[] { "XPos", "YPos", "Width", "Height", "Widget", }); + internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_dashboard_v1_RowLayout_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor, + new java.lang.String[] { "Rows", }); + internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor = + internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_dashboard_v1_RowLayout_Row_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor, + new java.lang.String[] { "Weight", "Widgets", }); + internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_monitoring_dashboard_v1_ColumnLayout_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor, + new java.lang.String[] { "Columns", }); + internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor = + internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor, + new java.lang.String[] { "Weight", "Widgets", }); + com.google.monitoring.dashboard.v1.WidgetProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequest.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequest.java similarity index 62% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequest.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequest.java index c506f4829e9e..ddd2a02ba49e 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequest.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto @@ -20,24 +5,21 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * The `ListDashboards` request.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ListDashboardsRequest} */ -public final class ListDashboardsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDashboardsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.ListDashboardsRequest) ListDashboardsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDashboardsRequest.newBuilder() to construct. private ListDashboardsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDashboardsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,42 +27,35 @@ private ListDashboardsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDashboardsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ListDashboardsRequest.class, - com.google.monitoring.dashboard.v1.ListDashboardsRequest.Builder.class); + com.google.monitoring.dashboard.v1.ListDashboardsRequest.class, com.google.monitoring.dashboard.v1.ListDashboardsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
              * Required. The scope of the dashboards to list. The format is:
              *
              *     projects/[PROJECT_ID_OR_NUMBER]
              * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -89,33 +64,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
              * Required. The scope of the dashboards to list. The format is:
              *
              *     projects/[PROJECT_ID_OR_NUMBER]
              * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -126,15 +99,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
              * A positive number that is the maximum number of results to return.
              * If unspecified, a default of 1000 is used.
              * 
          * * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -143,20 +113,17 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
          -   * If this field is not empty then it must contain the `nextPageToken` value
          -   * returned by a previous call to this method.  Using this field causes the
          -   * method to return additional results from the previous method call.
          +   * Optional. If this field is not empty then it must contain the
          +   * `nextPageToken` value returned by a previous call to this method.  Using
          +   * this field causes the method to return additional results from the previous
          +   * method call.
              * 
          * - * string page_token = 3; - * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The pageToken. */ @java.lang.Override @@ -165,31 +132,32 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
          -   * If this field is not empty then it must contain the `nextPageToken` value
          -   * returned by a previous call to this method.  Using this field causes the
          -   * method to return additional results from the previous method call.
          +   * Optional. If this field is not empty then it must contain the
          +   * `nextPageToken` value returned by a previous call to this method.  Using
          +   * this field causes the method to return additional results from the previous
          +   * method call.
              * 
          * - * string page_token = 3; - * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -198,7 +166,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +177,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -233,7 +201,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -246,17 +215,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.ListDashboardsRequest)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.ListDashboardsRequest other = - (com.google.monitoring.dashboard.v1.ListDashboardsRequest) obj; + com.google.monitoring.dashboard.v1.ListDashboardsRequest other = (com.google.monitoring.dashboard.v1.ListDashboardsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -280,136 +251,131 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListDashboardsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.ListDashboardsRequest 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.ListDashboardsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.dashboard.v1.ListDashboardsRequest prototype) { + public static Builder newBuilder(com.google.monitoring.dashboard.v1.ListDashboardsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * The `ListDashboards` request.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ListDashboardsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.ListDashboardsRequest) com.google.monitoring.dashboard.v1.ListDashboardsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ListDashboardsRequest.class, - com.google.monitoring.dashboard.v1.ListDashboardsRequest.Builder.class); + com.google.monitoring.dashboard.v1.ListDashboardsRequest.class, com.google.monitoring.dashboard.v1.ListDashboardsRequest.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.ListDashboardsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -421,9 +387,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor; } @java.lang.Override @@ -442,11 +408,8 @@ public com.google.monitoring.dashboard.v1.ListDashboardsRequest build() { @java.lang.Override public com.google.monitoring.dashboard.v1.ListDashboardsRequest buildPartial() { - com.google.monitoring.dashboard.v1.ListDashboardsRequest result = - new com.google.monitoring.dashboard.v1.ListDashboardsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.dashboard.v1.ListDashboardsRequest result = new com.google.monitoring.dashboard.v1.ListDashboardsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -468,39 +431,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.ListDashboardsRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListDashboardsRequest) { - return mergeFrom((com.google.monitoring.dashboard.v1.ListDashboardsRequest) other); + return mergeFrom((com.google.monitoring.dashboard.v1.ListDashboardsRequest)other); } else { super.mergeFrom(other); return this; @@ -508,8 +470,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.ListDashboardsRequest other) { - if (other == com.google.monitoring.dashboard.v1.ListDashboardsRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.dashboard.v1.ListDashboardsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -549,31 +510,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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) { @@ -583,29 +540,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
                * Required. The scope of the dashboards to list. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]
                * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -614,25 +566,22 @@ public java.lang.String getParent() { } } /** - * - * *
                * Required. The scope of the dashboards to list. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]
                * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -640,43 +589,32 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
                * Required. The scope of the dashboards to list. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]
                * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                * Required. The scope of the dashboards to list. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]
                * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -686,25 +624,19 @@ public Builder clearParent() { return this; } /** - * - * *
                * Required. The scope of the dashboards to list. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]
                * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -712,17 +644,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
                * A positive number that is the maximum number of results to return.
                * If unspecified, a default of 1000 is used.
                * 
          * * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -730,15 +659,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
                * A positive number that is the maximum number of results to return.
                * If unspecified, a default of 1000 is used.
                * 
          * * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -750,15 +676,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
                * A positive number that is the maximum number of results to return.
                * If unspecified, a default of 1000 is used.
                * 
          * * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -770,22 +693,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
          -     * If this field is not empty then it must contain the `nextPageToken` value
          -     * returned by a previous call to this method.  Using this field causes the
          -     * method to return additional results from the previous method call.
          +     * Optional. If this field is not empty then it must contain the
          +     * `nextPageToken` value returned by a previous call to this method.  Using
          +     * this field causes the method to return additional results from the previous
          +     * method call.
                * 
          * - * string page_token = 3; - * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -794,23 +716,23 @@ public java.lang.String getPageToken() { } } /** - * - * *
          -     * If this field is not empty then it must contain the `nextPageToken` value
          -     * returned by a previous call to this method.  Using this field causes the
          -     * method to return additional results from the previous method call.
          +     * Optional. If this field is not empty then it must contain the
          +     * `nextPageToken` value returned by a previous call to this method.  Using
          +     * this field causes the method to return additional results from the previous
          +     * method call.
                * 
          * - * string page_token = 3; - * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -818,39 +740,34 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
          -     * If this field is not empty then it must contain the `nextPageToken` value
          -     * returned by a previous call to this method.  Using this field causes the
          -     * method to return additional results from the previous method call.
          +     * Optional. If this field is not empty then it must contain the
          +     * `nextPageToken` value returned by a previous call to this method.  Using
          +     * this field causes the method to return additional results from the previous
          +     * method call.
                * 
          * - * string page_token = 3; - * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
          -     * If this field is not empty then it must contain the `nextPageToken` value
          -     * returned by a previous call to this method.  Using this field causes the
          -     * method to return additional results from the previous method call.
          +     * Optional. If this field is not empty then it must contain the
          +     * `nextPageToken` value returned by a previous call to this method.  Using
          +     * this field causes the method to return additional results from the previous
          +     * method call.
                * 
          * - * string page_token = 3; - * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearPageToken() { @@ -860,32 +777,29 @@ public Builder clearPageToken() { return this; } /** - * - * *
          -     * If this field is not empty then it must contain the `nextPageToken` value
          -     * returned by a previous call to this method.  Using this field causes the
          -     * method to return additional results from the previous method call.
          +     * Optional. If this field is not empty then it must contain the
          +     * `nextPageToken` value returned by a previous call to this method.  Using
          +     * this field causes the method to return additional results from the previous
          +     * method call.
                * 
          * - * string page_token = 3; - * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -895,12 +809,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.ListDashboardsRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.ListDashboardsRequest) private static final com.google.monitoring.dashboard.v1.ListDashboardsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.ListDashboardsRequest(); } @@ -909,27 +823,27 @@ public static com.google.monitoring.dashboard.v1.ListDashboardsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDashboardsRequest 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDashboardsRequest 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; @@ -944,4 +858,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.ListDashboardsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequestOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequestOrBuilder.java new file mode 100644 index 000000000000..b5126af5d5b2 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequestOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/dashboards_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public interface ListDashboardsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.ListDashboardsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
          +   * Required. The scope of the dashboards to list. The format is:
          +   *
          +   *     projects/[PROJECT_ID_OR_NUMBER]
          +   * 
          + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
          +   * Required. The scope of the dashboards to list. The format is:
          +   *
          +   *     projects/[PROJECT_ID_OR_NUMBER]
          +   * 
          + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
          +   * A positive number that is the maximum number of results to return.
          +   * If unspecified, a default of 1000 is used.
          +   * 
          + * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
          +   * Optional. If this field is not empty then it must contain the
          +   * `nextPageToken` value returned by a previous call to this method.  Using
          +   * this field causes the method to return additional results from the previous
          +   * method call.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
          +   * Optional. If this field is not empty then it must contain the
          +   * `nextPageToken` value returned by a previous call to this method.  Using
          +   * this field causes the method to return additional results from the previous
          +   * method call.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponse.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponse.java similarity index 72% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponse.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponse.java index e2676ed022b6..2e81aa8c56ea 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponse.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto @@ -20,24 +5,21 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * The `ListDashboards` request.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ListDashboardsResponse} */ -public final class ListDashboardsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDashboardsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.ListDashboardsResponse) ListDashboardsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDashboardsResponse.newBuilder() to construct. private ListDashboardsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDashboardsResponse() { dashboards_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListDashboardsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDashboardsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ListDashboardsResponse.class, - com.google.monitoring.dashboard.v1.ListDashboardsResponse.Builder.class); + com.google.monitoring.dashboard.v1.ListDashboardsResponse.class, com.google.monitoring.dashboard.v1.ListDashboardsResponse.Builder.class); } public static final int DASHBOARDS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List dashboards_; /** - * - * *
              * The list of requested dashboards.
              * 
          @@ -82,8 +60,6 @@ public java.util.List getDashboard return dashboards_; } /** - * - * *
              * The list of requested dashboards.
              * 
          @@ -91,13 +67,11 @@ public java.util.List getDashboard * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDashboardsOrBuilderList() { return dashboards_; } /** - * - * *
              * The list of requested dashboards.
              * 
          @@ -109,8 +83,6 @@ public int getDashboardsCount() { return dashboards_.size(); } /** - * - * *
              * The list of requested dashboards.
              * 
          @@ -122,8 +94,6 @@ public com.google.monitoring.dashboard.v1.Dashboard getDashboards(int index) { return dashboards_.get(index); } /** - * - * *
              * The list of requested dashboards.
              * 
          @@ -131,17 +101,15 @@ public com.google.monitoring.dashboard.v1.Dashboard getDashboards(int index) { * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuilder(int index) { + public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuilder( + int index) { return dashboards_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
              * If there are more results than have been returned, then this field is set
              * to a non-empty value.  To see the additional results,
          @@ -149,7 +117,6 @@ public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuil
              * 
          * * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -158,15 +125,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
              * If there are more results than have been returned, then this field is set
              * to a non-empty value.  To see the additional results,
          @@ -174,15 +140,16 @@ public java.lang.String getNextPageToken() {
              * 
          * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -191,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < dashboards_.size(); i++) { output.writeMessage(1, dashboards_.get(i)); } @@ -220,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < dashboards_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dashboards_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, dashboards_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -233,16 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.ListDashboardsResponse)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.ListDashboardsResponse other = - (com.google.monitoring.dashboard.v1.ListDashboardsResponse) obj; + com.google.monitoring.dashboard.v1.ListDashboardsResponse other = (com.google.monitoring.dashboard.v1.ListDashboardsResponse) obj; - if (!getDashboardsList().equals(other.getDashboardsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getDashboardsList() + .equals(other.getDashboardsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,136 +235,131 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListDashboardsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.ListDashboardsResponse 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.ListDashboardsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.dashboard.v1.ListDashboardsResponse prototype) { + public static Builder newBuilder(com.google.monitoring.dashboard.v1.ListDashboardsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * The `ListDashboards` request.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ListDashboardsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.ListDashboardsResponse) com.google.monitoring.dashboard.v1.ListDashboardsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ListDashboardsResponse.class, - com.google.monitoring.dashboard.v1.ListDashboardsResponse.Builder.class); + com.google.monitoring.dashboard.v1.ListDashboardsResponse.class, com.google.monitoring.dashboard.v1.ListDashboardsResponse.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.ListDashboardsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor; } @java.lang.Override @@ -433,18 +397,14 @@ public com.google.monitoring.dashboard.v1.ListDashboardsResponse build() { @java.lang.Override public com.google.monitoring.dashboard.v1.ListDashboardsResponse buildPartial() { - com.google.monitoring.dashboard.v1.ListDashboardsResponse result = - new com.google.monitoring.dashboard.v1.ListDashboardsResponse(this); + com.google.monitoring.dashboard.v1.ListDashboardsResponse result = new com.google.monitoring.dashboard.v1.ListDashboardsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.dashboard.v1.ListDashboardsResponse result) { + private void buildPartialRepeatedFields(com.google.monitoring.dashboard.v1.ListDashboardsResponse result) { if (dashboardsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dashboards_ = java.util.Collections.unmodifiableList(dashboards_); @@ -467,39 +427,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.ListDashboardsResp public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListDashboardsResponse) { - return mergeFrom((com.google.monitoring.dashboard.v1.ListDashboardsResponse) other); + return mergeFrom((com.google.monitoring.dashboard.v1.ListDashboardsResponse)other); } else { super.mergeFrom(other); return this; @@ -507,8 +466,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.ListDashboardsResponse other) { - if (other == com.google.monitoring.dashboard.v1.ListDashboardsResponse.getDefaultInstance()) - return this; + if (other == com.google.monitoring.dashboard.v1.ListDashboardsResponse.getDefaultInstance()) return this; if (dashboardsBuilder_ == null) { if (!other.dashboards_.isEmpty()) { if (dashboards_.isEmpty()) { @@ -527,10 +485,9 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.ListDashboardsRespon dashboardsBuilder_ = null; dashboards_ = other.dashboards_; bitField0_ = (bitField0_ & ~0x00000001); - dashboardsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDashboardsFieldBuilder() - : null; + dashboardsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDashboardsFieldBuilder() : null; } else { dashboardsBuilder_.addAllMessages(other.dashboards_); } @@ -567,32 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.monitoring.dashboard.v1.Dashboard m = - input.readMessage( - com.google.monitoring.dashboard.v1.Dashboard.parser(), extensionRegistry); - if (dashboardsBuilder_ == null) { - ensureDashboardsIsMutable(); - dashboards_.add(m); - } else { - dashboardsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.monitoring.dashboard.v1.Dashboard m = + input.readMessage( + com.google.monitoring.dashboard.v1.Dashboard.parser(), + extensionRegistry); + if (dashboardsBuilder_ == null) { + ensureDashboardsIsMutable(); + dashboards_.add(m); + } else { + dashboardsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { @@ -602,29 +557,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List dashboards_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDashboardsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - dashboards_ = - new java.util.ArrayList(dashboards_); + dashboards_ = new java.util.ArrayList(dashboards_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, - com.google.monitoring.dashboard.v1.Dashboard.Builder, - com.google.monitoring.dashboard.v1.DashboardOrBuilder> - dashboardsBuilder_; + com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder> dashboardsBuilder_; /** - * - * *
                * The list of requested dashboards.
                * 
          @@ -639,8 +586,6 @@ public java.util.List getDashboard } } /** - * - * *
                * The list of requested dashboards.
                * 
          @@ -655,8 +600,6 @@ public int getDashboardsCount() { } } /** - * - * *
                * The list of requested dashboards.
                * 
          @@ -671,15 +614,14 @@ public com.google.monitoring.dashboard.v1.Dashboard getDashboards(int index) { } } /** - * - * *
                * The list of requested dashboards.
                * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - public Builder setDashboards(int index, com.google.monitoring.dashboard.v1.Dashboard value) { + public Builder setDashboards( + int index, com.google.monitoring.dashboard.v1.Dashboard value) { if (dashboardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -693,8 +635,6 @@ public Builder setDashboards(int index, com.google.monitoring.dashboard.v1.Dashb return this; } /** - * - * *
                * The list of requested dashboards.
                * 
          @@ -713,8 +653,6 @@ public Builder setDashboards( return this; } /** - * - * *
                * The list of requested dashboards.
                * 
          @@ -735,15 +673,14 @@ public Builder addDashboards(com.google.monitoring.dashboard.v1.Dashboard value) return this; } /** - * - * *
                * The list of requested dashboards.
                * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - public Builder addDashboards(int index, com.google.monitoring.dashboard.v1.Dashboard value) { + public Builder addDashboards( + int index, com.google.monitoring.dashboard.v1.Dashboard value) { if (dashboardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -757,8 +694,6 @@ public Builder addDashboards(int index, com.google.monitoring.dashboard.v1.Dashb return this; } /** - * - * *
                * The list of requested dashboards.
                * 
          @@ -777,8 +712,6 @@ public Builder addDashboards( return this; } /** - * - * *
                * The list of requested dashboards.
                * 
          @@ -797,8 +730,6 @@ public Builder addDashboards( return this; } /** - * - * *
                * The list of requested dashboards.
                * 
          @@ -809,7 +740,8 @@ public Builder addAllDashboards( java.lang.Iterable values) { if (dashboardsBuilder_ == null) { ensureDashboardsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dashboards_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dashboards_); onChanged(); } else { dashboardsBuilder_.addAllMessages(values); @@ -817,8 +749,6 @@ public Builder addAllDashboards( return this; } /** - * - * *
                * The list of requested dashboards.
                * 
          @@ -836,8 +766,6 @@ public Builder clearDashboards() { return this; } /** - * - * *
                * The list of requested dashboards.
                * 
          @@ -855,44 +783,39 @@ public Builder removeDashboards(int index) { return this; } /** - * - * *
                * The list of requested dashboards.
                * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - public com.google.monitoring.dashboard.v1.Dashboard.Builder getDashboardsBuilder(int index) { + public com.google.monitoring.dashboard.v1.Dashboard.Builder getDashboardsBuilder( + int index) { return getDashboardsFieldBuilder().getBuilder(index); } /** - * - * *
                * The list of requested dashboards.
                * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuilder(int index) { + public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuilder( + int index) { if (dashboardsBuilder_ == null) { - return dashboards_.get(index); - } else { + return dashboards_.get(index); } else { return dashboardsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                * The list of requested dashboards.
                * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - public java.util.List - getDashboardsOrBuilderList() { + public java.util.List + getDashboardsOrBuilderList() { if (dashboardsBuilder_ != null) { return dashboardsBuilder_.getMessageOrBuilderList(); } else { @@ -900,8 +823,6 @@ public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuil } } /** - * - * *
                * The list of requested dashboards.
                * 
          @@ -909,48 +830,42 @@ public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuil * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ public com.google.monitoring.dashboard.v1.Dashboard.Builder addDashboardsBuilder() { - return getDashboardsFieldBuilder() - .addBuilder(com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()); + return getDashboardsFieldBuilder().addBuilder( + com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()); } /** - * - * *
                * The list of requested dashboards.
                * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - public com.google.monitoring.dashboard.v1.Dashboard.Builder addDashboardsBuilder(int index) { - return getDashboardsFieldBuilder() - .addBuilder(index, com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()); + public com.google.monitoring.dashboard.v1.Dashboard.Builder addDashboardsBuilder( + int index) { + return getDashboardsFieldBuilder().addBuilder( + index, com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()); } /** - * - * *
                * The list of requested dashboards.
                * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - public java.util.List - getDashboardsBuilderList() { + public java.util.List + getDashboardsBuilderList() { return getDashboardsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, - com.google.monitoring.dashboard.v1.Dashboard.Builder, - com.google.monitoring.dashboard.v1.DashboardOrBuilder> + com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder> getDashboardsFieldBuilder() { if (dashboardsBuilder_ == null) { - dashboardsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, - com.google.monitoring.dashboard.v1.Dashboard.Builder, - com.google.monitoring.dashboard.v1.DashboardOrBuilder>( - dashboards_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dashboardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder>( + dashboards_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); dashboards_ = null; } return dashboardsBuilder_; @@ -958,8 +873,6 @@ public com.google.monitoring.dashboard.v1.Dashboard.Builder addDashboardsBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
                * If there are more results than have been returned, then this field is set
                * to a non-empty value.  To see the additional results,
          @@ -967,13 +880,13 @@ public com.google.monitoring.dashboard.v1.Dashboard.Builder addDashboardsBuilder
                * 
          * * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -982,8 +895,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
                * If there are more results than have been returned, then this field is set
                * to a non-empty value.  To see the additional results,
          @@ -991,14 +902,15 @@ public java.lang.String getNextPageToken() {
                * 
          * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1006,8 +918,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
                * If there are more results than have been returned, then this field is set
                * to a non-empty value.  To see the additional results,
          @@ -1015,22 +925,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
                * 
          * * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                * If there are more results than have been returned, then this field is set
                * to a non-empty value.  To see the additional results,
          @@ -1038,7 +944,6 @@ public Builder setNextPageToken(java.lang.String value) {
                * 
          * * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1048,8 +953,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
                * If there are more results than have been returned, then this field is set
                * to a non-empty value.  To see the additional results,
          @@ -1057,23 +960,21 @@ public Builder clearNextPageToken() {
                * 
          * * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1083,12 +984,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.ListDashboardsResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.ListDashboardsResponse) private static final com.google.monitoring.dashboard.v1.ListDashboardsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.ListDashboardsResponse(); } @@ -1097,27 +998,27 @@ public static com.google.monitoring.dashboard.v1.ListDashboardsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDashboardsResponse 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDashboardsResponse 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; @@ -1132,4 +1033,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.ListDashboardsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponseOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponseOrBuilder.java similarity index 69% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponseOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponseOrBuilder.java index dc22580d72f5..426c88060b67 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponseOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponseOrBuilder.java @@ -1,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface ListDashboardsResponseOrBuilder - extends +public interface ListDashboardsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.ListDashboardsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * The list of requested dashboards.
              * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - java.util.List getDashboardsList(); + java.util.List + getDashboardsList(); /** - * - * *
              * The list of requested dashboards.
              * 
          @@ -45,8 +26,6 @@ public interface ListDashboardsResponseOrBuilder */ com.google.monitoring.dashboard.v1.Dashboard getDashboards(int index); /** - * - * *
              * The list of requested dashboards.
              * 
          @@ -55,30 +34,25 @@ public interface ListDashboardsResponseOrBuilder */ int getDashboardsCount(); /** - * - * *
              * The list of requested dashboards.
              * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - java.util.List + java.util.List getDashboardsOrBuilderList(); /** - * - * *
              * The list of requested dashboards.
              * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuilder(int index); + com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuilder( + int index); /** - * - * *
              * If there are more results than have been returned, then this field is set
              * to a non-empty value.  To see the additional results,
          @@ -86,13 +60,10 @@ public interface ListDashboardsResponseOrBuilder
              * 
          * * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
              * If there are more results than have been returned, then this field is set
              * to a non-empty value.  To see the additional results,
          @@ -100,8 +71,8 @@ public interface ListDashboardsResponseOrBuilder
              * 
          * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java similarity index 71% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java index 7de31ac7e2b3..2ea206a4e422 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/logs_panel.proto @@ -20,57 +5,51 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * A widget that displays a stream of log.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.LogsPanel} */ -public final class LogsPanel extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LogsPanel extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.LogsPanel) LogsPanelOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LogsPanel.newBuilder() to construct. private LogsPanel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LogsPanel() { filter_ = ""; - resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LogsPanel(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.LogsPanelProto - .internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.LogsPanelProto.internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.LogsPanelProto - .internal_static_google_monitoring_dashboard_v1_LogsPanel_fieldAccessorTable + return com.google.monitoring.dashboard.v1.LogsPanelProto.internal_static_google_monitoring_dashboard_v1_LogsPanel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.LogsPanel.class, - com.google.monitoring.dashboard.v1.LogsPanel.Builder.class); + com.google.monitoring.dashboard.v1.LogsPanel.class, com.google.monitoring.dashboard.v1.LogsPanel.Builder.class); } public static final int FILTER_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
              * A filter that chooses which log entries to return.  See [Advanced Logs
              * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -79,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              * 
          * * string filter = 1; - * * @return The filter. */ @java.lang.Override @@ -88,15 +66,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
              * A filter that chooses which log entries to return.  See [Advanced Logs
              * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -105,15 +82,16 @@ public java.lang.String getFilter() {
              * 
          * * string filter = 1; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -122,50 +100,41 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int RESOURCE_NAMES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
              * The names of logging resources to collect logs for. Currently only projects
              * are supported. If empty, the widget will default to the host project.
              * 
          * * repeated string resource_names = 2; - * * @return A list containing the resourceNames. */ - public com.google.protobuf.ProtocolStringList getResourceNamesList() { + public com.google.protobuf.ProtocolStringList + getResourceNamesList() { return resourceNames_; } /** - * - * *
              * The names of logging resources to collect logs for. Currently only projects
              * are supported. If empty, the widget will default to the host project.
              * 
          * * repeated string resource_names = 2; - * * @return The count of resourceNames. */ public int getResourceNamesCount() { return resourceNames_.size(); } /** - * - * *
              * The names of logging resources to collect logs for. Currently only projects
              * are supported. If empty, the widget will default to the host project.
              * 
          * * repeated string resource_names = 2; - * * @param index The index of the element to return. * @return The resourceNames at the given index. */ @@ -173,24 +142,21 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** - * - * *
              * The names of logging resources to collect logs for. Currently only projects
              * are supported. If empty, the widget will default to the host project.
              * 
          * * repeated string resource_names = 2; - * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - public com.google.protobuf.ByteString getResourceNamesBytes(int index) { + public com.google.protobuf.ByteString + getResourceNamesBytes(int index) { return resourceNames_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); } @@ -237,16 +204,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.LogsPanel)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.LogsPanel other = - (com.google.monitoring.dashboard.v1.LogsPanel) obj; + com.google.monitoring.dashboard.v1.LogsPanel other = (com.google.monitoring.dashboard.v1.LogsPanel) obj; - if (!getFilter().equals(other.getFilter())) return false; - if (!getResourceNamesList().equals(other.getResourceNamesList())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getResourceNamesList() + .equals(other.getResourceNamesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -269,149 +237,146 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.LogsPanel parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.LogsPanel parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.LogsPanel parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.LogsPanel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.LogsPanel 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.LogsPanel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.LogsPanel parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.LogsPanel parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.LogsPanel parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.LogsPanel parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.LogsPanel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.LogsPanel parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.LogsPanel parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.LogsPanel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.LogsPanel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * A widget that displays a stream of log.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.LogsPanel} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.LogsPanel) com.google.monitoring.dashboard.v1.LogsPanelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.LogsPanelProto - .internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.LogsPanelProto.internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.LogsPanelProto - .internal_static_google_monitoring_dashboard_v1_LogsPanel_fieldAccessorTable + return com.google.monitoring.dashboard.v1.LogsPanelProto.internal_static_google_monitoring_dashboard_v1_LogsPanel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.LogsPanel.class, - com.google.monitoring.dashboard.v1.LogsPanel.Builder.class); + com.google.monitoring.dashboard.v1.LogsPanel.class, com.google.monitoring.dashboard.v1.LogsPanel.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.LogsPanel.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; filter_ = ""; - resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.LogsPanelProto - .internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.LogsPanelProto.internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor; } @java.lang.Override @@ -430,11 +395,8 @@ public com.google.monitoring.dashboard.v1.LogsPanel build() { @java.lang.Override public com.google.monitoring.dashboard.v1.LogsPanel buildPartial() { - com.google.monitoring.dashboard.v1.LogsPanel result = - new com.google.monitoring.dashboard.v1.LogsPanel(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.dashboard.v1.LogsPanel result = new com.google.monitoring.dashboard.v1.LogsPanel(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -454,39 +416,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.LogsPanel result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.LogsPanel) { - return mergeFrom((com.google.monitoring.dashboard.v1.LogsPanel) other); + return mergeFrom((com.google.monitoring.dashboard.v1.LogsPanel)other); } else { super.mergeFrom(other); return this; @@ -536,26 +497,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceNamesIsMutable(); - resourceNames_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceNamesIsMutable(); + resourceNames_.add(s); + break; + } // case 18 + 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) { @@ -565,13 +523,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object filter_ = ""; /** - * - * *
                * A filter that chooses which log entries to return.  See [Advanced Logs
                * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -580,13 +535,13 @@ public Builder mergeFrom(
                * 
          * * string filter = 1; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -595,8 +550,6 @@ public java.lang.String getFilter() { } } /** - * - * *
                * A filter that chooses which log entries to return.  See [Advanced Logs
                * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -605,14 +558,15 @@ public java.lang.String getFilter() {
                * 
          * * string filter = 1; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -620,8 +574,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
                * A filter that chooses which log entries to return.  See [Advanced Logs
                * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -630,22 +582,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
                * 
          * * string filter = 1; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                * A filter that chooses which log entries to return.  See [Advanced Logs
                * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -654,7 +602,6 @@ public Builder setFilter(java.lang.String value) {
                * 
          * * string filter = 1; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -664,8 +611,6 @@ public Builder clearFilter() { return this; } /** - * - * *
                * A filter that chooses which log entries to return.  See [Advanced Logs
                * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -674,14 +619,12 @@ public Builder clearFilter() {
                * 
          * * string filter = 1; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000001; @@ -691,7 +634,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureResourceNamesIsMutable() { if (!resourceNames_.isModifiable()) { resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_); @@ -699,46 +641,38 @@ private void ensureResourceNamesIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; - * * @return A list containing the resourceNames. */ - public com.google.protobuf.ProtocolStringList getResourceNamesList() { + public com.google.protobuf.ProtocolStringList + getResourceNamesList() { resourceNames_.makeImmutable(); return resourceNames_; } /** - * - * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; - * * @return The count of resourceNames. */ public int getResourceNamesCount() { return resourceNames_.size(); } /** - * - * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; - * * @param index The index of the element to return. * @return The resourceNames at the given index. */ @@ -746,39 +680,33 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** - * - * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; - * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - public com.google.protobuf.ByteString getResourceNamesBytes(int index) { + public com.google.protobuf.ByteString + getResourceNamesBytes(int index) { return resourceNames_.getByteString(index); } /** - * - * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; - * * @param index The index to set the value at. * @param value The resourceNames to set. * @return This builder for chaining. */ - public Builder setResourceNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceNamesIsMutable(); resourceNames_.set(index, value); bitField0_ |= 0x00000002; @@ -786,22 +714,18 @@ public Builder setResourceNames(int index, java.lang.String value) { return this; } /** - * - * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; - * * @param value The resourceNames to add. * @return This builder for chaining. */ - public Builder addResourceNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceNamesIsMutable(); resourceNames_.add(value); bitField0_ |= 0x00000002; @@ -809,61 +733,53 @@ public Builder addResourceNames(java.lang.String value) { return this; } /** - * - * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; - * * @param values The resourceNames to add. * @return This builder for chaining. */ - public Builder addAllResourceNames(java.lang.Iterable values) { + public Builder addAllResourceNames( + java.lang.Iterable values) { ensureResourceNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceNames_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; - * * @return This builder for chaining. */ public Builder clearResourceNames() { - resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + resourceNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; - * * @param value The bytes of the resourceNames to add. * @return This builder for chaining. */ - public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureResourceNamesIsMutable(); resourceNames_.add(value); @@ -871,9 +787,9 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -883,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.LogsPanel) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.LogsPanel) private static final com.google.monitoring.dashboard.v1.LogsPanel DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.LogsPanel(); } @@ -897,27 +813,27 @@ public static com.google.monitoring.dashboard.v1.LogsPanel getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogsPanel 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogsPanel 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; @@ -932,4 +848,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.LogsPanel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java similarity index 73% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java index aaec179d41dc..d6b50714a83a 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/logs_panel.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface LogsPanelOrBuilder - extends +public interface LogsPanelOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.LogsPanel) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * A filter that chooses which log entries to return.  See [Advanced Logs
              * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -35,13 +17,10 @@ public interface LogsPanelOrBuilder
              * 
          * * string filter = 1; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
              * A filter that chooses which log entries to return.  See [Advanced Logs
              * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -50,63 +29,53 @@ public interface LogsPanelOrBuilder
              * 
          * * string filter = 1; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
              * The names of logging resources to collect logs for. Currently only projects
              * are supported. If empty, the widget will default to the host project.
              * 
          * * repeated string resource_names = 2; - * * @return A list containing the resourceNames. */ - java.util.List getResourceNamesList(); + java.util.List + getResourceNamesList(); /** - * - * *
              * The names of logging resources to collect logs for. Currently only projects
              * are supported. If empty, the widget will default to the host project.
              * 
          * * repeated string resource_names = 2; - * * @return The count of resourceNames. */ int getResourceNamesCount(); /** - * - * *
              * The names of logging resources to collect logs for. Currently only projects
              * are supported. If empty, the widget will default to the host project.
              * 
          * * repeated string resource_names = 2; - * * @param index The index of the element to return. * @return The resourceNames at the given index. */ java.lang.String getResourceNames(int index); /** - * - * *
              * The names of logging resources to collect logs for. Currently only projects
              * are supported. If empty, the widget will default to the host project.
              * 
          * * repeated string resource_names = 2; - * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - com.google.protobuf.ByteString getResourceNamesBytes(int index); + com.google.protobuf.ByteString + getResourceNamesBytes(int index); } diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java new file mode 100644 index 000000000000..63c2c7960a49 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/logs_panel.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class LogsPanelProto { + private LogsPanelProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_LogsPanel_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n/google/monitoring/dashboard/v1/logs_pa" + + "nel.proto\022\036google.monitoring.dashboard.v" + + "1\"3\n\tLogsPanel\022\016\n\006filter\030\001 \001(\t\022\026\n\016resour" + + "ce_names\030\002 \003(\tB\367\001\n\"com.google.monitoring" + + ".dashboard.v1B\016LogsPanelProtoP\001ZFcloud.g" + + "oogle.com/go/monitoring/dashboard/apiv1/" + + "dashboardpb;dashboardpb\252\002$Google.Cloud.M" + + "onitoring.Dashboard.V1\312\002$Google\\Cloud\\Mo" + + "nitoring\\Dashboard\\V1\352\002(Google::Cloud::M" + + "onitoring::Dashboard::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_LogsPanel_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor, + new java.lang.String[] { "Filter", "ResourceNames", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java new file mode 100644 index 000000000000..40662a049b3d --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java @@ -0,0 +1,155 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/metrics.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class MetricsProto { + private MetricsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_Threshold_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_Threshold_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/monitoring/dashboard/v1/metrics" + + ".proto\022\036google.monitoring.dashboard.v1\032\037" + + "google/api/field_behavior.proto\032+google/" + + "monitoring/dashboard/v1/common.proto\"\302\002\n" + + "\017TimeSeriesQuery\022N\n\022time_series_filter\030\001" + + " \001(\01320.google.monitoring.dashboard.v1.Ti" + + "meSeriesFilterH\000\022Y\n\030time_series_filter_r" + + "atio\030\002 \001(\01325.google.monitoring.dashboard" + + ".v1.TimeSeriesFilterRatioH\000\022$\n\032time_seri" + + "es_query_language\030\003 \001(\tH\000\022\032\n\020prometheus_" + + "query\030\006 \001(\tH\000\022\025\n\runit_override\030\005 \001(\t\022!\n\024" + + "output_full_duration\030\007 \001(\010B\003\340A\001B\010\n\006sourc" + + "e\"\212\003\n\020TimeSeriesFilter\022\023\n\006filter\030\001 \001(\tB\003" + + "\340A\002\022@\n\013aggregation\030\002 \001(\0132+.google.monito" + + "ring.dashboard.v1.Aggregation\022J\n\025seconda" + + "ry_aggregation\030\003 \001(\0132+.google.monitoring" + + ".dashboard.v1.Aggregation\022W\n\027pick_time_s" + + "eries_filter\030\004 \001(\01324.google.monitoring.d" + + "ashboard.v1.PickTimeSeriesFilterH\000\022i\n\036st" + + "atistical_time_series_filter\030\005 \001(\0132;.goo" + + "gle.monitoring.dashboard.v1.StatisticalT" + + "imeSeriesFilterB\002\030\001H\000B\017\n\routput_filter\"\306" + + "\004\n\025TimeSeriesFilterRatio\022R\n\tnumerator\030\001 " + + "\001(\0132?.google.monitoring.dashboard.v1.Tim" + + "eSeriesFilterRatio.RatioPart\022T\n\013denomina" + + "tor\030\002 \001(\0132?.google.monitoring.dashboard." + + "v1.TimeSeriesFilterRatio.RatioPart\022J\n\025se" + + "condary_aggregation\030\003 \001(\0132+.google.monit" + + "oring.dashboard.v1.Aggregation\022W\n\027pick_t" + + "ime_series_filter\030\004 \001(\01324.google.monitor" + + "ing.dashboard.v1.PickTimeSeriesFilterH\000\022" + + "i\n\036statistical_time_series_filter\030\005 \001(\0132" + + ";.google.monitoring.dashboard.v1.Statist" + + "icalTimeSeriesFilterB\002\030\001H\000\032b\n\tRatioPart\022" + + "\023\n\006filter\030\001 \001(\tB\003\340A\002\022@\n\013aggregation\030\002 \001(" + + "\0132+.google.monitoring.dashboard.v1.Aggre" + + "gationB\017\n\routput_filter\"\252\003\n\tThreshold\022\r\n" + + "\005label\030\001 \001(\t\022\r\n\005value\030\002 \001(\001\022>\n\005color\030\003 \001" + + "(\0162/.google.monitoring.dashboard.v1.Thre" + + "shold.Color\022F\n\tdirection\030\004 \001(\01623.google." + + "monitoring.dashboard.v1.Threshold.Direct" + + "ion\022I\n\013target_axis\030\005 \001(\01624.google.monito" + + "ring.dashboard.v1.Threshold.TargetAxis\"3" + + "\n\005Color\022\025\n\021COLOR_UNSPECIFIED\020\000\022\n\n\006YELLOW" + + "\020\004\022\007\n\003RED\020\006\"<\n\tDirection\022\031\n\025DIRECTION_UN" + + "SPECIFIED\020\000\022\t\n\005ABOVE\020\001\022\t\n\005BELOW\020\002\"9\n\nTar" + + "getAxis\022\033\n\027TARGET_AXIS_UNSPECIFIED\020\000\022\006\n\002" + + "Y1\020\001\022\006\n\002Y2\020\002*Q\n\016SparkChartType\022 \n\034SPARK_" + + "CHART_TYPE_UNSPECIFIED\020\000\022\016\n\nSPARK_LINE\020\001" + + "\022\r\n\tSPARK_BAR\020\002B\365\001\n\"com.google.monitorin" + + "g.dashboard.v1B\014MetricsProtoP\001ZFcloud.go" + + "ogle.com/go/monitoring/dashboard/apiv1/d" + + "ashboardpb;dashboardpb\252\002$Google.Cloud.Mo" + + "nitoring.Dashboard.V1\312\002$Google\\Cloud\\Mon" + + "itoring\\Dashboard\\V1\352\002(Google::Cloud::Mo" + + "nitoring::Dashboard::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.monitoring.dashboard.v1.CommonProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor, + new java.lang.String[] { "TimeSeriesFilter", "TimeSeriesFilterRatio", "TimeSeriesQueryLanguage", "PrometheusQuery", "UnitOverride", "OutputFullDuration", "Source", }); + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor, + new java.lang.String[] { "Filter", "Aggregation", "SecondaryAggregation", "PickTimeSeriesFilter", "StatisticalTimeSeriesFilter", "OutputFilter", }); + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor, + new java.lang.String[] { "Numerator", "Denominator", "SecondaryAggregation", "PickTimeSeriesFilter", "StatisticalTimeSeriesFilter", "OutputFilter", }); + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor = + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor, + new java.lang.String[] { "Filter", "Aggregation", }); + internal_static_google_monitoring_dashboard_v1_Threshold_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_monitoring_dashboard_v1_Threshold_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_Threshold_descriptor, + new java.lang.String[] { "Label", "Value", "Color", "Direction", "TargetAxis", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.monitoring.dashboard.v1.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java similarity index 73% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java index 459b6aa30d04..4b55ae44d073 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/layouts.proto @@ -20,8 +5,6 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * A mosaic layout divides the available space into a grid of blocks, and
            * overlays the grid with tiles. Unlike `GridLayout`, tiles may span multiple
          @@ -30,49 +13,44 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.MosaicLayout}
            */
          -public final class MosaicLayout extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class MosaicLayout extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.MosaicLayout)
               MosaicLayoutOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use MosaicLayout.newBuilder() to construct.
             private MosaicLayout(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
             private MosaicLayout() {
               tiles_ = java.util.Collections.emptyList();
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new MosaicLayout();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.LayoutsProto
          -        .internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.LayoutsProto
          -        .internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.MosaicLayout.class,
          -            com.google.monitoring.dashboard.v1.MosaicLayout.Builder.class);
          +            com.google.monitoring.dashboard.v1.MosaicLayout.class, com.google.monitoring.dashboard.v1.MosaicLayout.Builder.class);
             }
           
          -  public interface TileOrBuilder
          -      extends
          +  public interface TileOrBuilder extends
                 // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.MosaicLayout.Tile)
                 com.google.protobuf.MessageOrBuilder {
           
               /**
          -     *
          -     *
                * 
                * The zero-indexed position of the tile in grid blocks relative to the
                * left edge of the grid. Tiles must be contained within the specified
          @@ -80,80 +58,62 @@ public interface TileOrBuilder
                * 
          * * int32 x_pos = 1; - * * @return The xPos. */ int getXPos(); /** - * - * *
                * The zero-indexed position of the tile in grid blocks relative to the
                * top edge of the grid. `y_pos` cannot be negative.
                * 
          * * int32 y_pos = 2; - * * @return The yPos. */ int getYPos(); /** - * - * *
                * The width of the tile, measured in grid blocks. Tiles must have a
                * minimum width of 1.
                * 
          * * int32 width = 3; - * * @return The width. */ int getWidth(); /** - * - * *
                * The height of the tile, measured in grid blocks. Tiles must have a
                * minimum height of 1.
                * 
          * * int32 height = 4; - * * @return The height. */ int getHeight(); /** - * - * *
                * The informational widget contained in the tile. For example an `XyChart`.
                * 
          * * .google.monitoring.dashboard.v1.Widget widget = 5; - * * @return Whether the widget field is set. */ boolean hasWidget(); /** - * - * *
                * The informational widget contained in the tile. For example an `XyChart`.
                * 
          * * .google.monitoring.dashboard.v1.Widget widget = 5; - * * @return The widget. */ com.google.monitoring.dashboard.v1.Widget getWidget(); /** - * - * *
                * The informational widget contained in the tile. For example an `XyChart`.
                * 
          @@ -163,8 +123,6 @@ public interface TileOrBuilder com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetOrBuilder(); } /** - * - * *
              * A single tile in the mosaic. The placement and size of the tile are
              * configurable.
          @@ -172,45 +130,42 @@ public interface TileOrBuilder
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.MosaicLayout.Tile}
              */
          -  public static final class Tile extends com.google.protobuf.GeneratedMessageV3
          -      implements
          +  public static final class Tile extends
          +      com.google.protobuf.GeneratedMessageV3 implements
                 // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.MosaicLayout.Tile)
                 TileOrBuilder {
          -    private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
               // Use Tile.newBuilder() to construct.
               private Tile(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
          -
          -    private Tile() {}
          +    private Tile() {
          +    }
           
               @java.lang.Override
               @SuppressWarnings({"unused"})
          -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +    protected java.lang.Object newInstance(
          +        UnusedPrivateParameter unused) {
                 return new Tile();
               }
           
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto
          -          .internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto
          -          .internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.MosaicLayout.Tile.class,
          -              com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder.class);
          +              com.google.monitoring.dashboard.v1.MosaicLayout.Tile.class, com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder.class);
               }
           
               private int bitField0_;
               public static final int X_POS_FIELD_NUMBER = 1;
               private int xPos_ = 0;
               /**
          -     *
          -     *
                * 
                * The zero-indexed position of the tile in grid blocks relative to the
                * left edge of the grid. Tiles must be contained within the specified
          @@ -218,7 +173,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                * 
          * * int32 x_pos = 1; - * * @return The xPos. */ @java.lang.Override @@ -229,15 +183,12 @@ public int getXPos() { public static final int Y_POS_FIELD_NUMBER = 2; private int yPos_ = 0; /** - * - * *
                * The zero-indexed position of the tile in grid blocks relative to the
                * top edge of the grid. `y_pos` cannot be negative.
                * 
          * * int32 y_pos = 2; - * * @return The yPos. */ @java.lang.Override @@ -248,15 +199,12 @@ public int getYPos() { public static final int WIDTH_FIELD_NUMBER = 3; private int width_ = 0; /** - * - * *
                * The width of the tile, measured in grid blocks. Tiles must have a
                * minimum width of 1.
                * 
          * * int32 width = 3; - * * @return The width. */ @java.lang.Override @@ -267,15 +215,12 @@ public int getWidth() { public static final int HEIGHT_FIELD_NUMBER = 4; private int height_ = 0; /** - * - * *
                * The height of the tile, measured in grid blocks. Tiles must have a
                * minimum height of 1.
                * 
          * * int32 height = 4; - * * @return The height. */ @java.lang.Override @@ -286,14 +231,11 @@ public int getHeight() { public static final int WIDGET_FIELD_NUMBER = 5; private com.google.monitoring.dashboard.v1.Widget widget_; /** - * - * *
                * The informational widget contained in the tile. For example an `XyChart`.
                * 
          * * .google.monitoring.dashboard.v1.Widget widget = 5; - * * @return Whether the widget field is set. */ @java.lang.Override @@ -301,25 +243,18 @@ public boolean hasWidget() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * The informational widget contained in the tile. For example an `XyChart`.
                * 
          * * .google.monitoring.dashboard.v1.Widget widget = 5; - * * @return The widget. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Widget getWidget() { - return widget_ == null - ? com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() - : widget_; + return widget_ == null ? com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() : widget_; } /** - * - * *
                * The informational widget contained in the tile. For example an `XyChart`.
                * 
          @@ -328,13 +263,10 @@ public com.google.monitoring.dashboard.v1.Widget getWidget() { */ @java.lang.Override public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetOrBuilder() { - return widget_ == null - ? com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() - : widget_; + return widget_ == null ? com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() : widget_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -346,7 +278,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (xPos_ != 0) { output.writeInt32(1, xPos_); } @@ -372,19 +305,24 @@ public int getSerializedSize() { size = 0; if (xPos_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, xPos_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, xPos_); } if (yPos_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, yPos_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, yPos_); } if (width_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, width_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, width_); } if (height_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, height_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, height_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getWidget()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getWidget()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -394,21 +332,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.MosaicLayout.Tile)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.MosaicLayout.Tile other = - (com.google.monitoring.dashboard.v1.MosaicLayout.Tile) obj; + com.google.monitoring.dashboard.v1.MosaicLayout.Tile other = (com.google.monitoring.dashboard.v1.MosaicLayout.Tile) obj; - if (getXPos() != other.getXPos()) return false; - if (getYPos() != other.getYPos()) return false; - if (getWidth() != other.getWidth()) return false; - if (getHeight() != other.getHeight()) return false; + if (getXPos() + != other.getXPos()) return false; + if (getYPos() + != other.getYPos()) return false; + if (getWidth() + != other.getWidth()) return false; + if (getHeight() + != other.getHeight()) return false; if (hasWidget() != other.hasWidget()) return false; if (hasWidget()) { - if (!getWidget().equals(other.getWidget())) return false; + if (!getWidget() + .equals(other.getWidget())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -439,94 +381,89 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.MosaicLayout.Tile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile 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.MosaicLayout.Tile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.dashboard.v1.MosaicLayout.Tile prototype) { + public static Builder newBuilder(com.google.monitoring.dashboard.v1.MosaicLayout.Tile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -536,8 +473,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                * A single tile in the mosaic. The placement and size of the tile are
                * configurable.
          @@ -545,24 +480,21 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.monitoring.dashboard.v1.MosaicLayout.Tile}
                */
          -    public static final class Builder
          -        extends com.google.protobuf.GeneratedMessageV3.Builder
          -        implements
          +    public static final class Builder extends
          +        com.google.protobuf.GeneratedMessageV3.Builder implements
                   // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.MosaicLayout.Tile)
                   com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder {
          -      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -        return com.google.monitoring.dashboard.v1.LayoutsProto
          -            .internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor;
          +      public static final com.google.protobuf.Descriptors.Descriptor
          +          getDescriptor() {
          +        return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor;
                 }
           
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
          -        return com.google.monitoring.dashboard.v1.LayoutsProto
          -            .internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable
          +        return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
          -                com.google.monitoring.dashboard.v1.MosaicLayout.Tile.class,
          -                com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder.class);
          +                com.google.monitoring.dashboard.v1.MosaicLayout.Tile.class, com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder.class);
                 }
           
                 // Construct using com.google.monitoring.dashboard.v1.MosaicLayout.Tile.newBuilder()
          @@ -570,17 +502,17 @@ private Builder() {
                   maybeForceBuilderInitialization();
                 }
           
          -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +      private Builder(
          +          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   super(parent);
                   maybeForceBuilderInitialization();
                 }
          -
                 private void maybeForceBuilderInitialization() {
          -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
          +        if (com.google.protobuf.GeneratedMessageV3
          +                .alwaysUseFieldBuilders) {
                     getWidgetFieldBuilder();
                   }
                 }
          -
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
          @@ -598,9 +530,9 @@ public Builder clear() {
                 }
           
                 @java.lang.Override
          -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -        return com.google.monitoring.dashboard.v1.LayoutsProto
          -            .internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor;
          +      public com.google.protobuf.Descriptors.Descriptor
          +          getDescriptorForType() {
          +        return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor;
                 }
           
                 @java.lang.Override
          @@ -619,11 +551,8 @@ public com.google.monitoring.dashboard.v1.MosaicLayout.Tile build() {
           
                 @java.lang.Override
                 public com.google.monitoring.dashboard.v1.MosaicLayout.Tile buildPartial() {
          -        com.google.monitoring.dashboard.v1.MosaicLayout.Tile result =
          -            new com.google.monitoring.dashboard.v1.MosaicLayout.Tile(this);
          -        if (bitField0_ != 0) {
          -          buildPartial0(result);
          -        }
          +        com.google.monitoring.dashboard.v1.MosaicLayout.Tile result = new com.google.monitoring.dashboard.v1.MosaicLayout.Tile(this);
          +        if (bitField0_ != 0) { buildPartial0(result); }
                   onBuilt();
                   return result;
                 }
          @@ -644,7 +573,9 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.MosaicLayout.Tile
                   }
                   int to_bitField0_ = 0;
                   if (((from_bitField0_ & 0x00000010) != 0)) {
          -          result.widget_ = widgetBuilder_ == null ? widget_ : widgetBuilder_.build();
          +          result.widget_ = widgetBuilder_ == null
          +              ? widget_
          +              : widgetBuilder_.build();
                     to_bitField0_ |= 0x00000001;
                   }
                   result.bitField0_ |= to_bitField0_;
          @@ -654,41 +585,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.MosaicLayout.Tile
                 public Builder clone() {
                   return super.clone();
                 }
          -
                 @java.lang.Override
                 public Builder setField(
          -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +          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) {
          +      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) {
          +      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) {
          +          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) {
          +          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.MosaicLayout.Tile) {
          -          return mergeFrom((com.google.monitoring.dashboard.v1.MosaicLayout.Tile) other);
          +          return mergeFrom((com.google.monitoring.dashboard.v1.MosaicLayout.Tile)other);
                   } else {
                     super.mergeFrom(other);
                     return this;
          @@ -696,8 +624,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                 }
           
                 public Builder mergeFrom(com.google.monitoring.dashboard.v1.MosaicLayout.Tile other) {
          -        if (other == com.google.monitoring.dashboard.v1.MosaicLayout.Tile.getDefaultInstance())
          -          return this;
          +        if (other == com.google.monitoring.dashboard.v1.MosaicLayout.Tile.getDefaultInstance()) return this;
                   if (other.getXPos() != 0) {
                     setXPos(other.getXPos());
                   }
          @@ -739,43 +666,39 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
          -              case 8:
          -                {
          -                  xPos_ = input.readInt32();
          -                  bitField0_ |= 0x00000001;
          -                  break;
          -                } // case 8
          -              case 16:
          -                {
          -                  yPos_ = input.readInt32();
          -                  bitField0_ |= 0x00000002;
          -                  break;
          -                } // case 16
          -              case 24:
          -                {
          -                  width_ = input.readInt32();
          -                  bitField0_ |= 0x00000004;
          -                  break;
          -                } // case 24
          -              case 32:
          -                {
          -                  height_ = input.readInt32();
          -                  bitField0_ |= 0x00000008;
          -                  break;
          -                } // case 32
          -              case 42:
          -                {
          -                  input.readMessage(getWidgetFieldBuilder().getBuilder(), extensionRegistry);
          -                  bitField0_ |= 0x00000010;
          -                  break;
          -                } // case 42
          -              default:
          -                {
          -                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                    done = true; // was an endgroup tag
          -                  }
          -                  break;
          -                } // default:
          +              case 8: {
          +                xPos_ = input.readInt32();
          +                bitField0_ |= 0x00000001;
          +                break;
          +              } // case 8
          +              case 16: {
          +                yPos_ = input.readInt32();
          +                bitField0_ |= 0x00000002;
          +                break;
          +              } // case 16
          +              case 24: {
          +                width_ = input.readInt32();
          +                bitField0_ |= 0x00000004;
          +                break;
          +              } // case 24
          +              case 32: {
          +                height_ = input.readInt32();
          +                bitField0_ |= 0x00000008;
          +                break;
          +              } // case 32
          +              case 42: {
          +                input.readMessage(
          +                    getWidgetFieldBuilder().getBuilder(),
          +                    extensionRegistry);
          +                bitField0_ |= 0x00000010;
          +                break;
          +              } // case 42
          +              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) {
          @@ -785,13 +708,10 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
          -
                 private int bitField0_;
           
          -      private int xPos_;
          +      private int xPos_ ;
                 /**
          -       *
          -       *
                  * 
                  * The zero-indexed position of the tile in grid blocks relative to the
                  * left edge of the grid. Tiles must be contained within the specified
          @@ -799,7 +719,6 @@ public Builder mergeFrom(
                  * 
          * * int32 x_pos = 1; - * * @return The xPos. */ @java.lang.Override @@ -807,8 +726,6 @@ public int getXPos() { return xPos_; } /** - * - * *
                  * The zero-indexed position of the tile in grid blocks relative to the
                  * left edge of the grid. Tiles must be contained within the specified
          @@ -816,7 +733,6 @@ public int getXPos() {
                  * 
          * * int32 x_pos = 1; - * * @param value The xPos to set. * @return This builder for chaining. */ @@ -828,8 +744,6 @@ public Builder setXPos(int value) { return this; } /** - * - * *
                  * The zero-indexed position of the tile in grid blocks relative to the
                  * left edge of the grid. Tiles must be contained within the specified
          @@ -837,7 +751,6 @@ public Builder setXPos(int value) {
                  * 
          * * int32 x_pos = 1; - * * @return This builder for chaining. */ public Builder clearXPos() { @@ -847,17 +760,14 @@ public Builder clearXPos() { return this; } - private int yPos_; + private int yPos_ ; /** - * - * *
                  * The zero-indexed position of the tile in grid blocks relative to the
                  * top edge of the grid. `y_pos` cannot be negative.
                  * 
          * * int32 y_pos = 2; - * * @return The yPos. */ @java.lang.Override @@ -865,15 +775,12 @@ public int getYPos() { return yPos_; } /** - * - * *
                  * The zero-indexed position of the tile in grid blocks relative to the
                  * top edge of the grid. `y_pos` cannot be negative.
                  * 
          * * int32 y_pos = 2; - * * @param value The yPos to set. * @return This builder for chaining. */ @@ -885,15 +792,12 @@ public Builder setYPos(int value) { return this; } /** - * - * *
                  * The zero-indexed position of the tile in grid blocks relative to the
                  * top edge of the grid. `y_pos` cannot be negative.
                  * 
          * * int32 y_pos = 2; - * * @return This builder for chaining. */ public Builder clearYPos() { @@ -903,17 +807,14 @@ public Builder clearYPos() { return this; } - private int width_; + private int width_ ; /** - * - * *
                  * The width of the tile, measured in grid blocks. Tiles must have a
                  * minimum width of 1.
                  * 
          * * int32 width = 3; - * * @return The width. */ @java.lang.Override @@ -921,15 +822,12 @@ public int getWidth() { return width_; } /** - * - * *
                  * The width of the tile, measured in grid blocks. Tiles must have a
                  * minimum width of 1.
                  * 
          * * int32 width = 3; - * * @param value The width to set. * @return This builder for chaining. */ @@ -941,15 +839,12 @@ public Builder setWidth(int value) { return this; } /** - * - * *
                  * The width of the tile, measured in grid blocks. Tiles must have a
                  * minimum width of 1.
                  * 
          * * int32 width = 3; - * * @return This builder for chaining. */ public Builder clearWidth() { @@ -959,17 +854,14 @@ public Builder clearWidth() { return this; } - private int height_; + private int height_ ; /** - * - * *
                  * The height of the tile, measured in grid blocks. Tiles must have a
                  * minimum height of 1.
                  * 
          * * int32 height = 4; - * * @return The height. */ @java.lang.Override @@ -977,15 +869,12 @@ public int getHeight() { return height_; } /** - * - * *
                  * The height of the tile, measured in grid blocks. Tiles must have a
                  * minimum height of 1.
                  * 
          * * int32 height = 4; - * * @param value The height to set. * @return This builder for chaining. */ @@ -997,15 +886,12 @@ public Builder setHeight(int value) { return this; } /** - * - * *
                  * The height of the tile, measured in grid blocks. Tiles must have a
                  * minimum height of 1.
                  * 
          * * int32 height = 4; - * * @return This builder for chaining. */ public Builder clearHeight() { @@ -1017,47 +903,34 @@ public Builder clearHeight() { private com.google.monitoring.dashboard.v1.Widget widget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, - com.google.monitoring.dashboard.v1.Widget.Builder, - com.google.monitoring.dashboard.v1.WidgetOrBuilder> - widgetBuilder_; + com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder> widgetBuilder_; /** - * - * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          * * .google.monitoring.dashboard.v1.Widget widget = 5; - * * @return Whether the widget field is set. */ public boolean hasWidget() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          * * .google.monitoring.dashboard.v1.Widget widget = 5; - * * @return The widget. */ public com.google.monitoring.dashboard.v1.Widget getWidget() { if (widgetBuilder_ == null) { - return widget_ == null - ? com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() - : widget_; + return widget_ == null ? com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() : widget_; } else { return widgetBuilder_.getMessage(); } } /** - * - * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          @@ -1078,15 +951,14 @@ public Builder setWidget(com.google.monitoring.dashboard.v1.Widget value) { return this; } /** - * - * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          * * .google.monitoring.dashboard.v1.Widget widget = 5; */ - public Builder setWidget(com.google.monitoring.dashboard.v1.Widget.Builder builderForValue) { + public Builder setWidget( + com.google.monitoring.dashboard.v1.Widget.Builder builderForValue) { if (widgetBuilder_ == null) { widget_ = builderForValue.build(); } else { @@ -1097,8 +969,6 @@ public Builder setWidget(com.google.monitoring.dashboard.v1.Widget.Builder build return this; } /** - * - * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          @@ -1107,9 +977,9 @@ public Builder setWidget(com.google.monitoring.dashboard.v1.Widget.Builder build */ public Builder mergeWidget(com.google.monitoring.dashboard.v1.Widget value) { if (widgetBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && widget_ != null - && widget_ != com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + widget_ != null && + widget_ != com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()) { getWidgetBuilder().mergeFrom(value); } else { widget_ = value; @@ -1124,8 +994,6 @@ public Builder mergeWidget(com.google.monitoring.dashboard.v1.Widget value) { return this; } /** - * - * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          @@ -1143,8 +1011,6 @@ public Builder clearWidget() { return this; } /** - * - * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          @@ -1157,8 +1023,6 @@ public com.google.monitoring.dashboard.v1.Widget.Builder getWidgetBuilder() { return getWidgetFieldBuilder().getBuilder(); } /** - * - * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          @@ -1169,14 +1033,11 @@ public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetOrBuilder() { if (widgetBuilder_ != null) { return widgetBuilder_.getMessageOrBuilder(); } else { - return widget_ == null - ? com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() - : widget_; + return widget_ == null ? + com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() : widget_; } } /** - * - * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          @@ -1184,22 +1045,18 @@ public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetOrBuilder() { * .google.monitoring.dashboard.v1.Widget widget = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, - com.google.monitoring.dashboard.v1.Widget.Builder, - com.google.monitoring.dashboard.v1.WidgetOrBuilder> + com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder> getWidgetFieldBuilder() { if (widgetBuilder_ == null) { - widgetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, - com.google.monitoring.dashboard.v1.Widget.Builder, - com.google.monitoring.dashboard.v1.WidgetOrBuilder>( - getWidget(), getParentForChildren(), isClean()); + widgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder>( + getWidget(), + getParentForChildren(), + isClean()); widget_ = null; } return widgetBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1212,12 +1069,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.MosaicLayout.Tile) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.MosaicLayout.Tile) private static final com.google.monitoring.dashboard.v1.MosaicLayout.Tile DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.MosaicLayout.Tile(); } @@ -1226,28 +1083,27 @@ public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Tile 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tile 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; @@ -1262,20 +1118,18 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.MosaicLayout.Tile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int COLUMNS_FIELD_NUMBER = 1; private int columns_ = 0; /** - * - * *
              * The number of columns in the mosaic grid. The number of columns must be
              * between 1 and 12, inclusive.
              * 
          * * int32 columns = 1; - * * @return The columns. */ @java.lang.Override @@ -1284,12 +1138,9 @@ public int getColumns() { } public static final int TILES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List tiles_; /** - * - * *
              * The tiles to display.
              * 
          @@ -1301,8 +1152,6 @@ public java.util.List getT return tiles_; } /** - * - * *
              * The tiles to display.
              * 
          @@ -1310,13 +1159,11 @@ public java.util.List getT * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ @java.lang.Override - public java.util.List + public java.util.List getTilesOrBuilderList() { return tiles_; } /** - * - * *
              * The tiles to display.
              * 
          @@ -1328,8 +1175,6 @@ public int getTilesCount() { return tiles_.size(); } /** - * - * *
              * The tiles to display.
              * 
          @@ -1341,8 +1186,6 @@ public com.google.monitoring.dashboard.v1.MosaicLayout.Tile getTiles(int index) return tiles_.get(index); } /** - * - * *
              * The tiles to display.
              * 
          @@ -1356,7 +1199,6 @@ public com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder getTilesOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1368,7 +1210,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (columns_ != 0) { output.writeInt32(1, columns_); } @@ -1385,10 +1228,12 @@ public int getSerializedSize() { size = 0; if (columns_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, columns_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, columns_); } for (int i = 0; i < tiles_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, tiles_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, tiles_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1398,16 +1243,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.MosaicLayout)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.MosaicLayout other = - (com.google.monitoring.dashboard.v1.MosaicLayout) obj; + com.google.monitoring.dashboard.v1.MosaicLayout other = (com.google.monitoring.dashboard.v1.MosaicLayout) obj; - if (getColumns() != other.getColumns()) return false; - if (!getTilesList().equals(other.getTilesList())) return false; + if (getColumns() + != other.getColumns()) return false; + if (!getTilesList() + .equals(other.getTilesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1430,104 +1276,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.MosaicLayout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.MosaicLayout 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.MosaicLayout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.MosaicLayout parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.MosaicLayout parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.MosaicLayout parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.MosaicLayout prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * A mosaic layout divides the available space into a grid of blocks, and
              * overlays the grid with tiles. Unlike `GridLayout`, tiles may span multiple
          @@ -1536,32 +1377,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.MosaicLayout}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.MosaicLayout)
                 com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto
          -          .internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto
          -          .internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.MosaicLayout.class,
          -              com.google.monitoring.dashboard.v1.MosaicLayout.Builder.class);
          +              com.google.monitoring.dashboard.v1.MosaicLayout.class, com.google.monitoring.dashboard.v1.MosaicLayout.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.MosaicLayout.newBuilder()
          -    private Builder() {}
          +    private Builder() {
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          -      super(parent);
               }
           
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +      super(parent);
          +
          +    }
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -1578,9 +1420,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto
          -          .internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor;
               }
           
               @java.lang.Override
          @@ -1599,18 +1441,14 @@ public com.google.monitoring.dashboard.v1.MosaicLayout build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.MosaicLayout buildPartial() {
          -      com.google.monitoring.dashboard.v1.MosaicLayout result =
          -          new com.google.monitoring.dashboard.v1.MosaicLayout(this);
          +      com.google.monitoring.dashboard.v1.MosaicLayout result = new com.google.monitoring.dashboard.v1.MosaicLayout(this);
                 buildPartialRepeatedFields(result);
          -      if (bitField0_ != 0) {
          -        buildPartial0(result);
          -      }
          +      if (bitField0_ != 0) { buildPartial0(result); }
                 onBuilt();
                 return result;
               }
           
          -    private void buildPartialRepeatedFields(
          -        com.google.monitoring.dashboard.v1.MosaicLayout result) {
          +    private void buildPartialRepeatedFields(com.google.monitoring.dashboard.v1.MosaicLayout result) {
                 if (tilesBuilder_ == null) {
                   if (((bitField0_ & 0x00000002) != 0)) {
                     tiles_ = java.util.Collections.unmodifiableList(tiles_);
          @@ -1633,39 +1471,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.MosaicLayout resul
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.MosaicLayout) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.MosaicLayout) other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.MosaicLayout)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1673,8 +1510,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.MosaicLayout other) {
          -      if (other == com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance())
          -        return this;
          +      if (other == com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance()) return this;
                 if (other.getColumns() != 0) {
                   setColumns(other.getColumns());
                 }
          @@ -1696,10 +1532,9 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.MosaicLayout other)
                       tilesBuilder_ = null;
                       tiles_ = other.tiles_;
                       bitField0_ = (bitField0_ & ~0x00000002);
          -            tilesBuilder_ =
          -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          -                    ? getTilesFieldBuilder()
          -                    : null;
          +            tilesBuilder_ = 
          +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          +                 getTilesFieldBuilder() : null;
                     } else {
                       tilesBuilder_.addAllMessages(other.tiles_);
                     }
          @@ -1731,33 +1566,30 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 8:
          -              {
          -                columns_ = input.readInt32();
          -                bitField0_ |= 0x00000001;
          -                break;
          -              } // case 8
          -            case 26:
          -              {
          -                com.google.monitoring.dashboard.v1.MosaicLayout.Tile m =
          -                    input.readMessage(
          -                        com.google.monitoring.dashboard.v1.MosaicLayout.Tile.parser(),
          -                        extensionRegistry);
          -                if (tilesBuilder_ == null) {
          -                  ensureTilesIsMutable();
          -                  tiles_.add(m);
          -                } else {
          -                  tilesBuilder_.addMessage(m);
          -                }
          -                break;
          -              } // case 26
          -            default:
          -              {
          -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                  done = true; // was an endgroup tag
          -                }
          -                break;
          -              } // default:
          +            case 8: {
          +              columns_ = input.readInt32();
          +              bitField0_ |= 0x00000001;
          +              break;
          +            } // case 8
          +            case 26: {
          +              com.google.monitoring.dashboard.v1.MosaicLayout.Tile m =
          +                  input.readMessage(
          +                      com.google.monitoring.dashboard.v1.MosaicLayout.Tile.parser(),
          +                      extensionRegistry);
          +              if (tilesBuilder_ == null) {
          +                ensureTilesIsMutable();
          +                tiles_.add(m);
          +              } else {
          +                tilesBuilder_.addMessage(m);
          +              }
          +              break;
          +            } // case 26
          +            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) {
          @@ -1767,20 +1599,16 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          -
               private int bitField0_;
           
          -    private int columns_;
          +    private int columns_ ;
               /**
          -     *
          -     *
                * 
                * The number of columns in the mosaic grid. The number of columns must be
                * between 1 and 12, inclusive.
                * 
          * * int32 columns = 1; - * * @return The columns. */ @java.lang.Override @@ -1788,15 +1616,12 @@ public int getColumns() { return columns_; } /** - * - * *
                * The number of columns in the mosaic grid. The number of columns must be
                * between 1 and 12, inclusive.
                * 
          * * int32 columns = 1; - * * @param value The columns to set. * @return This builder for chaining. */ @@ -1808,15 +1633,12 @@ public Builder setColumns(int value) { return this; } /** - * - * *
                * The number of columns in the mosaic grid. The number of columns must be
                * between 1 and 12, inclusive.
                * 
          * * int32 columns = 1; - * * @return This builder for chaining. */ public Builder clearColumns() { @@ -1827,25 +1649,18 @@ public Builder clearColumns() { } private java.util.List tiles_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTilesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - tiles_ = - new java.util.ArrayList(tiles_); + tiles_ = new java.util.ArrayList(tiles_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.MosaicLayout.Tile, - com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder, - com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder> - tilesBuilder_; + com.google.monitoring.dashboard.v1.MosaicLayout.Tile, com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder, com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder> tilesBuilder_; /** - * - * *
                * The tiles to display.
                * 
          @@ -1860,8 +1675,6 @@ public java.util.List getT } } /** - * - * *
                * The tiles to display.
                * 
          @@ -1876,8 +1689,6 @@ public int getTilesCount() { } } /** - * - * *
                * The tiles to display.
                * 
          @@ -1892,15 +1703,14 @@ public com.google.monitoring.dashboard.v1.MosaicLayout.Tile getTiles(int index) } } /** - * - * *
                * The tiles to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - public Builder setTiles(int index, com.google.monitoring.dashboard.v1.MosaicLayout.Tile value) { + public Builder setTiles( + int index, com.google.monitoring.dashboard.v1.MosaicLayout.Tile value) { if (tilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1914,8 +1724,6 @@ public Builder setTiles(int index, com.google.monitoring.dashboard.v1.MosaicLayo return this; } /** - * - * *
                * The tiles to display.
                * 
          @@ -1934,8 +1742,6 @@ public Builder setTiles( return this; } /** - * - * *
                * The tiles to display.
                * 
          @@ -1956,15 +1762,14 @@ public Builder addTiles(com.google.monitoring.dashboard.v1.MosaicLayout.Tile val return this; } /** - * - * *
                * The tiles to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - public Builder addTiles(int index, com.google.monitoring.dashboard.v1.MosaicLayout.Tile value) { + public Builder addTiles( + int index, com.google.monitoring.dashboard.v1.MosaicLayout.Tile value) { if (tilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1978,8 +1783,6 @@ public Builder addTiles(int index, com.google.monitoring.dashboard.v1.MosaicLayo return this; } /** - * - * *
                * The tiles to display.
                * 
          @@ -1998,8 +1801,6 @@ public Builder addTiles( return this; } /** - * - * *
                * The tiles to display.
                * 
          @@ -2018,8 +1819,6 @@ public Builder addTiles( return this; } /** - * - * *
                * The tiles to display.
                * 
          @@ -2030,7 +1829,8 @@ public Builder addAllTiles( java.lang.Iterable values) { if (tilesBuilder_ == null) { ensureTilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tiles_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tiles_); onChanged(); } else { tilesBuilder_.addAllMessages(values); @@ -2038,8 +1838,6 @@ public Builder addAllTiles( return this; } /** - * - * *
                * The tiles to display.
                * 
          @@ -2057,8 +1855,6 @@ public Builder clearTiles() { return this; } /** - * - * *
                * The tiles to display.
                * 
          @@ -2076,20 +1872,17 @@ public Builder removeTiles(int index) { return this; } /** - * - * *
                * The tiles to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - public com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder getTilesBuilder(int index) { + public com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder getTilesBuilder( + int index) { return getTilesFieldBuilder().getBuilder(index); } /** - * - * *
                * The tiles to display.
                * 
          @@ -2099,22 +1892,19 @@ public com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder getTilesBuil public com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder getTilesOrBuilder( int index) { if (tilesBuilder_ == null) { - return tiles_.get(index); - } else { + return tiles_.get(index); } else { return tilesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                * The tiles to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - public java.util.List - getTilesOrBuilderList() { + public java.util.List + getTilesOrBuilderList() { if (tilesBuilder_ != null) { return tilesBuilder_.getMessageOrBuilderList(); } else { @@ -2122,8 +1912,6 @@ public com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder getTilesOrB } } /** - * - * *
                * The tiles to display.
                * 
          @@ -2131,56 +1919,49 @@ public com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder getTilesOrB * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ public com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder addTilesBuilder() { - return getTilesFieldBuilder() - .addBuilder(com.google.monitoring.dashboard.v1.MosaicLayout.Tile.getDefaultInstance()); + return getTilesFieldBuilder().addBuilder( + com.google.monitoring.dashboard.v1.MosaicLayout.Tile.getDefaultInstance()); } /** - * - * *
                * The tiles to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - public com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder addTilesBuilder(int index) { - return getTilesFieldBuilder() - .addBuilder( - index, com.google.monitoring.dashboard.v1.MosaicLayout.Tile.getDefaultInstance()); + public com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder addTilesBuilder( + int index) { + return getTilesFieldBuilder().addBuilder( + index, com.google.monitoring.dashboard.v1.MosaicLayout.Tile.getDefaultInstance()); } /** - * - * *
                * The tiles to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - public java.util.List - getTilesBuilderList() { + public java.util.List + getTilesBuilderList() { return getTilesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.MosaicLayout.Tile, - com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder, - com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder> + com.google.monitoring.dashboard.v1.MosaicLayout.Tile, com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder, com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder> getTilesFieldBuilder() { if (tilesBuilder_ == null) { - tilesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.MosaicLayout.Tile, - com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder, - com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder>( - tiles_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + tilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.MosaicLayout.Tile, com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder, com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder>( + tiles_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); tiles_ = null; } return tilesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2190,12 +1971,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.MosaicLayout) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.MosaicLayout) private static final com.google.monitoring.dashboard.v1.MosaicLayout DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.MosaicLayout(); } @@ -2204,27 +1985,27 @@ public static com.google.monitoring.dashboard.v1.MosaicLayout getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MosaicLayout 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MosaicLayout 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; @@ -2239,4 +2020,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.MosaicLayout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java similarity index 67% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java index 5ad7a38987b8..ba84d8d056c0 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java @@ -1,56 +1,34 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/layouts.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface MosaicLayoutOrBuilder - extends +public interface MosaicLayoutOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.MosaicLayout) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * The number of columns in the mosaic grid. The number of columns must be
              * between 1 and 12, inclusive.
              * 
          * * int32 columns = 1; - * * @return The columns. */ int getColumns(); /** - * - * *
              * The tiles to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - java.util.List getTilesList(); + java.util.List + getTilesList(); /** - * - * *
              * The tiles to display.
              * 
          @@ -59,8 +37,6 @@ public interface MosaicLayoutOrBuilder */ com.google.monitoring.dashboard.v1.MosaicLayout.Tile getTiles(int index); /** - * - * *
              * The tiles to display.
              * 
          @@ -69,24 +45,21 @@ public interface MosaicLayoutOrBuilder */ int getTilesCount(); /** - * - * *
              * The tiles to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - java.util.List + java.util.List getTilesOrBuilderList(); /** - * - * *
              * The tiles to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder getTilesOrBuilder(int index); + com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder getTilesOrBuilder( + int index); } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilter.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilter.java similarity index 61% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilter.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilter.java index d27c25244c36..9311805314ea 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilter.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilter.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/common.proto @@ -20,8 +5,6 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * Describes a ranking-based time series filter. Each input time series is
            * ranked with an aligner. The filter will allow up to `num_time_series` time
          @@ -34,16 +17,15 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.PickTimeSeriesFilter}
            */
          -public final class PickTimeSeriesFilter extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class PickTimeSeriesFilter extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.PickTimeSeriesFilter)
               PickTimeSeriesFilterOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use PickTimeSeriesFilter.newBuilder() to construct.
             private PickTimeSeriesFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
             private PickTimeSeriesFilter() {
               rankingMethod_ = 0;
               direction_ = 0;
          @@ -51,38 +33,34 @@ private PickTimeSeriesFilter() {
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new PickTimeSeriesFilter();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.CommonProto
          -        .internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.CommonProto
          -        .internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.class,
          -            com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder.class);
          +            com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.class, com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder.class);
             }
           
             /**
          -   *
          -   *
              * 
              * The value reducers that can be applied to a `PickTimeSeriesFilter`.
              * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method} */ - public enum Method implements com.google.protobuf.ProtocolMessageEnum { + public enum Method + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                * Not allowed. You must specify a different `Method` if you specify a
                * `PickTimeSeriesFilter`.
          @@ -92,8 +70,6 @@ public enum Method implements com.google.protobuf.ProtocolMessageEnum {
                */
               METHOD_UNSPECIFIED(0),
               /**
          -     *
          -     *
                * 
                * Select the mean of all values.
                * 
          @@ -102,8 +78,6 @@ public enum Method implements com.google.protobuf.ProtocolMessageEnum { */ METHOD_MEAN(1), /** - * - * *
                * Select the maximum value.
                * 
          @@ -112,8 +86,6 @@ public enum Method implements com.google.protobuf.ProtocolMessageEnum { */ METHOD_MAX(2), /** - * - * *
                * Select the minimum value.
                * 
          @@ -122,8 +94,6 @@ public enum Method implements com.google.protobuf.ProtocolMessageEnum { */ METHOD_MIN(3), /** - * - * *
                * Compute the sum of all values.
                * 
          @@ -132,8 +102,6 @@ public enum Method implements com.google.protobuf.ProtocolMessageEnum { */ METHOD_SUM(4), /** - * - * *
                * Select the most recent value.
                * 
          @@ -145,8 +113,6 @@ public enum Method implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                * Not allowed. You must specify a different `Method` if you specify a
                * `PickTimeSeriesFilter`.
          @@ -156,8 +122,6 @@ public enum Method implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int METHOD_UNSPECIFIED_VALUE = 0;
               /**
          -     *
          -     *
                * 
                * Select the mean of all values.
                * 
          @@ -166,8 +130,6 @@ public enum Method implements com.google.protobuf.ProtocolMessageEnum { */ public static final int METHOD_MEAN_VALUE = 1; /** - * - * *
                * Select the maximum value.
                * 
          @@ -176,8 +138,6 @@ public enum Method implements com.google.protobuf.ProtocolMessageEnum { */ public static final int METHOD_MAX_VALUE = 2; /** - * - * *
                * Select the minimum value.
                * 
          @@ -186,8 +146,6 @@ public enum Method implements com.google.protobuf.ProtocolMessageEnum { */ public static final int METHOD_MIN_VALUE = 3; /** - * - * *
                * Compute the sum of all values.
                * 
          @@ -196,8 +154,6 @@ public enum Method implements com.google.protobuf.ProtocolMessageEnum { */ public static final int METHOD_SUM_VALUE = 4; /** - * - * *
                * Select the most recent value.
                * 
          @@ -206,6 +162,7 @@ public enum Method implements com.google.protobuf.ProtocolMessageEnum { */ public static final int METHOD_LATEST_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -230,57 +187,52 @@ public static Method valueOf(int value) { */ public static Method forNumber(int value) { switch (value) { - case 0: - return METHOD_UNSPECIFIED; - case 1: - return METHOD_MEAN; - case 2: - return METHOD_MAX; - case 3: - return METHOD_MIN; - case 4: - return METHOD_SUM; - case 5: - return METHOD_LATEST; - default: - return null; + case 0: return METHOD_UNSPECIFIED; + case 1: return METHOD_MEAN; + case 2: return METHOD_MAX; + case 3: return METHOD_MIN; + case 4: return METHOD_SUM; + case 5: return METHOD_LATEST; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + 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 Method findValueByNumber(int number) { - return Method.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + Method> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Method findValueByNumber(int number) { + return Method.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() { + 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.PickTimeSeriesFilter.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDescriptor().getEnumTypes().get(0); } private static final Method[] VALUES = values(); - public static Method valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Method valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -298,18 +250,15 @@ private Method(int value) { } /** - * - * *
              * Describes the ranking directions.
              * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction} */ - public enum Direction implements com.google.protobuf.ProtocolMessageEnum { + public enum Direction + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                * Not allowed. You must specify a different `Direction` if you specify a
                * `PickTimeSeriesFilter`.
          @@ -319,8 +268,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum {
                */
               DIRECTION_UNSPECIFIED(0),
               /**
          -     *
          -     *
                * 
                * Pass the highest `num_time_series` ranking inputs.
                * 
          @@ -329,8 +276,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum { */ TOP(1), /** - * - * *
                * Pass the lowest `num_time_series` ranking inputs.
                * 
          @@ -342,8 +287,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                * Not allowed. You must specify a different `Direction` if you specify a
                * `PickTimeSeriesFilter`.
          @@ -353,8 +296,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int DIRECTION_UNSPECIFIED_VALUE = 0;
               /**
          -     *
          -     *
                * 
                * Pass the highest `num_time_series` ranking inputs.
                * 
          @@ -363,8 +304,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TOP_VALUE = 1; /** - * - * *
                * Pass the lowest `num_time_series` ranking inputs.
                * 
          @@ -373,6 +312,7 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BOTTOM_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -397,51 +337,49 @@ public static Direction valueOf(int value) { */ public static Direction forNumber(int value) { switch (value) { - case 0: - return DIRECTION_UNSPECIFIED; - case 1: - return TOP; - case 2: - return BOTTOM; - default: - return null; + case 0: return DIRECTION_UNSPECIFIED; + case 1: return TOP; + case 2: return BOTTOM; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + 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 Direction findValueByNumber(int number) { - return Direction.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + Direction> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Direction findValueByNumber(int number) { + return Direction.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() { + 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.PickTimeSeriesFilter.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDescriptor().getEnumTypes().get(1); } private static final Direction[] VALUES = values(); - public static Direction valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Direction valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -458,11 +396,10 @@ private Direction(int value) { // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction) } + private int bitField0_; public static final int RANKING_METHOD_FIELD_NUMBER = 1; private int rankingMethod_ = 0; /** - * - * *
              * `ranking_method` is applied to each time series independently to produce
              * the value which will be used to compare the time series to other time
          @@ -470,16 +407,12 @@ private Direction(int value) {
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; - * * @return The enum numeric value on the wire for rankingMethod. */ - @java.lang.Override - public int getRankingMethodValue() { + @java.lang.Override public int getRankingMethodValue() { return rankingMethod_; } /** - * - * *
              * `ranking_method` is applied to each time series independently to produce
              * the value which will be used to compare the time series to other time
          @@ -487,29 +420,21 @@ public int getRankingMethodValue() {
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; - * * @return The rankingMethod. */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method getRankingMethod() { - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method result = - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.forNumber(rankingMethod_); - return result == null - ? com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method getRankingMethod() { + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method result = com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.forNumber(rankingMethod_); + return result == null ? com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.UNRECOGNIZED : result; } public static final int NUM_TIME_SERIES_FIELD_NUMBER = 2; private int numTimeSeries_ = 0; /** - * - * *
              * How many time series to allow to pass through the filter.
              * 
          * * int32 num_time_series = 2; - * * @return The numTimeSeries. */ @java.lang.Override @@ -520,42 +445,68 @@ public int getNumTimeSeries() { public static final int DIRECTION_FIELD_NUMBER = 3; private int direction_ = 0; /** - * - * *
              * How to use the ranking to select time series that pass through the filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; - * * @return The enum numeric value on the wire for direction. */ - @java.lang.Override - public int getDirectionValue() { + @java.lang.Override public int getDirectionValue() { return direction_; } /** - * - * *
              * How to use the ranking to select time series that pass through the filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; - * * @return The direction. */ + @java.lang.Override public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction getDirection() { + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction result = com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.forNumber(direction_); + return result == null ? com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.UNRECOGNIZED : result; + } + + public static final int INTERVAL_FIELD_NUMBER = 4; + private com.google.type.Interval interval_; + /** + *
          +   * Select the top N streams/time series within this time interval
          +   * 
          + * + * .google.type.Interval interval = 4; + * @return Whether the interval field is set. + */ @java.lang.Override - public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction getDirection() { - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction result = - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.forNumber(direction_); - return result == null - ? com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.UNRECOGNIZED - : result; + public boolean hasInterval() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
          +   * Select the top N streams/time series within this time interval
          +   * 
          + * + * .google.type.Interval interval = 4; + * @return The interval. + */ + @java.lang.Override + public com.google.type.Interval getInterval() { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } + /** + *
          +   * Select the top N streams/time series within this time interval
          +   * 
          + * + * .google.type.Interval interval = 4; + */ + @java.lang.Override + public com.google.type.IntervalOrBuilder getIntervalOrBuilder() { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -567,20 +518,20 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (rankingMethod_ - != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.METHOD_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (rankingMethod_ != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.METHOD_UNSPECIFIED.getNumber()) { output.writeEnum(1, rankingMethod_); } if (numTimeSeries_ != 0) { output.writeInt32(2, numTimeSeries_); } - if (direction_ - != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.DIRECTION_UNSPECIFIED - .getNumber()) { + if (direction_ != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.DIRECTION_UNSPECIFIED.getNumber()) { output.writeEnum(3, direction_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getInterval()); + } getUnknownFields().writeTo(output); } @@ -590,18 +541,21 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (rankingMethod_ - != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.METHOD_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, rankingMethod_); + if (rankingMethod_ != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.METHOD_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, rankingMethod_); } if (numTimeSeries_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, numTimeSeries_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, numTimeSeries_); } - if (direction_ - != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.DIRECTION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, direction_); + if (direction_ != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, direction_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getInterval()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -611,17 +565,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.PickTimeSeriesFilter)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter other = - (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) obj; + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter other = (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) obj; if (rankingMethod_ != other.rankingMethod_) return false; - if (getNumTimeSeries() != other.getNumTimeSeries()) return false; + if (getNumTimeSeries() + != other.getNumTimeSeries()) return false; if (direction_ != other.direction_) return false; + if (hasInterval() != other.hasInterval()) return false; + if (hasInterval()) { + if (!getInterval() + .equals(other.getInterval())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -639,110 +598,108 @@ public int hashCode() { hash = (53 * hash) + getNumTimeSeries(); hash = (37 * hash) + DIRECTION_FIELD_NUMBER; hash = (53 * hash) + direction_; + if (hasInterval()) { + hash = (37 * hash) + INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getInterval().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.PickTimeSeriesFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter 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.PickTimeSeriesFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter prototype) { + public static Builder newBuilder(com.google.monitoring.dashboard.v1.PickTimeSeriesFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Describes a ranking-based time series filter. Each input time series is
              * ranked with an aligner. The filter will allow up to `num_time_series` time
          @@ -755,32 +712,39 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.PickTimeSeriesFilter}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.PickTimeSeriesFilter)
                 com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.CommonProto
          -          .internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.CommonProto
          -          .internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.class,
          -              com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder.class);
          +              com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.class, com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.newBuilder()
          -    private Builder() {}
          +    private Builder() {
          +      maybeForceBuilderInitialization();
          +    }
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
          +      maybeForceBuilderInitialization();
          +    }
          +    private void maybeForceBuilderInitialization() {
          +      if (com.google.protobuf.GeneratedMessageV3
          +              .alwaysUseFieldBuilders) {
          +        getIntervalFieldBuilder();
          +      }
               }
          -
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -788,13 +752,18 @@ public Builder clear() {
                 rankingMethod_ = 0;
                 numTimeSeries_ = 0;
                 direction_ = 0;
          +      interval_ = null;
          +      if (intervalBuilder_ != null) {
          +        intervalBuilder_.dispose();
          +        intervalBuilder_ = null;
          +      }
                 return this;
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.CommonProto
          -          .internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor;
               }
           
               @java.lang.Override
          @@ -813,11 +782,8 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter buildPartial() {
          -      com.google.monitoring.dashboard.v1.PickTimeSeriesFilter result =
          -          new com.google.monitoring.dashboard.v1.PickTimeSeriesFilter(this);
          -      if (bitField0_ != 0) {
          -        buildPartial0(result);
          -      }
          +      com.google.monitoring.dashboard.v1.PickTimeSeriesFilter result = new com.google.monitoring.dashboard.v1.PickTimeSeriesFilter(this);
          +      if (bitField0_ != 0) { buildPartial0(result); }
                 onBuilt();
                 return result;
               }
          @@ -833,45 +799,52 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.PickTimeSeriesFilt
                 if (((from_bitField0_ & 0x00000004) != 0)) {
                   result.direction_ = direction_;
                 }
          +      int to_bitField0_ = 0;
          +      if (((from_bitField0_ & 0x00000008) != 0)) {
          +        result.interval_ = intervalBuilder_ == null
          +            ? interval_
          +            : intervalBuilder_.build();
          +        to_bitField0_ |= 0x00000001;
          +      }
          +      result.bitField0_ |= to_bitField0_;
               }
           
               @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) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.PickTimeSeriesFilter) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.PickTimeSeriesFilter)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -879,8 +852,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.PickTimeSeriesFilter other) {
          -      if (other == com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance())
          -        return this;
          +      if (other == com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance()) return this;
                 if (other.rankingMethod_ != 0) {
                   setRankingMethodValue(other.getRankingMethodValue());
                 }
          @@ -890,6 +862,9 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.PickTimeSeriesFilter
                 if (other.direction_ != 0) {
                   setDirectionValue(other.getDirectionValue());
                 }
          +      if (other.hasInterval()) {
          +        mergeInterval(other.getInterval());
          +      }
                 this.mergeUnknownFields(other.getUnknownFields());
                 onChanged();
                 return this;
          @@ -916,31 +891,34 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 8:
          -              {
          -                rankingMethod_ = input.readEnum();
          -                bitField0_ |= 0x00000001;
          -                break;
          -              } // case 8
          -            case 16:
          -              {
          -                numTimeSeries_ = input.readInt32();
          -                bitField0_ |= 0x00000002;
          -                break;
          -              } // case 16
          -            case 24:
          -              {
          -                direction_ = input.readEnum();
          -                bitField0_ |= 0x00000004;
          -                break;
          -              } // case 24
          -            default:
          -              {
          -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                  done = true; // was an endgroup tag
          -                }
          -                break;
          -              } // default:
          +            case 8: {
          +              rankingMethod_ = input.readEnum();
          +              bitField0_ |= 0x00000001;
          +              break;
          +            } // case 8
          +            case 16: {
          +              numTimeSeries_ = input.readInt32();
          +              bitField0_ |= 0x00000002;
          +              break;
          +            } // case 16
          +            case 24: {
          +              direction_ = input.readEnum();
          +              bitField0_ |= 0x00000004;
          +              break;
          +            } // case 24
          +            case 34: {
          +              input.readMessage(
          +                  getIntervalFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              bitField0_ |= 0x00000008;
          +              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) {
          @@ -950,13 +928,10 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          -
               private int bitField0_;
           
               private int rankingMethod_ = 0;
               /**
          -     *
          -     *
                * 
                * `ranking_method` is applied to each time series independently to produce
                * the value which will be used to compare the time series to other time
          @@ -964,16 +939,12 @@ public Builder mergeFrom(
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; - * * @return The enum numeric value on the wire for rankingMethod. */ - @java.lang.Override - public int getRankingMethodValue() { + @java.lang.Override public int getRankingMethodValue() { return rankingMethod_; } /** - * - * *
                * `ranking_method` is applied to each time series independently to produce
                * the value which will be used to compare the time series to other time
          @@ -981,7 +952,6 @@ public int getRankingMethodValue() {
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; - * * @param value The enum numeric value on the wire for rankingMethod to set. * @return This builder for chaining. */ @@ -992,8 +962,6 @@ public Builder setRankingMethodValue(int value) { return this; } /** - * - * *
                * `ranking_method` is applied to each time series independently to produce
                * the value which will be used to compare the time series to other time
          @@ -1001,20 +969,14 @@ public Builder setRankingMethodValue(int value) {
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; - * * @return The rankingMethod. */ @java.lang.Override public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method getRankingMethod() { - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method result = - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.forNumber(rankingMethod_); - return result == null - ? com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.UNRECOGNIZED - : result; + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method result = com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.forNumber(rankingMethod_); + return result == null ? com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.UNRECOGNIZED : result; } /** - * - * *
                * `ranking_method` is applied to each time series independently to produce
                * the value which will be used to compare the time series to other time
          @@ -1022,12 +984,10 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method getRanking
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; - * * @param value The rankingMethod to set. * @return This builder for chaining. */ - public Builder setRankingMethod( - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method value) { + public Builder setRankingMethod(com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method value) { if (value == null) { throw new NullPointerException(); } @@ -1037,8 +997,6 @@ public Builder setRankingMethod( return this; } /** - * - * *
                * `ranking_method` is applied to each time series independently to produce
                * the value which will be used to compare the time series to other time
          @@ -1046,7 +1004,6 @@ public Builder setRankingMethod(
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; - * * @return This builder for chaining. */ public Builder clearRankingMethod() { @@ -1056,16 +1013,13 @@ public Builder clearRankingMethod() { return this; } - private int numTimeSeries_; + private int numTimeSeries_ ; /** - * - * *
                * How many time series to allow to pass through the filter.
                * 
          * * int32 num_time_series = 2; - * * @return The numTimeSeries. */ @java.lang.Override @@ -1073,14 +1027,11 @@ public int getNumTimeSeries() { return numTimeSeries_; } /** - * - * *
                * How many time series to allow to pass through the filter.
                * 
          * * int32 num_time_series = 2; - * * @param value The numTimeSeries to set. * @return This builder for chaining. */ @@ -1092,14 +1043,11 @@ public Builder setNumTimeSeries(int value) { return this; } /** - * - * *
                * How many time series to allow to pass through the filter.
                * 
          * * int32 num_time_series = 2; - * * @return This builder for chaining. */ public Builder clearNumTimeSeries() { @@ -1111,29 +1059,22 @@ public Builder clearNumTimeSeries() { private int direction_ = 0; /** - * - * *
                * How to use the ranking to select time series that pass through the filter.
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; - * * @return The enum numeric value on the wire for direction. */ - @java.lang.Override - public int getDirectionValue() { + @java.lang.Override public int getDirectionValue() { return direction_; } /** - * - * *
                * How to use the ranking to select time series that pass through the filter.
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; - * * @param value The enum numeric value on the wire for direction to set. * @return This builder for chaining. */ @@ -1144,38 +1085,28 @@ public Builder setDirectionValue(int value) { return this; } /** - * - * *
                * How to use the ranking to select time series that pass through the filter.
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; - * * @return The direction. */ @java.lang.Override public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction getDirection() { - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction result = - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.forNumber(direction_); - return result == null - ? com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.UNRECOGNIZED - : result; + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction result = com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.forNumber(direction_); + return result == null ? com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.UNRECOGNIZED : result; } /** - * - * *
                * How to use the ranking to select time series that pass through the filter.
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; - * * @param value The direction to set. * @return This builder for chaining. */ - public Builder setDirection( - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction value) { + public Builder setDirection(com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction value) { if (value == null) { throw new NullPointerException(); } @@ -1185,14 +1116,11 @@ public Builder setDirection( return this; } /** - * - * *
                * How to use the ranking to select time series that pass through the filter.
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; - * * @return This builder for chaining. */ public Builder clearDirection() { @@ -1202,8 +1130,165 @@ public Builder clearDirection() { return this; } + private com.google.type.Interval interval_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder> intervalBuilder_; + /** + *
          +     * Select the top N streams/time series within this time interval
          +     * 
          + * + * .google.type.Interval interval = 4; + * @return Whether the interval field is set. + */ + public boolean hasInterval() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
          +     * Select the top N streams/time series within this time interval
          +     * 
          + * + * .google.type.Interval interval = 4; + * @return The interval. + */ + public com.google.type.Interval getInterval() { + if (intervalBuilder_ == null) { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } else { + return intervalBuilder_.getMessage(); + } + } + /** + *
          +     * Select the top N streams/time series within this time interval
          +     * 
          + * + * .google.type.Interval interval = 4; + */ + public Builder setInterval(com.google.type.Interval value) { + if (intervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interval_ = value; + } else { + intervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
          +     * Select the top N streams/time series within this time interval
          +     * 
          + * + * .google.type.Interval interval = 4; + */ + public Builder setInterval( + com.google.type.Interval.Builder builderForValue) { + if (intervalBuilder_ == null) { + interval_ = builderForValue.build(); + } else { + intervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
          +     * Select the top N streams/time series within this time interval
          +     * 
          + * + * .google.type.Interval interval = 4; + */ + public Builder mergeInterval(com.google.type.Interval value) { + if (intervalBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + interval_ != null && + interval_ != com.google.type.Interval.getDefaultInstance()) { + getIntervalBuilder().mergeFrom(value); + } else { + interval_ = value; + } + } else { + intervalBuilder_.mergeFrom(value); + } + if (interval_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
          +     * Select the top N streams/time series within this time interval
          +     * 
          + * + * .google.type.Interval interval = 4; + */ + public Builder clearInterval() { + bitField0_ = (bitField0_ & ~0x00000008); + interval_ = null; + if (intervalBuilder_ != null) { + intervalBuilder_.dispose(); + intervalBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
          +     * Select the top N streams/time series within this time interval
          +     * 
          + * + * .google.type.Interval interval = 4; + */ + public com.google.type.Interval.Builder getIntervalBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getIntervalFieldBuilder().getBuilder(); + } + /** + *
          +     * Select the top N streams/time series within this time interval
          +     * 
          + * + * .google.type.Interval interval = 4; + */ + public com.google.type.IntervalOrBuilder getIntervalOrBuilder() { + if (intervalBuilder_ != null) { + return intervalBuilder_.getMessageOrBuilder(); + } else { + return interval_ == null ? + com.google.type.Interval.getDefaultInstance() : interval_; + } + } + /** + *
          +     * Select the top N streams/time series within this time interval
          +     * 
          + * + * .google.type.Interval interval = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder> + getIntervalFieldBuilder() { + if (intervalBuilder_ == null) { + intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder>( + getInterval(), + getParentForChildren(), + isClean()); + interval_ = null; + } + return intervalBuilder_; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1213,12 +1298,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.PickTimeSeriesFilter) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.PickTimeSeriesFilter) private static final com.google.monitoring.dashboard.v1.PickTimeSeriesFilter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.PickTimeSeriesFilter(); } @@ -1227,27 +1312,27 @@ public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PickTimeSeriesFilter 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PickTimeSeriesFilter 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; @@ -1262,4 +1347,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilterOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilterOrBuilder.java similarity index 73% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilterOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilterOrBuilder.java index 2676dbda92e5..20cee3029db5 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilterOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilterOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/common.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface PickTimeSeriesFilterOrBuilder - extends +public interface PickTimeSeriesFilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.PickTimeSeriesFilter) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * `ranking_method` is applied to each time series independently to produce
              * the value which will be used to compare the time series to other time
          @@ -34,13 +16,10 @@ public interface PickTimeSeriesFilterOrBuilder
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; - * * @return The enum numeric value on the wire for rankingMethod. */ int getRankingMethodValue(); /** - * - * *
              * `ranking_method` is applied to each time series independently to produce
              * the value which will be used to compare the time series to other time
          @@ -48,46 +27,63 @@ public interface PickTimeSeriesFilterOrBuilder
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; - * * @return The rankingMethod. */ com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method getRankingMethod(); /** - * - * *
              * How many time series to allow to pass through the filter.
              * 
          * * int32 num_time_series = 2; - * * @return The numTimeSeries. */ int getNumTimeSeries(); /** - * - * *
              * How to use the ranking to select time series that pass through the filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; - * * @return The enum numeric value on the wire for direction. */ int getDirectionValue(); /** - * - * *
              * How to use the ranking to select time series that pass through the filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; - * * @return The direction. */ com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction getDirection(); + + /** + *
          +   * Select the top N streams/time series within this time interval
          +   * 
          + * + * .google.type.Interval interval = 4; + * @return Whether the interval field is set. + */ + boolean hasInterval(); + /** + *
          +   * Select the top N streams/time series within this time interval
          +   * 
          + * + * .google.type.Interval interval = 4; + * @return The interval. + */ + com.google.type.Interval getInterval(); + /** + *
          +   * Select the top N streams/time series within this time interval
          +   * 
          + * + * .google.type.Interval interval = 4; + */ + com.google.type.IntervalOrBuilder getIntervalOrBuilder(); } diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChart.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChart.java new file mode 100644 index 000000000000..7af93d9dcb61 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChart.java @@ -0,0 +1,2454 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/piechart.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +/** + *
          + * A widget that displays timeseries data as a pie or a donut.
          + * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.PieChart} + */ +public final class PieChart extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.PieChart) + PieChartOrBuilder { +private static final long serialVersionUID = 0L; + // Use PieChart.newBuilder() to construct. + private PieChart(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PieChart() { + dataSets_ = java.util.Collections.emptyList(); + chartType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PieChart(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.PieChart.class, com.google.monitoring.dashboard.v1.PieChart.Builder.class); + } + + /** + *
          +   * Types for the pie chart.
          +   * 
          + * + * Protobuf enum {@code google.monitoring.dashboard.v1.PieChart.PieChartType} + */ + public enum PieChartType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
          +     * The zero value. No type specified. Do not use.
          +     * 
          + * + * PIE_CHART_TYPE_UNSPECIFIED = 0; + */ + PIE_CHART_TYPE_UNSPECIFIED(0), + /** + *
          +     * A Pie type PieChart.
          +     * 
          + * + * PIE = 1; + */ + PIE(1), + /** + *
          +     * Similar to PIE, but the DONUT type PieChart has a hole in the middle.
          +     * 
          + * + * DONUT = 2; + */ + DONUT(2), + UNRECOGNIZED(-1), + ; + + /** + *
          +     * The zero value. No type specified. Do not use.
          +     * 
          + * + * PIE_CHART_TYPE_UNSPECIFIED = 0; + */ + public static final int PIE_CHART_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
          +     * A Pie type PieChart.
          +     * 
          + * + * PIE = 1; + */ + public static final int PIE_VALUE = 1; + /** + *
          +     * Similar to PIE, but the DONUT type PieChart has a hole in the middle.
          +     * 
          + * + * DONUT = 2; + */ + public static final int DONUT_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 PieChartType 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 PieChartType forNumber(int value) { + switch (value) { + case 0: return PIE_CHART_TYPE_UNSPECIFIED; + case 1: return PIE; + case 2: return DONUT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + PieChartType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PieChartType findValueByNumber(int number) { + return PieChartType.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.PieChart.getDescriptor().getEnumTypes().get(0); + } + + private static final PieChartType[] VALUES = values(); + + public static PieChartType 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 PieChartType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.PieChart.PieChartType) + } + + public interface PieChartDataSetOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.PieChart.PieChartDataSet) + com.google.protobuf.MessageOrBuilder { + + /** + *
          +     * Required. The query for the PieChart. See,
          +     * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
          +     * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the timeSeriesQuery field is set. + */ + boolean hasTimeSeriesQuery(); + /** + *
          +     * Required. The query for the PieChart. See,
          +     * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
          +     * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The timeSeriesQuery. + */ + com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery(); + /** + *
          +     * Required. The query for the PieChart. See,
          +     * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
          +     * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder(); + + /** + *
          +     * Optional. A template for the name of the slice. This name will be
          +     * displayed in the legend and the tooltip of the pie chart. It replaces the
          +     * auto-generated names for the slices. For example, if the template is set
          +     * to
          +     * `${resource.labels.zone}`, the zone's value will be used for the name
          +     * instead of the default name.
          +     * 
          + * + * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The sliceNameTemplate. + */ + java.lang.String getSliceNameTemplate(); + /** + *
          +     * Optional. A template for the name of the slice. This name will be
          +     * displayed in the legend and the tooltip of the pie chart. It replaces the
          +     * auto-generated names for the slices. For example, if the template is set
          +     * to
          +     * `${resource.labels.zone}`, the zone's value will be used for the name
          +     * instead of the default name.
          +     * 
          + * + * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for sliceNameTemplate. + */ + com.google.protobuf.ByteString + getSliceNameTemplateBytes(); + + /** + *
          +     * 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]; + * @return Whether the minAlignmentPeriod field is set. + */ + 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 make sense to fetch and align data at one minute intervals.
          +     * 
          + * + * .google.protobuf.Duration min_alignment_period = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The minAlignmentPeriod. + */ + 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 make sense to fetch and align data at one minute intervals.
          +     * 
          + * + * .google.protobuf.Duration min_alignment_period = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder(); + } + /** + *
          +   * Groups a time series query definition.
          +   * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.PieChart.PieChartDataSet} + */ + public static final class PieChartDataSet extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.PieChart.PieChartDataSet) + PieChartDataSetOrBuilder { + private static final long serialVersionUID = 0L; + // Use PieChartDataSet.newBuilder() to construct. + private PieChartDataSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PieChartDataSet() { + sliceNameTemplate_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PieChartDataSet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.class, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder.class); + } + + private int bitField0_; + public static final int TIME_SERIES_QUERY_FIELD_NUMBER = 1; + private com.google.monitoring.dashboard.v1.TimeSeriesQuery timeSeriesQuery_; + /** + *
          +     * Required. The query for the PieChart. See,
          +     * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
          +     * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the timeSeriesQuery field is set. + */ + @java.lang.Override + public boolean hasTimeSeriesQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
          +     * Required. The query for the PieChart. See,
          +     * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
          +     * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The timeSeriesQuery. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() { + return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + } + /** + *
          +     * Required. The query for the PieChart. See,
          +     * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
          +     * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder() { + return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + } + + public static final int SLICE_NAME_TEMPLATE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object sliceNameTemplate_ = ""; + /** + *
          +     * Optional. A template for the name of the slice. This name will be
          +     * displayed in the legend and the tooltip of the pie chart. It replaces the
          +     * auto-generated names for the slices. For example, if the template is set
          +     * to
          +     * `${resource.labels.zone}`, the zone's value will be used for the name
          +     * instead of the default name.
          +     * 
          + * + * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The sliceNameTemplate. + */ + @java.lang.Override + public java.lang.String getSliceNameTemplate() { + java.lang.Object ref = sliceNameTemplate_; + 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(); + sliceNameTemplate_ = s; + return s; + } + } + /** + *
          +     * Optional. A template for the name of the slice. This name will be
          +     * displayed in the legend and the tooltip of the pie chart. It replaces the
          +     * auto-generated names for the slices. For example, if the template is set
          +     * to
          +     * `${resource.labels.zone}`, the zone's value will be used for the name
          +     * instead of the default name.
          +     * 
          + * + * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for sliceNameTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSliceNameTemplateBytes() { + java.lang.Object ref = sliceNameTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sliceNameTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIN_ALIGNMENT_PERIOD_FIELD_NUMBER = 3; + private com.google.protobuf.Duration minAlignmentPeriod_; + /** + *
          +     * 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]; + * @return Whether the minAlignmentPeriod field is set. + */ + @java.lang.Override + public boolean hasMinAlignmentPeriod() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
          +     * 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]; + * @return The minAlignmentPeriod. + */ + @java.lang.Override + public com.google.protobuf.Duration getMinAlignmentPeriod() { + return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + } + /** + *
          +     * 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]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { + return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + } + + 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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getTimeSeriesQuery()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sliceNameTemplate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sliceNameTemplate_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getMinAlignmentPeriod()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTimeSeriesQuery()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sliceNameTemplate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sliceNameTemplate_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMinAlignmentPeriod()); + } + 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.PieChart.PieChartDataSet)) { + return super.equals(obj); + } + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet other = (com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet) obj; + + if (hasTimeSeriesQuery() != other.hasTimeSeriesQuery()) return false; + if (hasTimeSeriesQuery()) { + if (!getTimeSeriesQuery() + .equals(other.getTimeSeriesQuery())) return false; + } + if (!getSliceNameTemplate() + .equals(other.getSliceNameTemplate())) return false; + if (hasMinAlignmentPeriod() != other.hasMinAlignmentPeriod()) return false; + if (hasMinAlignmentPeriod()) { + if (!getMinAlignmentPeriod() + .equals(other.getMinAlignmentPeriod())) 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 (hasTimeSeriesQuery()) { + hash = (37 * hash) + TIME_SERIES_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getTimeSeriesQuery().hashCode(); + } + hash = (37 * hash) + SLICE_NAME_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getSliceNameTemplate().hashCode(); + if (hasMinAlignmentPeriod()) { + hash = (37 * hash) + MIN_ALIGNMENT_PERIOD_FIELD_NUMBER; + hash = (53 * hash) + getMinAlignmentPeriod().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet 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.PieChart.PieChartDataSet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet 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.PieChart.PieChartDataSet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet 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.PieChart.PieChartDataSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet 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.PieChart.PieChartDataSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet 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.PieChart.PieChartDataSet 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.PieChart.PieChartDataSet 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.PieChart.PieChartDataSet 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; + } + /** + *
          +     * Groups a time series query definition.
          +     * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.PieChart.PieChartDataSet} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.PieChart.PieChartDataSet) + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.class, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder.class); + } + + // Construct using com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTimeSeriesQueryFieldBuilder(); + getMinAlignmentPeriodFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + timeSeriesQuery_ = null; + if (timeSeriesQueryBuilder_ != null) { + timeSeriesQueryBuilder_.dispose(); + timeSeriesQueryBuilder_ = null; + } + sliceNameTemplate_ = ""; + minAlignmentPeriod_ = null; + if (minAlignmentPeriodBuilder_ != null) { + minAlignmentPeriodBuilder_.dispose(); + minAlignmentPeriodBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet build() { + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet buildPartial() { + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet result = new com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeSeriesQuery_ = timeSeriesQueryBuilder_ == null + ? timeSeriesQuery_ + : timeSeriesQueryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sliceNameTemplate_ = sliceNameTemplate_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.minAlignmentPeriod_ = minAlignmentPeriodBuilder_ == null + ? minAlignmentPeriod_ + : minAlignmentPeriodBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.PieChart.PieChartDataSet) { + return mergeFrom((com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet other) { + if (other == com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.getDefaultInstance()) return this; + if (other.hasTimeSeriesQuery()) { + mergeTimeSeriesQuery(other.getTimeSeriesQuery()); + } + if (!other.getSliceNameTemplate().isEmpty()) { + sliceNameTemplate_ = other.sliceNameTemplate_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMinAlignmentPeriod()) { + mergeMinAlignmentPeriod(other.getMinAlignmentPeriod()); + } + 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: { + input.readMessage( + getTimeSeriesQueryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + sliceNameTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getMinAlignmentPeriodFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 com.google.monitoring.dashboard.v1.TimeSeriesQuery timeSeriesQuery_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> timeSeriesQueryBuilder_; + /** + *
          +       * Required. The query for the PieChart. See,
          +       * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
          +       * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the timeSeriesQuery field is set. + */ + public boolean hasTimeSeriesQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
          +       * Required. The query for the PieChart. See,
          +       * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
          +       * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The timeSeriesQuery. + */ + public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() { + if (timeSeriesQueryBuilder_ == null) { + return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + } else { + return timeSeriesQueryBuilder_.getMessage(); + } + } + /** + *
          +       * Required. The query for the PieChart. See,
          +       * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
          +       * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { + if (timeSeriesQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeSeriesQuery_ = value; + } else { + timeSeriesQueryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
          +       * Required. The query for the PieChart. See,
          +       * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
          +       * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setTimeSeriesQuery( + com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder builderForValue) { + if (timeSeriesQueryBuilder_ == null) { + timeSeriesQuery_ = builderForValue.build(); + } else { + timeSeriesQueryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
          +       * Required. The query for the PieChart. See,
          +       * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
          +       * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { + if (timeSeriesQueryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + timeSeriesQuery_ != null && + timeSeriesQuery_ != com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance()) { + getTimeSeriesQueryBuilder().mergeFrom(value); + } else { + timeSeriesQuery_ = value; + } + } else { + timeSeriesQueryBuilder_.mergeFrom(value); + } + if (timeSeriesQuery_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
          +       * Required. The query for the PieChart. See,
          +       * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
          +       * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearTimeSeriesQuery() { + bitField0_ = (bitField0_ & ~0x00000001); + timeSeriesQuery_ = null; + if (timeSeriesQueryBuilder_ != null) { + timeSeriesQueryBuilder_.dispose(); + timeSeriesQueryBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
          +       * Required. The query for the PieChart. See,
          +       * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
          +       * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder getTimeSeriesQueryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTimeSeriesQueryFieldBuilder().getBuilder(); + } + /** + *
          +       * Required. The query for the PieChart. See,
          +       * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
          +       * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder() { + if (timeSeriesQueryBuilder_ != null) { + return timeSeriesQueryBuilder_.getMessageOrBuilder(); + } else { + return timeSeriesQuery_ == null ? + com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + } + } + /** + *
          +       * Required. The query for the PieChart. See,
          +       * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
          +       * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> + getTimeSeriesQueryFieldBuilder() { + if (timeSeriesQueryBuilder_ == null) { + timeSeriesQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder>( + getTimeSeriesQuery(), + getParentForChildren(), + isClean()); + timeSeriesQuery_ = null; + } + return timeSeriesQueryBuilder_; + } + + private java.lang.Object sliceNameTemplate_ = ""; + /** + *
          +       * Optional. A template for the name of the slice. This name will be
          +       * displayed in the legend and the tooltip of the pie chart. It replaces the
          +       * auto-generated names for the slices. For example, if the template is set
          +       * to
          +       * `${resource.labels.zone}`, the zone's value will be used for the name
          +       * instead of the default name.
          +       * 
          + * + * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The sliceNameTemplate. + */ + public java.lang.String getSliceNameTemplate() { + java.lang.Object ref = sliceNameTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sliceNameTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
          +       * Optional. A template for the name of the slice. This name will be
          +       * displayed in the legend and the tooltip of the pie chart. It replaces the
          +       * auto-generated names for the slices. For example, if the template is set
          +       * to
          +       * `${resource.labels.zone}`, the zone's value will be used for the name
          +       * instead of the default name.
          +       * 
          + * + * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for sliceNameTemplate. + */ + public com.google.protobuf.ByteString + getSliceNameTemplateBytes() { + java.lang.Object ref = sliceNameTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sliceNameTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
          +       * Optional. A template for the name of the slice. This name will be
          +       * displayed in the legend and the tooltip of the pie chart. It replaces the
          +       * auto-generated names for the slices. For example, if the template is set
          +       * to
          +       * `${resource.labels.zone}`, the zone's value will be used for the name
          +       * instead of the default name.
          +       * 
          + * + * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The sliceNameTemplate to set. + * @return This builder for chaining. + */ + public Builder setSliceNameTemplate( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + sliceNameTemplate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
          +       * Optional. A template for the name of the slice. This name will be
          +       * displayed in the legend and the tooltip of the pie chart. It replaces the
          +       * auto-generated names for the slices. For example, if the template is set
          +       * to
          +       * `${resource.labels.zone}`, the zone's value will be used for the name
          +       * instead of the default name.
          +       * 
          + * + * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearSliceNameTemplate() { + sliceNameTemplate_ = getDefaultInstance().getSliceNameTemplate(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
          +       * Optional. A template for the name of the slice. This name will be
          +       * displayed in the legend and the tooltip of the pie chart. It replaces the
          +       * auto-generated names for the slices. For example, if the template is set
          +       * to
          +       * `${resource.labels.zone}`, the zone's value will be used for the name
          +       * instead of the default name.
          +       * 
          + * + * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for sliceNameTemplate to set. + * @return This builder for chaining. + */ + public Builder setSliceNameTemplateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + sliceNameTemplate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Duration minAlignmentPeriod_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minAlignmentPeriodBuilder_; + /** + *
          +       * 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]; + * @return Whether the minAlignmentPeriod field is set. + */ + public boolean hasMinAlignmentPeriod() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
          +       * 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]; + * @return The minAlignmentPeriod. + */ + public com.google.protobuf.Duration getMinAlignmentPeriod() { + if (minAlignmentPeriodBuilder_ == null) { + return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + } else { + return minAlignmentPeriodBuilder_.getMessage(); + } + } + /** + *
          +       * 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]; + */ + public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) { + if (minAlignmentPeriodBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + minAlignmentPeriod_ = value; + } else { + minAlignmentPeriodBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
          +       * 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]; + */ + public Builder setMinAlignmentPeriod( + com.google.protobuf.Duration.Builder builderForValue) { + if (minAlignmentPeriodBuilder_ == null) { + minAlignmentPeriod_ = builderForValue.build(); + } else { + minAlignmentPeriodBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
          +       * 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]; + */ + public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) { + if (minAlignmentPeriodBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + minAlignmentPeriod_ != null && + minAlignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMinAlignmentPeriodBuilder().mergeFrom(value); + } else { + minAlignmentPeriod_ = value; + } + } else { + minAlignmentPeriodBuilder_.mergeFrom(value); + } + if (minAlignmentPeriod_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
          +       * 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]; + */ + public Builder clearMinAlignmentPeriod() { + bitField0_ = (bitField0_ & ~0x00000004); + minAlignmentPeriod_ = null; + if (minAlignmentPeriodBuilder_ != null) { + minAlignmentPeriodBuilder_.dispose(); + minAlignmentPeriodBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
          +       * 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]; + */ + public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMinAlignmentPeriodFieldBuilder().getBuilder(); + } + /** + *
          +       * 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]; + */ + public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { + if (minAlignmentPeriodBuilder_ != null) { + return minAlignmentPeriodBuilder_.getMessageOrBuilder(); + } else { + return minAlignmentPeriod_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + } + } + /** + *
          +       * 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getMinAlignmentPeriodFieldBuilder() { + if (minAlignmentPeriodBuilder_ == null) { + minAlignmentPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMinAlignmentPeriod(), + getParentForChildren(), + isClean()); + minAlignmentPeriod_ = null; + } + return minAlignmentPeriodBuilder_; + } + @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.PieChart.PieChartDataSet) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.PieChart.PieChartDataSet) + private static final com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet(); + } + + public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PieChartDataSet 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.PieChart.PieChartDataSet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int DATA_SETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List dataSets_; + /** + *
          +   * Required. The queries for the chart's data.
          +   * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public java.util.List getDataSetsList() { + return dataSets_; + } + /** + *
          +   * Required. The queries for the chart's data.
          +   * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public java.util.List + getDataSetsOrBuilderList() { + return dataSets_; + } + /** + *
          +   * Required. The queries for the chart's data.
          +   * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public int getDataSetsCount() { + return dataSets_.size(); + } + /** + *
          +   * Required. The queries for the chart's data.
          +   * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet getDataSets(int index) { + return dataSets_.get(index); + } + /** + *
          +   * Required. The queries for the chart's data.
          +   * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder getDataSetsOrBuilder( + int index) { + return dataSets_.get(index); + } + + public static final int CHART_TYPE_FIELD_NUMBER = 2; + private int chartType_ = 0; + /** + *
          +   * Required. Indicates the visualization type for the PieChart.
          +   * 
          + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for chartType. + */ + @java.lang.Override public int getChartTypeValue() { + return chartType_; + } + /** + *
          +   * Required. Indicates the visualization type for the PieChart.
          +   * 
          + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The chartType. + */ + @java.lang.Override public com.google.monitoring.dashboard.v1.PieChart.PieChartType getChartType() { + com.google.monitoring.dashboard.v1.PieChart.PieChartType result = com.google.monitoring.dashboard.v1.PieChart.PieChartType.forNumber(chartType_); + return result == null ? com.google.monitoring.dashboard.v1.PieChart.PieChartType.UNRECOGNIZED : result; + } + + public static final int SHOW_LABELS_FIELD_NUMBER = 4; + private boolean showLabels_ = false; + /** + *
          +   * Optional. Indicates whether or not the pie chart should show slices' labels
          +   * 
          + * + * bool show_labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The showLabels. + */ + @java.lang.Override + public boolean getShowLabels() { + return showLabels_; + } + + 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 (chartType_ != com.google.monitoring.dashboard.v1.PieChart.PieChartType.PIE_CHART_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, chartType_); + } + if (showLabels_ != false) { + output.writeBool(4, showLabels_); + } + 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 (chartType_ != com.google.monitoring.dashboard.v1.PieChart.PieChartType.PIE_CHART_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, chartType_); + } + if (showLabels_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, showLabels_); + } + 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.PieChart)) { + return super.equals(obj); + } + com.google.monitoring.dashboard.v1.PieChart other = (com.google.monitoring.dashboard.v1.PieChart) obj; + + if (!getDataSetsList() + .equals(other.getDataSetsList())) return false; + if (chartType_ != other.chartType_) return false; + if (getShowLabels() + != other.getShowLabels()) 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) + CHART_TYPE_FIELD_NUMBER; + hash = (53 * hash) + chartType_; + hash = (37 * hash) + SHOW_LABELS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShowLabels()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.dashboard.v1.PieChart parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.PieChart 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.PieChart parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.PieChart 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.PieChart parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.PieChart 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.PieChart parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.dashboard.v1.PieChart 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.PieChart parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.PieChart 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.PieChart 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.PieChart 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.PieChart 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 widget that displays timeseries data as a pie or a donut.
          +   * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.PieChart} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.PieChart) + com.google.monitoring.dashboard.v1.PieChartOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.PieChart.class, com.google.monitoring.dashboard.v1.PieChart.Builder.class); + } + + // Construct using com.google.monitoring.dashboard.v1.PieChart.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dataSetsBuilder_ == null) { + dataSets_ = java.util.Collections.emptyList(); + } else { + dataSets_ = null; + dataSetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + chartType_ = 0; + showLabels_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_descriptor; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.PieChart getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.PieChart.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.PieChart build() { + com.google.monitoring.dashboard.v1.PieChart result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.PieChart buildPartial() { + com.google.monitoring.dashboard.v1.PieChart result = new com.google.monitoring.dashboard.v1.PieChart(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.monitoring.dashboard.v1.PieChart result) { + if (dataSetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataSets_ = java.util.Collections.unmodifiableList(dataSets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataSets_ = dataSets_; + } else { + result.dataSets_ = dataSetsBuilder_.build(); + } + } + + private void buildPartial0(com.google.monitoring.dashboard.v1.PieChart result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.chartType_ = chartType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.showLabels_ = showLabels_; + } + } + + @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.PieChart) { + return mergeFrom((com.google.monitoring.dashboard.v1.PieChart)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.dashboard.v1.PieChart other) { + if (other == com.google.monitoring.dashboard.v1.PieChart.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.chartType_ != 0) { + setChartTypeValue(other.getChartTypeValue()); + } + if (other.getShowLabels() != false) { + setShowLabels(other.getShowLabels()); + } + 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.PieChart.PieChartDataSet m = + input.readMessage( + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.parser(), + extensionRegistry); + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + dataSets_.add(m); + } else { + dataSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + chartType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 32: { + showLabels_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + 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(dataSets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder> dataSetsBuilder_; + + /** + *
          +     * Required. The queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet 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 queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public int getDataSetsCount() { + if (dataSetsBuilder_ == null) { + return dataSets_.size(); + } else { + return dataSetsBuilder_.getCount(); + } + } + /** + *
          +     * Required. The queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet getDataSets(int index) { + if (dataSetsBuilder_ == null) { + return dataSets_.get(index); + } else { + return dataSetsBuilder_.getMessage(index); + } + } + /** + *
          +     * Required. The queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setDataSets( + int index, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet 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 queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setDataSets( + int index, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder builderForValue) { + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + dataSets_.set(index, builderForValue.build()); + onChanged(); + } else { + dataSetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
          +     * Required. The queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addDataSets(com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet value) { + if (dataSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataSetsIsMutable(); + dataSets_.add(value); + onChanged(); + } else { + dataSetsBuilder_.addMessage(value); + } + return this; + } + /** + *
          +     * Required. The queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addDataSets( + int index, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet 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 queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addDataSets( + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder builderForValue) { + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + dataSets_.add(builderForValue.build()); + onChanged(); + } else { + dataSetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
          +     * Required. The queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addDataSets( + int index, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder builderForValue) { + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + dataSets_.add(index, builderForValue.build()); + onChanged(); + } else { + dataSetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
          +     * Required. The queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addAllDataSets( + java.lang.Iterable values) { + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dataSets_); + onChanged(); + } else { + dataSetsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
          +     * Required. The queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet 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 queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet 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 queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder getDataSetsBuilder( + int index) { + return getDataSetsFieldBuilder().getBuilder(index); + } + /** + *
          +     * Required. The queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder getDataSetsOrBuilder( + int index) { + if (dataSetsBuilder_ == null) { + return dataSets_.get(index); } else { + return dataSetsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
          +     * Required. The queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public java.util.List + getDataSetsOrBuilderList() { + if (dataSetsBuilder_ != null) { + return dataSetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataSets_); + } + } + /** + *
          +     * Required. The queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder addDataSetsBuilder() { + return getDataSetsFieldBuilder().addBuilder( + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.getDefaultInstance()); + } + /** + *
          +     * Required. The queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder addDataSetsBuilder( + int index) { + return getDataSetsFieldBuilder().addBuilder( + index, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.getDefaultInstance()); + } + /** + *
          +     * Required. The queries for the chart's data.
          +     * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet 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.PieChart.PieChartDataSet, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder> + getDataSetsFieldBuilder() { + if (dataSetsBuilder_ == null) { + dataSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder>( + dataSets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dataSets_ = null; + } + return dataSetsBuilder_; + } + + private int chartType_ = 0; + /** + *
          +     * Required. Indicates the visualization type for the PieChart.
          +     * 
          + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for chartType. + */ + @java.lang.Override public int getChartTypeValue() { + return chartType_; + } + /** + *
          +     * Required. Indicates the visualization type for the PieChart.
          +     * 
          + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The enum numeric value on the wire for chartType to set. + * @return This builder for chaining. + */ + public Builder setChartTypeValue(int value) { + chartType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
          +     * Required. Indicates the visualization type for the PieChart.
          +     * 
          + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The chartType. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.PieChart.PieChartType getChartType() { + com.google.monitoring.dashboard.v1.PieChart.PieChartType result = com.google.monitoring.dashboard.v1.PieChart.PieChartType.forNumber(chartType_); + return result == null ? com.google.monitoring.dashboard.v1.PieChart.PieChartType.UNRECOGNIZED : result; + } + /** + *
          +     * Required. Indicates the visualization type for the PieChart.
          +     * 
          + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The chartType to set. + * @return This builder for chaining. + */ + public Builder setChartType(com.google.monitoring.dashboard.v1.PieChart.PieChartType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + chartType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
          +     * Required. Indicates the visualization type for the PieChart.
          +     * 
          + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearChartType() { + bitField0_ = (bitField0_ & ~0x00000002); + chartType_ = 0; + onChanged(); + return this; + } + + private boolean showLabels_ ; + /** + *
          +     * Optional. Indicates whether or not the pie chart should show slices' labels
          +     * 
          + * + * bool show_labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The showLabels. + */ + @java.lang.Override + public boolean getShowLabels() { + return showLabels_; + } + /** + *
          +     * Optional. Indicates whether or not the pie chart should show slices' labels
          +     * 
          + * + * bool show_labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The showLabels to set. + * @return This builder for chaining. + */ + public Builder setShowLabels(boolean value) { + + showLabels_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
          +     * Optional. Indicates whether or not the pie chart should show slices' labels
          +     * 
          + * + * bool show_labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearShowLabels() { + bitField0_ = (bitField0_ & ~0x00000004); + showLabels_ = 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.PieChart) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.PieChart) + private static final com.google.monitoring.dashboard.v1.PieChart DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.PieChart(); + } + + public static com.google.monitoring.dashboard.v1.PieChart getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PieChart 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.PieChart getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartOrBuilder.java new file mode 100644 index 000000000000..c2521ee5b6dd --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartOrBuilder.java @@ -0,0 +1,83 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/piechart.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public interface PieChartOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.PieChart) + com.google.protobuf.MessageOrBuilder { + + /** + *
          +   * Required. The queries for the chart's data.
          +   * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getDataSetsList(); + /** + *
          +   * Required. The queries for the chart's data.
          +   * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet getDataSets(int index); + /** + *
          +   * Required. The queries for the chart's data.
          +   * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + int getDataSetsCount(); + /** + *
          +   * Required. The queries for the chart's data.
          +   * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getDataSetsOrBuilderList(); + /** + *
          +   * Required. The queries for the chart's data.
          +   * 
          + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder getDataSetsOrBuilder( + int index); + + /** + *
          +   * Required. Indicates the visualization type for the PieChart.
          +   * 
          + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for chartType. + */ + int getChartTypeValue(); + /** + *
          +   * Required. Indicates the visualization type for the PieChart.
          +   * 
          + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The chartType. + */ + com.google.monitoring.dashboard.v1.PieChart.PieChartType getChartType(); + + /** + *
          +   * Optional. Indicates whether or not the pie chart should show slices' labels
          +   * 
          + * + * bool show_labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The showLabels. + */ + boolean getShowLabels(); +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartProto.java new file mode 100644 index 000000000000..9bd47834cc89 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartProto.java @@ -0,0 +1,91 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/piechart.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class PieChartProto { + private PieChartProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_PieChart_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_PieChart_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n-google/monitoring/dashboard/v1/piechar" + + "t.proto\022\036google.monitoring.dashboard.v1\032" + + "\037google/api/field_behavior.proto\032,google" + + "/monitoring/dashboard/v1/metrics.proto\032\036" + + "google/protobuf/duration.proto\"\317\003\n\010PieCh" + + "art\022P\n\tdata_sets\030\001 \003(\01328.google.monitori" + + "ng.dashboard.v1.PieChart.PieChartDataSet" + + "B\003\340A\002\022N\n\nchart_type\030\002 \001(\01625.google.monit" + + "oring.dashboard.v1.PieChart.PieChartType" + + "B\003\340A\002\022\030\n\013show_labels\030\004 \001(\010B\003\340A\001\032\302\001\n\017PieC" + + "hartDataSet\022O\n\021time_series_query\030\001 \001(\0132/" + + ".google.monitoring.dashboard.v1.TimeSeri" + + "esQueryB\003\340A\002\022 \n\023slice_name_template\030\002 \001(" + + "\tB\003\340A\001\022<\n\024min_alignment_period\030\003 \001(\0132\031.g" + + "oogle.protobuf.DurationB\003\340A\001\"B\n\014PieChart" + + "Type\022\036\n\032PIE_CHART_TYPE_UNSPECIFIED\020\000\022\007\n\003" + + "PIE\020\001\022\t\n\005DONUT\020\002B\366\001\n\"com.google.monitori" + + "ng.dashboard.v1B\rPieChartProtoP\001ZFcloud." + + "google.com/go/monitoring/dashboard/apiv1" + + "/dashboardpb;dashboardpb\252\002$Google.Cloud." + + "Monitoring.Dashboard.V1\312\002$Google\\Cloud\\M" + + "onitoring\\Dashboard\\V1\352\002(Google::Cloud::" + + "Monitoring::Dashboard::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_PieChart_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_PieChart_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_PieChart_descriptor, + new java.lang.String[] { "DataSets", "ChartType", "ShowLabels", }); + internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor = + internal_static_google_monitoring_dashboard_v1_PieChart_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor, + new java.lang.String[] { "TimeSeriesQuery", "SliceNameTemplate", "MinAlignmentPeriod", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ProjectName.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ProjectName.java similarity index 100% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ProjectName.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ProjectName.java diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayout.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayout.java similarity index 74% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayout.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayout.java index b428f25592f0..5311700e09bd 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayout.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayout.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/layouts.proto @@ -20,8 +5,6 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * A simplified layout that divides the available space into rows
            * and arranges a set of widgets horizontally in each row.
          @@ -29,49 +12,44 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.RowLayout}
            */
          -public final class RowLayout extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class RowLayout extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.RowLayout)
               RowLayoutOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use RowLayout.newBuilder() to construct.
             private RowLayout(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
             private RowLayout() {
               rows_ = java.util.Collections.emptyList();
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new RowLayout();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.LayoutsProto
          -        .internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.LayoutsProto
          -        .internal_static_google_monitoring_dashboard_v1_RowLayout_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.RowLayout.class,
          -            com.google.monitoring.dashboard.v1.RowLayout.Builder.class);
          +            com.google.monitoring.dashboard.v1.RowLayout.class, com.google.monitoring.dashboard.v1.RowLayout.Builder.class);
             }
           
          -  public interface RowOrBuilder
          -      extends
          +  public interface RowOrBuilder extends
                 // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.RowLayout.Row)
                 com.google.protobuf.MessageOrBuilder {
           
               /**
          -     *
          -     *
                * 
                * The relative weight of this row. The row weight is used to adjust the
                * height of rows on the screen (relative to peers). Greater the weight,
          @@ -80,24 +58,20 @@ public interface RowOrBuilder
                * 
          * * int64 weight = 1; - * * @return The weight. */ long getWeight(); /** - * - * *
                * The display widgets arranged horizontally in this row.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - java.util.List getWidgetsList(); + java.util.List + getWidgetsList(); /** - * - * *
                * The display widgets arranged horizontally in this row.
                * 
          @@ -106,8 +80,6 @@ public interface RowOrBuilder */ com.google.monitoring.dashboard.v1.Widget getWidgets(int index); /** - * - * *
                * The display widgets arranged horizontally in this row.
                * 
          @@ -116,76 +88,67 @@ public interface RowOrBuilder */ int getWidgetsCount(); /** - * - * *
                * The display widgets arranged horizontally in this row.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - java.util.List + java.util.List getWidgetsOrBuilderList(); /** - * - * *
                * The display widgets arranged horizontally in this row.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index); + com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( + int index); } /** - * - * *
              * Defines the layout properties and content for a row.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.RowLayout.Row} */ - public static final class Row extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Row extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.RowLayout.Row) RowOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Row.newBuilder() to construct. private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Row() { widgets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Row(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.LayoutsProto - .internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.LayoutsProto - .internal_static_google_monitoring_dashboard_v1_RowLayout_Row_fieldAccessorTable + return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.RowLayout.Row.class, - com.google.monitoring.dashboard.v1.RowLayout.Row.Builder.class); + com.google.monitoring.dashboard.v1.RowLayout.Row.class, com.google.monitoring.dashboard.v1.RowLayout.Row.Builder.class); } public static final int WEIGHT_FIELD_NUMBER = 1; private long weight_ = 0L; /** - * - * *
                * The relative weight of this row. The row weight is used to adjust the
                * height of rows on the screen (relative to peers). Greater the weight,
          @@ -194,7 +157,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                * 
          * * int64 weight = 1; - * * @return The weight. */ @java.lang.Override @@ -203,12 +165,9 @@ public long getWeight() { } public static final int WIDGETS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List widgets_; /** - * - * *
                * The display widgets arranged horizontally in this row.
                * 
          @@ -220,8 +179,6 @@ public java.util.List getWidgetsList( return widgets_; } /** - * - * *
                * The display widgets arranged horizontally in this row.
                * 
          @@ -229,13 +186,11 @@ public java.util.List getWidgetsList( * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ @java.lang.Override - public java.util.List + public java.util.List getWidgetsOrBuilderList() { return widgets_; } /** - * - * *
                * The display widgets arranged horizontally in this row.
                * 
          @@ -247,8 +202,6 @@ public int getWidgetsCount() { return widgets_.size(); } /** - * - * *
                * The display widgets arranged horizontally in this row.
                * 
          @@ -260,8 +213,6 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { return widgets_.get(index); } /** - * - * *
                * The display widgets arranged horizontally in this row.
                * 
          @@ -269,12 +220,12 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index) { + public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( + int index) { return widgets_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,7 +237,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (weight_ != 0L) { output.writeInt64(1, weight_); } @@ -303,10 +255,12 @@ public int getSerializedSize() { size = 0; if (weight_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, weight_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, weight_); } for (int i = 0; i < widgets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, widgets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, widgets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -316,16 +270,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.RowLayout.Row)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.RowLayout.Row other = - (com.google.monitoring.dashboard.v1.RowLayout.Row) obj; + com.google.monitoring.dashboard.v1.RowLayout.Row other = (com.google.monitoring.dashboard.v1.RowLayout.Row) obj; - if (getWeight() != other.getWeight()) return false; - if (!getWidgetsList().equals(other.getWidgetsList())) return false; + if (getWeight() + != other.getWeight()) return false; + if (!getWidgetsList() + .equals(other.getWidgetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -338,7 +293,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWeight()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getWeight()); if (getWidgetsCount() > 0) { hash = (37 * hash) + WIDGETS_FIELD_NUMBER; hash = (53 * hash) + getWidgetsList().hashCode(); @@ -349,93 +305,89 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.RowLayout.Row parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.RowLayout.Row parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.RowLayout.Row parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.RowLayout.Row 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.RowLayout.Row parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.RowLayout.Row parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.RowLayout.Row parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.RowLayout.Row parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.RowLayout.Row parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.RowLayout.Row parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.RowLayout.Row parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.RowLayout.Row parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.RowLayout.Row parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.RowLayout.Row parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.RowLayout.Row prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -445,41 +397,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                * Defines the layout properties and content for a row.
                * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.RowLayout.Row} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.RowLayout.Row) com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.LayoutsProto - .internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.LayoutsProto - .internal_static_google_monitoring_dashboard_v1_RowLayout_Row_fieldAccessorTable + return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.RowLayout.Row.class, - com.google.monitoring.dashboard.v1.RowLayout.Row.Builder.class); + com.google.monitoring.dashboard.v1.RowLayout.Row.class, com.google.monitoring.dashboard.v1.RowLayout.Row.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.RowLayout.Row.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.LayoutsProto - .internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor; } @java.lang.Override @@ -517,18 +467,14 @@ public com.google.monitoring.dashboard.v1.RowLayout.Row build() { @java.lang.Override public com.google.monitoring.dashboard.v1.RowLayout.Row buildPartial() { - com.google.monitoring.dashboard.v1.RowLayout.Row result = - new com.google.monitoring.dashboard.v1.RowLayout.Row(this); + com.google.monitoring.dashboard.v1.RowLayout.Row result = new com.google.monitoring.dashboard.v1.RowLayout.Row(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.dashboard.v1.RowLayout.Row result) { + private void buildPartialRepeatedFields(com.google.monitoring.dashboard.v1.RowLayout.Row result) { if (widgetsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { widgets_ = java.util.Collections.unmodifiableList(widgets_); @@ -551,41 +497,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.RowLayout.Row resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.RowLayout.Row) { - return mergeFrom((com.google.monitoring.dashboard.v1.RowLayout.Row) other); + return mergeFrom((com.google.monitoring.dashboard.v1.RowLayout.Row)other); } else { super.mergeFrom(other); return this; @@ -593,8 +536,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.RowLayout.Row other) { - if (other == com.google.monitoring.dashboard.v1.RowLayout.Row.getDefaultInstance()) - return this; + if (other == com.google.monitoring.dashboard.v1.RowLayout.Row.getDefaultInstance()) return this; if (other.getWeight() != 0L) { setWeight(other.getWeight()); } @@ -616,10 +558,9 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.RowLayout.Row other) widgetsBuilder_ = null; widgets_ = other.widgets_; bitField0_ = (bitField0_ & ~0x00000002); - widgetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWidgetsFieldBuilder() - : null; + widgetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWidgetsFieldBuilder() : null; } else { widgetsBuilder_.addAllMessages(other.widgets_); } @@ -651,32 +592,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - weight_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - com.google.monitoring.dashboard.v1.Widget m = - input.readMessage( - com.google.monitoring.dashboard.v1.Widget.parser(), extensionRegistry); - if (widgetsBuilder_ == null) { - ensureWidgetsIsMutable(); - widgets_.add(m); - } else { - widgetsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + weight_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + com.google.monitoring.dashboard.v1.Widget m = + input.readMessage( + com.google.monitoring.dashboard.v1.Widget.parser(), + extensionRegistry); + if (widgetsBuilder_ == null) { + ensureWidgetsIsMutable(); + widgets_.add(m); + } else { + widgetsBuilder_.addMessage(m); + } + break; + } // case 18 + 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) { @@ -686,13 +625,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long weight_; + private long weight_ ; /** - * - * *
                  * The relative weight of this row. The row weight is used to adjust the
                  * height of rows on the screen (relative to peers). Greater the weight,
          @@ -701,7 +637,6 @@ public Builder mergeFrom(
                  * 
          * * int64 weight = 1; - * * @return The weight. */ @java.lang.Override @@ -709,8 +644,6 @@ public long getWeight() { return weight_; } /** - * - * *
                  * The relative weight of this row. The row weight is used to adjust the
                  * height of rows on the screen (relative to peers). Greater the weight,
          @@ -719,7 +652,6 @@ public long getWeight() {
                  * 
          * * int64 weight = 1; - * * @param value The weight to set. * @return This builder for chaining. */ @@ -731,8 +663,6 @@ public Builder setWeight(long value) { return this; } /** - * - * *
                  * The relative weight of this row. The row weight is used to adjust the
                  * height of rows on the screen (relative to peers). Greater the weight,
          @@ -741,7 +671,6 @@ public Builder setWeight(long value) {
                  * 
          * * int64 weight = 1; - * * @return This builder for chaining. */ public Builder clearWeight() { @@ -752,24 +681,18 @@ public Builder clearWeight() { } private java.util.List widgets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWidgetsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { widgets_ = new java.util.ArrayList(widgets_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, - com.google.monitoring.dashboard.v1.Widget.Builder, - com.google.monitoring.dashboard.v1.WidgetOrBuilder> - widgetsBuilder_; + com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder> widgetsBuilder_; /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -784,8 +707,6 @@ public java.util.List getWidgetsList( } } /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -800,8 +721,6 @@ public int getWidgetsCount() { } } /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -816,15 +735,14 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { } } /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder setWidgets(int index, com.google.monitoring.dashboard.v1.Widget value) { + public Builder setWidgets( + int index, com.google.monitoring.dashboard.v1.Widget value) { if (widgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -838,8 +756,6 @@ public Builder setWidgets(int index, com.google.monitoring.dashboard.v1.Widget v return this; } /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -858,8 +774,6 @@ public Builder setWidgets( return this; } /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -880,15 +794,14 @@ public Builder addWidgets(com.google.monitoring.dashboard.v1.Widget value) { return this; } /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder addWidgets(int index, com.google.monitoring.dashboard.v1.Widget value) { + public Builder addWidgets( + int index, com.google.monitoring.dashboard.v1.Widget value) { if (widgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -902,15 +815,14 @@ public Builder addWidgets(int index, com.google.monitoring.dashboard.v1.Widget v return this; } /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder addWidgets(com.google.monitoring.dashboard.v1.Widget.Builder builderForValue) { + public Builder addWidgets( + com.google.monitoring.dashboard.v1.Widget.Builder builderForValue) { if (widgetsBuilder_ == null) { ensureWidgetsIsMutable(); widgets_.add(builderForValue.build()); @@ -921,8 +833,6 @@ public Builder addWidgets(com.google.monitoring.dashboard.v1.Widget.Builder buil return this; } /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -941,8 +851,6 @@ public Builder addWidgets( return this; } /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -953,7 +861,8 @@ public Builder addAllWidgets( java.lang.Iterable values) { if (widgetsBuilder_ == null) { ensureWidgetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, widgets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, widgets_); onChanged(); } else { widgetsBuilder_.addAllMessages(values); @@ -961,8 +870,6 @@ public Builder addAllWidgets( return this; } /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -980,8 +887,6 @@ public Builder clearWidgets() { return this; } /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -999,44 +904,39 @@ public Builder removeWidgets(int index) { return this; } /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.Widget.Builder getWidgetsBuilder(int index) { + public com.google.monitoring.dashboard.v1.Widget.Builder getWidgetsBuilder( + int index) { return getWidgetsFieldBuilder().getBuilder(index); } /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index) { + public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( + int index) { if (widgetsBuilder_ == null) { - return widgets_.get(index); - } else { + return widgets_.get(index); } else { return widgetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public java.util.List - getWidgetsOrBuilderList() { + public java.util.List + getWidgetsOrBuilderList() { if (widgetsBuilder_ != null) { return widgetsBuilder_.getMessageOrBuilderList(); } else { @@ -1044,8 +944,6 @@ public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(in } } /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -1053,53 +951,46 @@ public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(in * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder() { - return getWidgetsFieldBuilder() - .addBuilder(com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); + return getWidgetsFieldBuilder().addBuilder( + com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); } /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder(int index) { - return getWidgetsFieldBuilder() - .addBuilder(index, com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); + public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder( + int index) { + return getWidgetsFieldBuilder().addBuilder( + index, com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); } /** - * - * *
                  * The display widgets arranged horizontally in this row.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public java.util.List - getWidgetsBuilderList() { + public java.util.List + getWidgetsBuilderList() { return getWidgetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, - com.google.monitoring.dashboard.v1.Widget.Builder, - com.google.monitoring.dashboard.v1.WidgetOrBuilder> + com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder> getWidgetsFieldBuilder() { if (widgetsBuilder_ == null) { - widgetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, - com.google.monitoring.dashboard.v1.Widget.Builder, - com.google.monitoring.dashboard.v1.WidgetOrBuilder>( - widgets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + widgetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder>( + widgets_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); widgets_ = null; } return widgetsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1112,12 +1003,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.RowLayout.Row) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.RowLayout.Row) private static final com.google.monitoring.dashboard.v1.RowLayout.Row DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.RowLayout.Row(); } @@ -1126,28 +1017,27 @@ public static com.google.monitoring.dashboard.v1.RowLayout.Row getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Row 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Row 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; @@ -1162,15 +1052,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.RowLayout.Row getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int ROWS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List rows_; /** - * - * *
              * The rows of content to display.
              * 
          @@ -1182,8 +1070,6 @@ public java.util.List getRowsL return rows_; } /** - * - * *
              * The rows of content to display.
              * 
          @@ -1191,13 +1077,11 @@ public java.util.List getRowsL * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRowsOrBuilderList() { return rows_; } /** - * - * *
              * The rows of content to display.
              * 
          @@ -1209,8 +1093,6 @@ public int getRowsCount() { return rows_.size(); } /** - * - * *
              * The rows of content to display.
              * 
          @@ -1222,8 +1104,6 @@ public com.google.monitoring.dashboard.v1.RowLayout.Row getRows(int index) { return rows_.get(index); } /** - * - * *
              * The rows of content to display.
              * 
          @@ -1231,12 +1111,12 @@ public com.google.monitoring.dashboard.v1.RowLayout.Row getRows(int index) { * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder getRowsOrBuilder(int index) { + public com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder getRowsOrBuilder( + int index) { return rows_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1248,7 +1128,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < rows_.size(); i++) { output.writeMessage(1, rows_.get(i)); } @@ -1262,7 +1143,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < rows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rows_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, rows_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1272,15 +1154,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.RowLayout)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.RowLayout other = - (com.google.monitoring.dashboard.v1.RowLayout) obj; + com.google.monitoring.dashboard.v1.RowLayout other = (com.google.monitoring.dashboard.v1.RowLayout) obj; - if (!getRowsList().equals(other.getRowsList())) return false; + if (!getRowsList() + .equals(other.getRowsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1301,104 +1183,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.RowLayout parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.RowLayout parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.RowLayout parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.RowLayout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.RowLayout 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.RowLayout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.RowLayout parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.RowLayout parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.RowLayout parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.RowLayout parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.RowLayout parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.RowLayout parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.RowLayout parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.RowLayout parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.RowLayout prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * A simplified layout that divides the available space into rows
              * and arranges a set of widgets horizontally in each row.
          @@ -1406,32 +1283,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.RowLayout}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.RowLayout)
                 com.google.monitoring.dashboard.v1.RowLayoutOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto
          -          .internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto
          -          .internal_static_google_monitoring_dashboard_v1_RowLayout_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.RowLayout.class,
          -              com.google.monitoring.dashboard.v1.RowLayout.Builder.class);
          +              com.google.monitoring.dashboard.v1.RowLayout.class, com.google.monitoring.dashboard.v1.RowLayout.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.RowLayout.newBuilder()
          -    private Builder() {}
          +    private Builder() {
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          -      super(parent);
               }
           
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +      super(parent);
          +
          +    }
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -1447,9 +1325,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto
          -          .internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor;
               }
           
               @java.lang.Override
          @@ -1468,12 +1346,9 @@ public com.google.monitoring.dashboard.v1.RowLayout build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.RowLayout buildPartial() {
          -      com.google.monitoring.dashboard.v1.RowLayout result =
          -          new com.google.monitoring.dashboard.v1.RowLayout(this);
          +      com.google.monitoring.dashboard.v1.RowLayout result = new com.google.monitoring.dashboard.v1.RowLayout(this);
                 buildPartialRepeatedFields(result);
          -      if (bitField0_ != 0) {
          -        buildPartial0(result);
          -      }
          +      if (bitField0_ != 0) { buildPartial0(result); }
                 onBuilt();
                 return result;
               }
          @@ -1498,39 +1373,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.RowLayout result)
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.RowLayout) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.RowLayout) other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.RowLayout)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1557,10 +1431,9 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.RowLayout other) {
                       rowsBuilder_ = null;
                       rows_ = other.rows_;
                       bitField0_ = (bitField0_ & ~0x00000001);
          -            rowsBuilder_ =
          -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          -                    ? getRowsFieldBuilder()
          -                    : null;
          +            rowsBuilder_ = 
          +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          +                 getRowsFieldBuilder() : null;
                     } else {
                       rowsBuilder_.addAllMessages(other.rows_);
                     }
          @@ -1592,27 +1465,25 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10:
          -              {
          -                com.google.monitoring.dashboard.v1.RowLayout.Row m =
          -                    input.readMessage(
          -                        com.google.monitoring.dashboard.v1.RowLayout.Row.parser(),
          -                        extensionRegistry);
          -                if (rowsBuilder_ == null) {
          -                  ensureRowsIsMutable();
          -                  rows_.add(m);
          -                } else {
          -                  rowsBuilder_.addMessage(m);
          -                }
          -                break;
          -              } // case 10
          -            default:
          -              {
          -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                  done = true; // was an endgroup tag
          -                }
          -                break;
          -              } // default:
          +            case 10: {
          +              com.google.monitoring.dashboard.v1.RowLayout.Row m =
          +                  input.readMessage(
          +                      com.google.monitoring.dashboard.v1.RowLayout.Row.parser(),
          +                      extensionRegistry);
          +              if (rowsBuilder_ == null) {
          +                ensureRowsIsMutable();
          +                rows_.add(m);
          +              } else {
          +                rowsBuilder_.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) {
          @@ -1622,28 +1493,21 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          -
               private int bitField0_;
           
               private java.util.List rows_ =
          -        java.util.Collections.emptyList();
          -
          +      java.util.Collections.emptyList();
               private void ensureRowsIsMutable() {
                 if (!((bitField0_ & 0x00000001) != 0)) {
                   rows_ = new java.util.ArrayList(rows_);
                   bitField0_ |= 0x00000001;
          -      }
          +       }
               }
           
               private com.google.protobuf.RepeatedFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.RowLayout.Row,
          -            com.google.monitoring.dashboard.v1.RowLayout.Row.Builder,
          -            com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder>
          -        rowsBuilder_;
          +        com.google.monitoring.dashboard.v1.RowLayout.Row, com.google.monitoring.dashboard.v1.RowLayout.Row.Builder, com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder> rowsBuilder_;
           
               /**
          -     *
          -     *
                * 
                * The rows of content to display.
                * 
          @@ -1658,8 +1522,6 @@ public java.util.List getRowsL } } /** - * - * *
                * The rows of content to display.
                * 
          @@ -1674,8 +1536,6 @@ public int getRowsCount() { } } /** - * - * *
                * The rows of content to display.
                * 
          @@ -1690,15 +1550,14 @@ public com.google.monitoring.dashboard.v1.RowLayout.Row getRows(int index) { } } /** - * - * *
                * The rows of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - public Builder setRows(int index, com.google.monitoring.dashboard.v1.RowLayout.Row value) { + public Builder setRows( + int index, com.google.monitoring.dashboard.v1.RowLayout.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1712,8 +1571,6 @@ public Builder setRows(int index, com.google.monitoring.dashboard.v1.RowLayout.R return this; } /** - * - * *
                * The rows of content to display.
                * 
          @@ -1732,8 +1589,6 @@ public Builder setRows( return this; } /** - * - * *
                * The rows of content to display.
                * 
          @@ -1754,15 +1609,14 @@ public Builder addRows(com.google.monitoring.dashboard.v1.RowLayout.Row value) { return this; } /** - * - * *
                * The rows of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - public Builder addRows(int index, com.google.monitoring.dashboard.v1.RowLayout.Row value) { + public Builder addRows( + int index, com.google.monitoring.dashboard.v1.RowLayout.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1776,8 +1630,6 @@ public Builder addRows(int index, com.google.monitoring.dashboard.v1.RowLayout.R return this; } /** - * - * *
                * The rows of content to display.
                * 
          @@ -1796,8 +1648,6 @@ public Builder addRows( return this; } /** - * - * *
                * The rows of content to display.
                * 
          @@ -1816,8 +1666,6 @@ public Builder addRows( return this; } /** - * - * *
                * The rows of content to display.
                * 
          @@ -1828,7 +1676,8 @@ public Builder addAllRows( java.lang.Iterable values) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rows_); onChanged(); } else { rowsBuilder_.addAllMessages(values); @@ -1836,8 +1685,6 @@ public Builder addAllRows( return this; } /** - * - * *
                * The rows of content to display.
                * 
          @@ -1855,8 +1702,6 @@ public Builder clearRows() { return this; } /** - * - * *
                * The rows of content to display.
                * 
          @@ -1874,44 +1719,39 @@ public Builder removeRows(int index) { return this; } /** - * - * *
                * The rows of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - public com.google.monitoring.dashboard.v1.RowLayout.Row.Builder getRowsBuilder(int index) { + public com.google.monitoring.dashboard.v1.RowLayout.Row.Builder getRowsBuilder( + int index) { return getRowsFieldBuilder().getBuilder(index); } /** - * - * *
                * The rows of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - public com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder getRowsOrBuilder(int index) { + public com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder getRowsOrBuilder( + int index) { if (rowsBuilder_ == null) { - return rows_.get(index); - } else { + return rows_.get(index); } else { return rowsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                * The rows of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - public java.util.List - getRowsOrBuilderList() { + public java.util.List + getRowsOrBuilderList() { if (rowsBuilder_ != null) { return rowsBuilder_.getMessageOrBuilderList(); } else { @@ -1919,8 +1759,6 @@ public com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder getRowsOrBuilde } } /** - * - * *
                * The rows of content to display.
                * 
          @@ -1928,55 +1766,49 @@ public com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder getRowsOrBuilde * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ public com.google.monitoring.dashboard.v1.RowLayout.Row.Builder addRowsBuilder() { - return getRowsFieldBuilder() - .addBuilder(com.google.monitoring.dashboard.v1.RowLayout.Row.getDefaultInstance()); + return getRowsFieldBuilder().addBuilder( + com.google.monitoring.dashboard.v1.RowLayout.Row.getDefaultInstance()); } /** - * - * *
                * The rows of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - public com.google.monitoring.dashboard.v1.RowLayout.Row.Builder addRowsBuilder(int index) { - return getRowsFieldBuilder() - .addBuilder(index, com.google.monitoring.dashboard.v1.RowLayout.Row.getDefaultInstance()); + public com.google.monitoring.dashboard.v1.RowLayout.Row.Builder addRowsBuilder( + int index) { + return getRowsFieldBuilder().addBuilder( + index, com.google.monitoring.dashboard.v1.RowLayout.Row.getDefaultInstance()); } /** - * - * *
                * The rows of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - public java.util.List - getRowsBuilderList() { + public java.util.List + getRowsBuilderList() { return getRowsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.RowLayout.Row, - com.google.monitoring.dashboard.v1.RowLayout.Row.Builder, - com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder> + com.google.monitoring.dashboard.v1.RowLayout.Row, com.google.monitoring.dashboard.v1.RowLayout.Row.Builder, com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder> getRowsFieldBuilder() { if (rowsBuilder_ == null) { - rowsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.RowLayout.Row, - com.google.monitoring.dashboard.v1.RowLayout.Row.Builder, - com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder>( - rows_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.RowLayout.Row, com.google.monitoring.dashboard.v1.RowLayout.Row.Builder, com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder>( + rows_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); rows_ = null; } return rowsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1986,12 +1818,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.RowLayout) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.RowLayout) private static final com.google.monitoring.dashboard.v1.RowLayout DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.RowLayout(); } @@ -2000,27 +1832,27 @@ public static com.google.monitoring.dashboard.v1.RowLayout getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RowLayout 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RowLayout 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; @@ -2035,4 +1867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.RowLayout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayoutOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayoutOrBuilder.java similarity index 65% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayoutOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayoutOrBuilder.java index 321c9fe542b0..6182a600cefe 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayoutOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayoutOrBuilder.java @@ -1,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/layouts.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface RowLayoutOrBuilder - extends +public interface RowLayoutOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.RowLayout) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * The rows of content to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - java.util.List getRowsList(); + java.util.List + getRowsList(); /** - * - * *
              * The rows of content to display.
              * 
          @@ -45,8 +26,6 @@ public interface RowLayoutOrBuilder */ com.google.monitoring.dashboard.v1.RowLayout.Row getRows(int index); /** - * - * *
              * The rows of content to display.
              * 
          @@ -55,24 +34,21 @@ public interface RowLayoutOrBuilder */ int getRowsCount(); /** - * - * *
              * The rows of content to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - java.util.List + java.util.List getRowsOrBuilderList(); /** - * - * *
              * The rows of content to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder getRowsOrBuilder(int index); + com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder getRowsOrBuilder( + int index); } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Scorecard.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Scorecard.java similarity index 74% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Scorecard.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Scorecard.java index d95042994c79..7111623ef989 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Scorecard.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Scorecard.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/scorecard.proto @@ -20,8 +5,6 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * A widget showing the latest value of a metric, and how this value relates to
            * one or more thresholds.
          @@ -29,77 +12,66 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.Scorecard}
            */
          -public final class Scorecard extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class Scorecard extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Scorecard)
               ScorecardOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use Scorecard.newBuilder() to construct.
             private Scorecard(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
             private Scorecard() {
               thresholds_ = java.util.Collections.emptyList();
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new Scorecard();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.ScorecardProto
          -        .internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.ScorecardProto
          -        .internal_static_google_monitoring_dashboard_v1_Scorecard_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.Scorecard.class,
          -            com.google.monitoring.dashboard.v1.Scorecard.Builder.class);
          +            com.google.monitoring.dashboard.v1.Scorecard.class, com.google.monitoring.dashboard.v1.Scorecard.Builder.class);
             }
           
          -  public interface GaugeViewOrBuilder
          -      extends
          +  public interface GaugeViewOrBuilder extends
                 // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Scorecard.GaugeView)
                 com.google.protobuf.MessageOrBuilder {
           
               /**
          -     *
          -     *
                * 
                * The lower bound for this gauge chart. The value of the chart should
                * always be greater than or equal to this.
                * 
          * * double lower_bound = 1; - * * @return The lowerBound. */ double getLowerBound(); /** - * - * *
                * The upper bound for this gauge chart. The value of the chart should
                * always be less than or equal to this.
                * 
          * * double upper_bound = 2; - * * @return The upperBound. */ double getUpperBound(); } /** - * - * *
              * A gauge chart shows where the current value sits within a pre-defined
              * range. The upper and lower bounds should define the possible range of
          @@ -108,51 +80,47 @@ public interface GaugeViewOrBuilder
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.Scorecard.GaugeView}
              */
          -  public static final class GaugeView extends com.google.protobuf.GeneratedMessageV3
          -      implements
          +  public static final class GaugeView extends
          +      com.google.protobuf.GeneratedMessageV3 implements
                 // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Scorecard.GaugeView)
                 GaugeViewOrBuilder {
          -    private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
               // Use GaugeView.newBuilder() to construct.
               private GaugeView(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
          -
          -    private GaugeView() {}
          +    private GaugeView() {
          +    }
           
               @java.lang.Override
               @SuppressWarnings({"unused"})
          -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +    protected java.lang.Object newInstance(
          +        UnusedPrivateParameter unused) {
                 return new GaugeView();
               }
           
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.ScorecardProto
          -          .internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.ScorecardProto
          -          .internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.Scorecard.GaugeView.class,
          -              com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder.class);
          +              com.google.monitoring.dashboard.v1.Scorecard.GaugeView.class, com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder.class);
               }
           
               public static final int LOWER_BOUND_FIELD_NUMBER = 1;
               private double lowerBound_ = 0D;
               /**
          -     *
          -     *
                * 
                * The lower bound for this gauge chart. The value of the chart should
                * always be greater than or equal to this.
                * 
          * * double lower_bound = 1; - * * @return The lowerBound. */ @java.lang.Override @@ -163,15 +131,12 @@ public double getLowerBound() { public static final int UPPER_BOUND_FIELD_NUMBER = 2; private double upperBound_ = 0D; /** - * - * *
                * The upper bound for this gauge chart. The value of the chart should
                * always be less than or equal to this.
                * 
          * * double upper_bound = 2; - * * @return The upperBound. */ @java.lang.Override @@ -180,7 +145,6 @@ public double getUpperBound() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -192,7 +156,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Double.doubleToRawLongBits(lowerBound_) != 0) { output.writeDouble(1, lowerBound_); } @@ -209,10 +174,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(lowerBound_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, lowerBound_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, lowerBound_); } if (java.lang.Double.doubleToRawLongBits(upperBound_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, upperBound_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, upperBound_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -222,18 +189,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.Scorecard.GaugeView)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.Scorecard.GaugeView other = - (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) obj; + com.google.monitoring.dashboard.v1.Scorecard.GaugeView other = (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) obj; if (java.lang.Double.doubleToLongBits(getLowerBound()) - != java.lang.Double.doubleToLongBits(other.getLowerBound())) return false; + != java.lang.Double.doubleToLongBits( + other.getLowerBound())) return false; if (java.lang.Double.doubleToLongBits(getUpperBound()) - != java.lang.Double.doubleToLongBits(other.getUpperBound())) return false; + != java.lang.Double.doubleToLongBits( + other.getUpperBound())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -246,109 +214,100 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOWER_BOUND_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getLowerBound())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLowerBound())); hash = (37 * hash) + UPPER_BOUND_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getUpperBound())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getUpperBound())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Scorecard.GaugeView parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView 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.Scorecard.GaugeView parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.dashboard.v1.Scorecard.GaugeView prototype) { + public static Builder newBuilder(com.google.monitoring.dashboard.v1.Scorecard.GaugeView prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -358,8 +317,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                * A gauge chart shows where the current value sits within a pre-defined
                * range. The upper and lower bounds should define the possible range of
          @@ -368,33 +325,33 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.monitoring.dashboard.v1.Scorecard.GaugeView}
                */
          -    public static final class Builder
          -        extends com.google.protobuf.GeneratedMessageV3.Builder
          -        implements
          +    public static final class Builder extends
          +        com.google.protobuf.GeneratedMessageV3.Builder implements
                   // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Scorecard.GaugeView)
                   com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder {
          -      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -        return com.google.monitoring.dashboard.v1.ScorecardProto
          -            .internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor;
          +      public static final com.google.protobuf.Descriptors.Descriptor
          +          getDescriptor() {
          +        return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor;
                 }
           
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
          -        return com.google.monitoring.dashboard.v1.ScorecardProto
          -            .internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_fieldAccessorTable
          +        return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
          -                com.google.monitoring.dashboard.v1.Scorecard.GaugeView.class,
          -                com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder.class);
          +                com.google.monitoring.dashboard.v1.Scorecard.GaugeView.class, com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder.class);
                 }
           
                 // Construct using com.google.monitoring.dashboard.v1.Scorecard.GaugeView.newBuilder()
          -      private Builder() {}
          +      private Builder() {
           
          -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          -        super(parent);
                 }
           
          +      private Builder(
          +          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +        super(parent);
          +
          +      }
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
          @@ -405,9 +362,9 @@ public Builder clear() {
                 }
           
                 @java.lang.Override
          -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -        return com.google.monitoring.dashboard.v1.ScorecardProto
          -            .internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor;
          +      public com.google.protobuf.Descriptors.Descriptor
          +          getDescriptorForType() {
          +        return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor;
                 }
           
                 @java.lang.Override
          @@ -426,11 +383,8 @@ public com.google.monitoring.dashboard.v1.Scorecard.GaugeView build() {
           
                 @java.lang.Override
                 public com.google.monitoring.dashboard.v1.Scorecard.GaugeView buildPartial() {
          -        com.google.monitoring.dashboard.v1.Scorecard.GaugeView result =
          -            new com.google.monitoring.dashboard.v1.Scorecard.GaugeView(this);
          -        if (bitField0_ != 0) {
          -          buildPartial0(result);
          -        }
          +        com.google.monitoring.dashboard.v1.Scorecard.GaugeView result = new com.google.monitoring.dashboard.v1.Scorecard.GaugeView(this);
          +        if (bitField0_ != 0) { buildPartial0(result); }
                   onBuilt();
                   return result;
                 }
          @@ -449,41 +403,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Scorecard.GaugeVie
                 public Builder clone() {
                   return super.clone();
                 }
          -
                 @java.lang.Override
                 public Builder setField(
          -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +          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) {
          +      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) {
          +      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) {
          +          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) {
          +          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.Scorecard.GaugeView) {
          -          return mergeFrom((com.google.monitoring.dashboard.v1.Scorecard.GaugeView) other);
          +          return mergeFrom((com.google.monitoring.dashboard.v1.Scorecard.GaugeView)other);
                   } else {
                     super.mergeFrom(other);
                     return this;
          @@ -491,8 +442,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                 }
           
                 public Builder mergeFrom(com.google.monitoring.dashboard.v1.Scorecard.GaugeView other) {
          -        if (other == com.google.monitoring.dashboard.v1.Scorecard.GaugeView.getDefaultInstance())
          -          return this;
          +        if (other == com.google.monitoring.dashboard.v1.Scorecard.GaugeView.getDefaultInstance()) return this;
                   if (other.getLowerBound() != 0D) {
                     setLowerBound(other.getLowerBound());
                   }
          @@ -525,25 +475,22 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
          -              case 9:
          -                {
          -                  lowerBound_ = input.readDouble();
          -                  bitField0_ |= 0x00000001;
          -                  break;
          -                } // case 9
          -              case 17:
          -                {
          -                  upperBound_ = input.readDouble();
          -                  bitField0_ |= 0x00000002;
          -                  break;
          -                } // case 17
          -              default:
          -                {
          -                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                    done = true; // was an endgroup tag
          -                  }
          -                  break;
          -                } // default:
          +              case 9: {
          +                lowerBound_ = input.readDouble();
          +                bitField0_ |= 0x00000001;
          +                break;
          +              } // case 9
          +              case 17: {
          +                upperBound_ = input.readDouble();
          +                bitField0_ |= 0x00000002;
          +                break;
          +              } // case 17
          +              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) {
          @@ -553,20 +500,16 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
          -
                 private int bitField0_;
           
          -      private double lowerBound_;
          +      private double lowerBound_ ;
                 /**
          -       *
          -       *
                  * 
                  * The lower bound for this gauge chart. The value of the chart should
                  * always be greater than or equal to this.
                  * 
          * * double lower_bound = 1; - * * @return The lowerBound. */ @java.lang.Override @@ -574,15 +517,12 @@ public double getLowerBound() { return lowerBound_; } /** - * - * *
                  * The lower bound for this gauge chart. The value of the chart should
                  * always be greater than or equal to this.
                  * 
          * * double lower_bound = 1; - * * @param value The lowerBound to set. * @return This builder for chaining. */ @@ -594,15 +534,12 @@ public Builder setLowerBound(double value) { return this; } /** - * - * *
                  * The lower bound for this gauge chart. The value of the chart should
                  * always be greater than or equal to this.
                  * 
          * * double lower_bound = 1; - * * @return This builder for chaining. */ public Builder clearLowerBound() { @@ -612,17 +549,14 @@ public Builder clearLowerBound() { return this; } - private double upperBound_; + private double upperBound_ ; /** - * - * *
                  * The upper bound for this gauge chart. The value of the chart should
                  * always be less than or equal to this.
                  * 
          * * double upper_bound = 2; - * * @return The upperBound. */ @java.lang.Override @@ -630,15 +564,12 @@ public double getUpperBound() { return upperBound_; } /** - * - * *
                  * The upper bound for this gauge chart. The value of the chart should
                  * always be less than or equal to this.
                  * 
          * * double upper_bound = 2; - * * @param value The upperBound to set. * @return This builder for chaining. */ @@ -650,15 +581,12 @@ public Builder setUpperBound(double value) { return this; } /** - * - * *
                  * The upper bound for this gauge chart. The value of the chart should
                  * always be less than or equal to this.
                  * 
          * * double upper_bound = 2; - * * @return This builder for chaining. */ public Builder clearUpperBound() { @@ -667,7 +595,6 @@ public Builder clearUpperBound() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -680,12 +607,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.Scorecard.GaugeView) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Scorecard.GaugeView) private static final com.google.monitoring.dashboard.v1.Scorecard.GaugeView DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Scorecard.GaugeView(); } @@ -694,28 +621,27 @@ public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GaugeView 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GaugeView 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; @@ -730,45 +656,33 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.Scorecard.GaugeView getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SparkChartViewOrBuilder - extends + public interface SparkChartViewOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Scorecard.SparkChartView) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Required. The type of sparkchart to show in this chartView.
                * 
          * - * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for sparkChartType. */ int getSparkChartTypeValue(); /** - * - * *
                * Required. The type of sparkchart to show in this chartView.
                * 
          * - * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The sparkChartType. */ com.google.monitoring.dashboard.v1.SparkChartType getSparkChartType(); /** - * - * *
                * The lower bound on data point frequency in the chart implemented by
                * specifying the minimum alignment period to use in a time series query.
          @@ -778,13 +692,10 @@ public interface SparkChartViewOrBuilder
                * 
          * * .google.protobuf.Duration min_alignment_period = 2; - * * @return Whether the minAlignmentPeriod field is set. */ boolean hasMinAlignmentPeriod(); /** - * - * *
                * The lower bound on data point frequency in the chart implemented by
                * specifying the minimum alignment period to use in a time series query.
          @@ -794,13 +705,10 @@ public interface SparkChartViewOrBuilder
                * 
          * * .google.protobuf.Duration min_alignment_period = 2; - * * @return The minAlignmentPeriod. */ com.google.protobuf.Duration getMinAlignmentPeriod(); /** - * - * *
                * The lower bound on data point frequency in the chart implemented by
                * specifying the minimum alignment period to use in a time series query.
          @@ -814,8 +722,6 @@ public interface SparkChartViewOrBuilder
               com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder();
             }
             /**
          -   *
          -   *
              * 
              * A sparkChart is a small chart suitable for inclusion in a table-cell or
              * inline in text. This message contains the configuration for a sparkChart
          @@ -825,88 +731,69 @@ public interface SparkChartViewOrBuilder
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.Scorecard.SparkChartView}
              */
          -  public static final class SparkChartView extends com.google.protobuf.GeneratedMessageV3
          -      implements
          +  public static final class SparkChartView extends
          +      com.google.protobuf.GeneratedMessageV3 implements
                 // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Scorecard.SparkChartView)
                 SparkChartViewOrBuilder {
          -    private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
               // Use SparkChartView.newBuilder() to construct.
               private SparkChartView(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
          -
               private SparkChartView() {
                 sparkChartType_ = 0;
               }
           
               @java.lang.Override
               @SuppressWarnings({"unused"})
          -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +    protected java.lang.Object newInstance(
          +        UnusedPrivateParameter unused) {
                 return new SparkChartView();
               }
           
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.ScorecardProto
          -          .internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.ScorecardProto
          -          .internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.class,
          -              com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder.class);
          +              com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.class, com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder.class);
               }
           
               private int bitField0_;
               public static final int SPARK_CHART_TYPE_FIELD_NUMBER = 1;
               private int sparkChartType_ = 0;
               /**
          -     *
          -     *
                * 
                * Required. The type of sparkchart to show in this chartView.
                * 
          * - * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for sparkChartType. */ - @java.lang.Override - public int getSparkChartTypeValue() { + @java.lang.Override public int getSparkChartTypeValue() { return sparkChartType_; } /** - * - * *
                * Required. The type of sparkchart to show in this chartView.
                * 
          * - * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The sparkChartType. */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.SparkChartType getSparkChartType() { - com.google.monitoring.dashboard.v1.SparkChartType result = - com.google.monitoring.dashboard.v1.SparkChartType.forNumber(sparkChartType_); - return result == null - ? com.google.monitoring.dashboard.v1.SparkChartType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.dashboard.v1.SparkChartType getSparkChartType() { + com.google.monitoring.dashboard.v1.SparkChartType result = com.google.monitoring.dashboard.v1.SparkChartType.forNumber(sparkChartType_); + return result == null ? com.google.monitoring.dashboard.v1.SparkChartType.UNRECOGNIZED : result; } public static final int MIN_ALIGNMENT_PERIOD_FIELD_NUMBER = 2; private com.google.protobuf.Duration minAlignmentPeriod_; /** - * - * *
                * The lower bound on data point frequency in the chart implemented by
                * specifying the minimum alignment period to use in a time series query.
          @@ -916,7 +803,6 @@ public com.google.monitoring.dashboard.v1.SparkChartType getSparkChartType() {
                * 
          * * .google.protobuf.Duration min_alignment_period = 2; - * * @return Whether the minAlignmentPeriod field is set. */ @java.lang.Override @@ -924,8 +810,6 @@ public boolean hasMinAlignmentPeriod() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * The lower bound on data point frequency in the chart implemented by
                * specifying the minimum alignment period to use in a time series query.
          @@ -935,18 +819,13 @@ public boolean hasMinAlignmentPeriod() {
                * 
          * * .google.protobuf.Duration min_alignment_period = 2; - * * @return The minAlignmentPeriod. */ @java.lang.Override public com.google.protobuf.Duration getMinAlignmentPeriod() { - return minAlignmentPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minAlignmentPeriod_; + return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; } /** - * - * *
                * The lower bound on data point frequency in the chart implemented by
                * specifying the minimum alignment period to use in a time series query.
          @@ -959,13 +838,10 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() {
                */
               @java.lang.Override
               public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() {
          -      return minAlignmentPeriod_ == null
          -          ? com.google.protobuf.Duration.getDefaultInstance()
          -          : minAlignmentPeriod_;
          +      return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_;
               }
           
               private byte memoizedIsInitialized = -1;
          -
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
          @@ -977,10 +853,9 @@ public final boolean isInitialized() {
               }
           
               @java.lang.Override
          -    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
          -      if (sparkChartType_
          -          != com.google.monitoring.dashboard.v1.SparkChartType.SPARK_CHART_TYPE_UNSPECIFIED
          -              .getNumber()) {
          +    public void writeTo(com.google.protobuf.CodedOutputStream output)
          +                        throws java.io.IOException {
          +      if (sparkChartType_ != com.google.monitoring.dashboard.v1.SparkChartType.SPARK_CHART_TYPE_UNSPECIFIED.getNumber()) {
                   output.writeEnum(1, sparkChartType_);
                 }
                 if (((bitField0_ & 0x00000001) != 0)) {
          @@ -995,14 +870,13 @@ public int getSerializedSize() {
                 if (size != -1) return size;
           
                 size = 0;
          -      if (sparkChartType_
          -          != com.google.monitoring.dashboard.v1.SparkChartType.SPARK_CHART_TYPE_UNSPECIFIED
          -              .getNumber()) {
          -        size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, sparkChartType_);
          +      if (sparkChartType_ != com.google.monitoring.dashboard.v1.SparkChartType.SPARK_CHART_TYPE_UNSPECIFIED.getNumber()) {
          +        size += com.google.protobuf.CodedOutputStream
          +          .computeEnumSize(1, sparkChartType_);
                 }
                 if (((bitField0_ & 0x00000001) != 0)) {
          -        size +=
          -            com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMinAlignmentPeriod());
          +        size += com.google.protobuf.CodedOutputStream
          +          .computeMessageSize(2, getMinAlignmentPeriod());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
          @@ -1012,18 +886,18 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
          -        return true;
          +       return true;
                 }
                 if (!(obj instanceof com.google.monitoring.dashboard.v1.Scorecard.SparkChartView)) {
                   return super.equals(obj);
                 }
          -      com.google.monitoring.dashboard.v1.Scorecard.SparkChartView other =
          -          (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) obj;
          +      com.google.monitoring.dashboard.v1.Scorecard.SparkChartView other = (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) obj;
           
                 if (sparkChartType_ != other.sparkChartType_) return false;
                 if (hasMinAlignmentPeriod() != other.hasMinAlignmentPeriod()) return false;
                 if (hasMinAlignmentPeriod()) {
          -        if (!getMinAlignmentPeriod().equals(other.getMinAlignmentPeriod())) return false;
          +        if (!getMinAlignmentPeriod()
          +            .equals(other.getMinAlignmentPeriod())) return false;
                 }
                 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                 return true;
          @@ -1048,94 +922,89 @@ public int hashCode() {
               }
           
               public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseFrom(
          -        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
          +        java.nio.ByteBuffer data)
          +        throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
          -
               public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseFrom(
          -        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        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.Scorecard.SparkChartView parseFrom(
                   com.google.protobuf.ByteString data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
          -
               public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView 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.Scorecard.SparkChartView parseFrom(byte[] data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
          -
               public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseFrom(
          -        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        byte[] data,
          +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
          -
          -    public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseFrom(
          -        java.io.InputStream input) throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          +    public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseFrom(java.io.InputStream input)
          +        throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3
          +          .parseWithIOException(PARSER, input);
               }
          -
               public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseFrom(
          -        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        java.io.InputStream input,
          +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          -          PARSER, input, extensionRegistry);
          +      return com.google.protobuf.GeneratedMessageV3
          +          .parseWithIOException(PARSER, input, extensionRegistry);
               }
           
          -    public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseDelimitedFrom(
          -        java.io.InputStream input) throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
          +    public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseDelimitedFrom(java.io.InputStream input)
          +        throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3
          +          .parseDelimitedWithIOException(PARSER, input);
               }
           
               public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseDelimitedFrom(
          -        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        java.io.InputStream input,
          +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          -          PARSER, input, extensionRegistry);
          +      return com.google.protobuf.GeneratedMessageV3
          +          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
               }
          -
               public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseFrom(
          -        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          +        com.google.protobuf.CodedInputStream input)
          +        throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3
          +          .parseWithIOException(PARSER, input);
               }
          -
               public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          -          PARSER, input, extensionRegistry);
          +      return com.google.protobuf.GeneratedMessageV3
          +          .parseWithIOException(PARSER, input, extensionRegistry);
               }
           
               @java.lang.Override
          -    public Builder newBuilderForType() {
          -      return newBuilder();
          -    }
          -
          +    public Builder newBuilderForType() { return newBuilder(); }
               public static Builder newBuilder() {
                 return DEFAULT_INSTANCE.toBuilder();
               }
          -
          -    public static Builder newBuilder(
          -        com.google.monitoring.dashboard.v1.Scorecard.SparkChartView prototype) {
          +    public static Builder newBuilder(com.google.monitoring.dashboard.v1.Scorecard.SparkChartView prototype) {
                 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
               }
          -
               @java.lang.Override
               public Builder toBuilder() {
          -      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
          +      return this == DEFAULT_INSTANCE
          +          ? new Builder() : new Builder().mergeFrom(this);
               }
           
               @java.lang.Override
          @@ -1145,8 +1014,6 @@ protected Builder newBuilderForType(
                 return builder;
               }
               /**
          -     *
          -     *
                * 
                * A sparkChart is a small chart suitable for inclusion in a table-cell or
                * inline in text. This message contains the configuration for a sparkChart
          @@ -1156,24 +1023,21 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.monitoring.dashboard.v1.Scorecard.SparkChartView}
                */
          -    public static final class Builder
          -        extends com.google.protobuf.GeneratedMessageV3.Builder
          -        implements
          +    public static final class Builder extends
          +        com.google.protobuf.GeneratedMessageV3.Builder implements
                   // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Scorecard.SparkChartView)
                   com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder {
          -      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -        return com.google.monitoring.dashboard.v1.ScorecardProto
          -            .internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor;
          +      public static final com.google.protobuf.Descriptors.Descriptor
          +          getDescriptor() {
          +        return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor;
                 }
           
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
          -        return com.google.monitoring.dashboard.v1.ScorecardProto
          -            .internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_fieldAccessorTable
          +        return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
          -                com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.class,
          -                com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder.class);
          +                com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.class, com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder.class);
                 }
           
                 // Construct using com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.newBuilder()
          @@ -1181,17 +1045,17 @@ private Builder() {
                   maybeForceBuilderInitialization();
                 }
           
          -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +      private Builder(
          +          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   super(parent);
                   maybeForceBuilderInitialization();
                 }
          -
                 private void maybeForceBuilderInitialization() {
          -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
          +        if (com.google.protobuf.GeneratedMessageV3
          +                .alwaysUseFieldBuilders) {
                     getMinAlignmentPeriodFieldBuilder();
                   }
                 }
          -
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
          @@ -1206,14 +1070,13 @@ public Builder clear() {
                 }
           
                 @java.lang.Override
          -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -        return com.google.monitoring.dashboard.v1.ScorecardProto
          -            .internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor;
          +      public com.google.protobuf.Descriptors.Descriptor
          +          getDescriptorForType() {
          +        return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor;
                 }
           
                 @java.lang.Override
          -      public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView
          -          getDefaultInstanceForType() {
          +      public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView getDefaultInstanceForType() {
                   return com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.getDefaultInstance();
                 }
           
          @@ -1228,27 +1091,22 @@ public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView build() {
           
                 @java.lang.Override
                 public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView buildPartial() {
          -        com.google.monitoring.dashboard.v1.Scorecard.SparkChartView result =
          -            new com.google.monitoring.dashboard.v1.Scorecard.SparkChartView(this);
          -        if (bitField0_ != 0) {
          -          buildPartial0(result);
          -        }
          +        com.google.monitoring.dashboard.v1.Scorecard.SparkChartView result = new com.google.monitoring.dashboard.v1.Scorecard.SparkChartView(this);
          +        if (bitField0_ != 0) { buildPartial0(result); }
                   onBuilt();
                   return result;
                 }
           
          -      private void buildPartial0(
          -          com.google.monitoring.dashboard.v1.Scorecard.SparkChartView result) {
          +      private void buildPartial0(com.google.monitoring.dashboard.v1.Scorecard.SparkChartView result) {
                   int from_bitField0_ = bitField0_;
                   if (((from_bitField0_ & 0x00000001) != 0)) {
                     result.sparkChartType_ = sparkChartType_;
                   }
                   int to_bitField0_ = 0;
                   if (((from_bitField0_ & 0x00000002) != 0)) {
          -          result.minAlignmentPeriod_ =
          -              minAlignmentPeriodBuilder_ == null
          -                  ? minAlignmentPeriod_
          -                  : minAlignmentPeriodBuilder_.build();
          +          result.minAlignmentPeriod_ = minAlignmentPeriodBuilder_ == null
          +              ? minAlignmentPeriod_
          +              : minAlignmentPeriodBuilder_.build();
                     to_bitField0_ |= 0x00000001;
                   }
                   result.bitField0_ |= to_bitField0_;
          @@ -1258,41 +1116,38 @@ private void buildPartial0(
                 public Builder clone() {
                   return super.clone();
                 }
          -
                 @java.lang.Override
                 public Builder setField(
          -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +          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) {
          +      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) {
          +      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) {
          +          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) {
          +          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.Scorecard.SparkChartView) {
          -          return mergeFrom((com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) other);
          +          return mergeFrom((com.google.monitoring.dashboard.v1.Scorecard.SparkChartView)other);
                   } else {
                     super.mergeFrom(other);
                     return this;
          @@ -1300,9 +1155,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                 }
           
                 public Builder mergeFrom(com.google.monitoring.dashboard.v1.Scorecard.SparkChartView other) {
          -        if (other
          -            == com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.getDefaultInstance())
          -          return this;
          +        if (other == com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.getDefaultInstance()) return this;
                   if (other.sparkChartType_ != 0) {
                     setSparkChartTypeValue(other.getSparkChartTypeValue());
                   }
          @@ -1335,26 +1188,24 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
          -              case 8:
          -                {
          -                  sparkChartType_ = input.readEnum();
          -                  bitField0_ |= 0x00000001;
          -                  break;
          -                } // case 8
          -              case 18:
          -                {
          -                  input.readMessage(
          -                      getMinAlignmentPeriodFieldBuilder().getBuilder(), extensionRegistry);
          -                  bitField0_ |= 0x00000002;
          -                  break;
          -                } // case 18
          -              default:
          -                {
          -                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                    done = true; // was an endgroup tag
          -                  }
          -                  break;
          -                } // default:
          +              case 8: {
          +                sparkChartType_ = input.readEnum();
          +                bitField0_ |= 0x00000001;
          +                break;
          +              } // case 8
          +              case 18: {
          +                input.readMessage(
          +                    getMinAlignmentPeriodFieldBuilder().getBuilder(),
          +                    extensionRegistry);
          +                bitField0_ |= 0x00000002;
          +                break;
          +              } // case 18
          +              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) {
          @@ -1364,38 +1215,26 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
          -
                 private int bitField0_;
           
                 private int sparkChartType_ = 0;
                 /**
          -       *
          -       *
                  * 
                  * Required. The type of sparkchart to show in this chartView.
                  * 
          * - * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for sparkChartType. */ - @java.lang.Override - public int getSparkChartTypeValue() { + @java.lang.Override public int getSparkChartTypeValue() { return sparkChartType_; } /** - * - * *
                  * Required. The type of sparkchart to show in this chartView.
                  * 
          * - * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for sparkChartType to set. * @return This builder for chaining. */ @@ -1406,37 +1245,24 @@ public Builder setSparkChartTypeValue(int value) { return this; } /** - * - * *
                  * Required. The type of sparkchart to show in this chartView.
                  * 
          * - * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The sparkChartType. */ @java.lang.Override public com.google.monitoring.dashboard.v1.SparkChartType getSparkChartType() { - com.google.monitoring.dashboard.v1.SparkChartType result = - com.google.monitoring.dashboard.v1.SparkChartType.forNumber(sparkChartType_); - return result == null - ? com.google.monitoring.dashboard.v1.SparkChartType.UNRECOGNIZED - : result; + com.google.monitoring.dashboard.v1.SparkChartType result = com.google.monitoring.dashboard.v1.SparkChartType.forNumber(sparkChartType_); + return result == null ? com.google.monitoring.dashboard.v1.SparkChartType.UNRECOGNIZED : result; } /** - * - * *
                  * Required. The type of sparkchart to show in this chartView.
                  * 
          * - * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The sparkChartType to set. * @return This builder for chaining. */ @@ -1450,16 +1276,11 @@ public Builder setSparkChartType(com.google.monitoring.dashboard.v1.SparkChartTy return this; } /** - * - * *
                  * Required. The type of sparkchart to show in this chartView.
                  * 
          * - * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearSparkChartType() { @@ -1471,13 +1292,8 @@ public Builder clearSparkChartType() { private com.google.protobuf.Duration minAlignmentPeriod_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - minAlignmentPeriodBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minAlignmentPeriodBuilder_; /** - * - * *
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1487,15 +1303,12 @@ public Builder clearSparkChartType() {
                  * 
          * * .google.protobuf.Duration min_alignment_period = 2; - * * @return Whether the minAlignmentPeriod field is set. */ public boolean hasMinAlignmentPeriod() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1505,21 +1318,16 @@ public boolean hasMinAlignmentPeriod() {
                  * 
          * * .google.protobuf.Duration min_alignment_period = 2; - * * @return The minAlignmentPeriod. */ public com.google.protobuf.Duration getMinAlignmentPeriod() { if (minAlignmentPeriodBuilder_ == null) { - return minAlignmentPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minAlignmentPeriod_; + return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; } else { return minAlignmentPeriodBuilder_.getMessage(); } } /** - * - * *
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1544,8 +1352,6 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) {
                   return this;
                 }
                 /**
          -       *
          -       *
                  * 
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1556,7 +1362,8 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) {
                  *
                  * .google.protobuf.Duration min_alignment_period = 2;
                  */
          -      public Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builderForValue) {
          +      public Builder setMinAlignmentPeriod(
          +          com.google.protobuf.Duration.Builder builderForValue) {
                   if (minAlignmentPeriodBuilder_ == null) {
                     minAlignmentPeriod_ = builderForValue.build();
                   } else {
          @@ -1567,8 +1374,6 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builde
                   return this;
                 }
                 /**
          -       *
          -       *
                  * 
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1581,9 +1386,9 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builde
                  */
                 public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) {
                   if (minAlignmentPeriodBuilder_ == null) {
          -          if (((bitField0_ & 0x00000002) != 0)
          -              && minAlignmentPeriod_ != null
          -              && minAlignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
          +          if (((bitField0_ & 0x00000002) != 0) &&
          +            minAlignmentPeriod_ != null &&
          +            minAlignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
                       getMinAlignmentPeriodBuilder().mergeFrom(value);
                     } else {
                       minAlignmentPeriod_ = value;
          @@ -1598,8 +1403,6 @@ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) {
                   return this;
                 }
                 /**
          -       *
          -       *
                  * 
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1621,8 +1424,6 @@ public Builder clearMinAlignmentPeriod() {
                   return this;
                 }
                 /**
          -       *
          -       *
                  * 
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1639,8 +1440,6 @@ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() {
                   return getMinAlignmentPeriodFieldBuilder().getBuilder();
                 }
                 /**
          -       *
          -       *
                  * 
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1655,14 +1454,11 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() {
                   if (minAlignmentPeriodBuilder_ != null) {
                     return minAlignmentPeriodBuilder_.getMessageOrBuilder();
                   } else {
          -          return minAlignmentPeriod_ == null
          -              ? com.google.protobuf.Duration.getDefaultInstance()
          -              : minAlignmentPeriod_;
          +          return minAlignmentPeriod_ == null ?
          +              com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_;
                   }
                 }
                 /**
          -       *
          -       *
                  * 
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1674,22 +1470,18 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() {
                  * .google.protobuf.Duration min_alignment_period = 2;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
          -              com.google.protobuf.Duration,
          -              com.google.protobuf.Duration.Builder,
          -              com.google.protobuf.DurationOrBuilder>
          +          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
                     getMinAlignmentPeriodFieldBuilder() {
                   if (minAlignmentPeriodBuilder_ == null) {
          -          minAlignmentPeriodBuilder_ =
          -              new com.google.protobuf.SingleFieldBuilderV3<
          -                  com.google.protobuf.Duration,
          -                  com.google.protobuf.Duration.Builder,
          -                  com.google.protobuf.DurationOrBuilder>(
          -                  getMinAlignmentPeriod(), getParentForChildren(), isClean());
          +          minAlignmentPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          +              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
          +                  getMinAlignmentPeriod(),
          +                  getParentForChildren(),
          +                  isClean());
                     minAlignmentPeriod_ = null;
                   }
                   return minAlignmentPeriodBuilder_;
                 }
          -
                 @java.lang.Override
                 public final Builder setUnknownFields(
                     final com.google.protobuf.UnknownFieldSet unknownFields) {
          @@ -1702,13 +1494,12 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
           
          +
                 // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.Scorecard.SparkChartView)
               }
           
               // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Scorecard.SparkChartView)
          -    private static final com.google.monitoring.dashboard.v1.Scorecard.SparkChartView
          -        DEFAULT_INSTANCE;
          -
          +    private static final com.google.monitoring.dashboard.v1.Scorecard.SparkChartView DEFAULT_INSTANCE;
               static {
                 DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Scorecard.SparkChartView();
               }
          @@ -1717,28 +1508,27 @@ public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView getDef
                 return DEFAULT_INSTANCE;
               }
           
          -    private static final com.google.protobuf.Parser PARSER =
          -        new com.google.protobuf.AbstractParser() {
          -          @java.lang.Override
          -          public SparkChartView 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();
          -          }
          -        };
          +    private static final com.google.protobuf.Parser
          +        PARSER = new com.google.protobuf.AbstractParser() {
          +      @java.lang.Override
          +      public SparkChartView 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;
          @@ -1753,23 +1543,21 @@ public com.google.protobuf.Parser getParserForType() {
               public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
          +
             }
           
             private int bitField0_;
             private int dataViewCase_ = 0;
          -
             @SuppressWarnings("serial")
             private java.lang.Object dataView_;
          -
             public enum DataViewCase
          -      implements
          -          com.google.protobuf.Internal.EnumLite,
          +      implements com.google.protobuf.Internal.EnumLite,
                     com.google.protobuf.AbstractMessage.InternalOneOfEnum {
               GAUGE_VIEW(4),
               SPARK_CHART_VIEW(5),
          +    BLANK_VIEW(7),
               DATAVIEW_NOT_SET(0);
               private final int value;
          -
               private DataViewCase(int value) {
                 this.value = value;
               }
          @@ -1785,40 +1573,33 @@ public static DataViewCase valueOf(int value) {
           
               public static DataViewCase forNumber(int value) {
                 switch (value) {
          -        case 4:
          -          return GAUGE_VIEW;
          -        case 5:
          -          return SPARK_CHART_VIEW;
          -        case 0:
          -          return DATAVIEW_NOT_SET;
          -        default:
          -          return null;
          +        case 4: return GAUGE_VIEW;
          +        case 5: return SPARK_CHART_VIEW;
          +        case 7: return BLANK_VIEW;
          +        case 0: return DATAVIEW_NOT_SET;
          +        default: return null;
                 }
               }
          -
               public int getNumber() {
                 return this.value;
               }
             };
           
          -  public DataViewCase getDataViewCase() {
          -    return DataViewCase.forNumber(dataViewCase_);
          +  public DataViewCase
          +  getDataViewCase() {
          +    return DataViewCase.forNumber(
          +        dataViewCase_);
             }
           
             public static final int TIME_SERIES_QUERY_FIELD_NUMBER = 1;
             private com.google.monitoring.dashboard.v1.TimeSeriesQuery timeSeriesQuery_;
             /**
          -   *
          -   *
              * 
              * Required. Fields for querying time series data from the
              * Stackdriver metrics API.
              * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the timeSeriesQuery field is set. */ @java.lang.Override @@ -1826,54 +1607,38 @@ public boolean hasTimeSeriesQuery() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
              * Required. Fields for querying time series data from the
              * Stackdriver metrics API.
              * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The timeSeriesQuery. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() { - return timeSeriesQuery_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() - : timeSeriesQuery_; + return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; } /** - * - * *
              * Required. Fields for querying time series data from the
              * Stackdriver metrics API.
              * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder() { - return timeSeriesQuery_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() - : timeSeriesQuery_; + return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; } public static final int GAUGE_VIEW_FIELD_NUMBER = 4; /** - * - * *
              * Will cause the scorecard to show a gauge chart.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4; - * * @return Whether the gaugeView field is set. */ @java.lang.Override @@ -1881,26 +1646,21 @@ public boolean hasGaugeView() { return dataViewCase_ == 4; } /** - * - * *
              * Will cause the scorecard to show a gauge chart.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4; - * * @return The gaugeView. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Scorecard.GaugeView getGaugeView() { if (dataViewCase_ == 4) { - return (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_; + return (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_; } return com.google.monitoring.dashboard.v1.Scorecard.GaugeView.getDefaultInstance(); } /** - * - * *
              * Will cause the scorecard to show a gauge chart.
              * 
          @@ -1910,21 +1670,18 @@ public com.google.monitoring.dashboard.v1.Scorecard.GaugeView getGaugeView() { @java.lang.Override public com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder getGaugeViewOrBuilder() { if (dataViewCase_ == 4) { - return (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_; + return (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_; } return com.google.monitoring.dashboard.v1.Scorecard.GaugeView.getDefaultInstance(); } public static final int SPARK_CHART_VIEW_FIELD_NUMBER = 5; /** - * - * *
              * Will cause the scorecard to show a spark chart.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; - * * @return Whether the sparkChartView field is set. */ @java.lang.Override @@ -1932,26 +1689,21 @@ public boolean hasSparkChartView() { return dataViewCase_ == 5; } /** - * - * *
              * Will cause the scorecard to show a spark chart.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; - * * @return The sparkChartView. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView getSparkChartView() { if (dataViewCase_ == 5) { - return (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_; + return (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_; } return com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.getDefaultInstance(); } /** - * - * *
              * Will cause the scorecard to show a spark chart.
              * 
          @@ -1959,21 +1711,63 @@ public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView getSparkChart * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder - getSparkChartViewOrBuilder() { + public com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder getSparkChartViewOrBuilder() { if (dataViewCase_ == 5) { - return (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_; + return (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_; } return com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.getDefaultInstance(); } - public static final int THRESHOLDS_FIELD_NUMBER = 6; + public static final int BLANK_VIEW_FIELD_NUMBER = 7; + /** + *
          +   * Will cause the `Scorecard` to show only the value, with no indicator to
          +   * its value relative to its thresholds.
          +   * 
          + * + * .google.protobuf.Empty blank_view = 7; + * @return Whether the blankView field is set. + */ + @java.lang.Override + public boolean hasBlankView() { + return dataViewCase_ == 7; + } + /** + *
          +   * Will cause the `Scorecard` to show only the value, with no indicator to
          +   * its value relative to its thresholds.
          +   * 
          + * + * .google.protobuf.Empty blank_view = 7; + * @return The blankView. + */ + @java.lang.Override + public com.google.protobuf.Empty getBlankView() { + if (dataViewCase_ == 7) { + return (com.google.protobuf.Empty) dataView_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + /** + *
          +   * Will cause the `Scorecard` to show only the value, with no indicator to
          +   * its value relative to its thresholds.
          +   * 
          + * + * .google.protobuf.Empty blank_view = 7; + */ + @java.lang.Override + public com.google.protobuf.EmptyOrBuilder getBlankViewOrBuilder() { + if (dataViewCase_ == 7) { + return (com.google.protobuf.Empty) dataView_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + public static final int THRESHOLDS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List thresholds_; /** - * - * *
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -2022,8 +1816,6 @@ public java.util.List getThreshold
               return thresholds_;
             }
             /**
          -   *
          -   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -2068,13 +1860,11 @@ public java.util.List getThreshold
              * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
              */
             @java.lang.Override
          -  public java.util.List
          +  public java.util.List 
                 getThresholdsOrBuilderList() {
               return thresholds_;
             }
             /**
          -   *
          -   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -2123,8 +1913,6 @@ public int getThresholdsCount() {
               return thresholds_.size();
             }
             /**
          -   *
          -   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -2173,8 +1961,6 @@ public com.google.monitoring.dashboard.v1.Threshold getThresholds(int index) {
               return thresholds_.get(index);
             }
             /**
          -   *
          -   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -2219,12 +2005,12 @@ public com.google.monitoring.dashboard.v1.Threshold getThresholds(int index) {
              * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
              */
             @java.lang.Override
          -  public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(int index) {
          +  public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(
          +      int index) {
               return thresholds_.get(index);
             }
           
             private byte memoizedIsInitialized = -1;
          -
             @java.lang.Override
             public final boolean isInitialized() {
               byte isInitialized = memoizedIsInitialized;
          @@ -2236,7 +2022,8 @@ public final boolean isInitialized() {
             }
           
             @java.lang.Override
          -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
          +  public void writeTo(com.google.protobuf.CodedOutputStream output)
          +                      throws java.io.IOException {
               if (((bitField0_ & 0x00000001) != 0)) {
                 output.writeMessage(1, getTimeSeriesQuery());
               }
          @@ -2244,12 +2031,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
                 output.writeMessage(4, (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_);
               }
               if (dataViewCase_ == 5) {
          -      output.writeMessage(
          -          5, (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_);
          +      output.writeMessage(5, (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_);
               }
               for (int i = 0; i < thresholds_.size(); i++) {
                 output.writeMessage(6, thresholds_.get(i));
               }
          +    if (dataViewCase_ == 7) {
          +      output.writeMessage(7, (com.google.protobuf.Empty) dataView_);
          +    }
               getUnknownFields().writeTo(output);
             }
           
          @@ -2260,20 +2049,24 @@ public int getSerializedSize() {
           
               size = 0;
               if (((bitField0_ & 0x00000001) != 0)) {
          -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeSeriesQuery());
          +      size += com.google.protobuf.CodedOutputStream
          +        .computeMessageSize(1, getTimeSeriesQuery());
               }
               if (dataViewCase_ == 4) {
          -      size +=
          -          com.google.protobuf.CodedOutputStream.computeMessageSize(
          -              4, (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_);
          +      size += com.google.protobuf.CodedOutputStream
          +        .computeMessageSize(4, (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_);
               }
               if (dataViewCase_ == 5) {
          -      size +=
          -          com.google.protobuf.CodedOutputStream.computeMessageSize(
          -              5, (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_);
          +      size += com.google.protobuf.CodedOutputStream
          +        .computeMessageSize(5, (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_);
               }
               for (int i = 0; i < thresholds_.size(); i++) {
          -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, thresholds_.get(i));
          +      size += com.google.protobuf.CodedOutputStream
          +        .computeMessageSize(6, thresholds_.get(i));
          +    }
          +    if (dataViewCase_ == 7) {
          +      size += com.google.protobuf.CodedOutputStream
          +        .computeMessageSize(7, (com.google.protobuf.Empty) dataView_);
               }
               size += getUnknownFields().getSerializedSize();
               memoizedSize = size;
          @@ -2283,26 +2076,33 @@ public int getSerializedSize() {
             @java.lang.Override
             public boolean equals(final java.lang.Object obj) {
               if (obj == this) {
          -      return true;
          +     return true;
               }
               if (!(obj instanceof com.google.monitoring.dashboard.v1.Scorecard)) {
                 return super.equals(obj);
               }
          -    com.google.monitoring.dashboard.v1.Scorecard other =
          -        (com.google.monitoring.dashboard.v1.Scorecard) obj;
          +    com.google.monitoring.dashboard.v1.Scorecard other = (com.google.monitoring.dashboard.v1.Scorecard) obj;
           
               if (hasTimeSeriesQuery() != other.hasTimeSeriesQuery()) return false;
               if (hasTimeSeriesQuery()) {
          -      if (!getTimeSeriesQuery().equals(other.getTimeSeriesQuery())) return false;
          +      if (!getTimeSeriesQuery()
          +          .equals(other.getTimeSeriesQuery())) return false;
               }
          -    if (!getThresholdsList().equals(other.getThresholdsList())) return false;
          +    if (!getThresholdsList()
          +        .equals(other.getThresholdsList())) return false;
               if (!getDataViewCase().equals(other.getDataViewCase())) return false;
               switch (dataViewCase_) {
                 case 4:
          -        if (!getGaugeView().equals(other.getGaugeView())) return false;
          +        if (!getGaugeView()
          +            .equals(other.getGaugeView())) return false;
                   break;
                 case 5:
          -        if (!getSparkChartView().equals(other.getSparkChartView())) return false;
          +        if (!getSparkChartView()
          +            .equals(other.getSparkChartView())) return false;
          +        break;
          +      case 7:
          +        if (!getBlankView()
          +            .equals(other.getBlankView())) return false;
                   break;
                 case 0:
                 default:
          @@ -2335,6 +2135,10 @@ public int hashCode() {
                   hash = (37 * hash) + SPARK_CHART_VIEW_FIELD_NUMBER;
                   hash = (53 * hash) + getSparkChartView().hashCode();
                   break;
          +      case 7:
          +        hash = (37 * hash) + BLANK_VIEW_FIELD_NUMBER;
          +        hash = (53 * hash) + getBlankView().hashCode();
          +        break;
                 case 0:
                 default:
               }
          @@ -2343,104 +2147,99 @@ public int hashCode() {
               return hash;
             }
           
          -  public static com.google.monitoring.dashboard.v1.Scorecard parseFrom(java.nio.ByteBuffer data)
          +  public static com.google.monitoring.dashboard.v1.Scorecard parseFrom(
          +      java.nio.ByteBuffer data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.monitoring.dashboard.v1.Scorecard parseFrom(
          -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      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.Scorecard parseFrom(
                 com.google.protobuf.ByteString data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.monitoring.dashboard.v1.Scorecard 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.Scorecard parseFrom(byte[] data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.monitoring.dashboard.v1.Scorecard parseFrom(
          -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      byte[] data,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data, extensionRegistry);
             }
          -
             public static com.google.monitoring.dashboard.v1.Scorecard parseFrom(java.io.InputStream input)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input);
             }
          -
             public static com.google.monitoring.dashboard.v1.Scorecard parseFrom(
          -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input, extensionRegistry);
             }
           
          -  public static com.google.monitoring.dashboard.v1.Scorecard parseDelimitedFrom(
          -      java.io.InputStream input) throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
          +  public static com.google.monitoring.dashboard.v1.Scorecard parseDelimitedFrom(java.io.InputStream input)
          +      throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseDelimitedWithIOException(PARSER, input);
             }
           
             public static com.google.monitoring.dashboard.v1.Scorecard parseDelimitedFrom(
          -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
             }
          -
             public static com.google.monitoring.dashboard.v1.Scorecard parseFrom(
          -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          +      com.google.protobuf.CodedInputStream input)
          +      throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input);
             }
          -
             public static com.google.monitoring.dashboard.v1.Scorecard parseFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input, extensionRegistry);
             }
           
             @java.lang.Override
          -  public Builder newBuilderForType() {
          -    return newBuilder();
          -  }
          -
          +  public Builder newBuilderForType() { return newBuilder(); }
             public static Builder newBuilder() {
               return DEFAULT_INSTANCE.toBuilder();
             }
          -
             public static Builder newBuilder(com.google.monitoring.dashboard.v1.Scorecard prototype) {
               return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
             }
          -
             @java.lang.Override
             public Builder toBuilder() {
          -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
          +    return this == DEFAULT_INSTANCE
          +        ? new Builder() : new Builder().mergeFrom(this);
             }
           
             @java.lang.Override
          -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +  protected Builder newBuilderForType(
          +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
               Builder builder = new Builder(parent);
               return builder;
             }
             /**
          -   *
          -   *
              * 
              * A widget showing the latest value of a metric, and how this value relates to
              * one or more thresholds.
          @@ -2448,23 +2247,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.Scorecard}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Scorecard)
                 com.google.monitoring.dashboard.v1.ScorecardOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.ScorecardProto
          -          .internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.ScorecardProto
          -          .internal_static_google_monitoring_dashboard_v1_Scorecard_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.Scorecard.class,
          -              com.google.monitoring.dashboard.v1.Scorecard.Builder.class);
          +              com.google.monitoring.dashboard.v1.Scorecard.class, com.google.monitoring.dashboard.v1.Scorecard.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.Scorecard.newBuilder()
          @@ -2472,18 +2269,18 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          -
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
          +      if (com.google.protobuf.GeneratedMessageV3
          +              .alwaysUseFieldBuilders) {
                   getTimeSeriesQueryFieldBuilder();
                   getThresholdsFieldBuilder();
                 }
               }
          -
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -2499,22 +2296,25 @@ public Builder clear() {
                 if (sparkChartViewBuilder_ != null) {
                   sparkChartViewBuilder_.clear();
                 }
          +      if (blankViewBuilder_ != null) {
          +        blankViewBuilder_.clear();
          +      }
                 if (thresholdsBuilder_ == null) {
                   thresholds_ = java.util.Collections.emptyList();
                 } else {
                   thresholds_ = null;
                   thresholdsBuilder_.clear();
                 }
          -      bitField0_ = (bitField0_ & ~0x00000008);
          +      bitField0_ = (bitField0_ & ~0x00000010);
                 dataViewCase_ = 0;
                 dataView_ = null;
                 return this;
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.ScorecardProto
          -          .internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor;
               }
           
               @java.lang.Override
          @@ -2533,12 +2333,9 @@ public com.google.monitoring.dashboard.v1.Scorecard build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.Scorecard buildPartial() {
          -      com.google.monitoring.dashboard.v1.Scorecard result =
          -          new com.google.monitoring.dashboard.v1.Scorecard(this);
          +      com.google.monitoring.dashboard.v1.Scorecard result = new com.google.monitoring.dashboard.v1.Scorecard(this);
                 buildPartialRepeatedFields(result);
          -      if (bitField0_ != 0) {
          -        buildPartial0(result);
          -      }
          +      if (bitField0_ != 0) { buildPartial0(result); }
                 buildPartialOneofs(result);
                 onBuilt();
                 return result;
          @@ -2546,9 +2343,9 @@ public com.google.monitoring.dashboard.v1.Scorecard buildPartial() {
           
               private void buildPartialRepeatedFields(com.google.monitoring.dashboard.v1.Scorecard result) {
                 if (thresholdsBuilder_ == null) {
          -        if (((bitField0_ & 0x00000008) != 0)) {
          +        if (((bitField0_ & 0x00000010) != 0)) {
                     thresholds_ = java.util.Collections.unmodifiableList(thresholds_);
          -          bitField0_ = (bitField0_ & ~0x00000008);
          +          bitField0_ = (bitField0_ & ~0x00000010);
                   }
                   result.thresholds_ = thresholds_;
                 } else {
          @@ -2560,8 +2357,9 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Scorecard result)
                 int from_bitField0_ = bitField0_;
                 int to_bitField0_ = 0;
                 if (((from_bitField0_ & 0x00000001) != 0)) {
          -        result.timeSeriesQuery_ =
          -            timeSeriesQueryBuilder_ == null ? timeSeriesQuery_ : timeSeriesQueryBuilder_.build();
          +        result.timeSeriesQuery_ = timeSeriesQueryBuilder_ == null
          +            ? timeSeriesQuery_
          +            : timeSeriesQueryBuilder_.build();
                   to_bitField0_ |= 0x00000001;
                 }
                 result.bitField0_ |= to_bitField0_;
          @@ -2570,51 +2368,56 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Scorecard result)
               private void buildPartialOneofs(com.google.monitoring.dashboard.v1.Scorecard result) {
                 result.dataViewCase_ = dataViewCase_;
                 result.dataView_ = this.dataView_;
          -      if (dataViewCase_ == 4 && gaugeViewBuilder_ != null) {
          +      if (dataViewCase_ == 4 &&
          +          gaugeViewBuilder_ != null) {
                   result.dataView_ = gaugeViewBuilder_.build();
                 }
          -      if (dataViewCase_ == 5 && sparkChartViewBuilder_ != null) {
          +      if (dataViewCase_ == 5 &&
          +          sparkChartViewBuilder_ != null) {
                   result.dataView_ = sparkChartViewBuilder_.build();
                 }
          +      if (dataViewCase_ == 7 &&
          +          blankViewBuilder_ != null) {
          +        result.dataView_ = blankViewBuilder_.build();
          +      }
               }
           
               @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) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.Scorecard) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.Scorecard) other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.Scorecard)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -2630,7 +2433,7 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.Scorecard other) {
                   if (!other.thresholds_.isEmpty()) {
                     if (thresholds_.isEmpty()) {
                       thresholds_ = other.thresholds_;
          -            bitField0_ = (bitField0_ & ~0x00000008);
          +            bitField0_ = (bitField0_ & ~0x00000010);
                     } else {
                       ensureThresholdsIsMutable();
                       thresholds_.addAll(other.thresholds_);
          @@ -2643,31 +2446,31 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.Scorecard other) {
                       thresholdsBuilder_.dispose();
                       thresholdsBuilder_ = null;
                       thresholds_ = other.thresholds_;
          -            bitField0_ = (bitField0_ & ~0x00000008);
          -            thresholdsBuilder_ =
          -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          -                    ? getThresholdsFieldBuilder()
          -                    : null;
          +            bitField0_ = (bitField0_ & ~0x00000010);
          +            thresholdsBuilder_ = 
          +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          +                 getThresholdsFieldBuilder() : null;
                     } else {
                       thresholdsBuilder_.addAllMessages(other.thresholds_);
                     }
                   }
          -      }
          -      switch (other.getDataViewCase()) {
          -        case GAUGE_VIEW:
          -          {
          -            mergeGaugeView(other.getGaugeView());
          -            break;
          -          }
          -        case SPARK_CHART_VIEW:
          -          {
          -            mergeSparkChartView(other.getSparkChartView());
          -            break;
          -          }
          -        case DATAVIEW_NOT_SET:
          -          {
          -            break;
          -          }
          +      }
          +      switch (other.getDataViewCase()) {
          +        case GAUGE_VIEW: {
          +          mergeGaugeView(other.getGaugeView());
          +          break;
          +        }
          +        case SPARK_CHART_VIEW: {
          +          mergeSparkChartView(other.getSparkChartView());
          +          break;
          +        }
          +        case BLANK_VIEW: {
          +          mergeBlankView(other.getBlankView());
          +          break;
          +        }
          +        case DATAVIEW_NOT_SET: {
          +          break;
          +        }
                 }
                 this.mergeUnknownFields(other.getUnknownFields());
                 onChanged();
          @@ -2695,44 +2498,53 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10:
          -              {
          -                input.readMessage(getTimeSeriesQueryFieldBuilder().getBuilder(), extensionRegistry);
          -                bitField0_ |= 0x00000001;
          -                break;
          -              } // case 10
          -            case 34:
          -              {
          -                input.readMessage(getGaugeViewFieldBuilder().getBuilder(), extensionRegistry);
          -                dataViewCase_ = 4;
          -                break;
          -              } // case 34
          -            case 42:
          -              {
          -                input.readMessage(getSparkChartViewFieldBuilder().getBuilder(), extensionRegistry);
          -                dataViewCase_ = 5;
          -                break;
          -              } // case 42
          -            case 50:
          -              {
          -                com.google.monitoring.dashboard.v1.Threshold m =
          -                    input.readMessage(
          -                        com.google.monitoring.dashboard.v1.Threshold.parser(), extensionRegistry);
          -                if (thresholdsBuilder_ == null) {
          -                  ensureThresholdsIsMutable();
          -                  thresholds_.add(m);
          -                } else {
          -                  thresholdsBuilder_.addMessage(m);
          -                }
          -                break;
          -              } // case 50
          -            default:
          -              {
          -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                  done = true; // was an endgroup tag
          -                }
          -                break;
          -              } // default:
          +            case 10: {
          +              input.readMessage(
          +                  getTimeSeriesQueryFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              bitField0_ |= 0x00000001;
          +              break;
          +            } // case 10
          +            case 34: {
          +              input.readMessage(
          +                  getGaugeViewFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              dataViewCase_ = 4;
          +              break;
          +            } // case 34
          +            case 42: {
          +              input.readMessage(
          +                  getSparkChartViewFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              dataViewCase_ = 5;
          +              break;
          +            } // case 42
          +            case 50: {
          +              com.google.monitoring.dashboard.v1.Threshold m =
          +                  input.readMessage(
          +                      com.google.monitoring.dashboard.v1.Threshold.parser(),
          +                      extensionRegistry);
          +              if (thresholdsBuilder_ == null) {
          +                ensureThresholdsIsMutable();
          +                thresholds_.add(m);
          +              } else {
          +                thresholdsBuilder_.addMessage(m);
          +              }
          +              break;
          +            } // case 50
          +            case 58: {
          +              input.readMessage(
          +                  getBlankViewFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              dataViewCase_ = 7;
          +              break;
          +            } // case 58
          +            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) {
          @@ -2742,12 +2554,12 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          -
               private int dataViewCase_ = 0;
               private java.lang.Object dataView_;
          -
          -    public DataViewCase getDataViewCase() {
          -      return DataViewCase.forNumber(dataViewCase_);
          +    public DataViewCase
          +        getDataViewCase() {
          +      return DataViewCase.forNumber(
          +          dataViewCase_);
               }
           
               public Builder clearDataView() {
          @@ -2761,61 +2573,42 @@ public Builder clearDataView() {
           
               private com.google.monitoring.dashboard.v1.TimeSeriesQuery timeSeriesQuery_;
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.TimeSeriesQuery,
          -            com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder,
          -            com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder>
          -        timeSeriesQueryBuilder_;
          +        com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> timeSeriesQueryBuilder_;
               /**
          -     *
          -     *
                * 
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the timeSeriesQuery field is set. */ public boolean hasTimeSeriesQuery() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The timeSeriesQuery. */ public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() { if (timeSeriesQueryBuilder_ == null) { - return timeSeriesQuery_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() - : timeSeriesQuery_; + return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; } else { return timeSeriesQueryBuilder_.getMessage(); } } /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { if (timeSeriesQueryBuilder_ == null) { @@ -2831,16 +2624,12 @@ public Builder setTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQ return this; } /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTimeSeriesQuery( com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder builderForValue) { @@ -2854,23 +2643,18 @@ public Builder setTimeSeriesQuery( return this; } /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { if (timeSeriesQueryBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && timeSeriesQuery_ != null - && timeSeriesQuery_ - != com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + timeSeriesQuery_ != null && + timeSeriesQuery_ != com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance()) { getTimeSeriesQueryBuilder().mergeFrom(value); } else { timeSeriesQuery_ = value; @@ -2885,16 +2669,12 @@ public Builder mergeTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSerie return this; } /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTimeSeriesQuery() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2907,16 +2687,12 @@ public Builder clearTimeSeriesQuery() { return this; } /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder getTimeSeriesQueryBuilder() { bitField0_ |= 0x00000001; @@ -2924,70 +2700,51 @@ public com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder getTimeSeriesQ return getTimeSeriesQueryFieldBuilder().getBuilder(); } /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder - getTimeSeriesQueryOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder() { if (timeSeriesQueryBuilder_ != null) { return timeSeriesQueryBuilder_.getMessageOrBuilder(); } else { - return timeSeriesQuery_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() - : timeSeriesQuery_; + return timeSeriesQuery_ == null ? + com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; } } /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, - com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> + com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> getTimeSeriesQueryFieldBuilder() { if (timeSeriesQueryBuilder_ == null) { - timeSeriesQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, - com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder>( - getTimeSeriesQuery(), getParentForChildren(), isClean()); + timeSeriesQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder>( + getTimeSeriesQuery(), + getParentForChildren(), + isClean()); timeSeriesQuery_ = null; } return timeSeriesQueryBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard.GaugeView, - com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder, - com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder> - gaugeViewBuilder_; + com.google.monitoring.dashboard.v1.Scorecard.GaugeView, com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder, com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder> gaugeViewBuilder_; /** - * - * *
                * Will cause the scorecard to show a gauge chart.
                * 
          * * .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4; - * * @return Whether the gaugeView field is set. */ @java.lang.Override @@ -2995,14 +2752,11 @@ public boolean hasGaugeView() { return dataViewCase_ == 4; } /** - * - * *
                * Will cause the scorecard to show a gauge chart.
                * 
          * * .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4; - * * @return The gaugeView. */ @java.lang.Override @@ -3020,8 +2774,6 @@ public com.google.monitoring.dashboard.v1.Scorecard.GaugeView getGaugeView() { } } /** - * - * *
                * Will cause the scorecard to show a gauge chart.
                * 
          @@ -3042,8 +2794,6 @@ public Builder setGaugeView(com.google.monitoring.dashboard.v1.Scorecard.GaugeVi return this; } /** - * - * *
                * Will cause the scorecard to show a gauge chart.
                * 
          @@ -3062,8 +2812,6 @@ public Builder setGaugeView( return this; } /** - * - * *
                * Will cause the scorecard to show a gauge chart.
                * 
          @@ -3072,14 +2820,10 @@ public Builder setGaugeView( */ public Builder mergeGaugeView(com.google.monitoring.dashboard.v1.Scorecard.GaugeView value) { if (gaugeViewBuilder_ == null) { - if (dataViewCase_ == 4 - && dataView_ - != com.google.monitoring.dashboard.v1.Scorecard.GaugeView.getDefaultInstance()) { - dataView_ = - com.google.monitoring.dashboard.v1.Scorecard.GaugeView.newBuilder( - (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_) - .mergeFrom(value) - .buildPartial(); + if (dataViewCase_ == 4 && + dataView_ != com.google.monitoring.dashboard.v1.Scorecard.GaugeView.getDefaultInstance()) { + dataView_ = com.google.monitoring.dashboard.v1.Scorecard.GaugeView.newBuilder((com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_) + .mergeFrom(value).buildPartial(); } else { dataView_ = value; } @@ -3095,8 +2839,6 @@ public Builder mergeGaugeView(com.google.monitoring.dashboard.v1.Scorecard.Gauge return this; } /** - * - * *
                * Will cause the scorecard to show a gauge chart.
                * 
          @@ -3120,8 +2862,6 @@ public Builder clearGaugeView() { return this; } /** - * - * *
                * Will cause the scorecard to show a gauge chart.
                * 
          @@ -3132,8 +2872,6 @@ public com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder getGaugeVi return getGaugeViewFieldBuilder().getBuilder(); } /** - * - * *
                * Will cause the scorecard to show a gauge chart.
                * 
          @@ -3152,8 +2890,6 @@ public com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder getGaugeV } } /** - * - * *
                * Will cause the scorecard to show a gauge chart.
                * 
          @@ -3161,19 +2897,14 @@ public com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder getGaugeV * .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard.GaugeView, - com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder, - com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder> + com.google.monitoring.dashboard.v1.Scorecard.GaugeView, com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder, com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder> getGaugeViewFieldBuilder() { if (gaugeViewBuilder_ == null) { if (!(dataViewCase_ == 4)) { dataView_ = com.google.monitoring.dashboard.v1.Scorecard.GaugeView.getDefaultInstance(); } - gaugeViewBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard.GaugeView, - com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder, - com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder>( + gaugeViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Scorecard.GaugeView, com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder, com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder>( (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_, getParentForChildren(), isClean()); @@ -3185,19 +2916,13 @@ public com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder getGaugeV } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard.SparkChartView, - com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder, - com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder> - sparkChartViewBuilder_; + com.google.monitoring.dashboard.v1.Scorecard.SparkChartView, com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder, com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder> sparkChartViewBuilder_; /** - * - * *
                * Will cause the scorecard to show a spark chart.
                * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; - * * @return Whether the sparkChartView field is set. */ @java.lang.Override @@ -3205,14 +2930,11 @@ public boolean hasSparkChartView() { return dataViewCase_ == 5; } /** - * - * *
                * Will cause the scorecard to show a spark chart.
                * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; - * * @return The sparkChartView. */ @java.lang.Override @@ -3230,16 +2952,13 @@ public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView getSparkChart } } /** - * - * *
                * Will cause the scorecard to show a spark chart.
                * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; */ - public Builder setSparkChartView( - com.google.monitoring.dashboard.v1.Scorecard.SparkChartView value) { + public Builder setSparkChartView(com.google.monitoring.dashboard.v1.Scorecard.SparkChartView value) { if (sparkChartViewBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3253,8 +2972,6 @@ public Builder setSparkChartView( return this; } /** - * - * *
                * Will cause the scorecard to show a spark chart.
                * 
          @@ -3273,26 +2990,18 @@ public Builder setSparkChartView( return this; } /** - * - * *
                * Will cause the scorecard to show a spark chart.
                * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; */ - public Builder mergeSparkChartView( - com.google.monitoring.dashboard.v1.Scorecard.SparkChartView value) { + public Builder mergeSparkChartView(com.google.monitoring.dashboard.v1.Scorecard.SparkChartView value) { if (sparkChartViewBuilder_ == null) { - if (dataViewCase_ == 5 - && dataView_ - != com.google.monitoring.dashboard.v1.Scorecard.SparkChartView - .getDefaultInstance()) { - dataView_ = - com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.newBuilder( - (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_) - .mergeFrom(value) - .buildPartial(); + if (dataViewCase_ == 5 && + dataView_ != com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.getDefaultInstance()) { + dataView_ = com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.newBuilder((com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_) + .mergeFrom(value).buildPartial(); } else { dataView_ = value; } @@ -3308,8 +3017,6 @@ public Builder mergeSparkChartView( return this; } /** - * - * *
                * Will cause the scorecard to show a spark chart.
                * 
          @@ -3333,21 +3040,16 @@ public Builder clearSparkChartView() { return this; } /** - * - * *
                * Will cause the scorecard to show a spark chart.
                * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; */ - public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder - getSparkChartViewBuilder() { + public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder getSparkChartViewBuilder() { return getSparkChartViewFieldBuilder().getBuilder(); } /** - * - * *
                * Will cause the scorecard to show a spark chart.
                * 
          @@ -3355,8 +3057,7 @@ public Builder clearSparkChartView() { * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder - getSparkChartViewOrBuilder() { + public com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder getSparkChartViewOrBuilder() { if ((dataViewCase_ == 5) && (sparkChartViewBuilder_ != null)) { return sparkChartViewBuilder_.getMessageOrBuilder(); } else { @@ -3367,8 +3068,6 @@ public Builder clearSparkChartView() { } } /** - * - * *
                * Will cause the scorecard to show a spark chart.
                * 
          @@ -3376,20 +3075,14 @@ public Builder clearSparkChartView() { * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard.SparkChartView, - com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder, - com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder> + com.google.monitoring.dashboard.v1.Scorecard.SparkChartView, com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder, com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder> getSparkChartViewFieldBuilder() { if (sparkChartViewBuilder_ == null) { if (!(dataViewCase_ == 5)) { - dataView_ = - com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.getDefaultInstance(); + dataView_ = com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.getDefaultInstance(); } - sparkChartViewBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard.SparkChartView, - com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder, - com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder>( + sparkChartViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Scorecard.SparkChartView, com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder, com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder>( (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_, getParentForChildren(), isClean()); @@ -3400,26 +3093,206 @@ public Builder clearSparkChartView() { return sparkChartViewBuilder_; } - private java.util.List thresholds_ = - java.util.Collections.emptyList(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> blankViewBuilder_; + /** + *
          +     * Will cause the `Scorecard` to show only the value, with no indicator to
          +     * its value relative to its thresholds.
          +     * 
          + * + * .google.protobuf.Empty blank_view = 7; + * @return Whether the blankView field is set. + */ + @java.lang.Override + public boolean hasBlankView() { + return dataViewCase_ == 7; + } + /** + *
          +     * Will cause the `Scorecard` to show only the value, with no indicator to
          +     * its value relative to its thresholds.
          +     * 
          + * + * .google.protobuf.Empty blank_view = 7; + * @return The blankView. + */ + @java.lang.Override + public com.google.protobuf.Empty getBlankView() { + if (blankViewBuilder_ == null) { + if (dataViewCase_ == 7) { + return (com.google.protobuf.Empty) dataView_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } else { + if (dataViewCase_ == 7) { + return blankViewBuilder_.getMessage(); + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + } + /** + *
          +     * Will cause the `Scorecard` to show only the value, with no indicator to
          +     * its value relative to its thresholds.
          +     * 
          + * + * .google.protobuf.Empty blank_view = 7; + */ + public Builder setBlankView(com.google.protobuf.Empty value) { + if (blankViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataView_ = value; + onChanged(); + } else { + blankViewBuilder_.setMessage(value); + } + dataViewCase_ = 7; + return this; + } + /** + *
          +     * Will cause the `Scorecard` to show only the value, with no indicator to
          +     * its value relative to its thresholds.
          +     * 
          + * + * .google.protobuf.Empty blank_view = 7; + */ + public Builder setBlankView( + com.google.protobuf.Empty.Builder builderForValue) { + if (blankViewBuilder_ == null) { + dataView_ = builderForValue.build(); + onChanged(); + } else { + blankViewBuilder_.setMessage(builderForValue.build()); + } + dataViewCase_ = 7; + return this; + } + /** + *
          +     * Will cause the `Scorecard` to show only the value, with no indicator to
          +     * its value relative to its thresholds.
          +     * 
          + * + * .google.protobuf.Empty blank_view = 7; + */ + public Builder mergeBlankView(com.google.protobuf.Empty value) { + if (blankViewBuilder_ == null) { + if (dataViewCase_ == 7 && + dataView_ != com.google.protobuf.Empty.getDefaultInstance()) { + dataView_ = com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) dataView_) + .mergeFrom(value).buildPartial(); + } else { + dataView_ = value; + } + onChanged(); + } else { + if (dataViewCase_ == 7) { + blankViewBuilder_.mergeFrom(value); + } else { + blankViewBuilder_.setMessage(value); + } + } + dataViewCase_ = 7; + return this; + } + /** + *
          +     * Will cause the `Scorecard` to show only the value, with no indicator to
          +     * its value relative to its thresholds.
          +     * 
          + * + * .google.protobuf.Empty blank_view = 7; + */ + public Builder clearBlankView() { + if (blankViewBuilder_ == null) { + if (dataViewCase_ == 7) { + dataViewCase_ = 0; + dataView_ = null; + onChanged(); + } + } else { + if (dataViewCase_ == 7) { + dataViewCase_ = 0; + dataView_ = null; + } + blankViewBuilder_.clear(); + } + return this; + } + /** + *
          +     * Will cause the `Scorecard` to show only the value, with no indicator to
          +     * its value relative to its thresholds.
          +     * 
          + * + * .google.protobuf.Empty blank_view = 7; + */ + public com.google.protobuf.Empty.Builder getBlankViewBuilder() { + return getBlankViewFieldBuilder().getBuilder(); + } + /** + *
          +     * Will cause the `Scorecard` to show only the value, with no indicator to
          +     * its value relative to its thresholds.
          +     * 
          + * + * .google.protobuf.Empty blank_view = 7; + */ + @java.lang.Override + public com.google.protobuf.EmptyOrBuilder getBlankViewOrBuilder() { + if ((dataViewCase_ == 7) && (blankViewBuilder_ != null)) { + return blankViewBuilder_.getMessageOrBuilder(); + } else { + if (dataViewCase_ == 7) { + return (com.google.protobuf.Empty) dataView_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + } + /** + *
          +     * Will cause the `Scorecard` to show only the value, with no indicator to
          +     * its value relative to its thresholds.
          +     * 
          + * + * .google.protobuf.Empty blank_view = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> + getBlankViewFieldBuilder() { + if (blankViewBuilder_ == null) { + if (!(dataViewCase_ == 7)) { + dataView_ = com.google.protobuf.Empty.getDefaultInstance(); + } + blankViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder>( + (com.google.protobuf.Empty) dataView_, + getParentForChildren(), + isClean()); + dataView_ = null; + } + dataViewCase_ = 7; + onChanged(); + return blankViewBuilder_; + } + private java.util.List thresholds_ = + java.util.Collections.emptyList(); private void ensureThresholdsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - thresholds_ = - new java.util.ArrayList(thresholds_); - bitField0_ |= 0x00000008; - } + if (!((bitField0_ & 0x00000010) != 0)) { + thresholds_ = new java.util.ArrayList(thresholds_); + bitField0_ |= 0x00000010; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Threshold, - com.google.monitoring.dashboard.v1.Threshold.Builder, - com.google.monitoring.dashboard.v1.ThresholdOrBuilder> - thresholdsBuilder_; + com.google.monitoring.dashboard.v1.Threshold, com.google.monitoring.dashboard.v1.Threshold.Builder, com.google.monitoring.dashboard.v1.ThresholdOrBuilder> thresholdsBuilder_; /** - * - * *
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3471,8 +3344,6 @@ public java.util.List getThreshold
                 }
               }
               /**
          -     *
          -     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3524,8 +3395,6 @@ public int getThresholdsCount() {
                 }
               }
               /**
          -     *
          -     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3577,8 +3446,6 @@ public com.google.monitoring.dashboard.v1.Threshold getThresholds(int index) {
                 }
               }
               /**
          -     *
          -     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3622,7 +3489,8 @@ public com.google.monitoring.dashboard.v1.Threshold getThresholds(int index) {
                *
                * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
                */
          -    public Builder setThresholds(int index, com.google.monitoring.dashboard.v1.Threshold value) {
          +    public Builder setThresholds(
          +        int index, com.google.monitoring.dashboard.v1.Threshold value) {
                 if (thresholdsBuilder_ == null) {
                   if (value == null) {
                     throw new NullPointerException();
          @@ -3636,8 +3504,6 @@ public Builder setThresholds(int index, com.google.monitoring.dashboard.v1.Thres
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3693,8 +3559,6 @@ public Builder setThresholds(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3752,8 +3616,6 @@ public Builder addThresholds(com.google.monitoring.dashboard.v1.Threshold value)
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3797,7 +3659,8 @@ public Builder addThresholds(com.google.monitoring.dashboard.v1.Threshold value)
                *
                * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
                */
          -    public Builder addThresholds(int index, com.google.monitoring.dashboard.v1.Threshold value) {
          +    public Builder addThresholds(
          +        int index, com.google.monitoring.dashboard.v1.Threshold value) {
                 if (thresholdsBuilder_ == null) {
                   if (value == null) {
                     throw new NullPointerException();
          @@ -3811,8 +3674,6 @@ public Builder addThresholds(int index, com.google.monitoring.dashboard.v1.Thres
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3868,8 +3729,6 @@ public Builder addThresholds(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3925,8 +3784,6 @@ public Builder addThresholds(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3974,7 +3831,8 @@ public Builder addAllThresholds(
                   java.lang.Iterable values) {
                 if (thresholdsBuilder_ == null) {
                   ensureThresholdsIsMutable();
          -        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, thresholds_);
          +        com.google.protobuf.AbstractMessageLite.Builder.addAll(
          +            values, thresholds_);
                   onChanged();
                 } else {
                   thresholdsBuilder_.addAllMessages(values);
          @@ -3982,8 +3840,6 @@ public Builder addAllThresholds(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -4030,7 +3886,7 @@ public Builder addAllThresholds(
               public Builder clearThresholds() {
                 if (thresholdsBuilder_ == null) {
                   thresholds_ = java.util.Collections.emptyList();
          -        bitField0_ = (bitField0_ & ~0x00000008);
          +        bitField0_ = (bitField0_ & ~0x00000010);
                   onChanged();
                 } else {
                   thresholdsBuilder_.clear();
          @@ -4038,8 +3894,6 @@ public Builder clearThresholds() {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -4094,8 +3948,6 @@ public Builder removeThresholds(int index) {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -4139,12 +3991,11 @@ public Builder removeThresholds(int index) {
                *
                * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
                */
          -    public com.google.monitoring.dashboard.v1.Threshold.Builder getThresholdsBuilder(int index) {
          +    public com.google.monitoring.dashboard.v1.Threshold.Builder getThresholdsBuilder(
          +        int index) {
                 return getThresholdsFieldBuilder().getBuilder(index);
               }
               /**
          -     *
          -     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -4188,16 +4039,14 @@ public com.google.monitoring.dashboard.v1.Threshold.Builder getThresholdsBuilder
                *
                * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
                */
          -    public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(int index) {
          +    public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(
          +        int index) {
                 if (thresholdsBuilder_ == null) {
          -        return thresholds_.get(index);
          -      } else {
          +        return thresholds_.get(index);  } else {
                   return thresholdsBuilder_.getMessageOrBuilder(index);
                 }
               }
               /**
          -     *
          -     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -4241,8 +4090,8 @@ public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuil
                *
                * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
                */
          -    public java.util.List
          -        getThresholdsOrBuilderList() {
          +    public java.util.List 
          +         getThresholdsOrBuilderList() {
                 if (thresholdsBuilder_ != null) {
                   return thresholdsBuilder_.getMessageOrBuilderList();
                 } else {
          @@ -4250,8 +4099,6 @@ public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuil
                 }
               }
               /**
          -     *
          -     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -4296,12 +4143,10 @@ public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuil
                * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
                */
               public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder() {
          -      return getThresholdsFieldBuilder()
          -          .addBuilder(com.google.monitoring.dashboard.v1.Threshold.getDefaultInstance());
          +      return getThresholdsFieldBuilder().addBuilder(
          +          com.google.monitoring.dashboard.v1.Threshold.getDefaultInstance());
               }
               /**
          -     *
          -     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -4345,13 +4190,12 @@ public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder
                *
                * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
                */
          -    public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder(int index) {
          -      return getThresholdsFieldBuilder()
          -          .addBuilder(index, com.google.monitoring.dashboard.v1.Threshold.getDefaultInstance());
          +    public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder(
          +        int index) {
          +      return getThresholdsFieldBuilder().addBuilder(
          +          index, com.google.monitoring.dashboard.v1.Threshold.getDefaultInstance());
               }
               /**
          -     *
          -     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -4395,30 +4239,27 @@ public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder
                *
                * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
                */
          -    public java.util.List
          -        getThresholdsBuilderList() {
          +    public java.util.List 
          +         getThresholdsBuilderList() {
                 return getThresholdsFieldBuilder().getBuilderList();
               }
          -
               private com.google.protobuf.RepeatedFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.Threshold,
          -            com.google.monitoring.dashboard.v1.Threshold.Builder,
          -            com.google.monitoring.dashboard.v1.ThresholdOrBuilder>
          +        com.google.monitoring.dashboard.v1.Threshold, com.google.monitoring.dashboard.v1.Threshold.Builder, com.google.monitoring.dashboard.v1.ThresholdOrBuilder> 
                   getThresholdsFieldBuilder() {
                 if (thresholdsBuilder_ == null) {
          -        thresholdsBuilder_ =
          -            new com.google.protobuf.RepeatedFieldBuilderV3<
          -                com.google.monitoring.dashboard.v1.Threshold,
          -                com.google.monitoring.dashboard.v1.Threshold.Builder,
          -                com.google.monitoring.dashboard.v1.ThresholdOrBuilder>(
          -                thresholds_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
          +        thresholdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
          +            com.google.monitoring.dashboard.v1.Threshold, com.google.monitoring.dashboard.v1.Threshold.Builder, com.google.monitoring.dashboard.v1.ThresholdOrBuilder>(
          +                thresholds_,
          +                ((bitField0_ & 0x00000010) != 0),
          +                getParentForChildren(),
          +                isClean());
                   thresholds_ = null;
                 }
                 return thresholdsBuilder_;
               }
          -
               @java.lang.Override
          -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
          +    public final Builder setUnknownFields(
          +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                 return super.setUnknownFields(unknownFields);
               }
           
          @@ -4428,12 +4269,12 @@ public final Builder mergeUnknownFields(
                 return super.mergeUnknownFields(unknownFields);
               }
           
          +
               // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.Scorecard)
             }
           
             // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Scorecard)
             private static final com.google.monitoring.dashboard.v1.Scorecard DEFAULT_INSTANCE;
          -
             static {
               DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Scorecard();
             }
          @@ -4442,27 +4283,27 @@ public static com.google.monitoring.dashboard.v1.Scorecard getDefaultInstance()
               return DEFAULT_INSTANCE;
             }
           
          -  private static final com.google.protobuf.Parser PARSER =
          -      new com.google.protobuf.AbstractParser() {
          -        @java.lang.Override
          -        public Scorecard 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();
          -        }
          -      };
          +  private static final com.google.protobuf.Parser
          +      PARSER = new com.google.protobuf.AbstractParser() {
          +    @java.lang.Override
          +    public Scorecard 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;
          @@ -4477,4 +4318,6 @@ public com.google.protobuf.Parser getParserForType() {
             public com.google.monitoring.dashboard.v1.Scorecard getDefaultInstanceForType() {
               return DEFAULT_INSTANCE;
             }
          +
           }
          +
          diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardOrBuilder.java
          similarity index 87%
          rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardOrBuilder.java
          rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardOrBuilder.java
          index 4c9ed279e210..18059b12b9af 100644
          --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardOrBuilder.java
          +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardOrBuilder.java
          @@ -1,100 +1,62 @@
          -/*
          - * Copyright 2024 Google LLC
          - *
          - * Licensed under the Apache License, Version 2.0 (the "License");
          - * you may not use this file except in compliance with the License.
          - * You may obtain a copy of the License at
          - *
          - *     https://www.apache.org/licenses/LICENSE-2.0
          - *
          - * Unless required by applicable law or agreed to in writing, software
          - * distributed under the License is distributed on an "AS IS" BASIS,
          - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          - * See the License for the specific language governing permissions and
          - * limitations under the License.
          - */
           // Generated by the protocol buffer compiler.  DO NOT EDIT!
           // source: google/monitoring/dashboard/v1/scorecard.proto
           
           // Protobuf Java Version: 3.25.2
           package com.google.monitoring.dashboard.v1;
           
          -public interface ScorecardOrBuilder
          -    extends
          +public interface ScorecardOrBuilder extends
               // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Scorecard)
               com.google.protobuf.MessageOrBuilder {
           
             /**
          -   *
          -   *
              * 
              * Required. Fields for querying time series data from the
              * Stackdriver metrics API.
              * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the timeSeriesQuery field is set. */ boolean hasTimeSeriesQuery(); /** - * - * *
              * Required. Fields for querying time series data from the
              * Stackdriver metrics API.
              * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The timeSeriesQuery. */ com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery(); /** - * - * *
              * Required. Fields for querying time series data from the
              * Stackdriver metrics API.
              * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder(); /** - * - * *
              * Will cause the scorecard to show a gauge chart.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4; - * * @return Whether the gaugeView field is set. */ boolean hasGaugeView(); /** - * - * *
              * Will cause the scorecard to show a gauge chart.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4; - * * @return The gaugeView. */ com.google.monitoring.dashboard.v1.Scorecard.GaugeView getGaugeView(); /** - * - * *
              * Will cause the scorecard to show a gauge chart.
              * 
          @@ -104,32 +66,24 @@ public interface ScorecardOrBuilder com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder getGaugeViewOrBuilder(); /** - * - * *
              * Will cause the scorecard to show a spark chart.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; - * * @return Whether the sparkChartView field is set. */ boolean hasSparkChartView(); /** - * - * *
              * Will cause the scorecard to show a spark chart.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; - * * @return The sparkChartView. */ com.google.monitoring.dashboard.v1.Scorecard.SparkChartView getSparkChartView(); /** - * - * *
              * Will cause the scorecard to show a spark chart.
              * 
          @@ -139,8 +93,36 @@ public interface ScorecardOrBuilder com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder getSparkChartViewOrBuilder(); /** + *
          +   * Will cause the `Scorecard` to show only the value, with no indicator to
          +   * its value relative to its thresholds.
          +   * 
          * + * .google.protobuf.Empty blank_view = 7; + * @return Whether the blankView field is set. + */ + boolean hasBlankView(); + /** + *
          +   * Will cause the `Scorecard` to show only the value, with no indicator to
          +   * its value relative to its thresholds.
          +   * 
          * + * .google.protobuf.Empty blank_view = 7; + * @return The blankView. + */ + com.google.protobuf.Empty getBlankView(); + /** + *
          +   * Will cause the `Scorecard` to show only the value, with no indicator to
          +   * its value relative to its thresholds.
          +   * 
          + * + * .google.protobuf.Empty blank_view = 7; + */ + com.google.protobuf.EmptyOrBuilder getBlankViewOrBuilder(); + + /** *
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -184,10 +166,9 @@ public interface ScorecardOrBuilder
              *
              * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
              */
          -  java.util.List getThresholdsList();
          +  java.util.List 
          +      getThresholdsList();
             /**
          -   *
          -   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -233,8 +214,6 @@ public interface ScorecardOrBuilder
              */
             com.google.monitoring.dashboard.v1.Threshold getThresholds(int index);
             /**
          -   *
          -   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -280,8 +259,6 @@ public interface ScorecardOrBuilder
              */
             int getThresholdsCount();
             /**
          -   *
          -   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -325,11 +302,9 @@ public interface ScorecardOrBuilder
              *
              * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
              */
          -  java.util.List
          +  java.util.List 
                 getThresholdsOrBuilderList();
             /**
          -   *
          -   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -373,7 +348,8 @@ public interface ScorecardOrBuilder
              *
              * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
              */
          -  com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(int index);
          +  com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(
          +      int index);
           
             com.google.monitoring.dashboard.v1.Scorecard.DataViewCase getDataViewCase();
           }
          diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java
          new file mode 100644
          index 000000000000..624b18022afc
          --- /dev/null
          +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java
          @@ -0,0 +1,108 @@
          +// Generated by the protocol buffer compiler.  DO NOT EDIT!
          +// source: google/monitoring/dashboard/v1/scorecard.proto
          +
          +// Protobuf Java Version: 3.25.2
          +package com.google.monitoring.dashboard.v1;
          +
          +public final class ScorecardProto {
          +  private ScorecardProto() {}
          +  public static void registerAllExtensions(
          +      com.google.protobuf.ExtensionRegistryLite registry) {
          +  }
          +
          +  public static void registerAllExtensions(
          +      com.google.protobuf.ExtensionRegistry registry) {
          +    registerAllExtensions(
          +        (com.google.protobuf.ExtensionRegistryLite) registry);
          +  }
          +  static final com.google.protobuf.Descriptors.Descriptor
          +    internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor;
          +  static final 
          +    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          +      internal_static_google_monitoring_dashboard_v1_Scorecard_fieldAccessorTable;
          +  static final com.google.protobuf.Descriptors.Descriptor
          +    internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor;
          +  static final 
          +    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          +      internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_fieldAccessorTable;
          +  static final com.google.protobuf.Descriptors.Descriptor
          +    internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor;
          +  static final 
          +    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          +      internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_fieldAccessorTable;
          +
          +  public static com.google.protobuf.Descriptors.FileDescriptor
          +      getDescriptor() {
          +    return descriptor;
          +  }
          +  private static  com.google.protobuf.Descriptors.FileDescriptor
          +      descriptor;
          +  static {
          +    java.lang.String[] descriptorData = {
          +      "\n.google/monitoring/dashboard/v1/scoreca" +
          +      "rd.proto\022\036google.monitoring.dashboard.v1" +
          +      "\032\037google/api/field_behavior.proto\032,googl" +
          +      "e/monitoring/dashboard/v1/metrics.proto\032" +
          +      "\036google/protobuf/duration.proto\032\033google/" +
          +      "protobuf/empty.proto\"\311\004\n\tScorecard\022O\n\021ti" +
          +      "me_series_query\030\001 \001(\0132/.google.monitorin" +
          +      "g.dashboard.v1.TimeSeriesQueryB\003\340A\002\022I\n\ng" +
          +      "auge_view\030\004 \001(\01323.google.monitoring.dash" +
          +      "board.v1.Scorecard.GaugeViewH\000\022T\n\020spark_" +
          +      "chart_view\030\005 \001(\01328.google.monitoring.das" +
          +      "hboard.v1.Scorecard.SparkChartViewH\000\022,\n\n" +
          +      "blank_view\030\007 \001(\0132\026.google.protobuf.Empty" +
          +      "H\000\022=\n\nthresholds\030\006 \003(\0132).google.monitori" +
          +      "ng.dashboard.v1.Threshold\0325\n\tGaugeView\022\023" +
          +      "\n\013lower_bound\030\001 \001(\001\022\023\n\013upper_bound\030\002 \001(\001" +
          +      "\032\230\001\n\016SparkChartView\022M\n\020spark_chart_type\030" +
          +      "\001 \001(\0162..google.monitoring.dashboard.v1.S" +
          +      "parkChartTypeB\003\340A\002\0227\n\024min_alignment_peri" +
          +      "od\030\002 \001(\0132\031.google.protobuf.DurationB\013\n\td" +
          +      "ata_viewB\367\001\n\"com.google.monitoring.dashb" +
          +      "oard.v1B\016ScorecardProtoP\001ZFcloud.google." +
          +      "com/go/monitoring/dashboard/apiv1/dashbo" +
          +      "ardpb;dashboardpb\252\002$Google.Cloud.Monitor" +
          +      "ing.Dashboard.V1\312\002$Google\\Cloud\\Monitori" +
          +      "ng\\Dashboard\\V1\352\002(Google::Cloud::Monitor" +
          +      "ing::Dashboard::V1b\006proto3"
          +    };
          +    descriptor = com.google.protobuf.Descriptors.FileDescriptor
          +      .internalBuildGeneratedFileFrom(descriptorData,
          +        new com.google.protobuf.Descriptors.FileDescriptor[] {
          +          com.google.api.FieldBehaviorProto.getDescriptor(),
          +          com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(),
          +          com.google.protobuf.DurationProto.getDescriptor(),
          +          com.google.protobuf.EmptyProto.getDescriptor(),
          +        });
          +    internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor =
          +      getDescriptor().getMessageTypes().get(0);
          +    internal_static_google_monitoring_dashboard_v1_Scorecard_fieldAccessorTable = new
          +      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          +        internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor,
          +        new java.lang.String[] { "TimeSeriesQuery", "GaugeView", "SparkChartView", "BlankView", "Thresholds", "DataView", });
          +    internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor =
          +      internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor.getNestedTypes().get(0);
          +    internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_fieldAccessorTable = new
          +      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          +        internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor,
          +        new java.lang.String[] { "LowerBound", "UpperBound", });
          +    internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor =
          +      internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor.getNestedTypes().get(1);
          +    internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_fieldAccessorTable = new
          +      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          +        internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor,
          +        new java.lang.String[] { "SparkChartType", "MinAlignmentPeriod", });
          +    com.google.protobuf.ExtensionRegistry registry =
          +        com.google.protobuf.ExtensionRegistry.newInstance();
          +    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
          +    com.google.protobuf.Descriptors.FileDescriptor
          +        .internalUpdateFileDescriptor(descriptor, registry);
          +    com.google.api.FieldBehaviorProto.getDescriptor();
          +    com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor();
          +    com.google.protobuf.DurationProto.getDescriptor();
          +    com.google.protobuf.EmptyProto.getDescriptor();
          +  }
          +
          +  // @@protoc_insertion_point(outer_class_scope)
          +}
          diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeader.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeader.java
          new file mode 100644
          index 000000000000..6fde0435b7d1
          --- /dev/null
          +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeader.java
          @@ -0,0 +1,663 @@
          +// Generated by the protocol buffer compiler.  DO NOT EDIT!
          +// source: google/monitoring/dashboard/v1/section_header.proto
          +
          +// Protobuf Java Version: 3.25.2
          +package com.google.monitoring.dashboard.v1;
          +
          +/**
          + * 
          + * A widget that defines a new section header. Sections populate a table of
          + * contents and allow easier navigation of long-form content.
          + * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.SectionHeader} + */ +public final class SectionHeader extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.SectionHeader) + SectionHeaderOrBuilder { +private static final long serialVersionUID = 0L; + // Use SectionHeader.newBuilder() to construct. + private SectionHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SectionHeader() { + subtitle_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SectionHeader(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.SectionHeaderProto.internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.SectionHeaderProto.internal_static_google_monitoring_dashboard_v1_SectionHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.SectionHeader.class, com.google.monitoring.dashboard.v1.SectionHeader.Builder.class); + } + + public static final int SUBTITLE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object subtitle_ = ""; + /** + *
          +   * The subtitle of the section
          +   * 
          + * + * string subtitle = 1; + * @return The subtitle. + */ + @java.lang.Override + public java.lang.String getSubtitle() { + java.lang.Object ref = subtitle_; + 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(); + subtitle_ = s; + return s; + } + } + /** + *
          +   * The subtitle of the section
          +   * 
          + * + * string subtitle = 1; + * @return The bytes for subtitle. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSubtitleBytes() { + java.lang.Object ref = subtitle_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subtitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIVIDER_BELOW_FIELD_NUMBER = 2; + private boolean dividerBelow_ = false; + /** + *
          +   * Whether to insert a divider below the section in the table of contents
          +   * 
          + * + * bool divider_below = 2; + * @return The dividerBelow. + */ + @java.lang.Override + public boolean getDividerBelow() { + return dividerBelow_; + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subtitle_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subtitle_); + } + if (dividerBelow_ != false) { + output.writeBool(2, dividerBelow_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subtitle_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subtitle_); + } + if (dividerBelow_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, dividerBelow_); + } + 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.SectionHeader)) { + return super.equals(obj); + } + com.google.monitoring.dashboard.v1.SectionHeader other = (com.google.monitoring.dashboard.v1.SectionHeader) obj; + + if (!getSubtitle() + .equals(other.getSubtitle())) return false; + if (getDividerBelow() + != other.getDividerBelow()) 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(); + hash = (37 * hash) + SUBTITLE_FIELD_NUMBER; + hash = (53 * hash) + getSubtitle().hashCode(); + hash = (37 * hash) + DIVIDER_BELOW_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDividerBelow()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.dashboard.v1.SectionHeader parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.SectionHeader 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.SectionHeader parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.SectionHeader 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.SectionHeader parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.SectionHeader 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.SectionHeader parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.dashboard.v1.SectionHeader 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.SectionHeader parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.SectionHeader 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.SectionHeader 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.SectionHeader 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.SectionHeader 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 widget that defines a new section header. Sections populate a table of
          +   * contents and allow easier navigation of long-form content.
          +   * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.SectionHeader} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.SectionHeader) + com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.SectionHeaderProto.internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.SectionHeaderProto.internal_static_google_monitoring_dashboard_v1_SectionHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.SectionHeader.class, com.google.monitoring.dashboard.v1.SectionHeader.Builder.class); + } + + // Construct using com.google.monitoring.dashboard.v1.SectionHeader.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subtitle_ = ""; + dividerBelow_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.SectionHeaderProto.internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.SectionHeader getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.SectionHeader.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.SectionHeader build() { + com.google.monitoring.dashboard.v1.SectionHeader result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.SectionHeader buildPartial() { + com.google.monitoring.dashboard.v1.SectionHeader result = new com.google.monitoring.dashboard.v1.SectionHeader(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.monitoring.dashboard.v1.SectionHeader result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subtitle_ = subtitle_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dividerBelow_ = dividerBelow_; + } + } + + @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.SectionHeader) { + return mergeFrom((com.google.monitoring.dashboard.v1.SectionHeader)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.dashboard.v1.SectionHeader other) { + if (other == com.google.monitoring.dashboard.v1.SectionHeader.getDefaultInstance()) return this; + if (!other.getSubtitle().isEmpty()) { + subtitle_ = other.subtitle_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getDividerBelow() != false) { + setDividerBelow(other.getDividerBelow()); + } + 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: { + subtitle_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + dividerBelow_ = input.readBool(); + bitField0_ |= 0x00000002; + 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 int bitField0_; + + private java.lang.Object subtitle_ = ""; + /** + *
          +     * The subtitle of the section
          +     * 
          + * + * string subtitle = 1; + * @return The subtitle. + */ + public java.lang.String getSubtitle() { + java.lang.Object ref = subtitle_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subtitle_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
          +     * The subtitle of the section
          +     * 
          + * + * string subtitle = 1; + * @return The bytes for subtitle. + */ + public com.google.protobuf.ByteString + getSubtitleBytes() { + java.lang.Object ref = subtitle_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subtitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
          +     * The subtitle of the section
          +     * 
          + * + * string subtitle = 1; + * @param value The subtitle to set. + * @return This builder for chaining. + */ + public Builder setSubtitle( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + subtitle_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
          +     * The subtitle of the section
          +     * 
          + * + * string subtitle = 1; + * @return This builder for chaining. + */ + public Builder clearSubtitle() { + subtitle_ = getDefaultInstance().getSubtitle(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
          +     * The subtitle of the section
          +     * 
          + * + * string subtitle = 1; + * @param value The bytes for subtitle to set. + * @return This builder for chaining. + */ + public Builder setSubtitleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + subtitle_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean dividerBelow_ ; + /** + *
          +     * Whether to insert a divider below the section in the table of contents
          +     * 
          + * + * bool divider_below = 2; + * @return The dividerBelow. + */ + @java.lang.Override + public boolean getDividerBelow() { + return dividerBelow_; + } + /** + *
          +     * Whether to insert a divider below the section in the table of contents
          +     * 
          + * + * bool divider_below = 2; + * @param value The dividerBelow to set. + * @return This builder for chaining. + */ + public Builder setDividerBelow(boolean value) { + + dividerBelow_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
          +     * Whether to insert a divider below the section in the table of contents
          +     * 
          + * + * bool divider_below = 2; + * @return This builder for chaining. + */ + public Builder clearDividerBelow() { + bitField0_ = (bitField0_ & ~0x00000002); + dividerBelow_ = 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.SectionHeader) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.SectionHeader) + private static final com.google.monitoring.dashboard.v1.SectionHeader DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.SectionHeader(); + } + + public static com.google.monitoring.dashboard.v1.SectionHeader getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SectionHeader 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.SectionHeader getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderOrBuilder.java new file mode 100644 index 000000000000..90d987aed784 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderOrBuilder.java @@ -0,0 +1,40 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/section_header.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public interface SectionHeaderOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.SectionHeader) + com.google.protobuf.MessageOrBuilder { + + /** + *
          +   * The subtitle of the section
          +   * 
          + * + * string subtitle = 1; + * @return The subtitle. + */ + java.lang.String getSubtitle(); + /** + *
          +   * The subtitle of the section
          +   * 
          + * + * string subtitle = 1; + * @return The bytes for subtitle. + */ + com.google.protobuf.ByteString + getSubtitleBytes(); + + /** + *
          +   * Whether to insert a divider below the section in the table of contents
          +   * 
          + * + * bool divider_below = 2; + * @return The dividerBelow. + */ + boolean getDividerBelow(); +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderProto.java new file mode 100644 index 000000000000..e8b3a26b8b46 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderProto.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/section_header.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class SectionHeaderProto { + private SectionHeaderProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_SectionHeader_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/monitoring/dashboard/v1/section" + + "_header.proto\022\036google.monitoring.dashboa" + + "rd.v1\"8\n\rSectionHeader\022\020\n\010subtitle\030\001 \001(\t" + + "\022\025\n\rdivider_below\030\002 \001(\010B\373\001\n\"com.google.m" + + "onitoring.dashboard.v1B\022SectionHeaderPro" + + "toP\001ZFcloud.google.com/go/monitoring/das" + + "hboard/apiv1/dashboardpb;dashboardpb\252\002$G" + + "oogle.Cloud.Monitoring.Dashboard.V1\312\002$Go" + + "ogle\\Cloud\\Monitoring\\Dashboard\\V1\352\002(Goo" + + "gle::Cloud::Monitoring::Dashboard::V1b\006p" + + "roto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_SectionHeader_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor, + new java.lang.String[] { "Subtitle", "DividerBelow", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ServiceMonitoringProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ServiceMonitoringProto.java new file mode 100644 index 000000000000..9935b1ee2882 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ServiceMonitoringProto.java @@ -0,0 +1,44 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class ServiceMonitoringProto { + private ServiceMonitoringProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/monitoring/dashboard/v1/service" + + ".proto\022\036google.monitoring.dashboard.v1B\377" + + "\001\n\"com.google.monitoring.dashboard.v1B\026S" + + "erviceMonitoringProtoP\001ZFcloud.google.co" + + "m/go/monitoring/dashboard/apiv1/dashboar" + + "dpb;dashboardpb\252\002$Google.Cloud.Monitorin" + + "g.Dashboard.V1\312\002$Google\\Cloud\\Monitoring" + + "\\Dashboard\\V1\352\002(Google::Cloud::Monitorin" + + "g::Dashboard::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroup.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroup.java new file mode 100644 index 000000000000..29a2e5685ca1 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroup.java @@ -0,0 +1,411 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/single_view_group.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +/** + *
          + * A widget that groups the other widgets by using a dropdown menu. All widgets
          + * that are within the area spanned by the grouping widget are considered
          + * member widgets.
          + * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.SingleViewGroup} + */ +public final class SingleViewGroup extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.SingleViewGroup) + SingleViewGroupOrBuilder { +private static final long serialVersionUID = 0L; + // Use SingleViewGroup.newBuilder() to construct. + private SingleViewGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SingleViewGroup() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SingleViewGroup(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.SingleViewGroupProto.internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.SingleViewGroupProto.internal_static_google_monitoring_dashboard_v1_SingleViewGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.SingleViewGroup.class, com.google.monitoring.dashboard.v1.SingleViewGroup.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.SingleViewGroup)) { + return super.equals(obj); + } + com.google.monitoring.dashboard.v1.SingleViewGroup other = (com.google.monitoring.dashboard.v1.SingleViewGroup) obj; + + 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(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.dashboard.v1.SingleViewGroup parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.SingleViewGroup 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.SingleViewGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.SingleViewGroup 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.SingleViewGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.SingleViewGroup 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.SingleViewGroup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.dashboard.v1.SingleViewGroup 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.SingleViewGroup parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.SingleViewGroup 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.SingleViewGroup 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.SingleViewGroup 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.SingleViewGroup 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 widget that groups the other widgets by using a dropdown menu. All widgets
          +   * that are within the area spanned by the grouping widget are considered
          +   * member widgets.
          +   * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.SingleViewGroup} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.SingleViewGroup) + com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.SingleViewGroupProto.internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.SingleViewGroupProto.internal_static_google_monitoring_dashboard_v1_SingleViewGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.SingleViewGroup.class, com.google.monitoring.dashboard.v1.SingleViewGroup.Builder.class); + } + + // Construct using com.google.monitoring.dashboard.v1.SingleViewGroup.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.SingleViewGroupProto.internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.SingleViewGroup getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.SingleViewGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.SingleViewGroup build() { + com.google.monitoring.dashboard.v1.SingleViewGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.SingleViewGroup buildPartial() { + com.google.monitoring.dashboard.v1.SingleViewGroup result = new com.google.monitoring.dashboard.v1.SingleViewGroup(this); + 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.SingleViewGroup) { + return mergeFrom((com.google.monitoring.dashboard.v1.SingleViewGroup)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.dashboard.v1.SingleViewGroup other) { + if (other == com.google.monitoring.dashboard.v1.SingleViewGroup.getDefaultInstance()) return this; + 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; + 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; + } + @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.SingleViewGroup) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.SingleViewGroup) + private static final com.google.monitoring.dashboard.v1.SingleViewGroup DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.SingleViewGroup(); + } + + public static com.google.monitoring.dashboard.v1.SingleViewGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SingleViewGroup 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.SingleViewGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupOrBuilder.java new file mode 100644 index 000000000000..f25620a50d29 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupOrBuilder.java @@ -0,0 +1,10 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/single_view_group.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public interface SingleViewGroupOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.SingleViewGroup) + com.google.protobuf.MessageOrBuilder { +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupProto.java new file mode 100644 index 000000000000..fd82afe4569a --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupProto.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/single_view_group.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class SingleViewGroupProto { + private SingleViewGroupProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_SingleViewGroup_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n6google/monitoring/dashboard/v1/single_" + + "view_group.proto\022\036google.monitoring.dash" + + "board.v1\"\021\n\017SingleViewGroupB\375\001\n\"com.goog" + + "le.monitoring.dashboard.v1B\024SingleViewGr" + + "oupProtoP\001ZFcloud.google.com/go/monitori" + + "ng/dashboard/apiv1/dashboardpb;dashboard" + + "pb\252\002$Google.Cloud.Monitoring.Dashboard.V" + + "1\312\002$Google\\Cloud\\Monitoring\\Dashboard\\V1" + + "\352\002(Google::Cloud::Monitoring::Dashboard:" + + ":V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_SingleViewGroup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SparkChartType.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SparkChartType.java similarity index 68% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SparkChartType.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SparkChartType.java index 9756d6394cc9..0210b043633d 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SparkChartType.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SparkChartType.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/metrics.proto @@ -20,18 +5,15 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * Defines the possible types of spark chart supported by the `Scorecard`.
            * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.SparkChartType} */ -public enum SparkChartType implements com.google.protobuf.ProtocolMessageEnum { +public enum SparkChartType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
              * Not allowed in well-formed requests.
              * 
          @@ -40,8 +22,6 @@ public enum SparkChartType implements com.google.protobuf.ProtocolMessageEnum { */ SPARK_CHART_TYPE_UNSPECIFIED(0), /** - * - * *
              * The sparkline will be rendered as a small line chart.
              * 
          @@ -50,8 +30,6 @@ public enum SparkChartType implements com.google.protobuf.ProtocolMessageEnum { */ SPARK_LINE(1), /** - * - * *
              * The sparkbar will be rendered as a small bar chart.
              * 
          @@ -63,8 +41,6 @@ public enum SparkChartType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
              * Not allowed in well-formed requests.
              * 
          @@ -73,8 +49,6 @@ public enum SparkChartType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPARK_CHART_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
              * The sparkline will be rendered as a small line chart.
              * 
          @@ -83,8 +57,6 @@ public enum SparkChartType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPARK_LINE_VALUE = 1; /** - * - * *
              * The sparkbar will be rendered as a small bar chart.
              * 
          @@ -93,6 +65,7 @@ public enum SparkChartType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPARK_BAR_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -117,49 +90,49 @@ public static SparkChartType valueOf(int value) { */ public static SparkChartType forNumber(int value) { switch (value) { - case 0: - return SPARK_CHART_TYPE_UNSPECIFIED; - case 1: - return SPARK_LINE; - case 2: - return SPARK_BAR; - default: - return null; + case 0: return SPARK_CHART_TYPE_UNSPECIFIED; + case 1: return SPARK_LINE; + case 2: return SPARK_BAR; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + 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 SparkChartType findValueByNumber(int number) { - return SparkChartType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + SparkChartType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SparkChartType findValueByNumber(int number) { + return SparkChartType.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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor().getEnumTypes().get(0); } private static final SparkChartType[] VALUES = values(); - public static SparkChartType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SparkChartType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -175,3 +148,4 @@ private SparkChartType(int value) { // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.SparkChartType) } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilter.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilter.java similarity index 66% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilter.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilter.java index 8abcd261477f..a6d024a45d6c 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilter.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilter.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/common.proto @@ -20,8 +5,6 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * A filter that ranks streams based on their statistical relation to other
            * streams in a request.
          @@ -30,54 +13,49 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter}
            */
          -public final class StatisticalTimeSeriesFilter extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class StatisticalTimeSeriesFilter extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter)
               StatisticalTimeSeriesFilterOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use StatisticalTimeSeriesFilter.newBuilder() to construct.
             private StatisticalTimeSeriesFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
             private StatisticalTimeSeriesFilter() {
               rankingMethod_ = 0;
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new StatisticalTimeSeriesFilter();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.CommonProto
          -        .internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.CommonProto
          -        .internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.class,
          -            com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder.class);
          +            com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.class, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder.class);
             }
           
             /**
          -   *
          -   *
              * 
              * The filter methods that can be applied to a stream.
              * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method} */ - public enum Method implements com.google.protobuf.ProtocolMessageEnum { + public enum Method + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                * Not allowed in well-formed requests.
                * 
          @@ -86,8 +64,6 @@ public enum Method implements com.google.protobuf.ProtocolMessageEnum { */ METHOD_UNSPECIFIED(0), /** - * - * *
                * Compute the outlier score of each stream.
                * 
          @@ -99,8 +75,6 @@ public enum Method implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                * Not allowed in well-formed requests.
                * 
          @@ -109,8 +83,6 @@ public enum Method implements com.google.protobuf.ProtocolMessageEnum { */ public static final int METHOD_UNSPECIFIED_VALUE = 0; /** - * - * *
                * Compute the outlier score of each stream.
                * 
          @@ -119,6 +91,7 @@ public enum Method implements com.google.protobuf.ProtocolMessageEnum { */ public static final int METHOD_CLUSTER_OUTLIER_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -143,49 +116,48 @@ public static Method valueOf(int value) { */ public static Method forNumber(int value) { switch (value) { - case 0: - return METHOD_UNSPECIFIED; - case 1: - return METHOD_CLUSTER_OUTLIER; - default: - return null; + case 0: return METHOD_UNSPECIFIED; + case 1: return METHOD_CLUSTER_OUTLIER; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Method> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Method findValueByNumber(int number) { + return Method.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Method findValueByNumber(int number) { - return Method.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + 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.StatisticalTimeSeriesFilter.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDescriptor().getEnumTypes().get(0); } private static final Method[] VALUES = values(); - public static Method valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Method valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -205,8 +177,6 @@ private Method(int value) { public static final int RANKING_METHOD_FIELD_NUMBER = 1; private int rankingMethod_ = 0; /** - * - * *
              * `rankingMethod` is applied to a set of time series, and then the produced
              * value for each individual time series is used to compare a given time
          @@ -215,18 +185,13 @@ private Method(int value) {
              * require the full context of a request to evaluate time series.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; - * - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; * @return The enum numeric value on the wire for rankingMethod. */ - @java.lang.Override - public int getRankingMethodValue() { + @java.lang.Override public int getRankingMethodValue() { return rankingMethod_; } /** - * - * *
              * `rankingMethod` is applied to a set of time series, and then the produced
              * value for each individual time series is used to compare a given time
          @@ -235,32 +200,22 @@ public int getRankingMethodValue() {
              * require the full context of a request to evaluate time series.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; - * - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; * @return The rankingMethod. */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method getRankingMethod() { - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method result = - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.forNumber( - rankingMethod_); - return result == null - ? com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method getRankingMethod() { + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method result = com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.forNumber(rankingMethod_); + return result == null ? com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.UNRECOGNIZED : result; } public static final int NUM_TIME_SERIES_FIELD_NUMBER = 2; private int numTimeSeries_ = 0; /** - * - * *
              * How many time series to output.
              * 
          * * int32 num_time_series = 2; - * * @return The numTimeSeries. */ @java.lang.Override @@ -269,7 +224,6 @@ public int getNumTimeSeries() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,10 +235,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (rankingMethod_ - != com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.METHOD_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (rankingMethod_ != com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.METHOD_UNSPECIFIED.getNumber()) { output.writeEnum(1, rankingMethod_); } if (numTimeSeries_ != 0) { @@ -299,13 +252,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (rankingMethod_ - != com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.METHOD_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, rankingMethod_); + if (rankingMethod_ != com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.METHOD_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, rankingMethod_); } if (numTimeSeries_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, numTimeSeries_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, numTimeSeries_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -315,16 +268,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter other = - (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) obj; + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter other = (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) obj; if (rankingMethod_ != other.rankingMethod_) return false; - if (getNumTimeSeries() != other.getNumTimeSeries()) return false; + if (getNumTimeSeries() + != other.getNumTimeSeries()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -346,104 +299,98 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.StatisticalTimeSeriesFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter 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.StatisticalTimeSeriesFilter parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter prototype) { + public static Builder newBuilder(com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * A filter that ranks streams based on their statistical relation to other
              * streams in a request.
          @@ -452,32 +399,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter)
                 com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.CommonProto
          -          .internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.CommonProto
          -          .internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.class,
          -              com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder.class);
          +              com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.class, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.newBuilder()
          -    private Builder() {}
          +    private Builder() {
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          -      super(parent);
               }
           
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +      super(parent);
          +
          +    }
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -488,14 +436,13 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.CommonProto
          -          .internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor;
               }
           
               @java.lang.Override
          -    public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter
          -        getDefaultInstanceForType() {
          +    public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getDefaultInstanceForType() {
                 return com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance();
               }
           
          @@ -510,17 +457,13 @@ public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter buildPartial() {
          -      com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter result =
          -          new com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter(this);
          -      if (bitField0_ != 0) {
          -        buildPartial0(result);
          -      }
          +      com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter result = new com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter(this);
          +      if (bitField0_ != 0) { buildPartial0(result); }
                 onBuilt();
                 return result;
               }
           
          -    private void buildPartial0(
          -        com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter result) {
          +    private void buildPartial0(com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter result) {
                 int from_bitField0_ = bitField0_;
                 if (((from_bitField0_ & 0x00000001) != 0)) {
                   result.rankingMethod_ = rankingMethod_;
          @@ -534,39 +477,38 @@ private void buildPartial0(
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.StatisticalTimeSeriesFilter) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -574,9 +516,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter other) {
          -      if (other
          -          == com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance())
          -        return this;
          +      if (other == com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance()) return this;
                 if (other.rankingMethod_ != 0) {
                   setRankingMethodValue(other.getRankingMethodValue());
                 }
          @@ -609,25 +549,22 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 8:
          -              {
          -                rankingMethod_ = input.readEnum();
          -                bitField0_ |= 0x00000001;
          -                break;
          -              } // case 8
          -            case 16:
          -              {
          -                numTimeSeries_ = input.readInt32();
          -                bitField0_ |= 0x00000002;
          -                break;
          -              } // case 16
          -            default:
          -              {
          -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                  done = true; // was an endgroup tag
          -                }
          -                break;
          -              } // default:
          +            case 8: {
          +              rankingMethod_ = input.readEnum();
          +              bitField0_ |= 0x00000001;
          +              break;
          +            } // case 8
          +            case 16: {
          +              numTimeSeries_ = input.readInt32();
          +              bitField0_ |= 0x00000002;
          +              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) {
          @@ -637,13 +574,10 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          -
               private int bitField0_;
           
               private int rankingMethod_ = 0;
               /**
          -     *
          -     *
                * 
                * `rankingMethod` is applied to a set of time series, and then the produced
                * value for each individual time series is used to compare a given time
          @@ -652,18 +586,13 @@ public Builder mergeFrom(
                * require the full context of a request to evaluate time series.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; - * - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; * @return The enum numeric value on the wire for rankingMethod. */ - @java.lang.Override - public int getRankingMethodValue() { + @java.lang.Override public int getRankingMethodValue() { return rankingMethod_; } /** - * - * *
                * `rankingMethod` is applied to a set of time series, and then the produced
                * value for each individual time series is used to compare a given time
          @@ -672,9 +601,7 @@ public int getRankingMethodValue() {
                * require the full context of a request to evaluate time series.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; - * - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; * @param value The enum numeric value on the wire for rankingMethod to set. * @return This builder for chaining. */ @@ -685,8 +612,6 @@ public Builder setRankingMethodValue(int value) { return this; } /** - * - * *
                * `rankingMethod` is applied to a set of time series, and then the produced
                * value for each individual time series is used to compare a given time
          @@ -695,24 +620,15 @@ public Builder setRankingMethodValue(int value) {
                * require the full context of a request to evaluate time series.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; - * - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; * @return The rankingMethod. */ @java.lang.Override - public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method - getRankingMethod() { - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method result = - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.forNumber( - rankingMethod_); - return result == null - ? com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.UNRECOGNIZED - : result; + public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method getRankingMethod() { + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method result = com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.forNumber(rankingMethod_); + return result == null ? com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.UNRECOGNIZED : result; } /** - * - * *
                * `rankingMethod` is applied to a set of time series, and then the produced
                * value for each individual time series is used to compare a given time
          @@ -721,14 +637,11 @@ public Builder setRankingMethodValue(int value) {
                * require the full context of a request to evaluate time series.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; - * - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; * @param value The rankingMethod to set. * @return This builder for chaining. */ - public Builder setRankingMethod( - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method value) { + public Builder setRankingMethod(com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method value) { if (value == null) { throw new NullPointerException(); } @@ -738,8 +651,6 @@ public Builder setRankingMethod( return this; } /** - * - * *
                * `rankingMethod` is applied to a set of time series, and then the produced
                * value for each individual time series is used to compare a given time
          @@ -748,9 +659,7 @@ public Builder setRankingMethod(
                * require the full context of a request to evaluate time series.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; - * - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; * @return This builder for chaining. */ public Builder clearRankingMethod() { @@ -760,16 +669,13 @@ public Builder clearRankingMethod() { return this; } - private int numTimeSeries_; + private int numTimeSeries_ ; /** - * - * *
                * How many time series to output.
                * 
          * * int32 num_time_series = 2; - * * @return The numTimeSeries. */ @java.lang.Override @@ -777,14 +683,11 @@ public int getNumTimeSeries() { return numTimeSeries_; } /** - * - * *
                * How many time series to output.
                * 
          * * int32 num_time_series = 2; - * * @param value The numTimeSeries to set. * @return This builder for chaining. */ @@ -796,14 +699,11 @@ public Builder setNumTimeSeries(int value) { return this; } /** - * - * *
                * How many time series to output.
                * 
          * * int32 num_time_series = 2; - * * @return This builder for chaining. */ public Builder clearNumTimeSeries() { @@ -812,9 +712,9 @@ public Builder clearNumTimeSeries() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -824,43 +724,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) - private static final com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter - DEFAULT_INSTANCE; - + private static final com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter(); } - public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter - getDefaultInstance() { + public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StatisticalTimeSeriesFilter 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StatisticalTimeSeriesFilter 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; @@ -872,8 +770,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter - getDefaultInstanceForType() { + public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilterOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilterOrBuilder.java similarity index 66% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilterOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilterOrBuilder.java index 8a5b34a9f5bd..bf9613c87b33 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilterOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilterOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/common.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface StatisticalTimeSeriesFilterOrBuilder - extends +public interface StatisticalTimeSeriesFilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * `rankingMethod` is applied to a set of time series, and then the produced
              * value for each individual time series is used to compare a given time
          @@ -35,15 +17,11 @@ public interface StatisticalTimeSeriesFilterOrBuilder
              * require the full context of a request to evaluate time series.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; - * - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; * @return The enum numeric value on the wire for rankingMethod. */ int getRankingMethodValue(); /** - * - * *
              * `rankingMethod` is applied to a set of time series, and then the produced
              * value for each individual time series is used to compare a given time
          @@ -52,22 +30,17 @@ public interface StatisticalTimeSeriesFilterOrBuilder
              * require the full context of a request to evaluate time series.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; - * - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; * @return The rankingMethod. */ com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method getRankingMethod(); /** - * - * *
              * How many time series to output.
              * 
          * * int32 num_time_series = 2; - * * @return The numTimeSeries. */ int getNumTimeSeries(); diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java similarity index 63% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java index 746c03d126de..08184f1f6921 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/table_display_options.proto @@ -20,139 +5,112 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * Table display options that can be reused.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.TableDisplayOptions} */ -public final class TableDisplayOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TableDisplayOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TableDisplayOptions) TableDisplayOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TableDisplayOptions.newBuilder() to construct. private TableDisplayOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TableDisplayOptions() { - shownColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + shownColumns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TableDisplayOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto - .internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto - .internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_fieldAccessorTable + return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.TableDisplayOptions.class, - com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder.class); + com.google.monitoring.dashboard.v1.TableDisplayOptions.class, com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder.class); } public static final int SHOWN_COLUMNS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList shownColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
              * 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]; - * - * - * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. See - * google/monitoring/dashboard/v1/table_display_options.proto;l=32 + * repeated string shown_columns = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. + * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @return A list containing the shownColumns. */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getShownColumnsList() { + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getShownColumnsList() { return shownColumns_; } /** - * - * *
              * 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]; - * - * - * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. See - * google/monitoring/dashboard/v1/table_display_options.proto;l=32 + * repeated string shown_columns = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. + * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @return The count of shownColumns. */ - @java.lang.Deprecated - public int getShownColumnsCount() { + @java.lang.Deprecated public int getShownColumnsCount() { return shownColumns_.size(); } /** - * - * *
              * 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]; - * - * - * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. See - * google/monitoring/dashboard/v1/table_display_options.proto;l=32 + * repeated string shown_columns = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. + * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @param index The index of the element to return. * @return The shownColumns at the given index. */ - @java.lang.Deprecated - public java.lang.String getShownColumns(int index) { + @java.lang.Deprecated public java.lang.String getShownColumns(int index) { return shownColumns_.get(index); } /** - * - * *
              * 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]; - * - * - * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. See - * google/monitoring/dashboard/v1/table_display_options.proto;l=32 + * repeated string shown_columns = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. + * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @param index The index of the value to return. * @return The bytes of the shownColumns at the given index. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getShownColumnsBytes(int index) { + @java.lang.Deprecated public com.google.protobuf.ByteString + getShownColumnsBytes(int index) { return shownColumns_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,7 +122,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < shownColumns_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, shownColumns_.getRaw(i)); } @@ -193,15 +152,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.TableDisplayOptions)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.TableDisplayOptions other = - (com.google.monitoring.dashboard.v1.TableDisplayOptions) obj; + com.google.monitoring.dashboard.v1.TableDisplayOptions other = (com.google.monitoring.dashboard.v1.TableDisplayOptions) obj; - if (!getShownColumnsList().equals(other.getShownColumnsList())) return false; + if (!getShownColumnsList() + .equals(other.getShownColumnsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,148 +182,144 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TableDisplayOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.TableDisplayOptions 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.TableDisplayOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.dashboard.v1.TableDisplayOptions prototype) { + public static Builder newBuilder(com.google.monitoring.dashboard.v1.TableDisplayOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Table display options that can be reused.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.TableDisplayOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.TableDisplayOptions) com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto - .internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto - .internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_fieldAccessorTable + return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.TableDisplayOptions.class, - com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder.class); + com.google.monitoring.dashboard.v1.TableDisplayOptions.class, com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.TableDisplayOptions.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - shownColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + shownColumns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto - .internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor; } @java.lang.Override @@ -383,11 +338,8 @@ public com.google.monitoring.dashboard.v1.TableDisplayOptions build() { @java.lang.Override public com.google.monitoring.dashboard.v1.TableDisplayOptions buildPartial() { - com.google.monitoring.dashboard.v1.TableDisplayOptions result = - new com.google.monitoring.dashboard.v1.TableDisplayOptions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.dashboard.v1.TableDisplayOptions result = new com.google.monitoring.dashboard.v1.TableDisplayOptions(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -404,39 +356,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.TableDisplayOption public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TableDisplayOptions) { - return mergeFrom((com.google.monitoring.dashboard.v1.TableDisplayOptions) other); + return mergeFrom((com.google.monitoring.dashboard.v1.TableDisplayOptions)other); } else { super.mergeFrom(other); return this; @@ -444,8 +395,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.TableDisplayOptions other) { - if (other == com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance()) - return this; + if (other == com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance()) return this; if (!other.shownColumns_.isEmpty()) { if (shownColumns_.isEmpty()) { shownColumns_ = other.shownColumns_; @@ -482,20 +432,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureShownColumnsIsMutable(); - shownColumns_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureShownColumnsIsMutable(); + shownColumns_.add(s); + 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) { @@ -505,12 +453,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList shownColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureShownColumnsIsMutable() { if (!shownColumns_.isModifiable()) { shownColumns_ = new com.google.protobuf.LazyStringArrayList(shownColumns_); @@ -518,111 +464,82 @@ private void ensureShownColumnsIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
                * 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]; * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @return A list containing the shownColumns. */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getShownColumnsList() { + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getShownColumnsList() { shownColumns_.makeImmutable(); return shownColumns_; } /** - * - * *
                * 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]; * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @return The count of shownColumns. */ - @java.lang.Deprecated - public int getShownColumnsCount() { + @java.lang.Deprecated public int getShownColumnsCount() { return shownColumns_.size(); } /** - * - * *
                * 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]; * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @param index The index of the element to return. * @return The shownColumns at the given index. */ - @java.lang.Deprecated - public java.lang.String getShownColumns(int index) { + @java.lang.Deprecated public java.lang.String getShownColumns(int index) { return shownColumns_.get(index); } /** - * - * *
                * 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]; * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @param index The index of the value to return. * @return The bytes of the shownColumns at the given index. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getShownColumnsBytes(int index) { + @java.lang.Deprecated public com.google.protobuf.ByteString + getShownColumnsBytes(int index) { return shownColumns_.getByteString(index); } /** - * - * *
                * 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]; * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @param index The index to set the value at. * @param value The shownColumns to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setShownColumns(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated public Builder setShownColumns( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureShownColumnsIsMutable(); shownColumns_.set(index, value); bitField0_ |= 0x00000001; @@ -630,27 +547,20 @@ public Builder setShownColumns(int index, java.lang.String value) { return this; } /** - * - * *
                * 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]; * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @param value The shownColumns to add. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder addShownColumns(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated public Builder addShownColumns( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureShownColumnsIsMutable(); shownColumns_.add(value); bitField0_ |= 0x00000001; @@ -658,76 +568,59 @@ public Builder addShownColumns(java.lang.String value) { return this; } /** - * - * *
                * 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]; * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @param values The shownColumns to add. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder addAllShownColumns(java.lang.Iterable values) { + @java.lang.Deprecated public Builder addAllShownColumns( + java.lang.Iterable values) { ensureShownColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shownColumns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, shownColumns_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                * 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]; * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearShownColumns() { - shownColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + @java.lang.Deprecated public Builder clearShownColumns() { + shownColumns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
                * 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]; * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @param value The bytes of the shownColumns to add. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder addShownColumnsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated public Builder addShownColumnsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureShownColumnsIsMutable(); shownColumns_.add(value); @@ -735,9 +628,9 @@ public Builder addShownColumnsBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -747,12 +640,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.TableDisplayOptions) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.TableDisplayOptions) private static final com.google.monitoring.dashboard.v1.TableDisplayOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.TableDisplayOptions(); } @@ -761,27 +654,27 @@ public static com.google.monitoring.dashboard.v1.TableDisplayOptions getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableDisplayOptions 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableDisplayOptions 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; @@ -796,4 +689,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.TableDisplayOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java new file mode 100644 index 000000000000..20adb515581b --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/table_display_options.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public interface TableDisplayOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TableDisplayOptions) + com.google.protobuf.MessageOrBuilder { + + /** + *
          +   * 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]; + * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. + * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 + * @return A list containing the shownColumns. + */ + @java.lang.Deprecated java.util.List + getShownColumnsList(); + /** + *
          +   * 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]; + * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. + * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 + * @return The count of shownColumns. + */ + @java.lang.Deprecated int getShownColumnsCount(); + /** + *
          +   * 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]; + * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. + * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 + * @param index The index of the element to return. + * @return The shownColumns at the given index. + */ + @java.lang.Deprecated java.lang.String getShownColumns(int index); + /** + *
          +   * 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]; + * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. + * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 + * @param index The index of the value to return. + * @return The bytes of the shownColumns at the given index. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getShownColumnsBytes(int index); +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java new file mode 100644 index 000000000000..c1aaa7b21251 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/table_display_options.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class TableDisplayOptionsProto { + private TableDisplayOptionsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n:google/monitoring/dashboard/v1/table_d" + + "isplay_options.proto\022\036google.monitoring." + + "dashboard.v1\032\037google/api/field_behavior." + + "proto\"3\n\023TableDisplayOptions\022\034\n\rshown_co" + + "lumns\030\001 \003(\tB\005\030\001\340A\001B\201\002\n\"com.google.monito" + + "ring.dashboard.v1B\030TableDisplayOptionsPr" + + "otoP\001ZFcloud.google.com/go/monitoring/da" + + "shboard/apiv1/dashboardpb;dashboardpb\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" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor, + new java.lang.String[] { "ShownColumns", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java new file mode 100644 index 000000000000..7f3e2a0ef638 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java @@ -0,0 +1,112 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/table.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class TableProto { + private TableProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n*google/monitoring/dashboard/v1/table.p" + + "roto\022\036google.monitoring.dashboard.v1\032\037go" + + "ogle/api/field_behavior.proto\032,google/mo" + + "nitoring/dashboard/v1/metrics.proto\032:goo" + + "gle/monitoring/dashboard/v1/table_displa" + + "y_options.proto\032\036google/protobuf/duratio" + + "n.proto\"\322\005\n\017TimeSeriesTable\022T\n\tdata_sets" + + "\030\001 \003(\0132<.google.monitoring.dashboard.v1." + + "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\363\001\n\"com.google.monitoring.d" + + "ashboard.v1B\nTableProtoP\001ZFcloud.google." + + "com/go/monitoring/dashboard/apiv1/dashbo" + + "ardpb;dashboardpb\252\002$Google.Cloud.Monitor" + + "ing.Dashboard.V1\312\002$Google\\Cloud\\Monitori" + + "ng\\Dashboard\\V1\352\002(Google::Cloud::Monitor" + + "ing::Dashboard::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(), + com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor, + new java.lang.String[] { "DataSets", "MetricVisualization", "ColumnSettings", }); + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor = + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor, + 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); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(); + com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Text.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Text.java new file mode 100644 index 000000000000..4256bcdde44b --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Text.java @@ -0,0 +1,3612 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/text.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +/** + *
          + * A widget that displays textual content.
          + * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.Text} + */ +public final class Text extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Text) + TextOrBuilder { +private static final long serialVersionUID = 0L; + // Use Text.newBuilder() to construct. + private Text(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Text() { + content_ = ""; + format_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Text(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.Text.class, com.google.monitoring.dashboard.v1.Text.Builder.class); + } + + /** + *
          +   * The format type of the text content.
          +   * 
          + * + * Protobuf enum {@code google.monitoring.dashboard.v1.Text.Format} + */ + public enum Format + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
          +     * Format is unspecified. Defaults to MARKDOWN.
          +     * 
          + * + * FORMAT_UNSPECIFIED = 0; + */ + FORMAT_UNSPECIFIED(0), + /** + *
          +     * The text contains Markdown formatting.
          +     * 
          + * + * MARKDOWN = 1; + */ + MARKDOWN(1), + /** + *
          +     * The text contains no special formatting.
          +     * 
          + * + * RAW = 2; + */ + RAW(2), + UNRECOGNIZED(-1), + ; + + /** + *
          +     * Format is unspecified. Defaults to MARKDOWN.
          +     * 
          + * + * FORMAT_UNSPECIFIED = 0; + */ + public static final int FORMAT_UNSPECIFIED_VALUE = 0; + /** + *
          +     * The text contains Markdown formatting.
          +     * 
          + * + * MARKDOWN = 1; + */ + public static final int MARKDOWN_VALUE = 1; + /** + *
          +     * The text contains no special formatting.
          +     * 
          + * + * RAW = 2; + */ + public static final int RAW_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 Format 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 Format forNumber(int value) { + switch (value) { + case 0: return FORMAT_UNSPECIFIED; + case 1: return MARKDOWN; + case 2: return RAW; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Format> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Format findValueByNumber(int number) { + return Format.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.Text.getDescriptor().getEnumTypes().get(0); + } + + private static final Format[] VALUES = values(); + + public static Format 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 Format(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.Text.Format) + } + + public interface TextStyleOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Text.TextStyle) + com.google.protobuf.MessageOrBuilder { + + /** + *
          +     * The background color as a hex string. "#RRGGBB" or "#RGB"
          +     * 
          + * + * string background_color = 1; + * @return The backgroundColor. + */ + java.lang.String getBackgroundColor(); + /** + *
          +     * The background color as a hex string. "#RRGGBB" or "#RGB"
          +     * 
          + * + * string background_color = 1; + * @return The bytes for backgroundColor. + */ + com.google.protobuf.ByteString + getBackgroundColorBytes(); + + /** + *
          +     * The text color as a hex string. "#RRGGBB" or "#RGB"
          +     * 
          + * + * string text_color = 2; + * @return The textColor. + */ + java.lang.String getTextColor(); + /** + *
          +     * The text color as a hex string. "#RRGGBB" or "#RGB"
          +     * 
          + * + * string text_color = 2; + * @return The bytes for textColor. + */ + com.google.protobuf.ByteString + getTextColorBytes(); + + /** + *
          +     * The horizontal alignment of both the title and content
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * @return The enum numeric value on the wire for horizontalAlignment. + */ + int getHorizontalAlignmentValue(); + /** + *
          +     * The horizontal alignment of both the title and content
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * @return The horizontalAlignment. + */ + com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment getHorizontalAlignment(); + + /** + *
          +     * The vertical alignment of both the title and content
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * @return The enum numeric value on the wire for verticalAlignment. + */ + int getVerticalAlignmentValue(); + /** + *
          +     * The vertical alignment of both the title and content
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * @return The verticalAlignment. + */ + com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment getVerticalAlignment(); + + /** + *
          +     * The amount of padding around the widget
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * @return The enum numeric value on the wire for padding. + */ + int getPaddingValue(); + /** + *
          +     * The amount of padding around the widget
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * @return The padding. + */ + com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize getPadding(); + + /** + *
          +     * Font sizes for both the title and content. The title will still be larger
          +     * relative to the content.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * @return The enum numeric value on the wire for fontSize. + */ + int getFontSizeValue(); + /** + *
          +     * Font sizes for both the title and content. The title will still be larger
          +     * relative to the content.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * @return The fontSize. + */ + com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize getFontSize(); + + /** + *
          +     * The pointer location for this widget (also sometimes called a "tail")
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * @return The enum numeric value on the wire for pointerLocation. + */ + int getPointerLocationValue(); + /** + *
          +     * The pointer location for this widget (also sometimes called a "tail")
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * @return The pointerLocation. + */ + com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation getPointerLocation(); + } + /** + *
          +   * Properties that determine how the title and content are styled
          +   * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.Text.TextStyle} + */ + public static final class TextStyle extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Text.TextStyle) + TextStyleOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextStyle.newBuilder() to construct. + private TextStyle(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TextStyle() { + backgroundColor_ = ""; + textColor_ = ""; + horizontalAlignment_ = 0; + verticalAlignment_ = 0; + padding_ = 0; + fontSize_ = 0; + pointerLocation_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TextStyle(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_TextStyle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.Text.TextStyle.class, com.google.monitoring.dashboard.v1.Text.TextStyle.Builder.class); + } + + /** + *
          +     * The horizontal alignment of both the title and content on a text widget
          +     * 
          + * + * Protobuf enum {@code google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment} + */ + public enum HorizontalAlignment + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
          +       * No horizontal alignment specified, will default to H_LEFT
          +       * 
          + * + * HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0; + */ + HORIZONTAL_ALIGNMENT_UNSPECIFIED(0), + /** + *
          +       * Left-align
          +       * 
          + * + * H_LEFT = 1; + */ + H_LEFT(1), + /** + *
          +       * Center-align
          +       * 
          + * + * H_CENTER = 2; + */ + H_CENTER(2), + /** + *
          +       * Right-align
          +       * 
          + * + * H_RIGHT = 3; + */ + H_RIGHT(3), + UNRECOGNIZED(-1), + ; + + /** + *
          +       * No horizontal alignment specified, will default to H_LEFT
          +       * 
          + * + * HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0; + */ + public static final int HORIZONTAL_ALIGNMENT_UNSPECIFIED_VALUE = 0; + /** + *
          +       * Left-align
          +       * 
          + * + * H_LEFT = 1; + */ + public static final int H_LEFT_VALUE = 1; + /** + *
          +       * Center-align
          +       * 
          + * + * H_CENTER = 2; + */ + public static final int H_CENTER_VALUE = 2; + /** + *
          +       * Right-align
          +       * 
          + * + * H_RIGHT = 3; + */ + public static final int H_RIGHT_VALUE = 3; + + + 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 HorizontalAlignment 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 HorizontalAlignment forNumber(int value) { + switch (value) { + case 0: return HORIZONTAL_ALIGNMENT_UNSPECIFIED; + case 1: return H_LEFT; + case 2: return H_CENTER; + case 3: return H_RIGHT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HorizontalAlignment> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HorizontalAlignment findValueByNumber(int number) { + return HorizontalAlignment.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.Text.TextStyle.getDescriptor().getEnumTypes().get(0); + } + + private static final HorizontalAlignment[] VALUES = values(); + + public static HorizontalAlignment 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 HorizontalAlignment(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment) + } + + /** + *
          +     * The vertical alignment of both the title and content on a text widget
          +     * 
          + * + * Protobuf enum {@code google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment} + */ + public enum VerticalAlignment + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
          +       * No vertical alignment specified, will default to V_TOP
          +       * 
          + * + * VERTICAL_ALIGNMENT_UNSPECIFIED = 0; + */ + VERTICAL_ALIGNMENT_UNSPECIFIED(0), + /** + *
          +       * Top-align
          +       * 
          + * + * V_TOP = 1; + */ + V_TOP(1), + /** + *
          +       * Center-align
          +       * 
          + * + * V_CENTER = 2; + */ + V_CENTER(2), + /** + *
          +       * Bottom-align
          +       * 
          + * + * V_BOTTOM = 3; + */ + V_BOTTOM(3), + UNRECOGNIZED(-1), + ; + + /** + *
          +       * No vertical alignment specified, will default to V_TOP
          +       * 
          + * + * VERTICAL_ALIGNMENT_UNSPECIFIED = 0; + */ + public static final int VERTICAL_ALIGNMENT_UNSPECIFIED_VALUE = 0; + /** + *
          +       * Top-align
          +       * 
          + * + * V_TOP = 1; + */ + public static final int V_TOP_VALUE = 1; + /** + *
          +       * Center-align
          +       * 
          + * + * V_CENTER = 2; + */ + public static final int V_CENTER_VALUE = 2; + /** + *
          +       * Bottom-align
          +       * 
          + * + * V_BOTTOM = 3; + */ + public static final int V_BOTTOM_VALUE = 3; + + + 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 VerticalAlignment 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 VerticalAlignment forNumber(int value) { + switch (value) { + case 0: return VERTICAL_ALIGNMENT_UNSPECIFIED; + case 1: return V_TOP; + case 2: return V_CENTER; + case 3: return V_BOTTOM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + VerticalAlignment> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VerticalAlignment findValueByNumber(int number) { + return VerticalAlignment.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.Text.TextStyle.getDescriptor().getEnumTypes().get(1); + } + + private static final VerticalAlignment[] VALUES = values(); + + public static VerticalAlignment 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 VerticalAlignment(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment) + } + + /** + *
          +     * Specifies padding size around a text widget
          +     * 
          + * + * Protobuf enum {@code google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize} + */ + public enum PaddingSize + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
          +       * No padding size specified, will default to P_EXTRA_SMALL
          +       * 
          + * + * PADDING_SIZE_UNSPECIFIED = 0; + */ + PADDING_SIZE_UNSPECIFIED(0), + /** + *
          +       * Extra small padding
          +       * 
          + * + * P_EXTRA_SMALL = 1; + */ + P_EXTRA_SMALL(1), + /** + *
          +       * Small padding
          +       * 
          + * + * P_SMALL = 2; + */ + P_SMALL(2), + /** + *
          +       * Medium padding
          +       * 
          + * + * P_MEDIUM = 3; + */ + P_MEDIUM(3), + /** + *
          +       * Large padding
          +       * 
          + * + * P_LARGE = 4; + */ + P_LARGE(4), + /** + *
          +       * Extra large padding
          +       * 
          + * + * P_EXTRA_LARGE = 5; + */ + P_EXTRA_LARGE(5), + UNRECOGNIZED(-1), + ; + + /** + *
          +       * No padding size specified, will default to P_EXTRA_SMALL
          +       * 
          + * + * PADDING_SIZE_UNSPECIFIED = 0; + */ + public static final int PADDING_SIZE_UNSPECIFIED_VALUE = 0; + /** + *
          +       * Extra small padding
          +       * 
          + * + * P_EXTRA_SMALL = 1; + */ + public static final int P_EXTRA_SMALL_VALUE = 1; + /** + *
          +       * Small padding
          +       * 
          + * + * P_SMALL = 2; + */ + public static final int P_SMALL_VALUE = 2; + /** + *
          +       * Medium padding
          +       * 
          + * + * P_MEDIUM = 3; + */ + public static final int P_MEDIUM_VALUE = 3; + /** + *
          +       * Large padding
          +       * 
          + * + * P_LARGE = 4; + */ + public static final int P_LARGE_VALUE = 4; + /** + *
          +       * Extra large padding
          +       * 
          + * + * P_EXTRA_LARGE = 5; + */ + public static final int P_EXTRA_LARGE_VALUE = 5; + + + 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 PaddingSize 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 PaddingSize forNumber(int value) { + switch (value) { + case 0: return PADDING_SIZE_UNSPECIFIED; + case 1: return P_EXTRA_SMALL; + case 2: return P_SMALL; + case 3: return P_MEDIUM; + case 4: return P_LARGE; + case 5: return P_EXTRA_LARGE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + PaddingSize> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PaddingSize findValueByNumber(int number) { + return PaddingSize.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.Text.TextStyle.getDescriptor().getEnumTypes().get(2); + } + + private static final PaddingSize[] VALUES = values(); + + public static PaddingSize 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 PaddingSize(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize) + } + + /** + *
          +     * Specifies a font size for the title and content of a text widget
          +     * 
          + * + * Protobuf enum {@code google.monitoring.dashboard.v1.Text.TextStyle.FontSize} + */ + public enum FontSize + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
          +       * No font size specified, will default to FS_LARGE
          +       * 
          + * + * FONT_SIZE_UNSPECIFIED = 0; + */ + FONT_SIZE_UNSPECIFIED(0), + /** + *
          +       * Extra small font size
          +       * 
          + * + * FS_EXTRA_SMALL = 1; + */ + FS_EXTRA_SMALL(1), + /** + *
          +       * Small font size
          +       * 
          + * + * FS_SMALL = 2; + */ + FS_SMALL(2), + /** + *
          +       * Medium font size
          +       * 
          + * + * FS_MEDIUM = 3; + */ + FS_MEDIUM(3), + /** + *
          +       * Large font size
          +       * 
          + * + * FS_LARGE = 4; + */ + FS_LARGE(4), + /** + *
          +       * Extra large font size
          +       * 
          + * + * FS_EXTRA_LARGE = 5; + */ + FS_EXTRA_LARGE(5), + UNRECOGNIZED(-1), + ; + + /** + *
          +       * No font size specified, will default to FS_LARGE
          +       * 
          + * + * FONT_SIZE_UNSPECIFIED = 0; + */ + public static final int FONT_SIZE_UNSPECIFIED_VALUE = 0; + /** + *
          +       * Extra small font size
          +       * 
          + * + * FS_EXTRA_SMALL = 1; + */ + public static final int FS_EXTRA_SMALL_VALUE = 1; + /** + *
          +       * Small font size
          +       * 
          + * + * FS_SMALL = 2; + */ + public static final int FS_SMALL_VALUE = 2; + /** + *
          +       * Medium font size
          +       * 
          + * + * FS_MEDIUM = 3; + */ + public static final int FS_MEDIUM_VALUE = 3; + /** + *
          +       * Large font size
          +       * 
          + * + * FS_LARGE = 4; + */ + public static final int FS_LARGE_VALUE = 4; + /** + *
          +       * Extra large font size
          +       * 
          + * + * FS_EXTRA_LARGE = 5; + */ + public static final int FS_EXTRA_LARGE_VALUE = 5; + + + 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 FontSize 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 FontSize forNumber(int value) { + switch (value) { + case 0: return FONT_SIZE_UNSPECIFIED; + case 1: return FS_EXTRA_SMALL; + case 2: return FS_SMALL; + case 3: return FS_MEDIUM; + case 4: return FS_LARGE; + case 5: return FS_EXTRA_LARGE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FontSize> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FontSize findValueByNumber(int number) { + return FontSize.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.Text.TextStyle.getDescriptor().getEnumTypes().get(3); + } + + private static final FontSize[] VALUES = values(); + + public static FontSize 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 FontSize(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.Text.TextStyle.FontSize) + } + + /** + *
          +     * Specifies where a visual pointer is placed on a text widget (also
          +     * sometimes called a "tail")
          +     * 
          + * + * Protobuf enum {@code google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation} + */ + public enum PointerLocation + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
          +       * No visual pointer
          +       * 
          + * + * POINTER_LOCATION_UNSPECIFIED = 0; + */ + POINTER_LOCATION_UNSPECIFIED(0), + /** + *
          +       * Placed in the middle of the top of the widget
          +       * 
          + * + * PL_TOP = 1; + */ + PL_TOP(1), + /** + *
          +       * Placed in the middle of the right side of the widget
          +       * 
          + * + * PL_RIGHT = 2; + */ + PL_RIGHT(2), + /** + *
          +       * Placed in the middle of the bottom of the widget
          +       * 
          + * + * PL_BOTTOM = 3; + */ + PL_BOTTOM(3), + /** + *
          +       * Placed in the middle of the left side of the widget
          +       * 
          + * + * PL_LEFT = 4; + */ + PL_LEFT(4), + /** + *
          +       * Placed on the left side of the top of the widget
          +       * 
          + * + * PL_TOP_LEFT = 5; + */ + PL_TOP_LEFT(5), + /** + *
          +       * Placed on the right side of the top of the widget
          +       * 
          + * + * PL_TOP_RIGHT = 6; + */ + PL_TOP_RIGHT(6), + /** + *
          +       * Placed on the top of the right side of the widget
          +       * 
          + * + * PL_RIGHT_TOP = 7; + */ + PL_RIGHT_TOP(7), + /** + *
          +       * Placed on the bottom of the right side of the widget
          +       * 
          + * + * PL_RIGHT_BOTTOM = 8; + */ + PL_RIGHT_BOTTOM(8), + /** + *
          +       * Placed on the right side of the bottom of the widget
          +       * 
          + * + * PL_BOTTOM_RIGHT = 9; + */ + PL_BOTTOM_RIGHT(9), + /** + *
          +       * Placed on the left side of the bottom of the widget
          +       * 
          + * + * PL_BOTTOM_LEFT = 10; + */ + PL_BOTTOM_LEFT(10), + /** + *
          +       * Placed on the bottom of the left side of the widget
          +       * 
          + * + * PL_LEFT_BOTTOM = 11; + */ + PL_LEFT_BOTTOM(11), + /** + *
          +       * Placed on the top of the left side of the widget
          +       * 
          + * + * PL_LEFT_TOP = 12; + */ + PL_LEFT_TOP(12), + UNRECOGNIZED(-1), + ; + + /** + *
          +       * No visual pointer
          +       * 
          + * + * POINTER_LOCATION_UNSPECIFIED = 0; + */ + public static final int POINTER_LOCATION_UNSPECIFIED_VALUE = 0; + /** + *
          +       * Placed in the middle of the top of the widget
          +       * 
          + * + * PL_TOP = 1; + */ + public static final int PL_TOP_VALUE = 1; + /** + *
          +       * Placed in the middle of the right side of the widget
          +       * 
          + * + * PL_RIGHT = 2; + */ + public static final int PL_RIGHT_VALUE = 2; + /** + *
          +       * Placed in the middle of the bottom of the widget
          +       * 
          + * + * PL_BOTTOM = 3; + */ + public static final int PL_BOTTOM_VALUE = 3; + /** + *
          +       * Placed in the middle of the left side of the widget
          +       * 
          + * + * PL_LEFT = 4; + */ + public static final int PL_LEFT_VALUE = 4; + /** + *
          +       * Placed on the left side of the top of the widget
          +       * 
          + * + * PL_TOP_LEFT = 5; + */ + public static final int PL_TOP_LEFT_VALUE = 5; + /** + *
          +       * Placed on the right side of the top of the widget
          +       * 
          + * + * PL_TOP_RIGHT = 6; + */ + public static final int PL_TOP_RIGHT_VALUE = 6; + /** + *
          +       * Placed on the top of the right side of the widget
          +       * 
          + * + * PL_RIGHT_TOP = 7; + */ + public static final int PL_RIGHT_TOP_VALUE = 7; + /** + *
          +       * Placed on the bottom of the right side of the widget
          +       * 
          + * + * PL_RIGHT_BOTTOM = 8; + */ + public static final int PL_RIGHT_BOTTOM_VALUE = 8; + /** + *
          +       * Placed on the right side of the bottom of the widget
          +       * 
          + * + * PL_BOTTOM_RIGHT = 9; + */ + public static final int PL_BOTTOM_RIGHT_VALUE = 9; + /** + *
          +       * Placed on the left side of the bottom of the widget
          +       * 
          + * + * PL_BOTTOM_LEFT = 10; + */ + public static final int PL_BOTTOM_LEFT_VALUE = 10; + /** + *
          +       * Placed on the bottom of the left side of the widget
          +       * 
          + * + * PL_LEFT_BOTTOM = 11; + */ + public static final int PL_LEFT_BOTTOM_VALUE = 11; + /** + *
          +       * Placed on the top of the left side of the widget
          +       * 
          + * + * PL_LEFT_TOP = 12; + */ + public static final int PL_LEFT_TOP_VALUE = 12; + + + 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 PointerLocation 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 PointerLocation forNumber(int value) { + switch (value) { + case 0: return POINTER_LOCATION_UNSPECIFIED; + case 1: return PL_TOP; + case 2: return PL_RIGHT; + case 3: return PL_BOTTOM; + case 4: return PL_LEFT; + case 5: return PL_TOP_LEFT; + case 6: return PL_TOP_RIGHT; + case 7: return PL_RIGHT_TOP; + case 8: return PL_RIGHT_BOTTOM; + case 9: return PL_BOTTOM_RIGHT; + case 10: return PL_BOTTOM_LEFT; + case 11: return PL_LEFT_BOTTOM; + case 12: return PL_LEFT_TOP; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + PointerLocation> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PointerLocation findValueByNumber(int number) { + return PointerLocation.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.Text.TextStyle.getDescriptor().getEnumTypes().get(4); + } + + private static final PointerLocation[] VALUES = values(); + + public static PointerLocation 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 PointerLocation(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation) + } + + public static final int BACKGROUND_COLOR_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object backgroundColor_ = ""; + /** + *
          +     * The background color as a hex string. "#RRGGBB" or "#RGB"
          +     * 
          + * + * string background_color = 1; + * @return The backgroundColor. + */ + @java.lang.Override + public java.lang.String getBackgroundColor() { + java.lang.Object ref = backgroundColor_; + 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(); + backgroundColor_ = s; + return s; + } + } + /** + *
          +     * The background color as a hex string. "#RRGGBB" or "#RGB"
          +     * 
          + * + * string background_color = 1; + * @return The bytes for backgroundColor. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBackgroundColorBytes() { + java.lang.Object ref = backgroundColor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + backgroundColor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEXT_COLOR_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object textColor_ = ""; + /** + *
          +     * The text color as a hex string. "#RRGGBB" or "#RGB"
          +     * 
          + * + * string text_color = 2; + * @return The textColor. + */ + @java.lang.Override + public java.lang.String getTextColor() { + java.lang.Object ref = textColor_; + 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(); + textColor_ = s; + return s; + } + } + /** + *
          +     * The text color as a hex string. "#RRGGBB" or "#RGB"
          +     * 
          + * + * string text_color = 2; + * @return The bytes for textColor. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTextColorBytes() { + java.lang.Object ref = textColor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + textColor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HORIZONTAL_ALIGNMENT_FIELD_NUMBER = 3; + private int horizontalAlignment_ = 0; + /** + *
          +     * The horizontal alignment of both the title and content
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * @return The enum numeric value on the wire for horizontalAlignment. + */ + @java.lang.Override public int getHorizontalAlignmentValue() { + return horizontalAlignment_; + } + /** + *
          +     * The horizontal alignment of both the title and content
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * @return The horizontalAlignment. + */ + @java.lang.Override public com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment getHorizontalAlignment() { + com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment result = com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment.forNumber(horizontalAlignment_); + return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment.UNRECOGNIZED : result; + } + + public static final int VERTICAL_ALIGNMENT_FIELD_NUMBER = 4; + private int verticalAlignment_ = 0; + /** + *
          +     * The vertical alignment of both the title and content
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * @return The enum numeric value on the wire for verticalAlignment. + */ + @java.lang.Override public int getVerticalAlignmentValue() { + return verticalAlignment_; + } + /** + *
          +     * The vertical alignment of both the title and content
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * @return The verticalAlignment. + */ + @java.lang.Override public com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment getVerticalAlignment() { + com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment result = com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment.forNumber(verticalAlignment_); + return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment.UNRECOGNIZED : result; + } + + public static final int PADDING_FIELD_NUMBER = 5; + private int padding_ = 0; + /** + *
          +     * The amount of padding around the widget
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * @return The enum numeric value on the wire for padding. + */ + @java.lang.Override public int getPaddingValue() { + return padding_; + } + /** + *
          +     * The amount of padding around the widget
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * @return The padding. + */ + @java.lang.Override public com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize getPadding() { + com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize result = com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.forNumber(padding_); + return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.UNRECOGNIZED : result; + } + + public static final int FONT_SIZE_FIELD_NUMBER = 6; + private int fontSize_ = 0; + /** + *
          +     * Font sizes for both the title and content. The title will still be larger
          +     * relative to the content.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * @return The enum numeric value on the wire for fontSize. + */ + @java.lang.Override public int getFontSizeValue() { + return fontSize_; + } + /** + *
          +     * Font sizes for both the title and content. The title will still be larger
          +     * relative to the content.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * @return The fontSize. + */ + @java.lang.Override public com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize getFontSize() { + com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize result = com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.forNumber(fontSize_); + return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.UNRECOGNIZED : result; + } + + public static final int POINTER_LOCATION_FIELD_NUMBER = 7; + private int pointerLocation_ = 0; + /** + *
          +     * The pointer location for this widget (also sometimes called a "tail")
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * @return The enum numeric value on the wire for pointerLocation. + */ + @java.lang.Override public int getPointerLocationValue() { + return pointerLocation_; + } + /** + *
          +     * The pointer location for this widget (also sometimes called a "tail")
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * @return The pointerLocation. + */ + @java.lang.Override public com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation getPointerLocation() { + com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation result = com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation.forNumber(pointerLocation_); + return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation.UNRECOGNIZED : result; + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backgroundColor_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, backgroundColor_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(textColor_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, textColor_); + } + if (horizontalAlignment_ != com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment.HORIZONTAL_ALIGNMENT_UNSPECIFIED.getNumber()) { + output.writeEnum(3, horizontalAlignment_); + } + if (verticalAlignment_ != com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment.VERTICAL_ALIGNMENT_UNSPECIFIED.getNumber()) { + output.writeEnum(4, verticalAlignment_); + } + if (padding_ != com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.PADDING_SIZE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, padding_); + } + if (fontSize_ != com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.FONT_SIZE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, fontSize_); + } + if (pointerLocation_ != com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation.POINTER_LOCATION_UNSPECIFIED.getNumber()) { + output.writeEnum(7, pointerLocation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backgroundColor_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, backgroundColor_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(textColor_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, textColor_); + } + if (horizontalAlignment_ != com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment.HORIZONTAL_ALIGNMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, horizontalAlignment_); + } + if (verticalAlignment_ != com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment.VERTICAL_ALIGNMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, verticalAlignment_); + } + if (padding_ != com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.PADDING_SIZE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, padding_); + } + if (fontSize_ != com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.FONT_SIZE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, fontSize_); + } + if (pointerLocation_ != com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation.POINTER_LOCATION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, pointerLocation_); + } + 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.Text.TextStyle)) { + return super.equals(obj); + } + com.google.monitoring.dashboard.v1.Text.TextStyle other = (com.google.monitoring.dashboard.v1.Text.TextStyle) obj; + + if (!getBackgroundColor() + .equals(other.getBackgroundColor())) return false; + if (!getTextColor() + .equals(other.getTextColor())) return false; + if (horizontalAlignment_ != other.horizontalAlignment_) return false; + if (verticalAlignment_ != other.verticalAlignment_) return false; + if (padding_ != other.padding_) return false; + if (fontSize_ != other.fontSize_) return false; + if (pointerLocation_ != other.pointerLocation_) 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(); + hash = (37 * hash) + BACKGROUND_COLOR_FIELD_NUMBER; + hash = (53 * hash) + getBackgroundColor().hashCode(); + hash = (37 * hash) + TEXT_COLOR_FIELD_NUMBER; + hash = (53 * hash) + getTextColor().hashCode(); + hash = (37 * hash) + HORIZONTAL_ALIGNMENT_FIELD_NUMBER; + hash = (53 * hash) + horizontalAlignment_; + hash = (37 * hash) + VERTICAL_ALIGNMENT_FIELD_NUMBER; + hash = (53 * hash) + verticalAlignment_; + hash = (37 * hash) + PADDING_FIELD_NUMBER; + hash = (53 * hash) + padding_; + hash = (37 * hash) + FONT_SIZE_FIELD_NUMBER; + hash = (53 * hash) + fontSize_; + hash = (37 * hash) + POINTER_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + pointerLocation_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.dashboard.v1.Text.TextStyle parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.Text.TextStyle 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.Text.TextStyle parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.Text.TextStyle 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.Text.TextStyle parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.Text.TextStyle 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.Text.TextStyle parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.dashboard.v1.Text.TextStyle 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.Text.TextStyle parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.Text.TextStyle 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.Text.TextStyle 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.Text.TextStyle 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.Text.TextStyle 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; + } + /** + *
          +     * Properties that determine how the title and content are styled
          +     * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.Text.TextStyle} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Text.TextStyle) + com.google.monitoring.dashboard.v1.Text.TextStyleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_TextStyle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.Text.TextStyle.class, com.google.monitoring.dashboard.v1.Text.TextStyle.Builder.class); + } + + // Construct using com.google.monitoring.dashboard.v1.Text.TextStyle.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + backgroundColor_ = ""; + textColor_ = ""; + horizontalAlignment_ = 0; + verticalAlignment_ = 0; + padding_ = 0; + fontSize_ = 0; + pointerLocation_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text.TextStyle getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text.TextStyle build() { + com.google.monitoring.dashboard.v1.Text.TextStyle result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text.TextStyle buildPartial() { + com.google.monitoring.dashboard.v1.Text.TextStyle result = new com.google.monitoring.dashboard.v1.Text.TextStyle(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.monitoring.dashboard.v1.Text.TextStyle result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.backgroundColor_ = backgroundColor_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.textColor_ = textColor_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.horizontalAlignment_ = horizontalAlignment_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.verticalAlignment_ = verticalAlignment_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.padding_ = padding_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.fontSize_ = fontSize_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pointerLocation_ = pointerLocation_; + } + } + + @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.Text.TextStyle) { + return mergeFrom((com.google.monitoring.dashboard.v1.Text.TextStyle)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.dashboard.v1.Text.TextStyle other) { + if (other == com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance()) return this; + if (!other.getBackgroundColor().isEmpty()) { + backgroundColor_ = other.backgroundColor_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTextColor().isEmpty()) { + textColor_ = other.textColor_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.horizontalAlignment_ != 0) { + setHorizontalAlignmentValue(other.getHorizontalAlignmentValue()); + } + if (other.verticalAlignment_ != 0) { + setVerticalAlignmentValue(other.getVerticalAlignmentValue()); + } + if (other.padding_ != 0) { + setPaddingValue(other.getPaddingValue()); + } + if (other.fontSize_ != 0) { + setFontSizeValue(other.getFontSizeValue()); + } + if (other.pointerLocation_ != 0) { + setPointerLocationValue(other.getPointerLocationValue()); + } + 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: { + backgroundColor_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + textColor_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + horizontalAlignment_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + verticalAlignment_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + padding_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + fontSize_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + pointerLocation_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + 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.lang.Object backgroundColor_ = ""; + /** + *
          +       * The background color as a hex string. "#RRGGBB" or "#RGB"
          +       * 
          + * + * string background_color = 1; + * @return The backgroundColor. + */ + public java.lang.String getBackgroundColor() { + java.lang.Object ref = backgroundColor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backgroundColor_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
          +       * The background color as a hex string. "#RRGGBB" or "#RGB"
          +       * 
          + * + * string background_color = 1; + * @return The bytes for backgroundColor. + */ + public com.google.protobuf.ByteString + getBackgroundColorBytes() { + java.lang.Object ref = backgroundColor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + backgroundColor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
          +       * The background color as a hex string. "#RRGGBB" or "#RGB"
          +       * 
          + * + * string background_color = 1; + * @param value The backgroundColor to set. + * @return This builder for chaining. + */ + public Builder setBackgroundColor( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + backgroundColor_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
          +       * The background color as a hex string. "#RRGGBB" or "#RGB"
          +       * 
          + * + * string background_color = 1; + * @return This builder for chaining. + */ + public Builder clearBackgroundColor() { + backgroundColor_ = getDefaultInstance().getBackgroundColor(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
          +       * The background color as a hex string. "#RRGGBB" or "#RGB"
          +       * 
          + * + * string background_color = 1; + * @param value The bytes for backgroundColor to set. + * @return This builder for chaining. + */ + public Builder setBackgroundColorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + backgroundColor_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object textColor_ = ""; + /** + *
          +       * The text color as a hex string. "#RRGGBB" or "#RGB"
          +       * 
          + * + * string text_color = 2; + * @return The textColor. + */ + public java.lang.String getTextColor() { + java.lang.Object ref = textColor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + textColor_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
          +       * The text color as a hex string. "#RRGGBB" or "#RGB"
          +       * 
          + * + * string text_color = 2; + * @return The bytes for textColor. + */ + public com.google.protobuf.ByteString + getTextColorBytes() { + java.lang.Object ref = textColor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + textColor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
          +       * The text color as a hex string. "#RRGGBB" or "#RGB"
          +       * 
          + * + * string text_color = 2; + * @param value The textColor to set. + * @return This builder for chaining. + */ + public Builder setTextColor( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + textColor_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
          +       * The text color as a hex string. "#RRGGBB" or "#RGB"
          +       * 
          + * + * string text_color = 2; + * @return This builder for chaining. + */ + public Builder clearTextColor() { + textColor_ = getDefaultInstance().getTextColor(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
          +       * The text color as a hex string. "#RRGGBB" or "#RGB"
          +       * 
          + * + * string text_color = 2; + * @param value The bytes for textColor to set. + * @return This builder for chaining. + */ + public Builder setTextColorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + textColor_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int horizontalAlignment_ = 0; + /** + *
          +       * The horizontal alignment of both the title and content
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * @return The enum numeric value on the wire for horizontalAlignment. + */ + @java.lang.Override public int getHorizontalAlignmentValue() { + return horizontalAlignment_; + } + /** + *
          +       * The horizontal alignment of both the title and content
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * @param value The enum numeric value on the wire for horizontalAlignment to set. + * @return This builder for chaining. + */ + public Builder setHorizontalAlignmentValue(int value) { + horizontalAlignment_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
          +       * The horizontal alignment of both the title and content
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * @return The horizontalAlignment. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment getHorizontalAlignment() { + com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment result = com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment.forNumber(horizontalAlignment_); + return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment.UNRECOGNIZED : result; + } + /** + *
          +       * The horizontal alignment of both the title and content
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * @param value The horizontalAlignment to set. + * @return This builder for chaining. + */ + public Builder setHorizontalAlignment(com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + horizontalAlignment_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
          +       * The horizontal alignment of both the title and content
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * @return This builder for chaining. + */ + public Builder clearHorizontalAlignment() { + bitField0_ = (bitField0_ & ~0x00000004); + horizontalAlignment_ = 0; + onChanged(); + return this; + } + + private int verticalAlignment_ = 0; + /** + *
          +       * The vertical alignment of both the title and content
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * @return The enum numeric value on the wire for verticalAlignment. + */ + @java.lang.Override public int getVerticalAlignmentValue() { + return verticalAlignment_; + } + /** + *
          +       * The vertical alignment of both the title and content
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * @param value The enum numeric value on the wire for verticalAlignment to set. + * @return This builder for chaining. + */ + public Builder setVerticalAlignmentValue(int value) { + verticalAlignment_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
          +       * The vertical alignment of both the title and content
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * @return The verticalAlignment. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment getVerticalAlignment() { + com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment result = com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment.forNumber(verticalAlignment_); + return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment.UNRECOGNIZED : result; + } + /** + *
          +       * The vertical alignment of both the title and content
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * @param value The verticalAlignment to set. + * @return This builder for chaining. + */ + public Builder setVerticalAlignment(com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + verticalAlignment_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
          +       * The vertical alignment of both the title and content
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * @return This builder for chaining. + */ + public Builder clearVerticalAlignment() { + bitField0_ = (bitField0_ & ~0x00000008); + verticalAlignment_ = 0; + onChanged(); + return this; + } + + private int padding_ = 0; + /** + *
          +       * The amount of padding around the widget
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * @return The enum numeric value on the wire for padding. + */ + @java.lang.Override public int getPaddingValue() { + return padding_; + } + /** + *
          +       * The amount of padding around the widget
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * @param value The enum numeric value on the wire for padding to set. + * @return This builder for chaining. + */ + public Builder setPaddingValue(int value) { + padding_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
          +       * The amount of padding around the widget
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * @return The padding. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize getPadding() { + com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize result = com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.forNumber(padding_); + return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.UNRECOGNIZED : result; + } + /** + *
          +       * The amount of padding around the widget
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * @param value The padding to set. + * @return This builder for chaining. + */ + public Builder setPadding(com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + padding_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
          +       * The amount of padding around the widget
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * @return This builder for chaining. + */ + public Builder clearPadding() { + bitField0_ = (bitField0_ & ~0x00000010); + padding_ = 0; + onChanged(); + return this; + } + + private int fontSize_ = 0; + /** + *
          +       * Font sizes for both the title and content. The title will still be larger
          +       * relative to the content.
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * @return The enum numeric value on the wire for fontSize. + */ + @java.lang.Override public int getFontSizeValue() { + return fontSize_; + } + /** + *
          +       * Font sizes for both the title and content. The title will still be larger
          +       * relative to the content.
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * @param value The enum numeric value on the wire for fontSize to set. + * @return This builder for chaining. + */ + public Builder setFontSizeValue(int value) { + fontSize_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
          +       * Font sizes for both the title and content. The title will still be larger
          +       * relative to the content.
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * @return The fontSize. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize getFontSize() { + com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize result = com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.forNumber(fontSize_); + return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.UNRECOGNIZED : result; + } + /** + *
          +       * Font sizes for both the title and content. The title will still be larger
          +       * relative to the content.
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * @param value The fontSize to set. + * @return This builder for chaining. + */ + public Builder setFontSize(com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + fontSize_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
          +       * Font sizes for both the title and content. The title will still be larger
          +       * relative to the content.
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * @return This builder for chaining. + */ + public Builder clearFontSize() { + bitField0_ = (bitField0_ & ~0x00000020); + fontSize_ = 0; + onChanged(); + return this; + } + + private int pointerLocation_ = 0; + /** + *
          +       * The pointer location for this widget (also sometimes called a "tail")
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * @return The enum numeric value on the wire for pointerLocation. + */ + @java.lang.Override public int getPointerLocationValue() { + return pointerLocation_; + } + /** + *
          +       * The pointer location for this widget (also sometimes called a "tail")
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * @param value The enum numeric value on the wire for pointerLocation to set. + * @return This builder for chaining. + */ + public Builder setPointerLocationValue(int value) { + pointerLocation_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
          +       * The pointer location for this widget (also sometimes called a "tail")
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * @return The pointerLocation. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation getPointerLocation() { + com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation result = com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation.forNumber(pointerLocation_); + return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation.UNRECOGNIZED : result; + } + /** + *
          +       * The pointer location for this widget (also sometimes called a "tail")
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * @param value The pointerLocation to set. + * @return This builder for chaining. + */ + public Builder setPointerLocation(com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + pointerLocation_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
          +       * The pointer location for this widget (also sometimes called a "tail")
          +       * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * @return This builder for chaining. + */ + public Builder clearPointerLocation() { + bitField0_ = (bitField0_ & ~0x00000040); + pointerLocation_ = 0; + 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.Text.TextStyle) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Text.TextStyle) + private static final com.google.monitoring.dashboard.v1.Text.TextStyle DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Text.TextStyle(); + } + + public static com.google.monitoring.dashboard.v1.Text.TextStyle getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextStyle 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.Text.TextStyle getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int CONTENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; + /** + *
          +   * The text content to be displayed.
          +   * 
          + * + * string content = 1; + * @return The content. + */ + @java.lang.Override + public java.lang.String getContent() { + java.lang.Object ref = content_; + 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(); + content_ = s; + return s; + } + } + /** + *
          +   * The text content to be displayed.
          +   * 
          + * + * string content = 1; + * @return The bytes for content. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORMAT_FIELD_NUMBER = 2; + private int format_ = 0; + /** + *
          +   * How the text content is formatted.
          +   * 
          + * + * .google.monitoring.dashboard.v1.Text.Format format = 2; + * @return The enum numeric value on the wire for format. + */ + @java.lang.Override public int getFormatValue() { + return format_; + } + /** + *
          +   * How the text content is formatted.
          +   * 
          + * + * .google.monitoring.dashboard.v1.Text.Format format = 2; + * @return The format. + */ + @java.lang.Override public com.google.monitoring.dashboard.v1.Text.Format getFormat() { + com.google.monitoring.dashboard.v1.Text.Format result = com.google.monitoring.dashboard.v1.Text.Format.forNumber(format_); + return result == null ? com.google.monitoring.dashboard.v1.Text.Format.UNRECOGNIZED : result; + } + + public static final int STYLE_FIELD_NUMBER = 3; + private com.google.monitoring.dashboard.v1.Text.TextStyle style_; + /** + *
          +   * How the text is styled
          +   * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + * @return Whether the style field is set. + */ + @java.lang.Override + public boolean hasStyle() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
          +   * How the text is styled
          +   * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + * @return The style. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text.TextStyle getStyle() { + return style_ == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance() : style_; + } + /** + *
          +   * How the text is styled
          +   * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text.TextStyleOrBuilder getStyleOrBuilder() { + return style_ == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance() : style_; + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); + } + if (format_ != com.google.monitoring.dashboard.v1.Text.Format.FORMAT_UNSPECIFIED.getNumber()) { + output.writeEnum(2, format_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getStyle()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); + } + if (format_ != com.google.monitoring.dashboard.v1.Text.Format.FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, format_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStyle()); + } + 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.Text)) { + return super.equals(obj); + } + com.google.monitoring.dashboard.v1.Text other = (com.google.monitoring.dashboard.v1.Text) obj; + + if (!getContent() + .equals(other.getContent())) return false; + if (format_ != other.format_) return false; + if (hasStyle() != other.hasStyle()) return false; + if (hasStyle()) { + if (!getStyle() + .equals(other.getStyle())) 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(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (37 * hash) + FORMAT_FIELD_NUMBER; + hash = (53 * hash) + format_; + if (hasStyle()) { + hash = (37 * hash) + STYLE_FIELD_NUMBER; + hash = (53 * hash) + getStyle().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.dashboard.v1.Text parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.Text 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.Text parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.Text 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.Text parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.Text 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.Text parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.dashboard.v1.Text 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.Text parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.Text 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.Text 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.Text 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.Text 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 widget that displays textual content.
          +   * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.Text} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Text) + com.google.monitoring.dashboard.v1.TextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.Text.class, com.google.monitoring.dashboard.v1.Text.Builder.class); + } + + // Construct using com.google.monitoring.dashboard.v1.Text.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStyleFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + content_ = ""; + format_ = 0; + style_ = null; + if (styleBuilder_ != null) { + styleBuilder_.dispose(); + styleBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_descriptor; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.Text.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text build() { + com.google.monitoring.dashboard.v1.Text result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text buildPartial() { + com.google.monitoring.dashboard.v1.Text result = new com.google.monitoring.dashboard.v1.Text(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.monitoring.dashboard.v1.Text result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.format_ = format_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.style_ = styleBuilder_ == null + ? style_ + : styleBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.Text) { + return mergeFrom((com.google.monitoring.dashboard.v1.Text)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.dashboard.v1.Text other) { + if (other == com.google.monitoring.dashboard.v1.Text.getDefaultInstance()) return this; + if (!other.getContent().isEmpty()) { + content_ = other.content_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.format_ != 0) { + setFormatValue(other.getFormatValue()); + } + if (other.hasStyle()) { + mergeStyle(other.getStyle()); + } + 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: { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + format_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getStyleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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.lang.Object content_ = ""; + /** + *
          +     * The text content to be displayed.
          +     * 
          + * + * string content = 1; + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
          +     * The text content to be displayed.
          +     * 
          + * + * string content = 1; + * @return The bytes for content. + */ + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
          +     * The text content to be displayed.
          +     * 
          + * + * string content = 1; + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + content_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
          +     * The text content to be displayed.
          +     * 
          + * + * string content = 1; + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
          +     * The text content to be displayed.
          +     * 
          + * + * string content = 1; + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int format_ = 0; + /** + *
          +     * How the text content is formatted.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.Format format = 2; + * @return The enum numeric value on the wire for format. + */ + @java.lang.Override public int getFormatValue() { + return format_; + } + /** + *
          +     * How the text content is formatted.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.Format format = 2; + * @param value The enum numeric value on the wire for format to set. + * @return This builder for chaining. + */ + public Builder setFormatValue(int value) { + format_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
          +     * How the text content is formatted.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.Format format = 2; + * @return The format. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text.Format getFormat() { + com.google.monitoring.dashboard.v1.Text.Format result = com.google.monitoring.dashboard.v1.Text.Format.forNumber(format_); + return result == null ? com.google.monitoring.dashboard.v1.Text.Format.UNRECOGNIZED : result; + } + /** + *
          +     * How the text content is formatted.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.Format format = 2; + * @param value The format to set. + * @return This builder for chaining. + */ + public Builder setFormat(com.google.monitoring.dashboard.v1.Text.Format value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + format_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
          +     * How the text content is formatted.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.Format format = 2; + * @return This builder for chaining. + */ + public Builder clearFormat() { + bitField0_ = (bitField0_ & ~0x00000002); + format_ = 0; + onChanged(); + return this; + } + + private com.google.monitoring.dashboard.v1.Text.TextStyle style_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Text.TextStyle, com.google.monitoring.dashboard.v1.Text.TextStyle.Builder, com.google.monitoring.dashboard.v1.Text.TextStyleOrBuilder> styleBuilder_; + /** + *
          +     * How the text is styled
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + * @return Whether the style field is set. + */ + public boolean hasStyle() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
          +     * How the text is styled
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + * @return The style. + */ + public com.google.monitoring.dashboard.v1.Text.TextStyle getStyle() { + if (styleBuilder_ == null) { + return style_ == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance() : style_; + } else { + return styleBuilder_.getMessage(); + } + } + /** + *
          +     * How the text is styled
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + */ + public Builder setStyle(com.google.monitoring.dashboard.v1.Text.TextStyle value) { + if (styleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + style_ = value; + } else { + styleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
          +     * How the text is styled
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + */ + public Builder setStyle( + com.google.monitoring.dashboard.v1.Text.TextStyle.Builder builderForValue) { + if (styleBuilder_ == null) { + style_ = builderForValue.build(); + } else { + styleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
          +     * How the text is styled
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + */ + public Builder mergeStyle(com.google.monitoring.dashboard.v1.Text.TextStyle value) { + if (styleBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + style_ != null && + style_ != com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance()) { + getStyleBuilder().mergeFrom(value); + } else { + style_ = value; + } + } else { + styleBuilder_.mergeFrom(value); + } + if (style_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
          +     * How the text is styled
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + */ + public Builder clearStyle() { + bitField0_ = (bitField0_ & ~0x00000004); + style_ = null; + if (styleBuilder_ != null) { + styleBuilder_.dispose(); + styleBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
          +     * How the text is styled
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + */ + public com.google.monitoring.dashboard.v1.Text.TextStyle.Builder getStyleBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStyleFieldBuilder().getBuilder(); + } + /** + *
          +     * How the text is styled
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + */ + public com.google.monitoring.dashboard.v1.Text.TextStyleOrBuilder getStyleOrBuilder() { + if (styleBuilder_ != null) { + return styleBuilder_.getMessageOrBuilder(); + } else { + return style_ == null ? + com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance() : style_; + } + } + /** + *
          +     * How the text is styled
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Text.TextStyle, com.google.monitoring.dashboard.v1.Text.TextStyle.Builder, com.google.monitoring.dashboard.v1.Text.TextStyleOrBuilder> + getStyleFieldBuilder() { + if (styleBuilder_ == null) { + styleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Text.TextStyle, com.google.monitoring.dashboard.v1.Text.TextStyle.Builder, com.google.monitoring.dashboard.v1.Text.TextStyleOrBuilder>( + getStyle(), + getParentForChildren(), + isClean()); + style_ = null; + } + return styleBuilder_; + } + @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.Text) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Text) + private static final com.google.monitoring.dashboard.v1.Text DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Text(); + } + + public static com.google.monitoring.dashboard.v1.Text getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Text 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.Text getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextOrBuilder.java similarity index 60% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextOrBuilder.java index e279b628cf12..917fb576296f 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextOrBuilder.java @@ -1,76 +1,76 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/text.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface TextOrBuilder - extends +public interface TextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Text) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * The text content to be displayed.
              * 
          * * string content = 1; - * * @return The content. */ java.lang.String getContent(); /** - * - * *
              * The text content to be displayed.
              * 
          * * string content = 1; - * * @return The bytes for content. */ - com.google.protobuf.ByteString getContentBytes(); + com.google.protobuf.ByteString + getContentBytes(); /** - * - * *
              * How the text content is formatted.
              * 
          * * .google.monitoring.dashboard.v1.Text.Format format = 2; - * * @return The enum numeric value on the wire for format. */ int getFormatValue(); /** - * - * *
              * How the text content is formatted.
              * 
          * * .google.monitoring.dashboard.v1.Text.Format format = 2; - * * @return The format. */ com.google.monitoring.dashboard.v1.Text.Format getFormat(); + + /** + *
          +   * How the text is styled
          +   * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + * @return Whether the style field is set. + */ + boolean hasStyle(); + /** + *
          +   * How the text is styled
          +   * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + * @return The style. + */ + com.google.monitoring.dashboard.v1.Text.TextStyle getStyle(); + /** + *
          +   * How the text is styled
          +   * 
          + * + * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + */ + com.google.monitoring.dashboard.v1.Text.TextStyleOrBuilder getStyleOrBuilder(); } diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextProto.java new file mode 100644 index 000000000000..10762c67cb9f --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextProto.java @@ -0,0 +1,101 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/text.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class TextProto { + private TextProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_Text_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_Text_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_Text_TextStyle_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/monitoring/dashboard/v1/text.pr" + + "oto\022\036google.monitoring.dashboard.v1\"\370\n\n\004" + + "Text\022\017\n\007content\030\001 \001(\t\022;\n\006format\030\002 \001(\0162+." + + "google.monitoring.dashboard.v1.Text.Form" + + "at\022=\n\005style\030\003 \001(\0132..google.monitoring.da" + + "shboard.v1.Text.TextStyle\032\251\t\n\tTextStyle\022" + + "\030\n\020background_color\030\001 \001(\t\022\022\n\ntext_color\030" + + "\002 \001(\t\022`\n\024horizontal_alignment\030\003 \001(\0162B.go" + + "ogle.monitoring.dashboard.v1.Text.TextSt" + + "yle.HorizontalAlignment\022\\\n\022vertical_alig" + + "nment\030\004 \001(\0162@.google.monitoring.dashboar" + + "d.v1.Text.TextStyle.VerticalAlignment\022K\n" + + "\007padding\030\005 \001(\0162:.google.monitoring.dashb" + + "oard.v1.Text.TextStyle.PaddingSize\022J\n\tfo" + + "nt_size\030\006 \001(\01627.google.monitoring.dashbo" + + "ard.v1.Text.TextStyle.FontSize\022X\n\020pointe" + + "r_location\030\007 \001(\0162>.google.monitoring.das" + + "hboard.v1.Text.TextStyle.PointerLocation" + + "\"b\n\023HorizontalAlignment\022$\n HORIZONTAL_AL" + + "IGNMENT_UNSPECIFIED\020\000\022\n\n\006H_LEFT\020\001\022\014\n\010H_C" + + "ENTER\020\002\022\013\n\007H_RIGHT\020\003\"^\n\021VerticalAlignmen" + + "t\022\"\n\036VERTICAL_ALIGNMENT_UNSPECIFIED\020\000\022\t\n" + + "\005V_TOP\020\001\022\014\n\010V_CENTER\020\002\022\014\n\010V_BOTTOM\020\003\"y\n\013" + + "PaddingSize\022\034\n\030PADDING_SIZE_UNSPECIFIED\020" + + "\000\022\021\n\rP_EXTRA_SMALL\020\001\022\013\n\007P_SMALL\020\002\022\014\n\010P_M" + + "EDIUM\020\003\022\013\n\007P_LARGE\020\004\022\021\n\rP_EXTRA_LARGE\020\005\"" + + "x\n\010FontSize\022\031\n\025FONT_SIZE_UNSPECIFIED\020\000\022\022" + + "\n\016FS_EXTRA_SMALL\020\001\022\014\n\010FS_SMALL\020\002\022\r\n\tFS_M" + + "EDIUM\020\003\022\014\n\010FS_LARGE\020\004\022\022\n\016FS_EXTRA_LARGE\020" + + "\005\"\201\002\n\017PointerLocation\022 \n\034POINTER_LOCATIO" + + "N_UNSPECIFIED\020\000\022\n\n\006PL_TOP\020\001\022\014\n\010PL_RIGHT\020" + + "\002\022\r\n\tPL_BOTTOM\020\003\022\013\n\007PL_LEFT\020\004\022\017\n\013PL_TOP_" + + "LEFT\020\005\022\020\n\014PL_TOP_RIGHT\020\006\022\020\n\014PL_RIGHT_TOP" + + "\020\007\022\023\n\017PL_RIGHT_BOTTOM\020\010\022\023\n\017PL_BOTTOM_RIG" + + "HT\020\t\022\022\n\016PL_BOTTOM_LEFT\020\n\022\022\n\016PL_LEFT_BOTT" + + "OM\020\013\022\017\n\013PL_LEFT_TOP\020\014\"7\n\006Format\022\026\n\022FORMA" + + "T_UNSPECIFIED\020\000\022\014\n\010MARKDOWN\020\001\022\007\n\003RAW\020\002B\362" + + "\001\n\"com.google.monitoring.dashboard.v1B\tT" + + "extProtoP\001ZFcloud.google.com/go/monitori" + + "ng/dashboard/apiv1/dashboardpb;dashboard" + + "pb\252\002$Google.Cloud.Monitoring.Dashboard.V" + + "1\312\002$Google\\Cloud\\Monitoring\\Dashboard\\V1" + + "\352\002(Google::Cloud::Monitoring::Dashboard:" + + ":V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_monitoring_dashboard_v1_Text_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_Text_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_Text_descriptor, + new java.lang.String[] { "Content", "Format", "Style", }); + internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor = + internal_static_google_monitoring_dashboard_v1_Text_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_dashboard_v1_Text_TextStyle_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor, + new java.lang.String[] { "BackgroundColor", "TextColor", "HorizontalAlignment", "VerticalAlignment", "Padding", "FontSize", "PointerLocation", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java similarity index 70% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java index b2a769368040..0cd6ccb7b602 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/metrics.proto @@ -20,24 +5,21 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * Defines a threshold for categorizing time series values.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.Threshold} */ -public final class Threshold extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Threshold extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Threshold) ThresholdOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Threshold.newBuilder() to construct. private Threshold(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Threshold() { label_ = ""; color_ = 0; @@ -47,28 +29,25 @@ private Threshold() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Threshold(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.MetricsProto - .internal_static_google_monitoring_dashboard_v1_Threshold_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_Threshold_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.MetricsProto - .internal_static_google_monitoring_dashboard_v1_Threshold_fieldAccessorTable + return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_Threshold_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.Threshold.class, - com.google.monitoring.dashboard.v1.Threshold.Builder.class); + com.google.monitoring.dashboard.v1.Threshold.class, com.google.monitoring.dashboard.v1.Threshold.Builder.class); } /** - * - * *
              * The color suggests an interpretation to the viewer when actual values cross
              * the threshold. Comments on each color provide UX guidance on how users can
          @@ -77,10 +56,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              *
              * Protobuf enum {@code google.monitoring.dashboard.v1.Threshold.Color}
              */
          -  public enum Color implements com.google.protobuf.ProtocolMessageEnum {
          +  public enum Color
          +      implements com.google.protobuf.ProtocolMessageEnum {
               /**
          -     *
          -     *
                * 
                * Color is unspecified. Not allowed in well-formed requests.
                * 
          @@ -89,8 +67,6 @@ public enum Color implements com.google.protobuf.ProtocolMessageEnum { */ COLOR_UNSPECIFIED(0), /** - * - * *
                * Crossing the threshold is "concerning" behavior.
                * 
          @@ -99,8 +75,6 @@ public enum Color implements com.google.protobuf.ProtocolMessageEnum { */ YELLOW(4), /** - * - * *
                * Crossing the threshold is "emergency" behavior.
                * 
          @@ -112,8 +86,6 @@ public enum Color implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                * Color is unspecified. Not allowed in well-formed requests.
                * 
          @@ -122,8 +94,6 @@ public enum Color implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COLOR_UNSPECIFIED_VALUE = 0; /** - * - * *
                * Crossing the threshold is "concerning" behavior.
                * 
          @@ -132,8 +102,6 @@ public enum Color implements com.google.protobuf.ProtocolMessageEnum { */ public static final int YELLOW_VALUE = 4; /** - * - * *
                * Crossing the threshold is "emergency" behavior.
                * 
          @@ -142,6 +110,7 @@ public enum Color implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RED_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -166,49 +135,49 @@ public static Color valueOf(int value) { */ public static Color forNumber(int value) { switch (value) { - case 0: - return COLOR_UNSPECIFIED; - case 4: - return YELLOW; - case 6: - return RED; - default: - return null; + case 0: return COLOR_UNSPECIFIED; + case 4: return YELLOW; + case 6: return RED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Color> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Color findValueByNumber(int number) { + return Color.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Color findValueByNumber(int number) { - return Color.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.monitoring.dashboard.v1.Threshold.getDescriptor().getEnumTypes().get(0); } private static final Color[] VALUES = values(); - public static Color valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Color valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -226,8 +195,6 @@ private Color(int value) { } /** - * - * *
              * Whether the threshold is considered crossed by an actual value above or
              * below its threshold value.
          @@ -235,10 +202,9 @@ private Color(int value) {
              *
              * Protobuf enum {@code google.monitoring.dashboard.v1.Threshold.Direction}
              */
          -  public enum Direction implements com.google.protobuf.ProtocolMessageEnum {
          +  public enum Direction
          +      implements com.google.protobuf.ProtocolMessageEnum {
               /**
          -     *
          -     *
                * 
                * Not allowed in well-formed requests.
                * 
          @@ -247,8 +213,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum { */ DIRECTION_UNSPECIFIED(0), /** - * - * *
                * The threshold will be considered crossed if the actual value is above
                * the threshold value.
          @@ -258,8 +222,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum {
                */
               ABOVE(1),
               /**
          -     *
          -     *
                * 
                * The threshold will be considered crossed if the actual value is below
                * the threshold value.
          @@ -272,8 +234,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum {
               ;
           
               /**
          -     *
          -     *
                * 
                * Not allowed in well-formed requests.
                * 
          @@ -282,8 +242,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DIRECTION_UNSPECIFIED_VALUE = 0; /** - * - * *
                * The threshold will be considered crossed if the actual value is above
                * the threshold value.
          @@ -293,8 +251,6 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int ABOVE_VALUE = 1;
               /**
          -     *
          -     *
                * 
                * The threshold will be considered crossed if the actual value is below
                * the threshold value.
          @@ -304,6 +260,7 @@ public enum Direction implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int BELOW_VALUE = 2;
           
          +
               public final int getNumber() {
                 if (this == UNRECOGNIZED) {
                   throw new java.lang.IllegalArgumentException(
          @@ -328,49 +285,49 @@ public static Direction valueOf(int value) {
                */
               public static Direction forNumber(int value) {
                 switch (value) {
          -        case 0:
          -          return DIRECTION_UNSPECIFIED;
          -        case 1:
          -          return ABOVE;
          -        case 2:
          -          return BELOW;
          -        default:
          -          return null;
          +        case 0: return DIRECTION_UNSPECIFIED;
          +        case 1: return ABOVE;
          +        case 2: return BELOW;
          +        default: return null;
                 }
               }
           
          -    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
          +    public static com.google.protobuf.Internal.EnumLiteMap
          +        internalGetValueMap() {
                 return internalValueMap;
               }
          +    private static final com.google.protobuf.Internal.EnumLiteMap<
          +        Direction> internalValueMap =
          +          new com.google.protobuf.Internal.EnumLiteMap() {
          +            public Direction findValueByNumber(int number) {
          +              return Direction.forNumber(number);
          +            }
          +          };
           
          -    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
          -        new com.google.protobuf.Internal.EnumLiteMap() {
          -          public Direction findValueByNumber(int number) {
          -            return Direction.forNumber(number);
          -          }
          -        };
          -
          -    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
          +    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() {
          +    public final com.google.protobuf.Descriptors.EnumDescriptor
          +        getDescriptorForType() {
                 return getDescriptor();
               }
          -
          -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
          +    public static final com.google.protobuf.Descriptors.EnumDescriptor
          +        getDescriptor() {
                 return com.google.monitoring.dashboard.v1.Threshold.getDescriptor().getEnumTypes().get(1);
               }
           
               private static final Direction[] VALUES = values();
           
          -    public static Direction valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          +    public static Direction valueOf(
          +        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                 if (desc.getType() != getDescriptor()) {
          -        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
          +        throw new java.lang.IllegalArgumentException(
          +          "EnumValueDescriptor is not for this type.");
                 }
                 if (desc.getIndex() == -1) {
                   return UNRECOGNIZED;
          @@ -388,18 +345,15 @@ private Direction(int value) {
             }
           
             /**
          -   *
          -   *
              * 
              * An axis identifier.
              * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.Threshold.TargetAxis} */ - public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { + public enum TargetAxis + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                * The target axis was not specified. Defaults to Y1.
                * 
          @@ -408,8 +362,6 @@ public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { */ TARGET_AXIS_UNSPECIFIED(0), /** - * - * *
                * The y_axis (the right axis of chart).
                * 
          @@ -418,8 +370,6 @@ public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { */ Y1(1), /** - * - * *
                * The y2_axis (the left axis of chart).
                * 
          @@ -431,8 +381,6 @@ public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                * The target axis was not specified. Defaults to Y1.
                * 
          @@ -441,8 +389,6 @@ public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TARGET_AXIS_UNSPECIFIED_VALUE = 0; /** - * - * *
                * The y_axis (the right axis of chart).
                * 
          @@ -451,8 +397,6 @@ public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { */ public static final int Y1_VALUE = 1; /** - * - * *
                * The y2_axis (the left axis of chart).
                * 
          @@ -461,6 +405,7 @@ public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { */ public static final int Y2_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -485,49 +430,49 @@ public static TargetAxis valueOf(int value) { */ public static TargetAxis forNumber(int value) { switch (value) { - case 0: - return TARGET_AXIS_UNSPECIFIED; - case 1: - return Y1; - case 2: - return Y2; - default: - return null; + case 0: return TARGET_AXIS_UNSPECIFIED; + case 1: return Y1; + case 2: return Y2; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + TargetAxis> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TargetAxis findValueByNumber(int number) { + return TargetAxis.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TargetAxis findValueByNumber(int number) { - return TargetAxis.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.monitoring.dashboard.v1.Threshold.getDescriptor().getEnumTypes().get(2); } private static final TargetAxis[] VALUES = values(); - public static TargetAxis valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TargetAxis valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -545,18 +490,14 @@ private TargetAxis(int value) { } public static final int LABEL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object label_ = ""; /** - * - * *
              * A label for the threshold.
              * 
          * * string label = 1; - * * @return The label. */ @java.lang.Override @@ -565,29 +506,29 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** - * - * *
              * A label for the threshold.
              * 
          * * string label = 1; - * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -598,15 +539,12 @@ public com.google.protobuf.ByteString getLabelBytes() { public static final int VALUE_FIELD_NUMBER = 2; private double value_ = 0D; /** - * - * *
              * The value of the threshold. The value should be defined in the native scale
              * of the metric.
              * 
          * * double value = 2; - * * @return The value. */ @java.lang.Override @@ -617,120 +555,86 @@ public double getValue() { public static final int COLOR_FIELD_NUMBER = 3; private int color_ = 0; /** - * - * *
              * The state color for this threshold. Color is not allowed in a XyChart.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; - * * @return The enum numeric value on the wire for color. */ - @java.lang.Override - public int getColorValue() { + @java.lang.Override public int getColorValue() { return color_; } /** - * - * *
              * The state color for this threshold. Color is not allowed in a XyChart.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; - * * @return The color. */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.Threshold.Color getColor() { - com.google.monitoring.dashboard.v1.Threshold.Color result = - com.google.monitoring.dashboard.v1.Threshold.Color.forNumber(color_); - return result == null - ? com.google.monitoring.dashboard.v1.Threshold.Color.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.dashboard.v1.Threshold.Color getColor() { + com.google.monitoring.dashboard.v1.Threshold.Color result = com.google.monitoring.dashboard.v1.Threshold.Color.forNumber(color_); + return result == null ? com.google.monitoring.dashboard.v1.Threshold.Color.UNRECOGNIZED : result; } public static final int DIRECTION_FIELD_NUMBER = 4; private int direction_ = 0; /** - * - * *
              * The direction for the current threshold. Direction is not allowed in a
              * XyChart.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; - * * @return The enum numeric value on the wire for direction. */ - @java.lang.Override - public int getDirectionValue() { + @java.lang.Override public int getDirectionValue() { return direction_; } /** - * - * *
              * The direction for the current threshold. Direction is not allowed in a
              * XyChart.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; - * * @return The direction. */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.Threshold.Direction getDirection() { - com.google.monitoring.dashboard.v1.Threshold.Direction result = - com.google.monitoring.dashboard.v1.Threshold.Direction.forNumber(direction_); - return result == null - ? com.google.monitoring.dashboard.v1.Threshold.Direction.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.dashboard.v1.Threshold.Direction getDirection() { + com.google.monitoring.dashboard.v1.Threshold.Direction result = com.google.monitoring.dashboard.v1.Threshold.Direction.forNumber(direction_); + return result == null ? com.google.monitoring.dashboard.v1.Threshold.Direction.UNRECOGNIZED : result; } public static final int TARGET_AXIS_FIELD_NUMBER = 5; private int targetAxis_ = 0; /** - * - * *
              * The target axis to use for plotting the threshold. Target axis is not
              * allowed in a Scorecard.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; - * * @return The enum numeric value on the wire for targetAxis. */ - @java.lang.Override - public int getTargetAxisValue() { + @java.lang.Override public int getTargetAxisValue() { return targetAxis_; } /** - * - * *
              * The target axis to use for plotting the threshold. Target axis is not
              * allowed in a Scorecard.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; - * * @return The targetAxis. */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.Threshold.TargetAxis getTargetAxis() { - com.google.monitoring.dashboard.v1.Threshold.TargetAxis result = - com.google.monitoring.dashboard.v1.Threshold.TargetAxis.forNumber(targetAxis_); - return result == null - ? com.google.monitoring.dashboard.v1.Threshold.TargetAxis.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.dashboard.v1.Threshold.TargetAxis getTargetAxis() { + com.google.monitoring.dashboard.v1.Threshold.TargetAxis result = com.google.monitoring.dashboard.v1.Threshold.TargetAxis.forNumber(targetAxis_); + return result == null ? com.google.monitoring.dashboard.v1.Threshold.TargetAxis.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -742,25 +646,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { output.writeDouble(2, value_); } - if (color_ - != com.google.monitoring.dashboard.v1.Threshold.Color.COLOR_UNSPECIFIED.getNumber()) { + if (color_ != com.google.monitoring.dashboard.v1.Threshold.Color.COLOR_UNSPECIFIED.getNumber()) { output.writeEnum(3, color_); } - if (direction_ - != com.google.monitoring.dashboard.v1.Threshold.Direction.DIRECTION_UNSPECIFIED - .getNumber()) { + if (direction_ != com.google.monitoring.dashboard.v1.Threshold.Direction.DIRECTION_UNSPECIFIED.getNumber()) { output.writeEnum(4, direction_); } - if (targetAxis_ - != com.google.monitoring.dashboard.v1.Threshold.TargetAxis.TARGET_AXIS_UNSPECIFIED - .getNumber()) { + if (targetAxis_ != com.google.monitoring.dashboard.v1.Threshold.TargetAxis.TARGET_AXIS_UNSPECIFIED.getNumber()) { output.writeEnum(5, targetAxis_); } getUnknownFields().writeTo(output); @@ -776,21 +676,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, value_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, value_); } - if (color_ - != com.google.monitoring.dashboard.v1.Threshold.Color.COLOR_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, color_); + if (color_ != com.google.monitoring.dashboard.v1.Threshold.Color.COLOR_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, color_); } - if (direction_ - != com.google.monitoring.dashboard.v1.Threshold.Direction.DIRECTION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, direction_); + if (direction_ != com.google.monitoring.dashboard.v1.Threshold.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, direction_); } - if (targetAxis_ - != com.google.monitoring.dashboard.v1.Threshold.TargetAxis.TARGET_AXIS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, targetAxis_); + if (targetAxis_ != com.google.monitoring.dashboard.v1.Threshold.TargetAxis.TARGET_AXIS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, targetAxis_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -800,17 +699,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.Threshold)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.Threshold other = - (com.google.monitoring.dashboard.v1.Threshold) obj; + com.google.monitoring.dashboard.v1.Threshold other = (com.google.monitoring.dashboard.v1.Threshold) obj; - if (!getLabel().equals(other.getLabel())) return false; + if (!getLabel() + .equals(other.getLabel())) return false; if (java.lang.Double.doubleToLongBits(getValue()) - != java.lang.Double.doubleToLongBits(other.getValue())) return false; + != java.lang.Double.doubleToLongBits( + other.getValue())) return false; if (color_ != other.color_) return false; if (direction_ != other.direction_) return false; if (targetAxis_ != other.targetAxis_) return false; @@ -828,9 +728,8 @@ public int hashCode() { hash = (37 * hash) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabel().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getValue())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValue())); hash = (37 * hash) + COLOR_FIELD_NUMBER; hash = (53 * hash) + color_; hash = (37 * hash) + DIRECTION_FIELD_NUMBER; @@ -842,136 +741,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.Threshold parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.Threshold parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.Threshold parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Threshold parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.Threshold 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.Threshold parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.Threshold parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Threshold parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.Threshold parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Threshold parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.Threshold parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.Threshold parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Threshold parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.Threshold parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.Threshold prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Defines a threshold for categorizing time series values.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.Threshold} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Threshold) com.google.monitoring.dashboard.v1.ThresholdOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.MetricsProto - .internal_static_google_monitoring_dashboard_v1_Threshold_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_Threshold_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.MetricsProto - .internal_static_google_monitoring_dashboard_v1_Threshold_fieldAccessorTable + return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_Threshold_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.Threshold.class, - com.google.monitoring.dashboard.v1.Threshold.Builder.class); + com.google.monitoring.dashboard.v1.Threshold.class, com.google.monitoring.dashboard.v1.Threshold.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.Threshold.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -985,9 +880,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.MetricsProto - .internal_static_google_monitoring_dashboard_v1_Threshold_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_Threshold_descriptor; } @java.lang.Override @@ -1006,11 +901,8 @@ public com.google.monitoring.dashboard.v1.Threshold build() { @java.lang.Override public com.google.monitoring.dashboard.v1.Threshold buildPartial() { - com.google.monitoring.dashboard.v1.Threshold result = - new com.google.monitoring.dashboard.v1.Threshold(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.dashboard.v1.Threshold result = new com.google.monitoring.dashboard.v1.Threshold(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1038,39 +930,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Threshold result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.Threshold) { - return mergeFrom((com.google.monitoring.dashboard.v1.Threshold) other); + return mergeFrom((com.google.monitoring.dashboard.v1.Threshold)other); } else { super.mergeFrom(other); return this; @@ -1122,43 +1013,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - label_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 17: - { - value_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - case 24: - { - color_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - direction_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - targetAxis_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + label_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: { + value_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 24: { + color_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + direction_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + targetAxis_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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) { @@ -1168,25 +1053,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object label_ = ""; /** - * - * *
                * A label for the threshold.
                * 
          * * string label = 1; - * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -1195,21 +1077,20 @@ public java.lang.String getLabel() { } } /** - * - * *
                * A label for the threshold.
                * 
          * * string label = 1; - * * @return The bytes for label. */ - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -1217,35 +1098,28 @@ public com.google.protobuf.ByteString getLabelBytes() { } } /** - * - * *
                * A label for the threshold.
                * 
          * * string label = 1; - * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLabel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } label_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                * A label for the threshold.
                * 
          * * string label = 1; - * * @return This builder for chaining. */ public Builder clearLabel() { @@ -1255,21 +1129,17 @@ public Builder clearLabel() { return this; } /** - * - * *
                * A label for the threshold.
                * 
          * * string label = 1; - * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); label_ = value; bitField0_ |= 0x00000001; @@ -1277,17 +1147,14 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) { return this; } - private double value_; + private double value_ ; /** - * - * *
                * The value of the threshold. The value should be defined in the native scale
                * of the metric.
                * 
          * * double value = 2; - * * @return The value. */ @java.lang.Override @@ -1295,15 +1162,12 @@ public double getValue() { return value_; } /** - * - * *
                * The value of the threshold. The value should be defined in the native scale
                * of the metric.
                * 
          * * double value = 2; - * * @param value The value to set. * @return This builder for chaining. */ @@ -1315,15 +1179,12 @@ public Builder setValue(double value) { return this; } /** - * - * *
                * The value of the threshold. The value should be defined in the native scale
                * of the metric.
                * 
          * * double value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -1335,29 +1196,22 @@ public Builder clearValue() { private int color_ = 0; /** - * - * *
                * The state color for this threshold. Color is not allowed in a XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; - * * @return The enum numeric value on the wire for color. */ - @java.lang.Override - public int getColorValue() { + @java.lang.Override public int getColorValue() { return color_; } /** - * - * *
                * The state color for this threshold. Color is not allowed in a XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; - * * @param value The enum numeric value on the wire for color to set. * @return This builder for chaining. */ @@ -1368,33 +1222,24 @@ public Builder setColorValue(int value) { return this; } /** - * - * *
                * The state color for this threshold. Color is not allowed in a XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; - * * @return The color. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Threshold.Color getColor() { - com.google.monitoring.dashboard.v1.Threshold.Color result = - com.google.monitoring.dashboard.v1.Threshold.Color.forNumber(color_); - return result == null - ? com.google.monitoring.dashboard.v1.Threshold.Color.UNRECOGNIZED - : result; + com.google.monitoring.dashboard.v1.Threshold.Color result = com.google.monitoring.dashboard.v1.Threshold.Color.forNumber(color_); + return result == null ? com.google.monitoring.dashboard.v1.Threshold.Color.UNRECOGNIZED : result; } /** - * - * *
                * The state color for this threshold. Color is not allowed in a XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; - * * @param value The color to set. * @return This builder for chaining. */ @@ -1408,14 +1253,11 @@ public Builder setColor(com.google.monitoring.dashboard.v1.Threshold.Color value return this; } /** - * - * *
                * The state color for this threshold. Color is not allowed in a XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; - * * @return This builder for chaining. */ public Builder clearColor() { @@ -1427,31 +1269,24 @@ public Builder clearColor() { private int direction_ = 0; /** - * - * *
                * The direction for the current threshold. Direction is not allowed in a
                * XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; - * * @return The enum numeric value on the wire for direction. */ - @java.lang.Override - public int getDirectionValue() { + @java.lang.Override public int getDirectionValue() { return direction_; } /** - * - * *
                * The direction for the current threshold. Direction is not allowed in a
                * XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; - * * @param value The enum numeric value on the wire for direction to set. * @return This builder for chaining. */ @@ -1462,35 +1297,26 @@ public Builder setDirectionValue(int value) { return this; } /** - * - * *
                * The direction for the current threshold. Direction is not allowed in a
                * XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; - * * @return The direction. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Threshold.Direction getDirection() { - com.google.monitoring.dashboard.v1.Threshold.Direction result = - com.google.monitoring.dashboard.v1.Threshold.Direction.forNumber(direction_); - return result == null - ? com.google.monitoring.dashboard.v1.Threshold.Direction.UNRECOGNIZED - : result; + com.google.monitoring.dashboard.v1.Threshold.Direction result = com.google.monitoring.dashboard.v1.Threshold.Direction.forNumber(direction_); + return result == null ? com.google.monitoring.dashboard.v1.Threshold.Direction.UNRECOGNIZED : result; } /** - * - * *
                * The direction for the current threshold. Direction is not allowed in a
                * XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; - * * @param value The direction to set. * @return This builder for chaining. */ @@ -1504,15 +1330,12 @@ public Builder setDirection(com.google.monitoring.dashboard.v1.Threshold.Directi return this; } /** - * - * *
                * The direction for the current threshold. Direction is not allowed in a
                * XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; - * * @return This builder for chaining. */ public Builder clearDirection() { @@ -1524,31 +1347,24 @@ public Builder clearDirection() { private int targetAxis_ = 0; /** - * - * *
                * The target axis to use for plotting the threshold. Target axis is not
                * allowed in a Scorecard.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; - * * @return The enum numeric value on the wire for targetAxis. */ - @java.lang.Override - public int getTargetAxisValue() { + @java.lang.Override public int getTargetAxisValue() { return targetAxis_; } /** - * - * *
                * The target axis to use for plotting the threshold. Target axis is not
                * allowed in a Scorecard.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; - * * @param value The enum numeric value on the wire for targetAxis to set. * @return This builder for chaining. */ @@ -1559,35 +1375,26 @@ public Builder setTargetAxisValue(int value) { return this; } /** - * - * *
                * The target axis to use for plotting the threshold. Target axis is not
                * allowed in a Scorecard.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; - * * @return The targetAxis. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Threshold.TargetAxis getTargetAxis() { - com.google.monitoring.dashboard.v1.Threshold.TargetAxis result = - com.google.monitoring.dashboard.v1.Threshold.TargetAxis.forNumber(targetAxis_); - return result == null - ? com.google.monitoring.dashboard.v1.Threshold.TargetAxis.UNRECOGNIZED - : result; + com.google.monitoring.dashboard.v1.Threshold.TargetAxis result = com.google.monitoring.dashboard.v1.Threshold.TargetAxis.forNumber(targetAxis_); + return result == null ? com.google.monitoring.dashboard.v1.Threshold.TargetAxis.UNRECOGNIZED : result; } /** - * - * *
                * The target axis to use for plotting the threshold. Target axis is not
                * allowed in a Scorecard.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; - * * @param value The targetAxis to set. * @return This builder for chaining. */ @@ -1601,15 +1408,12 @@ public Builder setTargetAxis(com.google.monitoring.dashboard.v1.Threshold.Target return this; } /** - * - * *
                * The target axis to use for plotting the threshold. Target axis is not
                * allowed in a Scorecard.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; - * * @return This builder for chaining. */ public Builder clearTargetAxis() { @@ -1618,9 +1422,9 @@ public Builder clearTargetAxis() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1630,12 +1434,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.Threshold) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Threshold) private static final com.google.monitoring.dashboard.v1.Threshold DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Threshold(); } @@ -1644,27 +1448,27 @@ public static com.google.monitoring.dashboard.v1.Threshold getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Threshold 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Threshold 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; @@ -1679,4 +1483,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.Threshold getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java similarity index 76% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java index 90515be83579..2e156ab0f2a4 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java @@ -1,143 +1,101 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/metrics.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface ThresholdOrBuilder - extends +public interface ThresholdOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Threshold) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * A label for the threshold.
              * 
          * * string label = 1; - * * @return The label. */ java.lang.String getLabel(); /** - * - * *
              * A label for the threshold.
              * 
          * * string label = 1; - * * @return The bytes for label. */ - com.google.protobuf.ByteString getLabelBytes(); + com.google.protobuf.ByteString + getLabelBytes(); /** - * - * *
              * The value of the threshold. The value should be defined in the native scale
              * of the metric.
              * 
          * * double value = 2; - * * @return The value. */ double getValue(); /** - * - * *
              * The state color for this threshold. Color is not allowed in a XyChart.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; - * * @return The enum numeric value on the wire for color. */ int getColorValue(); /** - * - * *
              * The state color for this threshold. Color is not allowed in a XyChart.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; - * * @return The color. */ com.google.monitoring.dashboard.v1.Threshold.Color getColor(); /** - * - * *
              * The direction for the current threshold. Direction is not allowed in a
              * XyChart.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; - * * @return The enum numeric value on the wire for direction. */ int getDirectionValue(); /** - * - * *
              * The direction for the current threshold. Direction is not allowed in a
              * XyChart.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; - * * @return The direction. */ com.google.monitoring.dashboard.v1.Threshold.Direction getDirection(); /** - * - * *
              * The target axis to use for plotting the threshold. Target axis is not
              * allowed in a Scorecard.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; - * * @return The enum numeric value on the wire for targetAxis. */ int getTargetAxisValue(); /** - * - * *
              * The target axis to use for plotting the threshold. Target axis is not
              * allowed in a Scorecard.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; - * * @return The targetAxis. */ com.google.monitoring.dashboard.v1.Threshold.TargetAxis getTargetAxis(); diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilter.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilter.java similarity index 66% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilter.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilter.java index d1aa9223e6d9..b13f3d29b20d 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilter.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilter.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/metrics.proto @@ -20,8 +5,6 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * A filter that defines a subset of time series data that is displayed in a
            * widget. Time series data is fetched using the
          @@ -31,57 +14,50 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesFilter}
            */
          -public final class TimeSeriesFilter extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class TimeSeriesFilter extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TimeSeriesFilter)
               TimeSeriesFilterOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use TimeSeriesFilter.newBuilder() to construct.
             private TimeSeriesFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
             private TimeSeriesFilter() {
               filter_ = "";
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new TimeSeriesFilter();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.MetricsProto
          -        .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.MetricsProto
          -        .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.TimeSeriesFilter.class,
          -            com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder.class);
          +            com.google.monitoring.dashboard.v1.TimeSeriesFilter.class, com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder.class);
             }
           
             private int bitField0_;
             private int outputFilterCase_ = 0;
          -
             @SuppressWarnings("serial")
             private java.lang.Object outputFilter_;
          -
             public enum OutputFilterCase
          -      implements
          -          com.google.protobuf.Internal.EnumLite,
          +      implements com.google.protobuf.Internal.EnumLite,
                     com.google.protobuf.AbstractMessage.InternalOneOfEnum {
               PICK_TIME_SERIES_FILTER(4),
          -    @java.lang.Deprecated
          -    STATISTICAL_TIME_SERIES_FILTER(5),
          +    @java.lang.Deprecated STATISTICAL_TIME_SERIES_FILTER(5),
               OUTPUTFILTER_NOT_SET(0);
               private final int value;
          -
               private OutputFilterCase(int value) {
                 this.value = value;
               }
          @@ -97,33 +73,27 @@ public static OutputFilterCase valueOf(int value) {
           
               public static OutputFilterCase forNumber(int value) {
                 switch (value) {
          -        case 4:
          -          return PICK_TIME_SERIES_FILTER;
          -        case 5:
          -          return STATISTICAL_TIME_SERIES_FILTER;
          -        case 0:
          -          return OUTPUTFILTER_NOT_SET;
          -        default:
          -          return null;
          +        case 4: return PICK_TIME_SERIES_FILTER;
          +        case 5: return STATISTICAL_TIME_SERIES_FILTER;
          +        case 0: return OUTPUTFILTER_NOT_SET;
          +        default: return null;
                 }
               }
          -
               public int getNumber() {
                 return this.value;
               }
             };
           
          -  public OutputFilterCase getOutputFilterCase() {
          -    return OutputFilterCase.forNumber(outputFilterCase_);
          +  public OutputFilterCase
          +  getOutputFilterCase() {
          +    return OutputFilterCase.forNumber(
          +        outputFilterCase_);
             }
           
             public static final int FILTER_FIELD_NUMBER = 1;
          -
             @SuppressWarnings("serial")
             private volatile java.lang.Object filter_ = "";
             /**
          -   *
          -   *
              * 
              * Required. The [monitoring
              * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -131,7 +101,6 @@ public OutputFilterCase getOutputFilterCase() {
              * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -140,15 +109,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
              * Required. The [monitoring
              * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -156,15 +124,16 @@ public java.lang.String getFilter() {
              * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -175,8 +144,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int AGGREGATION_FIELD_NUMBER = 2; private com.google.monitoring.dashboard.v1.Aggregation aggregation_; /** - * - * *
              * By default, the raw time series data is returned.
              * Use this field to combine multiple time series for different views of the
          @@ -184,7 +151,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
              * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; - * * @return Whether the aggregation field is set. */ @java.lang.Override @@ -192,8 +158,6 @@ public boolean hasAggregation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
              * By default, the raw time series data is returned.
              * Use this field to combine multiple time series for different views of the
          @@ -201,18 +165,13 @@ public boolean hasAggregation() {
              * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; - * * @return The aggregation. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Aggregation getAggregation() { - return aggregation_ == null - ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() - : aggregation_; + return aggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : aggregation_; } /** - * - * *
              * By default, the raw time series data is returned.
              * Use this field to combine multiple time series for different views of the
          @@ -223,22 +182,17 @@ public com.google.monitoring.dashboard.v1.Aggregation getAggregation() {
              */
             @java.lang.Override
             public com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrBuilder() {
          -    return aggregation_ == null
          -        ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()
          -        : aggregation_;
          +    return aggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : aggregation_;
             }
           
             public static final int SECONDARY_AGGREGATION_FIELD_NUMBER = 3;
             private com.google.monitoring.dashboard.v1.Aggregation secondaryAggregation_;
             /**
          -   *
          -   *
              * 
              * Apply a second aggregation after `aggregation` is applied.
              * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; - * * @return Whether the secondaryAggregation field is set. */ @java.lang.Override @@ -246,25 +200,18 @@ public boolean hasSecondaryAggregation() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
              * Apply a second aggregation after `aggregation` is applied.
              * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; - * * @return The secondaryAggregation. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Aggregation getSecondaryAggregation() { - return secondaryAggregation_ == null - ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() - : secondaryAggregation_; + return secondaryAggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : secondaryAggregation_; } /** - * - * *
              * Apply a second aggregation after `aggregation` is applied.
              * 
          @@ -272,23 +219,17 @@ public com.google.monitoring.dashboard.v1.Aggregation getSecondaryAggregation() * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.AggregationOrBuilder - getSecondaryAggregationOrBuilder() { - return secondaryAggregation_ == null - ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() - : secondaryAggregation_; + public com.google.monitoring.dashboard.v1.AggregationOrBuilder getSecondaryAggregationOrBuilder() { + return secondaryAggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : secondaryAggregation_; } public static final int PICK_TIME_SERIES_FILTER_FIELD_NUMBER = 4; /** - * - * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * * @return Whether the pickTimeSeriesFilter field is set. */ @java.lang.Override @@ -296,26 +237,21 @@ public boolean hasPickTimeSeriesFilter() { return outputFilterCase_ == 4; } /** - * - * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * * @return The pickTimeSeriesFilter. */ @java.lang.Override public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeriesFilter() { if (outputFilterCase_ == 4) { - return (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_; + return (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_; } return com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance(); } /** - * - * *
              * Ranking based time series filter.
              * 
          @@ -323,85 +259,64 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeries * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder - getPickTimeSeriesFilterOrBuilder() { + public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickTimeSeriesFilterOrBuilder() { if (outputFilterCase_ == 4) { - return (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_; + return (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_; } return com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance(); } public static final int STATISTICAL_TIME_SERIES_FILTER_FIELD_NUMBER = 5; /** - * - * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * - * - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is - * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=80 + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is deprecated. + * See google/monitoring/dashboard/v1/metrics.proto;l=89 * @return Whether the statisticalTimeSeriesFilter field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasStatisticalTimeSeriesFilter() { + @java.lang.Deprecated public boolean hasStatisticalTimeSeriesFilter() { return outputFilterCase_ == 5; } /** - * - * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * - * - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is - * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=80 + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is deprecated. + * See google/monitoring/dashboard/v1/metrics.proto;l=89 * @return The statisticalTimeSeriesFilter. */ @java.lang.Override - @java.lang.Deprecated - public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter - getStatisticalTimeSeriesFilter() { + @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getStatisticalTimeSeriesFilter() { if (outputFilterCase_ == 5) { - return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; + return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; } return com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance(); } /** - * - * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder - getStatisticalTimeSeriesFilterOrBuilder() { + @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder getStatisticalTimeSeriesFilterOrBuilder() { if (outputFilterCase_ == 5) { - return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; + return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; } return com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -413,7 +328,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); } @@ -424,12 +340,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(3, getSecondaryAggregation()); } if (outputFilterCase_ == 4) { - output.writeMessage( - 4, (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_); + output.writeMessage(4, (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_); } if (outputFilterCase_ == 5) { - output.writeMessage( - 5, (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_); + output.writeMessage(5, (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_); } getUnknownFields().writeTo(output); } @@ -444,21 +358,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAggregation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAggregation()); } if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSecondaryAggregation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSecondaryAggregation()); } if (outputFilterCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_); } if (outputFilterCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -468,31 +381,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.TimeSeriesFilter)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.TimeSeriesFilter other = - (com.google.monitoring.dashboard.v1.TimeSeriesFilter) obj; + com.google.monitoring.dashboard.v1.TimeSeriesFilter other = (com.google.monitoring.dashboard.v1.TimeSeriesFilter) obj; - if (!getFilter().equals(other.getFilter())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (hasAggregation() != other.hasAggregation()) return false; if (hasAggregation()) { - if (!getAggregation().equals(other.getAggregation())) return false; + if (!getAggregation() + .equals(other.getAggregation())) return false; } if (hasSecondaryAggregation() != other.hasSecondaryAggregation()) return false; if (hasSecondaryAggregation()) { - if (!getSecondaryAggregation().equals(other.getSecondaryAggregation())) return false; + if (!getSecondaryAggregation() + .equals(other.getSecondaryAggregation())) return false; } if (!getOutputFilterCase().equals(other.getOutputFilterCase())) return false; switch (outputFilterCase_) { case 4: - if (!getPickTimeSeriesFilter().equals(other.getPickTimeSeriesFilter())) return false; + if (!getPickTimeSeriesFilter() + .equals(other.getPickTimeSeriesFilter())) return false; break; case 5: - if (!getStatisticalTimeSeriesFilter().equals(other.getStatisticalTimeSeriesFilter())) - return false; + if (!getStatisticalTimeSeriesFilter() + .equals(other.getStatisticalTimeSeriesFilter())) return false; break; case 0: default: @@ -536,103 +452,98 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TimeSeriesFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilter 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.TimeSeriesFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.TimeSeriesFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * A filter that defines a subset of time series data that is displayed in a
              * widget. Time series data is fetched using the
          @@ -642,23 +553,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesFilter}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.TimeSeriesFilter)
                 com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto
          -          .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto
          -          .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.TimeSeriesFilter.class,
          -              com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder.class);
          +              com.google.monitoring.dashboard.v1.TimeSeriesFilter.class, com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.TimeSeriesFilter.newBuilder()
          @@ -666,18 +575,18 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          -
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
          +      if (com.google.protobuf.GeneratedMessageV3
          +              .alwaysUseFieldBuilders) {
                   getAggregationFieldBuilder();
                   getSecondaryAggregationFieldBuilder();
                 }
               }
          -
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -705,9 +614,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto
          -          .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor;
               }
           
               @java.lang.Override
          @@ -726,11 +635,8 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilter build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.TimeSeriesFilter buildPartial() {
          -      com.google.monitoring.dashboard.v1.TimeSeriesFilter result =
          -          new com.google.monitoring.dashboard.v1.TimeSeriesFilter(this);
          -      if (bitField0_ != 0) {
          -        buildPartial0(result);
          -      }
          +      com.google.monitoring.dashboard.v1.TimeSeriesFilter result = new com.google.monitoring.dashboard.v1.TimeSeriesFilter(this);
          +      if (bitField0_ != 0) { buildPartial0(result); }
                 buildPartialOneofs(result);
                 onBuilt();
                 return result;
          @@ -743,15 +649,15 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesFilter r
                 }
                 int to_bitField0_ = 0;
                 if (((from_bitField0_ & 0x00000002) != 0)) {
          -        result.aggregation_ =
          -            aggregationBuilder_ == null ? aggregation_ : aggregationBuilder_.build();
          +        result.aggregation_ = aggregationBuilder_ == null
          +            ? aggregation_
          +            : aggregationBuilder_.build();
                   to_bitField0_ |= 0x00000001;
                 }
                 if (((from_bitField0_ & 0x00000004) != 0)) {
          -        result.secondaryAggregation_ =
          -            secondaryAggregationBuilder_ == null
          -                ? secondaryAggregation_
          -                : secondaryAggregationBuilder_.build();
          +        result.secondaryAggregation_ = secondaryAggregationBuilder_ == null
          +            ? secondaryAggregation_
          +            : secondaryAggregationBuilder_.build();
                   to_bitField0_ |= 0x00000002;
                 }
                 result.bitField0_ |= to_bitField0_;
          @@ -760,10 +666,12 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesFilter r
               private void buildPartialOneofs(com.google.monitoring.dashboard.v1.TimeSeriesFilter result) {
                 result.outputFilterCase_ = outputFilterCase_;
                 result.outputFilter_ = this.outputFilter_;
          -      if (outputFilterCase_ == 4 && pickTimeSeriesFilterBuilder_ != null) {
          +      if (outputFilterCase_ == 4 &&
          +          pickTimeSeriesFilterBuilder_ != null) {
                   result.outputFilter_ = pickTimeSeriesFilterBuilder_.build();
                 }
          -      if (outputFilterCase_ == 5 && statisticalTimeSeriesFilterBuilder_ != null) {
          +      if (outputFilterCase_ == 5 &&
          +          statisticalTimeSeriesFilterBuilder_ != null) {
                   result.outputFilter_ = statisticalTimeSeriesFilterBuilder_.build();
                 }
               }
          @@ -772,39 +680,38 @@ private void buildPartialOneofs(com.google.monitoring.dashboard.v1.TimeSeriesFil
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.TimeSeriesFilter) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesFilter) other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesFilter)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -812,8 +719,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesFilter other) {
          -      if (other == com.google.monitoring.dashboard.v1.TimeSeriesFilter.getDefaultInstance())
          -        return this;
          +      if (other == com.google.monitoring.dashboard.v1.TimeSeriesFilter.getDefaultInstance()) return this;
                 if (!other.getFilter().isEmpty()) {
                   filter_ = other.filter_;
                   bitField0_ |= 0x00000001;
          @@ -826,20 +732,17 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesFilter oth
                   mergeSecondaryAggregation(other.getSecondaryAggregation());
                 }
                 switch (other.getOutputFilterCase()) {
          -        case PICK_TIME_SERIES_FILTER:
          -          {
          -            mergePickTimeSeriesFilter(other.getPickTimeSeriesFilter());
          -            break;
          -          }
          -        case STATISTICAL_TIME_SERIES_FILTER:
          -          {
          -            mergeStatisticalTimeSeriesFilter(other.getStatisticalTimeSeriesFilter());
          -            break;
          -          }
          -        case OUTPUTFILTER_NOT_SET:
          -          {
          -            break;
          -          }
          +        case PICK_TIME_SERIES_FILTER: {
          +          mergePickTimeSeriesFilter(other.getPickTimeSeriesFilter());
          +          break;
          +        }
          +        case STATISTICAL_TIME_SERIES_FILTER: {
          +          mergeStatisticalTimeSeriesFilter(other.getStatisticalTimeSeriesFilter());
          +          break;
          +        }
          +        case OUTPUTFILTER_NOT_SET: {
          +          break;
          +        }
                 }
                 this.mergeUnknownFields(other.getUnknownFields());
                 onChanged();
          @@ -867,46 +770,45 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10:
          -              {
          -                filter_ = input.readStringRequireUtf8();
          -                bitField0_ |= 0x00000001;
          -                break;
          -              } // case 10
          -            case 18:
          -              {
          -                input.readMessage(getAggregationFieldBuilder().getBuilder(), extensionRegistry);
          -                bitField0_ |= 0x00000002;
          -                break;
          -              } // case 18
          -            case 26:
          -              {
          -                input.readMessage(
          -                    getSecondaryAggregationFieldBuilder().getBuilder(), extensionRegistry);
          -                bitField0_ |= 0x00000004;
          -                break;
          -              } // case 26
          -            case 34:
          -              {
          -                input.readMessage(
          -                    getPickTimeSeriesFilterFieldBuilder().getBuilder(), extensionRegistry);
          -                outputFilterCase_ = 4;
          -                break;
          -              } // case 34
          -            case 42:
          -              {
          -                input.readMessage(
          -                    getStatisticalTimeSeriesFilterFieldBuilder().getBuilder(), extensionRegistry);
          -                outputFilterCase_ = 5;
          -                break;
          -              } // case 42
          -            default:
          -              {
          -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                  done = true; // was an endgroup tag
          -                }
          -                break;
          -              } // default:
          +            case 10: {
          +              filter_ = input.readStringRequireUtf8();
          +              bitField0_ |= 0x00000001;
          +              break;
          +            } // case 10
          +            case 18: {
          +              input.readMessage(
          +                  getAggregationFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              bitField0_ |= 0x00000002;
          +              break;
          +            } // case 18
          +            case 26: {
          +              input.readMessage(
          +                  getSecondaryAggregationFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              bitField0_ |= 0x00000004;
          +              break;
          +            } // case 26
          +            case 34: {
          +              input.readMessage(
          +                  getPickTimeSeriesFilterFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              outputFilterCase_ = 4;
          +              break;
          +            } // case 34
          +            case 42: {
          +              input.readMessage(
          +                  getStatisticalTimeSeriesFilterFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              outputFilterCase_ = 5;
          +              break;
          +            } // case 42
          +            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) {
          @@ -916,12 +818,12 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          -
               private int outputFilterCase_ = 0;
               private java.lang.Object outputFilter_;
          -
          -    public OutputFilterCase getOutputFilterCase() {
          -      return OutputFilterCase.forNumber(outputFilterCase_);
          +    public OutputFilterCase
          +        getOutputFilterCase() {
          +      return OutputFilterCase.forNumber(
          +          outputFilterCase_);
               }
           
               public Builder clearOutputFilter() {
          @@ -935,8 +837,6 @@ public Builder clearOutputFilter() {
           
               private java.lang.Object filter_ = "";
               /**
          -     *
          -     *
                * 
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -944,13 +844,13 @@ public Builder clearOutputFilter() {
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -959,8 +859,6 @@ public java.lang.String getFilter() { } } /** - * - * *
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -968,14 +866,15 @@ public java.lang.String getFilter() {
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -983,8 +882,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -992,22 +889,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -1015,7 +908,6 @@ public Builder setFilter(java.lang.String value) {
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1025,8 +917,6 @@ public Builder clearFilter() { return this; } /** - * - * *
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -1034,14 +924,12 @@ public Builder clearFilter() {
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000001; @@ -1051,13 +939,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private com.google.monitoring.dashboard.v1.Aggregation aggregation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Aggregation, - com.google.monitoring.dashboard.v1.Aggregation.Builder, - com.google.monitoring.dashboard.v1.AggregationOrBuilder> - aggregationBuilder_; + com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder> aggregationBuilder_; /** - * - * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -1065,15 +948,12 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; - * * @return Whether the aggregation field is set. */ public boolean hasAggregation() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -1081,21 +961,16 @@ public boolean hasAggregation() {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; - * * @return The aggregation. */ public com.google.monitoring.dashboard.v1.Aggregation getAggregation() { if (aggregationBuilder_ == null) { - return aggregation_ == null - ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() - : aggregation_; + return aggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : aggregation_; } else { return aggregationBuilder_.getMessage(); } } /** - * - * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -1118,8 +993,6 @@ public Builder setAggregation(com.google.monitoring.dashboard.v1.Aggregation val
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -1140,8 +1013,6 @@ public Builder setAggregation(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -1152,10 +1023,9 @@ public Builder setAggregation(
                */
               public Builder mergeAggregation(com.google.monitoring.dashboard.v1.Aggregation value) {
                 if (aggregationBuilder_ == null) {
          -        if (((bitField0_ & 0x00000002) != 0)
          -            && aggregation_ != null
          -            && aggregation_
          -                != com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()) {
          +        if (((bitField0_ & 0x00000002) != 0) &&
          +          aggregation_ != null &&
          +          aggregation_ != com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()) {
                     getAggregationBuilder().mergeFrom(value);
                   } else {
                     aggregation_ = value;
          @@ -1170,8 +1040,6 @@ public Builder mergeAggregation(com.google.monitoring.dashboard.v1.Aggregation v
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -1191,8 +1059,6 @@ public Builder clearAggregation() {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -1207,8 +1073,6 @@ public com.google.monitoring.dashboard.v1.Aggregation.Builder getAggregationBuil
                 return getAggregationFieldBuilder().getBuilder();
               }
               /**
          -     *
          -     *
                * 
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -1221,14 +1085,11 @@ public com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrB
                 if (aggregationBuilder_ != null) {
                   return aggregationBuilder_.getMessageOrBuilder();
                 } else {
          -        return aggregation_ == null
          -            ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()
          -            : aggregation_;
          +        return aggregation_ == null ?
          +            com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : aggregation_;
                 }
               }
               /**
          -     *
          -     *
                * 
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -1238,17 +1099,14 @@ public com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrB
                * .google.monitoring.dashboard.v1.Aggregation aggregation = 2;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.Aggregation,
          -            com.google.monitoring.dashboard.v1.Aggregation.Builder,
          -            com.google.monitoring.dashboard.v1.AggregationOrBuilder>
          +        com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder> 
                   getAggregationFieldBuilder() {
                 if (aggregationBuilder_ == null) {
          -        aggregationBuilder_ =
          -            new com.google.protobuf.SingleFieldBuilderV3<
          -                com.google.monitoring.dashboard.v1.Aggregation,
          -                com.google.monitoring.dashboard.v1.Aggregation.Builder,
          -                com.google.monitoring.dashboard.v1.AggregationOrBuilder>(
          -                getAggregation(), getParentForChildren(), isClean());
          +        aggregationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          +            com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder>(
          +                getAggregation(),
          +                getParentForChildren(),
          +                isClean());
                   aggregation_ = null;
                 }
                 return aggregationBuilder_;
          @@ -1256,47 +1114,34 @@ public com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrB
           
               private com.google.monitoring.dashboard.v1.Aggregation secondaryAggregation_;
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.Aggregation,
          -            com.google.monitoring.dashboard.v1.Aggregation.Builder,
          -            com.google.monitoring.dashboard.v1.AggregationOrBuilder>
          -        secondaryAggregationBuilder_;
          +        com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder> secondaryAggregationBuilder_;
               /**
          -     *
          -     *
                * 
                * Apply a second aggregation after `aggregation` is applied.
                * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; - * * @return Whether the secondaryAggregation field is set. */ public boolean hasSecondaryAggregation() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                * Apply a second aggregation after `aggregation` is applied.
                * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; - * * @return The secondaryAggregation. */ public com.google.monitoring.dashboard.v1.Aggregation getSecondaryAggregation() { if (secondaryAggregationBuilder_ == null) { - return secondaryAggregation_ == null - ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() - : secondaryAggregation_; + return secondaryAggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : secondaryAggregation_; } else { return secondaryAggregationBuilder_.getMessage(); } } /** - * - * *
                * Apply a second aggregation after `aggregation` is applied.
                * 
          @@ -1317,8 +1162,6 @@ public Builder setSecondaryAggregation(com.google.monitoring.dashboard.v1.Aggreg return this; } /** - * - * *
                * Apply a second aggregation after `aggregation` is applied.
                * 
          @@ -1337,8 +1180,6 @@ public Builder setSecondaryAggregation( return this; } /** - * - * *
                * Apply a second aggregation after `aggregation` is applied.
                * 
          @@ -1347,10 +1188,9 @@ public Builder setSecondaryAggregation( */ public Builder mergeSecondaryAggregation(com.google.monitoring.dashboard.v1.Aggregation value) { if (secondaryAggregationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && secondaryAggregation_ != null - && secondaryAggregation_ - != com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + secondaryAggregation_ != null && + secondaryAggregation_ != com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()) { getSecondaryAggregationBuilder().mergeFrom(value); } else { secondaryAggregation_ = value; @@ -1365,8 +1205,6 @@ public Builder mergeSecondaryAggregation(com.google.monitoring.dashboard.v1.Aggr return this; } /** - * - * *
                * Apply a second aggregation after `aggregation` is applied.
                * 
          @@ -1384,8 +1222,6 @@ public Builder clearSecondaryAggregation() { return this; } /** - * - * *
                * Apply a second aggregation after `aggregation` is applied.
                * 
          @@ -1398,27 +1234,21 @@ public com.google.monitoring.dashboard.v1.Aggregation.Builder getSecondaryAggreg return getSecondaryAggregationFieldBuilder().getBuilder(); } /** - * - * *
                * Apply a second aggregation after `aggregation` is applied.
                * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; */ - public com.google.monitoring.dashboard.v1.AggregationOrBuilder - getSecondaryAggregationOrBuilder() { + public com.google.monitoring.dashboard.v1.AggregationOrBuilder getSecondaryAggregationOrBuilder() { if (secondaryAggregationBuilder_ != null) { return secondaryAggregationBuilder_.getMessageOrBuilder(); } else { - return secondaryAggregation_ == null - ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() - : secondaryAggregation_; + return secondaryAggregation_ == null ? + com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : secondaryAggregation_; } } /** - * - * *
                * Apply a second aggregation after `aggregation` is applied.
                * 
          @@ -1426,37 +1256,27 @@ public com.google.monitoring.dashboard.v1.Aggregation.Builder getSecondaryAggreg * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Aggregation, - com.google.monitoring.dashboard.v1.Aggregation.Builder, - com.google.monitoring.dashboard.v1.AggregationOrBuilder> + com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder> getSecondaryAggregationFieldBuilder() { if (secondaryAggregationBuilder_ == null) { - secondaryAggregationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Aggregation, - com.google.monitoring.dashboard.v1.Aggregation.Builder, - com.google.monitoring.dashboard.v1.AggregationOrBuilder>( - getSecondaryAggregation(), getParentForChildren(), isClean()); + secondaryAggregationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder>( + getSecondaryAggregation(), + getParentForChildren(), + isClean()); secondaryAggregation_ = null; } return secondaryAggregationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, - com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder> - pickTimeSeriesFilterBuilder_; + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder> pickTimeSeriesFilterBuilder_; /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; * @return Whether the pickTimeSeriesFilter field is set. */ @java.lang.Override @@ -1464,15 +1284,11 @@ public boolean hasPickTimeSeriesFilter() { return outputFilterCase_ == 4; } /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; * @return The pickTimeSeriesFilter. */ @java.lang.Override @@ -1490,17 +1306,13 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeries } } /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ - public Builder setPickTimeSeriesFilter( - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter value) { + public Builder setPickTimeSeriesFilter(com.google.monitoring.dashboard.v1.PickTimeSeriesFilter value) { if (pickTimeSeriesFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1514,14 +1326,11 @@ public Builder setPickTimeSeriesFilter( return this; } /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ public Builder setPickTimeSeriesFilter( com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder builderForValue) { @@ -1535,26 +1344,18 @@ public Builder setPickTimeSeriesFilter( return this; } /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ - public Builder mergePickTimeSeriesFilter( - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter value) { + public Builder mergePickTimeSeriesFilter(com.google.monitoring.dashboard.v1.PickTimeSeriesFilter value) { if (pickTimeSeriesFilterBuilder_ == null) { - if (outputFilterCase_ == 4 - && outputFilter_ - != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance()) { - outputFilter_ = - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.newBuilder( - (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_) - .mergeFrom(value) - .buildPartial(); + if (outputFilterCase_ == 4 && + outputFilter_ != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance()) { + outputFilter_ = com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.newBuilder((com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_) + .mergeFrom(value).buildPartial(); } else { outputFilter_ = value; } @@ -1570,14 +1371,11 @@ public Builder mergePickTimeSeriesFilter( return this; } /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ public Builder clearPickTimeSeriesFilter() { if (pickTimeSeriesFilterBuilder_ == null) { @@ -1596,32 +1394,24 @@ public Builder clearPickTimeSeriesFilter() { return this; } /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ - public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder - getPickTimeSeriesFilterBuilder() { + public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder getPickTimeSeriesFilterBuilder() { return getPickTimeSeriesFilterFieldBuilder().getBuilder(); } /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder - getPickTimeSeriesFilterOrBuilder() { + public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickTimeSeriesFilterOrBuilder() { if ((outputFilterCase_ == 4) && (pickTimeSeriesFilterBuilder_ != null)) { return pickTimeSeriesFilterBuilder_.getMessageOrBuilder(); } else { @@ -1632,30 +1422,21 @@ public Builder clearPickTimeSeriesFilter() { } } /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, - com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder> + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder> getPickTimeSeriesFilterFieldBuilder() { if (pickTimeSeriesFilterBuilder_ == null) { if (!(outputFilterCase_ == 4)) { - outputFilter_ = - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance(); + outputFilter_ = com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance(); } - pickTimeSeriesFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, - com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder>( + pickTimeSeriesFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder>( (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_, getParentForChildren(), isClean()); @@ -1667,51 +1448,35 @@ public Builder clearPickTimeSeriesFilter() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder> - statisticalTimeSeriesFilterBuilder_; + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder> statisticalTimeSeriesFilterBuilder_; /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * - * - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is - * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=80 + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is deprecated. + * See google/monitoring/dashboard/v1/metrics.proto;l=89 * @return Whether the statisticalTimeSeriesFilter field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasStatisticalTimeSeriesFilter() { + @java.lang.Deprecated public boolean hasStatisticalTimeSeriesFilter() { return outputFilterCase_ == 5; } /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * - * - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is - * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=80 + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is deprecated. + * See google/monitoring/dashboard/v1/metrics.proto;l=89 * @return The statisticalTimeSeriesFilter. */ @java.lang.Override - @java.lang.Deprecated - public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter - getStatisticalTimeSeriesFilter() { + @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getStatisticalTimeSeriesFilter() { if (statisticalTimeSeriesFilterBuilder_ == null) { if (outputFilterCase_ == 5) { return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; @@ -1725,20 +1490,14 @@ public boolean hasStatisticalTimeSeriesFilter() { } } /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setStatisticalTimeSeriesFilter( - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter value) { + @java.lang.Deprecated public Builder setStatisticalTimeSeriesFilter(com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter value) { if (statisticalTimeSeriesFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1752,19 +1511,14 @@ public Builder setStatisticalTimeSeriesFilter( return this; } /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setStatisticalTimeSeriesFilter( + @java.lang.Deprecated public Builder setStatisticalTimeSeriesFilter( com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder builderForValue) { if (statisticalTimeSeriesFilterBuilder_ == null) { outputFilter_ = builderForValue.build(); @@ -1776,31 +1530,19 @@ public Builder setStatisticalTimeSeriesFilter( return this; } /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ - @java.lang.Deprecated - public Builder mergeStatisticalTimeSeriesFilter( - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter value) { + @java.lang.Deprecated public Builder mergeStatisticalTimeSeriesFilter(com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter value) { if (statisticalTimeSeriesFilterBuilder_ == null) { - if (outputFilterCase_ == 5 - && outputFilter_ - != com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter - .getDefaultInstance()) { - outputFilter_ = - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.newBuilder( - (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) - outputFilter_) - .mergeFrom(value) - .buildPartial(); + if (outputFilterCase_ == 5 && + outputFilter_ != com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance()) { + outputFilter_ = com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.newBuilder((com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_) + .mergeFrom(value).buildPartial(); } else { outputFilter_ = value; } @@ -1816,19 +1558,14 @@ public Builder mergeStatisticalTimeSeriesFilter( return this; } /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearStatisticalTimeSeriesFilter() { + @java.lang.Deprecated public Builder clearStatisticalTimeSeriesFilter() { if (statisticalTimeSeriesFilterBuilder_ == null) { if (outputFilterCase_ == 5) { outputFilterCase_ = 0; @@ -1845,38 +1582,26 @@ public Builder clearStatisticalTimeSeriesFilter() { return this; } /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder - getStatisticalTimeSeriesFilterBuilder() { + @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder getStatisticalTimeSeriesFilterBuilder() { return getStatisticalTimeSeriesFilterFieldBuilder().getBuilder(); } /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder - getStatisticalTimeSeriesFilterOrBuilder() { + @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder getStatisticalTimeSeriesFilterOrBuilder() { if ((outputFilterCase_ == 5) && (statisticalTimeSeriesFilterBuilder_ != null)) { return statisticalTimeSeriesFilterBuilder_.getMessageOrBuilder(); } else { @@ -1887,32 +1612,22 @@ public Builder clearStatisticalTimeSeriesFilter() { } } /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder> + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder> getStatisticalTimeSeriesFilterFieldBuilder() { if (statisticalTimeSeriesFilterBuilder_ == null) { if (!(outputFilterCase_ == 5)) { - outputFilter_ = - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance(); + outputFilter_ = com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance(); } - statisticalTimeSeriesFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder>( + statisticalTimeSeriesFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder>( (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_, getParentForChildren(), isClean()); @@ -1922,9 +1637,9 @@ public Builder clearStatisticalTimeSeriesFilter() { onChanged(); return statisticalTimeSeriesFilterBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1934,12 +1649,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.TimeSeriesFilter) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.TimeSeriesFilter) private static final com.google.monitoring.dashboard.v1.TimeSeriesFilter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.TimeSeriesFilter(); } @@ -1948,27 +1663,27 @@ public static com.google.monitoring.dashboard.v1.TimeSeriesFilter getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeriesFilter 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeriesFilter 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; @@ -1983,4 +1698,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.TimeSeriesFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java similarity index 70% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java index 365e199863f9..de394123c2fe 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/metrics.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface TimeSeriesFilterOrBuilder - extends +public interface TimeSeriesFilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TimeSeriesFilter) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * Required. The [monitoring
              * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -34,13 +16,10 @@ public interface TimeSeriesFilterOrBuilder
              * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
              * Required. The [monitoring
              * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -48,14 +27,12 @@ public interface TimeSeriesFilterOrBuilder
              * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
              * By default, the raw time series data is returned.
              * Use this field to combine multiple time series for different views of the
          @@ -63,13 +40,10 @@ public interface TimeSeriesFilterOrBuilder
              * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; - * * @return Whether the aggregation field is set. */ boolean hasAggregation(); /** - * - * *
              * By default, the raw time series data is returned.
              * Use this field to combine multiple time series for different views of the
          @@ -77,13 +51,10 @@ public interface TimeSeriesFilterOrBuilder
              * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; - * * @return The aggregation. */ com.google.monitoring.dashboard.v1.Aggregation getAggregation(); /** - * - * *
              * By default, the raw time series data is returned.
              * Use this field to combine multiple time series for different views of the
          @@ -95,32 +66,24 @@ public interface TimeSeriesFilterOrBuilder
             com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrBuilder();
           
             /**
          -   *
          -   *
              * 
              * Apply a second aggregation after `aggregation` is applied.
              * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; - * * @return Whether the secondaryAggregation field is set. */ boolean hasSecondaryAggregation(); /** - * - * *
              * Apply a second aggregation after `aggregation` is applied.
              * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; - * * @return The secondaryAggregation. */ com.google.monitoring.dashboard.v1.Aggregation getSecondaryAggregation(); /** - * - * *
              * Apply a second aggregation after `aggregation` is applied.
              * 
          @@ -130,92 +93,65 @@ public interface TimeSeriesFilterOrBuilder com.google.monitoring.dashboard.v1.AggregationOrBuilder getSecondaryAggregationOrBuilder(); /** - * - * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * * @return Whether the pickTimeSeriesFilter field is set. */ boolean hasPickTimeSeriesFilter(); /** - * - * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * * @return The pickTimeSeriesFilter. */ com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeriesFilter(); /** - * - * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ - com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder - getPickTimeSeriesFilterOrBuilder(); + com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickTimeSeriesFilterOrBuilder(); /** - * - * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * - * - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is - * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=80 + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is deprecated. + * See google/monitoring/dashboard/v1/metrics.proto;l=89 * @return Whether the statisticalTimeSeriesFilter field is set. */ - @java.lang.Deprecated - boolean hasStatisticalTimeSeriesFilter(); + @java.lang.Deprecated boolean hasStatisticalTimeSeriesFilter(); /** - * - * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * - * - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is - * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=80 + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is deprecated. + * See google/monitoring/dashboard/v1/metrics.proto;l=89 * @return The statisticalTimeSeriesFilter. */ - @java.lang.Deprecated - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getStatisticalTimeSeriesFilter(); + @java.lang.Deprecated com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getStatisticalTimeSeriesFilter(); /** - * - * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ - @java.lang.Deprecated - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder - getStatisticalTimeSeriesFilterOrBuilder(); + @java.lang.Deprecated com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder getStatisticalTimeSeriesFilterOrBuilder(); com.google.monitoring.dashboard.v1.TimeSeriesFilter.OutputFilterCase getOutputFilterCase(); } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatio.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatio.java similarity index 67% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatio.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatio.java index 0deabd55200d..1d89e5059e5d 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatio.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatio.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/metrics.proto @@ -20,8 +5,6 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * A pair of time series filters that define a ratio computation. The output
            * time series is the pair-wise division of each aligned element from the
          @@ -30,47 +13,43 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesFilterRatio}
            */
          -public final class TimeSeriesFilterRatio extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class TimeSeriesFilterRatio extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TimeSeriesFilterRatio)
               TimeSeriesFilterRatioOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use TimeSeriesFilterRatio.newBuilder() to construct.
             private TimeSeriesFilterRatio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
          -  private TimeSeriesFilterRatio() {}
          +  private TimeSeriesFilterRatio() {
          +  }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new TimeSeriesFilterRatio();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.MetricsProto
          -        .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.MetricsProto
          -        .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.class,
          -            com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder.class);
          +            com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.class, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder.class);
             }
           
          -  public interface RatioPartOrBuilder
          -      extends
          +  public interface RatioPartOrBuilder extends
                 // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart)
                 com.google.protobuf.MessageOrBuilder {
           
               /**
          -     *
          -     *
                * 
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -78,13 +57,10 @@ public interface RatioPartOrBuilder
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -92,14 +68,12 @@ public interface RatioPartOrBuilder
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -107,13 +81,10 @@ public interface RatioPartOrBuilder
                * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; - * * @return Whether the aggregation field is set. */ boolean hasAggregation(); /** - * - * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -121,13 +92,10 @@ public interface RatioPartOrBuilder
                * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; - * * @return The aggregation. */ com.google.monitoring.dashboard.v1.Aggregation getAggregation(); /** - * - * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -139,8 +107,6 @@ public interface RatioPartOrBuilder
               com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrBuilder();
             }
             /**
          -   *
          -   *
              * 
              * Describes a query to build the numerator or denominator of a
              * TimeSeriesFilterRatio.
          @@ -148,49 +114,44 @@ public interface RatioPartOrBuilder
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart}
              */
          -  public static final class RatioPart extends com.google.protobuf.GeneratedMessageV3
          -      implements
          +  public static final class RatioPart extends
          +      com.google.protobuf.GeneratedMessageV3 implements
                 // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart)
                 RatioPartOrBuilder {
          -    private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
               // Use RatioPart.newBuilder() to construct.
               private RatioPart(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
          -
               private RatioPart() {
                 filter_ = "";
               }
           
               @java.lang.Override
               @SuppressWarnings({"unused"})
          -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +    protected java.lang.Object newInstance(
          +        UnusedPrivateParameter unused) {
                 return new RatioPart();
               }
           
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto
          -          .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto
          -          .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.class,
          -              com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder.class);
          +              com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.class, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder.class);
               }
           
               private int bitField0_;
               public static final int FILTER_FIELD_NUMBER = 1;
          -
               @SuppressWarnings("serial")
               private volatile java.lang.Object filter_ = "";
               /**
          -     *
          -     *
                * 
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -198,7 +159,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -207,15 +167,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -223,15 +182,16 @@ public java.lang.String getFilter() {
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -242,8 +202,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int AGGREGATION_FIELD_NUMBER = 2; private com.google.monitoring.dashboard.v1.Aggregation aggregation_; /** - * - * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -251,7 +209,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; - * * @return Whether the aggregation field is set. */ @java.lang.Override @@ -259,8 +216,6 @@ public boolean hasAggregation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -268,18 +223,13 @@ public boolean hasAggregation() {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; - * * @return The aggregation. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Aggregation getAggregation() { - return aggregation_ == null - ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() - : aggregation_; + return aggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : aggregation_; } /** - * - * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -290,13 +240,10 @@ public com.google.monitoring.dashboard.v1.Aggregation getAggregation() {
                */
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrBuilder() {
          -      return aggregation_ == null
          -          ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()
          -          : aggregation_;
          +      return aggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : aggregation_;
               }
           
               private byte memoizedIsInitialized = -1;
          -
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
          @@ -308,7 +255,8 @@ public final boolean isInitialized() {
               }
           
               @java.lang.Override
          -    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
          +    public void writeTo(com.google.protobuf.CodedOutputStream output)
          +                        throws java.io.IOException {
                 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
                   com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_);
                 }
          @@ -328,7 +276,8 @@ public int getSerializedSize() {
                   size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_);
                 }
                 if (((bitField0_ & 0x00000001) != 0)) {
          -        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAggregation());
          +        size += com.google.protobuf.CodedOutputStream
          +          .computeMessageSize(2, getAggregation());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
          @@ -338,18 +287,19 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
          -        return true;
          +       return true;
                 }
                 if (!(obj instanceof com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart)) {
                   return super.equals(obj);
                 }
          -      com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart other =
          -          (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart) obj;
          +      com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart other = (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart) obj;
           
          -      if (!getFilter().equals(other.getFilter())) return false;
          +      if (!getFilter()
          +          .equals(other.getFilter())) return false;
                 if (hasAggregation() != other.hasAggregation()) return false;
                 if (hasAggregation()) {
          -        if (!getAggregation().equals(other.getAggregation())) return false;
          +        if (!getAggregation()
          +            .equals(other.getAggregation())) return false;
                 }
                 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                 return true;
          @@ -374,95 +324,89 @@ public int hashCode() {
               }
           
               public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseFrom(
          -        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
          +        java.nio.ByteBuffer data)
          +        throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
          -
               public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseFrom(
          -        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        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.TimeSeriesFilterRatio.RatioPart parseFrom(
                   com.google.protobuf.ByteString data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
          -
               public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart 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.TimeSeriesFilterRatio.RatioPart parseFrom(
          -        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
          +    public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseFrom(byte[] data)
          +        throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
          -
               public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseFrom(
          -        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        byte[] data,
          +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
          -
          -    public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseFrom(
          -        java.io.InputStream input) throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          +    public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseFrom(java.io.InputStream input)
          +        throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3
          +          .parseWithIOException(PARSER, input);
               }
          -
               public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseFrom(
          -        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        java.io.InputStream input,
          +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          -          PARSER, input, extensionRegistry);
          +      return com.google.protobuf.GeneratedMessageV3
          +          .parseWithIOException(PARSER, input, extensionRegistry);
               }
           
          -    public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart
          -        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
          +    public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseDelimitedFrom(java.io.InputStream input)
          +        throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3
          +          .parseDelimitedWithIOException(PARSER, input);
               }
           
          -    public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart
          -        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.TimeSeriesFilterRatio.RatioPart 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.TimeSeriesFilterRatio.RatioPart parseFrom(
          -        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          +        com.google.protobuf.CodedInputStream input)
          +        throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3
          +          .parseWithIOException(PARSER, input);
               }
          -
               public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          -          PARSER, input, extensionRegistry);
          +      return com.google.protobuf.GeneratedMessageV3
          +          .parseWithIOException(PARSER, input, extensionRegistry);
               }
           
               @java.lang.Override
          -    public Builder newBuilderForType() {
          -      return newBuilder();
          -    }
          -
          +    public Builder newBuilderForType() { return newBuilder(); }
               public static Builder newBuilder() {
                 return DEFAULT_INSTANCE.toBuilder();
               }
          -
          -    public static Builder newBuilder(
          -        com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart prototype) {
          +    public static Builder newBuilder(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart prototype) {
                 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
               }
          -
               @java.lang.Override
               public Builder toBuilder() {
          -      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
          +      return this == DEFAULT_INSTANCE
          +          ? new Builder() : new Builder().mergeFrom(this);
               }
           
               @java.lang.Override
          @@ -472,8 +416,6 @@ protected Builder newBuilderForType(
                 return builder;
               }
               /**
          -     *
          -     *
                * 
                * Describes a query to build the numerator or denominator of a
                * TimeSeriesFilterRatio.
          @@ -481,43 +423,39 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart}
                */
          -    public static final class Builder
          -        extends com.google.protobuf.GeneratedMessageV3.Builder
          -        implements
          +    public static final class Builder extends
          +        com.google.protobuf.GeneratedMessageV3.Builder implements
                   // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart)
                   com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder {
          -      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -        return com.google.monitoring.dashboard.v1.MetricsProto
          -            .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor;
          +      public static final com.google.protobuf.Descriptors.Descriptor
          +          getDescriptor() {
          +        return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor;
                 }
           
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
          -        return com.google.monitoring.dashboard.v1.MetricsProto
          -            .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_fieldAccessorTable
          +        return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
          -                com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.class,
          -                com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder.class);
          +                com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.class, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder.class);
                 }
           
          -      // Construct using
          -      // com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.newBuilder()
          +      // Construct using com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.newBuilder()
                 private Builder() {
                   maybeForceBuilderInitialization();
                 }
           
          -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +      private Builder(
          +          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   super(parent);
                   maybeForceBuilderInitialization();
                 }
          -
                 private void maybeForceBuilderInitialization() {
          -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
          +        if (com.google.protobuf.GeneratedMessageV3
          +                .alwaysUseFieldBuilders) {
                     getAggregationFieldBuilder();
                   }
                 }
          -
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
          @@ -532,16 +470,14 @@ public Builder clear() {
                 }
           
                 @java.lang.Override
          -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -        return com.google.monitoring.dashboard.v1.MetricsProto
          -            .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor;
          +      public com.google.protobuf.Descriptors.Descriptor
          +          getDescriptorForType() {
          +        return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor;
                 }
           
                 @java.lang.Override
          -      public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart
          -          getDefaultInstanceForType() {
          -        return com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart
          -            .getDefaultInstance();
          +      public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getDefaultInstanceForType() {
          +        return com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance();
                 }
           
                 @java.lang.Override
          @@ -555,25 +491,22 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart build(
           
                 @java.lang.Override
                 public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart buildPartial() {
          -        com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart result =
          -            new com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart(this);
          -        if (bitField0_ != 0) {
          -          buildPartial0(result);
          -        }
          +        com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart result = new com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart(this);
          +        if (bitField0_ != 0) { buildPartial0(result); }
                   onBuilt();
                   return result;
                 }
           
          -      private void buildPartial0(
          -          com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart result) {
          +      private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart result) {
                   int from_bitField0_ = bitField0_;
                   if (((from_bitField0_ & 0x00000001) != 0)) {
                     result.filter_ = filter_;
                   }
                   int to_bitField0_ = 0;
                   if (((from_bitField0_ & 0x00000002) != 0)) {
          -          result.aggregation_ =
          -              aggregationBuilder_ == null ? aggregation_ : aggregationBuilder_.build();
          +          result.aggregation_ = aggregationBuilder_ == null
          +              ? aggregation_
          +              : aggregationBuilder_.build();
                     to_bitField0_ |= 0x00000001;
                   }
                   result.bitField0_ |= to_bitField0_;
          @@ -583,53 +516,46 @@ private void buildPartial0(
                 public Builder clone() {
                   return super.clone();
                 }
          -
                 @java.lang.Override
                 public Builder setField(
          -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +          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) {
          +      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) {
          +      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) {
          +          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) {
          +          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.TimeSeriesFilterRatio.RatioPart) {
          -          return mergeFrom(
          -              (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart) other);
          +          return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart)other);
                   } else {
                     super.mergeFrom(other);
                     return this;
                   }
                 }
           
          -      public Builder mergeFrom(
          -          com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart other) {
          -        if (other
          -            == com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart
          -                .getDefaultInstance()) return this;
          +      public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart other) {
          +        if (other == com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance()) return this;
                   if (!other.getFilter().isEmpty()) {
                     filter_ = other.filter_;
                     bitField0_ |= 0x00000001;
          @@ -664,25 +590,24 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
          -              case 10:
          -                {
          -                  filter_ = input.readStringRequireUtf8();
          -                  bitField0_ |= 0x00000001;
          -                  break;
          -                } // case 10
          -              case 18:
          -                {
          -                  input.readMessage(getAggregationFieldBuilder().getBuilder(), extensionRegistry);
          -                  bitField0_ |= 0x00000002;
          -                  break;
          -                } // case 18
          -              default:
          -                {
          -                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                    done = true; // was an endgroup tag
          -                  }
          -                  break;
          -                } // default:
          +              case 10: {
          +                filter_ = input.readStringRequireUtf8();
          +                bitField0_ |= 0x00000001;
          +                break;
          +              } // case 10
          +              case 18: {
          +                input.readMessage(
          +                    getAggregationFieldBuilder().getBuilder(),
          +                    extensionRegistry);
          +                bitField0_ |= 0x00000002;
          +                break;
          +              } // case 18
          +              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) {
          @@ -692,13 +617,10 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
          -
                 private int bitField0_;
           
                 private java.lang.Object filter_ = "";
                 /**
          -       *
          -       *
                  * 
                  * Required. The [monitoring
                  * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -706,13 +628,13 @@ public Builder mergeFrom(
                  * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -721,8 +643,6 @@ public java.lang.String getFilter() { } } /** - * - * *
                  * Required. The [monitoring
                  * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -730,14 +650,15 @@ public java.lang.String getFilter() {
                  * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -745,8 +666,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
                  * Required. The [monitoring
                  * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -754,22 +673,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
                  * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. The [monitoring
                  * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -777,7 +692,6 @@ public Builder setFilter(java.lang.String value) {
                  * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -787,8 +701,6 @@ public Builder clearFilter() { return this; } /** - * - * *
                  * Required. The [monitoring
                  * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -796,14 +708,12 @@ public Builder clearFilter() {
                  * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000001; @@ -813,13 +723,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private com.google.monitoring.dashboard.v1.Aggregation aggregation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Aggregation, - com.google.monitoring.dashboard.v1.Aggregation.Builder, - com.google.monitoring.dashboard.v1.AggregationOrBuilder> - aggregationBuilder_; + com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder> aggregationBuilder_; /** - * - * *
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -827,15 +732,12 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
                  * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; - * * @return Whether the aggregation field is set. */ public boolean hasAggregation() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -843,21 +745,16 @@ public boolean hasAggregation() {
                  * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; - * * @return The aggregation. */ public com.google.monitoring.dashboard.v1.Aggregation getAggregation() { if (aggregationBuilder_ == null) { - return aggregation_ == null - ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() - : aggregation_; + return aggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : aggregation_; } else { return aggregationBuilder_.getMessage(); } } /** - * - * *
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -880,8 +777,6 @@ public Builder setAggregation(com.google.monitoring.dashboard.v1.Aggregation val
                   return this;
                 }
                 /**
          -       *
          -       *
                  * 
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -902,8 +797,6 @@ public Builder setAggregation(
                   return this;
                 }
                 /**
          -       *
          -       *
                  * 
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -914,10 +807,9 @@ public Builder setAggregation(
                  */
                 public Builder mergeAggregation(com.google.monitoring.dashboard.v1.Aggregation value) {
                   if (aggregationBuilder_ == null) {
          -          if (((bitField0_ & 0x00000002) != 0)
          -              && aggregation_ != null
          -              && aggregation_
          -                  != com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()) {
          +          if (((bitField0_ & 0x00000002) != 0) &&
          +            aggregation_ != null &&
          +            aggregation_ != com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()) {
                       getAggregationBuilder().mergeFrom(value);
                     } else {
                       aggregation_ = value;
          @@ -932,8 +824,6 @@ public Builder mergeAggregation(com.google.monitoring.dashboard.v1.Aggregation v
                   return this;
                 }
                 /**
          -       *
          -       *
                  * 
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -953,8 +843,6 @@ public Builder clearAggregation() {
                   return this;
                 }
                 /**
          -       *
          -       *
                  * 
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -969,8 +857,6 @@ public com.google.monitoring.dashboard.v1.Aggregation.Builder getAggregationBuil
                   return getAggregationFieldBuilder().getBuilder();
                 }
                 /**
          -       *
          -       *
                  * 
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -983,14 +869,11 @@ public com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrB
                   if (aggregationBuilder_ != null) {
                     return aggregationBuilder_.getMessageOrBuilder();
                   } else {
          -          return aggregation_ == null
          -              ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()
          -              : aggregation_;
          +          return aggregation_ == null ?
          +              com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : aggregation_;
                   }
                 }
                 /**
          -       *
          -       *
                  * 
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -1000,22 +883,18 @@ public com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrB
                  * .google.monitoring.dashboard.v1.Aggregation aggregation = 2;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
          -              com.google.monitoring.dashboard.v1.Aggregation,
          -              com.google.monitoring.dashboard.v1.Aggregation.Builder,
          -              com.google.monitoring.dashboard.v1.AggregationOrBuilder>
          +          com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder> 
                     getAggregationFieldBuilder() {
                   if (aggregationBuilder_ == null) {
          -          aggregationBuilder_ =
          -              new com.google.protobuf.SingleFieldBuilderV3<
          -                  com.google.monitoring.dashboard.v1.Aggregation,
          -                  com.google.monitoring.dashboard.v1.Aggregation.Builder,
          -                  com.google.monitoring.dashboard.v1.AggregationOrBuilder>(
          -                  getAggregation(), getParentForChildren(), isClean());
          +          aggregationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          +              com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder>(
          +                  getAggregation(),
          +                  getParentForChildren(),
          +                  isClean());
                     aggregation_ = null;
                   }
                   return aggregationBuilder_;
                 }
          -
                 @java.lang.Override
                 public final Builder setUnknownFields(
                     final com.google.protobuf.UnknownFieldSet unknownFields) {
          @@ -1028,44 +907,41 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
           
          +
                 // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart)
               }
           
               // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart)
          -    private static final com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart
          -        DEFAULT_INSTANCE;
          -
          +    private static final com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart DEFAULT_INSTANCE;
               static {
                 DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart();
               }
           
          -    public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart
          -        getDefaultInstance() {
          +    public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getDefaultInstance() {
                 return DEFAULT_INSTANCE;
               }
           
          -    private static final com.google.protobuf.Parser PARSER =
          -        new com.google.protobuf.AbstractParser() {
          -          @java.lang.Override
          -          public RatioPart 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();
          -          }
          -        };
          +    private static final com.google.protobuf.Parser
          +        PARSER = new com.google.protobuf.AbstractParser() {
          +      @java.lang.Override
          +      public RatioPart 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;
          @@ -1077,28 +953,23 @@ public com.google.protobuf.Parser getParserForType() {
               }
           
               @java.lang.Override
          -    public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart
          -        getDefaultInstanceForType() {
          +    public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
          +
             }
           
             private int bitField0_;
             private int outputFilterCase_ = 0;
          -
             @SuppressWarnings("serial")
             private java.lang.Object outputFilter_;
          -
             public enum OutputFilterCase
          -      implements
          -          com.google.protobuf.Internal.EnumLite,
          +      implements com.google.protobuf.Internal.EnumLite,
                     com.google.protobuf.AbstractMessage.InternalOneOfEnum {
               PICK_TIME_SERIES_FILTER(4),
          -    @java.lang.Deprecated
          -    STATISTICAL_TIME_SERIES_FILTER(5),
          +    @java.lang.Deprecated STATISTICAL_TIME_SERIES_FILTER(5),
               OUTPUTFILTER_NOT_SET(0);
               private final int value;
          -
               private OutputFilterCase(int value) {
                 this.value = value;
               }
          @@ -1114,37 +985,31 @@ public static OutputFilterCase valueOf(int value) {
           
               public static OutputFilterCase forNumber(int value) {
                 switch (value) {
          -        case 4:
          -          return PICK_TIME_SERIES_FILTER;
          -        case 5:
          -          return STATISTICAL_TIME_SERIES_FILTER;
          -        case 0:
          -          return OUTPUTFILTER_NOT_SET;
          -        default:
          -          return null;
          +        case 4: return PICK_TIME_SERIES_FILTER;
          +        case 5: return STATISTICAL_TIME_SERIES_FILTER;
          +        case 0: return OUTPUTFILTER_NOT_SET;
          +        default: return null;
                 }
               }
          -
               public int getNumber() {
                 return this.value;
               }
             };
           
          -  public OutputFilterCase getOutputFilterCase() {
          -    return OutputFilterCase.forNumber(outputFilterCase_);
          +  public OutputFilterCase
          +  getOutputFilterCase() {
          +    return OutputFilterCase.forNumber(
          +        outputFilterCase_);
             }
           
             public static final int NUMERATOR_FIELD_NUMBER = 1;
             private com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator_;
             /**
          -   *
          -   *
              * 
              * The numerator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; - * * @return Whether the numerator field is set. */ @java.lang.Override @@ -1152,25 +1017,18 @@ public boolean hasNumerator() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
              * The numerator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; - * * @return The numerator. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getNumerator() { - return numerator_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() - : numerator_; + return numerator_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() : numerator_; } /** - * - * *
              * The numerator of the ratio.
              * 
          @@ -1178,24 +1036,18 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getNum * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder - getNumeratorOrBuilder() { - return numerator_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() - : numerator_; + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder getNumeratorOrBuilder() { + return numerator_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() : numerator_; } public static final int DENOMINATOR_FIELD_NUMBER = 2; private com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator_; /** - * - * *
              * The denominator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; - * * @return Whether the denominator field is set. */ @java.lang.Override @@ -1203,25 +1055,18 @@ public boolean hasDenominator() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
              * The denominator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; - * * @return The denominator. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getDenominator() { - return denominator_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() - : denominator_; + return denominator_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() : denominator_; } /** - * - * *
              * The denominator of the ratio.
              * 
          @@ -1229,24 +1074,18 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getDen * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder - getDenominatorOrBuilder() { - return denominator_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() - : denominator_; + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder getDenominatorOrBuilder() { + return denominator_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() : denominator_; } public static final int SECONDARY_AGGREGATION_FIELD_NUMBER = 3; private com.google.monitoring.dashboard.v1.Aggregation secondaryAggregation_; /** - * - * *
              * Apply a second aggregation after the ratio is computed.
              * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; - * * @return Whether the secondaryAggregation field is set. */ @java.lang.Override @@ -1254,25 +1093,18 @@ public boolean hasSecondaryAggregation() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
              * Apply a second aggregation after the ratio is computed.
              * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; - * * @return The secondaryAggregation. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Aggregation getSecondaryAggregation() { - return secondaryAggregation_ == null - ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() - : secondaryAggregation_; + return secondaryAggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : secondaryAggregation_; } /** - * - * *
              * Apply a second aggregation after the ratio is computed.
              * 
          @@ -1280,23 +1112,17 @@ public com.google.monitoring.dashboard.v1.Aggregation getSecondaryAggregation() * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.AggregationOrBuilder - getSecondaryAggregationOrBuilder() { - return secondaryAggregation_ == null - ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() - : secondaryAggregation_; + public com.google.monitoring.dashboard.v1.AggregationOrBuilder getSecondaryAggregationOrBuilder() { + return secondaryAggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : secondaryAggregation_; } public static final int PICK_TIME_SERIES_FILTER_FIELD_NUMBER = 4; /** - * - * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * * @return Whether the pickTimeSeriesFilter field is set. */ @java.lang.Override @@ -1304,26 +1130,21 @@ public boolean hasPickTimeSeriesFilter() { return outputFilterCase_ == 4; } /** - * - * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * * @return The pickTimeSeriesFilter. */ @java.lang.Override public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeriesFilter() { if (outputFilterCase_ == 4) { - return (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_; + return (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_; } return com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance(); } /** - * - * *
              * Ranking based time series filter.
              * 
          @@ -1331,85 +1152,64 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeries * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder - getPickTimeSeriesFilterOrBuilder() { + public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickTimeSeriesFilterOrBuilder() { if (outputFilterCase_ == 4) { - return (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_; + return (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_; } return com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance(); } public static final int STATISTICAL_TIME_SERIES_FILTER_FIELD_NUMBER = 5; /** - * - * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * - * - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter - * is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=120 + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is deprecated. + * See google/monitoring/dashboard/v1/metrics.proto;l=129 * @return Whether the statisticalTimeSeriesFilter field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasStatisticalTimeSeriesFilter() { + @java.lang.Deprecated public boolean hasStatisticalTimeSeriesFilter() { return outputFilterCase_ == 5; } /** - * - * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * - * - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter - * is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=120 + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is deprecated. + * See google/monitoring/dashboard/v1/metrics.proto;l=129 * @return The statisticalTimeSeriesFilter. */ @java.lang.Override - @java.lang.Deprecated - public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter - getStatisticalTimeSeriesFilter() { + @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getStatisticalTimeSeriesFilter() { if (outputFilterCase_ == 5) { - return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; + return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; } return com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance(); } /** - * - * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder - getStatisticalTimeSeriesFilterOrBuilder() { + @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder getStatisticalTimeSeriesFilterOrBuilder() { if (outputFilterCase_ == 5) { - return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; + return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; } return com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1421,7 +1221,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getNumerator()); } @@ -1432,12 +1233,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(3, getSecondaryAggregation()); } if (outputFilterCase_ == 4) { - output.writeMessage( - 4, (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_); + output.writeMessage(4, (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_); } if (outputFilterCase_ == 5) { - output.writeMessage( - 5, (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_); + output.writeMessage(5, (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_); } getUnknownFields().writeTo(output); } @@ -1449,24 +1248,24 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNumerator()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNumerator()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDenominator()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDenominator()); } if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSecondaryAggregation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSecondaryAggregation()); } if (outputFilterCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_); } if (outputFilterCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1476,34 +1275,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio other = - (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) obj; + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio other = (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) obj; if (hasNumerator() != other.hasNumerator()) return false; if (hasNumerator()) { - if (!getNumerator().equals(other.getNumerator())) return false; + if (!getNumerator() + .equals(other.getNumerator())) return false; } if (hasDenominator() != other.hasDenominator()) return false; if (hasDenominator()) { - if (!getDenominator().equals(other.getDenominator())) return false; + if (!getDenominator() + .equals(other.getDenominator())) return false; } if (hasSecondaryAggregation() != other.hasSecondaryAggregation()) return false; if (hasSecondaryAggregation()) { - if (!getSecondaryAggregation().equals(other.getSecondaryAggregation())) return false; + if (!getSecondaryAggregation() + .equals(other.getSecondaryAggregation())) return false; } if (!getOutputFilterCase().equals(other.getOutputFilterCase())) return false; switch (outputFilterCase_) { case 4: - if (!getPickTimeSeriesFilter().equals(other.getPickTimeSeriesFilter())) return false; + if (!getPickTimeSeriesFilter() + .equals(other.getPickTimeSeriesFilter())) return false; break; case 5: - if (!getStatisticalTimeSeriesFilter().equals(other.getStatisticalTimeSeriesFilter())) - return false; + if (!getStatisticalTimeSeriesFilter() + .equals(other.getStatisticalTimeSeriesFilter())) return false; break; case 0: default: @@ -1549,104 +1351,98 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TimeSeriesFilterRatio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio 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.TimeSeriesFilterRatio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio prototype) { + public static Builder newBuilder(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * A pair of time series filters that define a ratio computation. The output
              * time series is the pair-wise division of each aligned element from the
          @@ -1655,23 +1451,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesFilterRatio}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.TimeSeriesFilterRatio)
                 com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto
          -          .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto
          -          .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.class,
          -              com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder.class);
          +              com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.class, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.newBuilder()
          @@ -1679,19 +1473,19 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          -
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
          +      if (com.google.protobuf.GeneratedMessageV3
          +              .alwaysUseFieldBuilders) {
                   getNumeratorFieldBuilder();
                   getDenominatorFieldBuilder();
                   getSecondaryAggregationFieldBuilder();
                 }
               }
          -
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -1723,9 +1517,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto
          -          .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor;
               }
           
               @java.lang.Override
          @@ -1744,11 +1538,8 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio buildPartial() {
          -      com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio result =
          -          new com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio(this);
          -      if (bitField0_ != 0) {
          -        buildPartial0(result);
          -      }
          +      com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio result = new com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio(this);
          +      if (bitField0_ != 0) { buildPartial0(result); }
                 buildPartialOneofs(result);
                 onBuilt();
                 return result;
          @@ -1758,32 +1549,35 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesFilterRa
                 int from_bitField0_ = bitField0_;
                 int to_bitField0_ = 0;
                 if (((from_bitField0_ & 0x00000001) != 0)) {
          -        result.numerator_ = numeratorBuilder_ == null ? numerator_ : numeratorBuilder_.build();
          +        result.numerator_ = numeratorBuilder_ == null
          +            ? numerator_
          +            : numeratorBuilder_.build();
                   to_bitField0_ |= 0x00000001;
                 }
                 if (((from_bitField0_ & 0x00000002) != 0)) {
          -        result.denominator_ =
          -            denominatorBuilder_ == null ? denominator_ : denominatorBuilder_.build();
          +        result.denominator_ = denominatorBuilder_ == null
          +            ? denominator_
          +            : denominatorBuilder_.build();
                   to_bitField0_ |= 0x00000002;
                 }
                 if (((from_bitField0_ & 0x00000004) != 0)) {
          -        result.secondaryAggregation_ =
          -            secondaryAggregationBuilder_ == null
          -                ? secondaryAggregation_
          -                : secondaryAggregationBuilder_.build();
          +        result.secondaryAggregation_ = secondaryAggregationBuilder_ == null
          +            ? secondaryAggregation_
          +            : secondaryAggregationBuilder_.build();
                   to_bitField0_ |= 0x00000004;
                 }
                 result.bitField0_ |= to_bitField0_;
               }
           
          -    private void buildPartialOneofs(
          -        com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio result) {
          +    private void buildPartialOneofs(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio result) {
                 result.outputFilterCase_ = outputFilterCase_;
                 result.outputFilter_ = this.outputFilter_;
          -      if (outputFilterCase_ == 4 && pickTimeSeriesFilterBuilder_ != null) {
          +      if (outputFilterCase_ == 4 &&
          +          pickTimeSeriesFilterBuilder_ != null) {
                   result.outputFilter_ = pickTimeSeriesFilterBuilder_.build();
                 }
          -      if (outputFilterCase_ == 5 && statisticalTimeSeriesFilterBuilder_ != null) {
          +      if (outputFilterCase_ == 5 &&
          +          statisticalTimeSeriesFilterBuilder_ != null) {
                   result.outputFilter_ = statisticalTimeSeriesFilterBuilder_.build();
                 }
               }
          @@ -1792,39 +1586,38 @@ private void buildPartialOneofs(
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.TimeSeriesFilterRatio) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1832,8 +1625,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio other) {
          -      if (other == com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.getDefaultInstance())
          -        return this;
          +      if (other == com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.getDefaultInstance()) return this;
                 if (other.hasNumerator()) {
                   mergeNumerator(other.getNumerator());
                 }
          @@ -1844,20 +1636,17 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesFilterRati
                   mergeSecondaryAggregation(other.getSecondaryAggregation());
                 }
                 switch (other.getOutputFilterCase()) {
          -        case PICK_TIME_SERIES_FILTER:
          -          {
          -            mergePickTimeSeriesFilter(other.getPickTimeSeriesFilter());
          -            break;
          -          }
          -        case STATISTICAL_TIME_SERIES_FILTER:
          -          {
          -            mergeStatisticalTimeSeriesFilter(other.getStatisticalTimeSeriesFilter());
          -            break;
          -          }
          -        case OUTPUTFILTER_NOT_SET:
          -          {
          -            break;
          -          }
          +        case PICK_TIME_SERIES_FILTER: {
          +          mergePickTimeSeriesFilter(other.getPickTimeSeriesFilter());
          +          break;
          +        }
          +        case STATISTICAL_TIME_SERIES_FILTER: {
          +          mergeStatisticalTimeSeriesFilter(other.getStatisticalTimeSeriesFilter());
          +          break;
          +        }
          +        case OUTPUTFILTER_NOT_SET: {
          +          break;
          +        }
                 }
                 this.mergeUnknownFields(other.getUnknownFields());
                 onChanged();
          @@ -1885,46 +1674,47 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10:
          -              {
          -                input.readMessage(getNumeratorFieldBuilder().getBuilder(), extensionRegistry);
          -                bitField0_ |= 0x00000001;
          -                break;
          -              } // case 10
          -            case 18:
          -              {
          -                input.readMessage(getDenominatorFieldBuilder().getBuilder(), extensionRegistry);
          -                bitField0_ |= 0x00000002;
          -                break;
          -              } // case 18
          -            case 26:
          -              {
          -                input.readMessage(
          -                    getSecondaryAggregationFieldBuilder().getBuilder(), extensionRegistry);
          -                bitField0_ |= 0x00000004;
          -                break;
          -              } // case 26
          -            case 34:
          -              {
          -                input.readMessage(
          -                    getPickTimeSeriesFilterFieldBuilder().getBuilder(), extensionRegistry);
          -                outputFilterCase_ = 4;
          -                break;
          -              } // case 34
          -            case 42:
          -              {
          -                input.readMessage(
          -                    getStatisticalTimeSeriesFilterFieldBuilder().getBuilder(), extensionRegistry);
          -                outputFilterCase_ = 5;
          -                break;
          -              } // case 42
          -            default:
          -              {
          -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                  done = true; // was an endgroup tag
          -                }
          -                break;
          -              } // default:
          +            case 10: {
          +              input.readMessage(
          +                  getNumeratorFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              bitField0_ |= 0x00000001;
          +              break;
          +            } // case 10
          +            case 18: {
          +              input.readMessage(
          +                  getDenominatorFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              bitField0_ |= 0x00000002;
          +              break;
          +            } // case 18
          +            case 26: {
          +              input.readMessage(
          +                  getSecondaryAggregationFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              bitField0_ |= 0x00000004;
          +              break;
          +            } // case 26
          +            case 34: {
          +              input.readMessage(
          +                  getPickTimeSeriesFilterFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              outputFilterCase_ = 4;
          +              break;
          +            } // case 34
          +            case 42: {
          +              input.readMessage(
          +                  getStatisticalTimeSeriesFilterFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              outputFilterCase_ = 5;
          +              break;
          +            } // case 42
          +            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) {
          @@ -1934,12 +1724,12 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          -
               private int outputFilterCase_ = 0;
               private java.lang.Object outputFilter_;
          -
          -    public OutputFilterCase getOutputFilterCase() {
          -      return OutputFilterCase.forNumber(outputFilterCase_);
          +    public OutputFilterCase
          +        getOutputFilterCase() {
          +      return OutputFilterCase.forNumber(
          +          outputFilterCase_);
               }
           
               public Builder clearOutputFilter() {
          @@ -1953,56 +1743,41 @@ public Builder clearOutputFilter() {
           
               private com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator_;
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart,
          -            com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder,
          -            com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder>
          -        numeratorBuilder_;
          +        com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder> numeratorBuilder_;
               /**
          -     *
          -     *
                * 
                * The numerator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; - * * @return Whether the numerator field is set. */ public boolean hasNumerator() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * The numerator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; - * * @return The numerator. */ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getNumerator() { if (numeratorBuilder_ == null) { - return numerator_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart - .getDefaultInstance() - : numerator_; + return numerator_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() : numerator_; } else { return numeratorBuilder_.getMessage(); } } /** - * - * *
                * The numerator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; */ - public Builder setNumerator( - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart value) { + public Builder setNumerator(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart value) { if (numeratorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2016,8 +1791,6 @@ public Builder setNumerator( return this; } /** - * - * *
                * The numerator of the ratio.
                * 
          @@ -2025,8 +1798,7 @@ public Builder setNumerator( * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; */ public Builder setNumerator( - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder - builderForValue) { + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder builderForValue) { if (numeratorBuilder_ == null) { numerator_ = builderForValue.build(); } else { @@ -2037,22 +1809,17 @@ public Builder setNumerator( return this; } /** - * - * *
                * The numerator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; */ - public Builder mergeNumerator( - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart value) { + public Builder mergeNumerator(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart value) { if (numeratorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && numerator_ != null - && numerator_ - != com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + numerator_ != null && + numerator_ != com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance()) { getNumeratorBuilder().mergeFrom(value); } else { numerator_ = value; @@ -2067,8 +1834,6 @@ public Builder mergeNumerator( return this; } /** - * - * *
                * The numerator of the ratio.
                * 
          @@ -2086,43 +1851,33 @@ public Builder clearNumerator() { return this; } /** - * - * *
                * The numerator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; */ - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder - getNumeratorBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder getNumeratorBuilder() { bitField0_ |= 0x00000001; onChanged(); return getNumeratorFieldBuilder().getBuilder(); } /** - * - * *
                * The numerator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; */ - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder - getNumeratorOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder getNumeratorOrBuilder() { if (numeratorBuilder_ != null) { return numeratorBuilder_.getMessageOrBuilder(); } else { - return numerator_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart - .getDefaultInstance() - : numerator_; + return numerator_ == null ? + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() : numerator_; } } /** - * - * *
                * The numerator of the ratio.
                * 
          @@ -2130,17 +1885,14 @@ public Builder clearNumerator() { * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder> + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder> getNumeratorFieldBuilder() { if (numeratorBuilder_ == null) { - numeratorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder>( - getNumerator(), getParentForChildren(), isClean()); + numeratorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder>( + getNumerator(), + getParentForChildren(), + isClean()); numerator_ = null; } return numeratorBuilder_; @@ -2148,56 +1900,41 @@ public Builder clearNumerator() { private com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder> - denominatorBuilder_; + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder> denominatorBuilder_; /** - * - * *
                * The denominator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; - * * @return Whether the denominator field is set. */ public boolean hasDenominator() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * The denominator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; - * * @return The denominator. */ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getDenominator() { if (denominatorBuilder_ == null) { - return denominator_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart - .getDefaultInstance() - : denominator_; + return denominator_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() : denominator_; } else { return denominatorBuilder_.getMessage(); } } /** - * - * *
                * The denominator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; */ - public Builder setDenominator( - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart value) { + public Builder setDenominator(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart value) { if (denominatorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2211,8 +1948,6 @@ public Builder setDenominator( return this; } /** - * - * *
                * The denominator of the ratio.
                * 
          @@ -2220,8 +1955,7 @@ public Builder setDenominator( * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; */ public Builder setDenominator( - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder - builderForValue) { + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder builderForValue) { if (denominatorBuilder_ == null) { denominator_ = builderForValue.build(); } else { @@ -2232,22 +1966,17 @@ public Builder setDenominator( return this; } /** - * - * *
                * The denominator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; */ - public Builder mergeDenominator( - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart value) { + public Builder mergeDenominator(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart value) { if (denominatorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && denominator_ != null - && denominator_ - != com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart - .getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + denominator_ != null && + denominator_ != com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance()) { getDenominatorBuilder().mergeFrom(value); } else { denominator_ = value; @@ -2262,8 +1991,6 @@ public Builder mergeDenominator( return this; } /** - * - * *
                * The denominator of the ratio.
                * 
          @@ -2281,43 +2008,33 @@ public Builder clearDenominator() { return this; } /** - * - * *
                * The denominator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; */ - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder - getDenominatorBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder getDenominatorBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDenominatorFieldBuilder().getBuilder(); } /** - * - * *
                * The denominator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; */ - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder - getDenominatorOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder getDenominatorOrBuilder() { if (denominatorBuilder_ != null) { return denominatorBuilder_.getMessageOrBuilder(); } else { - return denominator_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart - .getDefaultInstance() - : denominator_; + return denominator_ == null ? + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() : denominator_; } } /** - * - * *
                * The denominator of the ratio.
                * 
          @@ -2325,17 +2042,14 @@ public Builder clearDenominator() { * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder> + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder> getDenominatorFieldBuilder() { if (denominatorBuilder_ == null) { - denominatorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder>( - getDenominator(), getParentForChildren(), isClean()); + denominatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder>( + getDenominator(), + getParentForChildren(), + isClean()); denominator_ = null; } return denominatorBuilder_; @@ -2343,47 +2057,34 @@ public Builder clearDenominator() { private com.google.monitoring.dashboard.v1.Aggregation secondaryAggregation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Aggregation, - com.google.monitoring.dashboard.v1.Aggregation.Builder, - com.google.monitoring.dashboard.v1.AggregationOrBuilder> - secondaryAggregationBuilder_; + com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder> secondaryAggregationBuilder_; /** - * - * *
                * Apply a second aggregation after the ratio is computed.
                * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; - * * @return Whether the secondaryAggregation field is set. */ public boolean hasSecondaryAggregation() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                * Apply a second aggregation after the ratio is computed.
                * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; - * * @return The secondaryAggregation. */ public com.google.monitoring.dashboard.v1.Aggregation getSecondaryAggregation() { if (secondaryAggregationBuilder_ == null) { - return secondaryAggregation_ == null - ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() - : secondaryAggregation_; + return secondaryAggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : secondaryAggregation_; } else { return secondaryAggregationBuilder_.getMessage(); } } /** - * - * *
                * Apply a second aggregation after the ratio is computed.
                * 
          @@ -2404,8 +2105,6 @@ public Builder setSecondaryAggregation(com.google.monitoring.dashboard.v1.Aggreg return this; } /** - * - * *
                * Apply a second aggregation after the ratio is computed.
                * 
          @@ -2424,8 +2123,6 @@ public Builder setSecondaryAggregation( return this; } /** - * - * *
                * Apply a second aggregation after the ratio is computed.
                * 
          @@ -2434,10 +2131,9 @@ public Builder setSecondaryAggregation( */ public Builder mergeSecondaryAggregation(com.google.monitoring.dashboard.v1.Aggregation value) { if (secondaryAggregationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && secondaryAggregation_ != null - && secondaryAggregation_ - != com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + secondaryAggregation_ != null && + secondaryAggregation_ != com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()) { getSecondaryAggregationBuilder().mergeFrom(value); } else { secondaryAggregation_ = value; @@ -2452,8 +2148,6 @@ public Builder mergeSecondaryAggregation(com.google.monitoring.dashboard.v1.Aggr return this; } /** - * - * *
                * Apply a second aggregation after the ratio is computed.
                * 
          @@ -2471,8 +2165,6 @@ public Builder clearSecondaryAggregation() { return this; } /** - * - * *
                * Apply a second aggregation after the ratio is computed.
                * 
          @@ -2485,27 +2177,21 @@ public com.google.monitoring.dashboard.v1.Aggregation.Builder getSecondaryAggreg return getSecondaryAggregationFieldBuilder().getBuilder(); } /** - * - * *
                * Apply a second aggregation after the ratio is computed.
                * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; */ - public com.google.monitoring.dashboard.v1.AggregationOrBuilder - getSecondaryAggregationOrBuilder() { + public com.google.monitoring.dashboard.v1.AggregationOrBuilder getSecondaryAggregationOrBuilder() { if (secondaryAggregationBuilder_ != null) { return secondaryAggregationBuilder_.getMessageOrBuilder(); } else { - return secondaryAggregation_ == null - ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() - : secondaryAggregation_; + return secondaryAggregation_ == null ? + com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : secondaryAggregation_; } } /** - * - * *
                * Apply a second aggregation after the ratio is computed.
                * 
          @@ -2513,37 +2199,27 @@ public com.google.monitoring.dashboard.v1.Aggregation.Builder getSecondaryAggreg * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Aggregation, - com.google.monitoring.dashboard.v1.Aggregation.Builder, - com.google.monitoring.dashboard.v1.AggregationOrBuilder> + com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder> getSecondaryAggregationFieldBuilder() { if (secondaryAggregationBuilder_ == null) { - secondaryAggregationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Aggregation, - com.google.monitoring.dashboard.v1.Aggregation.Builder, - com.google.monitoring.dashboard.v1.AggregationOrBuilder>( - getSecondaryAggregation(), getParentForChildren(), isClean()); + secondaryAggregationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder>( + getSecondaryAggregation(), + getParentForChildren(), + isClean()); secondaryAggregation_ = null; } return secondaryAggregationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, - com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder> - pickTimeSeriesFilterBuilder_; + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder> pickTimeSeriesFilterBuilder_; /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; * @return Whether the pickTimeSeriesFilter field is set. */ @java.lang.Override @@ -2551,15 +2227,11 @@ public boolean hasPickTimeSeriesFilter() { return outputFilterCase_ == 4; } /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; * @return The pickTimeSeriesFilter. */ @java.lang.Override @@ -2577,17 +2249,13 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeries } } /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ - public Builder setPickTimeSeriesFilter( - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter value) { + public Builder setPickTimeSeriesFilter(com.google.monitoring.dashboard.v1.PickTimeSeriesFilter value) { if (pickTimeSeriesFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2601,14 +2269,11 @@ public Builder setPickTimeSeriesFilter( return this; } /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ public Builder setPickTimeSeriesFilter( com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder builderForValue) { @@ -2622,26 +2287,18 @@ public Builder setPickTimeSeriesFilter( return this; } /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ - public Builder mergePickTimeSeriesFilter( - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter value) { + public Builder mergePickTimeSeriesFilter(com.google.monitoring.dashboard.v1.PickTimeSeriesFilter value) { if (pickTimeSeriesFilterBuilder_ == null) { - if (outputFilterCase_ == 4 - && outputFilter_ - != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance()) { - outputFilter_ = - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.newBuilder( - (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_) - .mergeFrom(value) - .buildPartial(); + if (outputFilterCase_ == 4 && + outputFilter_ != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance()) { + outputFilter_ = com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.newBuilder((com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_) + .mergeFrom(value).buildPartial(); } else { outputFilter_ = value; } @@ -2657,14 +2314,11 @@ public Builder mergePickTimeSeriesFilter( return this; } /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ public Builder clearPickTimeSeriesFilter() { if (pickTimeSeriesFilterBuilder_ == null) { @@ -2683,32 +2337,24 @@ public Builder clearPickTimeSeriesFilter() { return this; } /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ - public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder - getPickTimeSeriesFilterBuilder() { + public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder getPickTimeSeriesFilterBuilder() { return getPickTimeSeriesFilterFieldBuilder().getBuilder(); } /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder - getPickTimeSeriesFilterOrBuilder() { + public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickTimeSeriesFilterOrBuilder() { if ((outputFilterCase_ == 4) && (pickTimeSeriesFilterBuilder_ != null)) { return pickTimeSeriesFilterBuilder_.getMessageOrBuilder(); } else { @@ -2719,30 +2365,21 @@ public Builder clearPickTimeSeriesFilter() { } } /** - * - * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, - com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder> + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder> getPickTimeSeriesFilterFieldBuilder() { if (pickTimeSeriesFilterBuilder_ == null) { if (!(outputFilterCase_ == 4)) { - outputFilter_ = - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance(); + outputFilter_ = com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance(); } - pickTimeSeriesFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, - com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder>( + pickTimeSeriesFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder>( (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_, getParentForChildren(), isClean()); @@ -2754,53 +2391,35 @@ public Builder clearPickTimeSeriesFilter() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder> - statisticalTimeSeriesFilterBuilder_; + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder> statisticalTimeSeriesFilterBuilder_; /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * - * - * @deprecated - * google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is - * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=120 + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is deprecated. + * See google/monitoring/dashboard/v1/metrics.proto;l=129 * @return Whether the statisticalTimeSeriesFilter field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasStatisticalTimeSeriesFilter() { + @java.lang.Deprecated public boolean hasStatisticalTimeSeriesFilter() { return outputFilterCase_ == 5; } /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * - * - * @deprecated - * google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is - * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=120 + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is deprecated. + * See google/monitoring/dashboard/v1/metrics.proto;l=129 * @return The statisticalTimeSeriesFilter. */ @java.lang.Override - @java.lang.Deprecated - public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter - getStatisticalTimeSeriesFilter() { + @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getStatisticalTimeSeriesFilter() { if (statisticalTimeSeriesFilterBuilder_ == null) { if (outputFilterCase_ == 5) { return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; @@ -2814,20 +2433,14 @@ public boolean hasStatisticalTimeSeriesFilter() { } } /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setStatisticalTimeSeriesFilter( - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter value) { + @java.lang.Deprecated public Builder setStatisticalTimeSeriesFilter(com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter value) { if (statisticalTimeSeriesFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2841,19 +2454,14 @@ public Builder setStatisticalTimeSeriesFilter( return this; } /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setStatisticalTimeSeriesFilter( + @java.lang.Deprecated public Builder setStatisticalTimeSeriesFilter( com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder builderForValue) { if (statisticalTimeSeriesFilterBuilder_ == null) { outputFilter_ = builderForValue.build(); @@ -2865,31 +2473,19 @@ public Builder setStatisticalTimeSeriesFilter( return this; } /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ - @java.lang.Deprecated - public Builder mergeStatisticalTimeSeriesFilter( - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter value) { + @java.lang.Deprecated public Builder mergeStatisticalTimeSeriesFilter(com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter value) { if (statisticalTimeSeriesFilterBuilder_ == null) { - if (outputFilterCase_ == 5 - && outputFilter_ - != com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter - .getDefaultInstance()) { - outputFilter_ = - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.newBuilder( - (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) - outputFilter_) - .mergeFrom(value) - .buildPartial(); + if (outputFilterCase_ == 5 && + outputFilter_ != com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance()) { + outputFilter_ = com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.newBuilder((com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_) + .mergeFrom(value).buildPartial(); } else { outputFilter_ = value; } @@ -2905,19 +2501,14 @@ public Builder mergeStatisticalTimeSeriesFilter( return this; } /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearStatisticalTimeSeriesFilter() { + @java.lang.Deprecated public Builder clearStatisticalTimeSeriesFilter() { if (statisticalTimeSeriesFilterBuilder_ == null) { if (outputFilterCase_ == 5) { outputFilterCase_ = 0; @@ -2934,38 +2525,26 @@ public Builder clearStatisticalTimeSeriesFilter() { return this; } /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder - getStatisticalTimeSeriesFilterBuilder() { + @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder getStatisticalTimeSeriesFilterBuilder() { return getStatisticalTimeSeriesFilterFieldBuilder().getBuilder(); } /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder - getStatisticalTimeSeriesFilterOrBuilder() { + @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder getStatisticalTimeSeriesFilterOrBuilder() { if ((outputFilterCase_ == 5) && (statisticalTimeSeriesFilterBuilder_ != null)) { return statisticalTimeSeriesFilterBuilder_.getMessageOrBuilder(); } else { @@ -2976,32 +2555,22 @@ public Builder clearStatisticalTimeSeriesFilter() { } } /** - * - * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder> + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder> getStatisticalTimeSeriesFilterFieldBuilder() { if (statisticalTimeSeriesFilterBuilder_ == null) { if (!(outputFilterCase_ == 5)) { - outputFilter_ = - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance(); + outputFilter_ = com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance(); } - statisticalTimeSeriesFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder>( + statisticalTimeSeriesFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder>( (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_, getParentForChildren(), isClean()); @@ -3011,9 +2580,9 @@ public Builder clearStatisticalTimeSeriesFilter() { onChanged(); return statisticalTimeSeriesFilterBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3023,12 +2592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.TimeSeriesFilterRatio) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.TimeSeriesFilterRatio) private static final com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio(); } @@ -3037,27 +2606,27 @@ public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeriesFilterRatio 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeriesFilterRatio 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; @@ -3072,4 +2641,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatioOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatioOrBuilder.java similarity index 68% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatioOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatioOrBuilder.java index fd5865ae4279..4941f4b93aaa 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatioOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatioOrBuilder.java @@ -1,128 +1,86 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/metrics.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface TimeSeriesFilterRatioOrBuilder - extends +public interface TimeSeriesFilterRatioOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TimeSeriesFilterRatio) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * The numerator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; - * * @return Whether the numerator field is set. */ boolean hasNumerator(); /** - * - * *
              * The numerator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; - * * @return The numerator. */ com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getNumerator(); /** - * - * *
              * The numerator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; */ - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder - getNumeratorOrBuilder(); + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder getNumeratorOrBuilder(); /** - * - * *
              * The denominator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; - * * @return Whether the denominator field is set. */ boolean hasDenominator(); /** - * - * *
              * The denominator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; - * * @return The denominator. */ com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getDenominator(); /** - * - * *
              * The denominator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; */ - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder - getDenominatorOrBuilder(); + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder getDenominatorOrBuilder(); /** - * - * *
              * Apply a second aggregation after the ratio is computed.
              * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; - * * @return Whether the secondaryAggregation field is set. */ boolean hasSecondaryAggregation(); /** - * - * *
              * Apply a second aggregation after the ratio is computed.
              * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; - * * @return The secondaryAggregation. */ com.google.monitoring.dashboard.v1.Aggregation getSecondaryAggregation(); /** - * - * *
              * Apply a second aggregation after the ratio is computed.
              * 
          @@ -132,92 +90,65 @@ public interface TimeSeriesFilterRatioOrBuilder com.google.monitoring.dashboard.v1.AggregationOrBuilder getSecondaryAggregationOrBuilder(); /** - * - * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * * @return Whether the pickTimeSeriesFilter field is set. */ boolean hasPickTimeSeriesFilter(); /** - * - * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; - * * @return The pickTimeSeriesFilter. */ com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeriesFilter(); /** - * - * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ - com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder - getPickTimeSeriesFilterOrBuilder(); + com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickTimeSeriesFilterOrBuilder(); /** - * - * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * - * - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter - * is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=120 + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is deprecated. + * See google/monitoring/dashboard/v1/metrics.proto;l=129 * @return Whether the statisticalTimeSeriesFilter field is set. */ - @java.lang.Deprecated - boolean hasStatisticalTimeSeriesFilter(); + @java.lang.Deprecated boolean hasStatisticalTimeSeriesFilter(); /** - * - * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * - * - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter - * is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=120 + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is deprecated. + * See google/monitoring/dashboard/v1/metrics.proto;l=129 * @return The statisticalTimeSeriesFilter. */ - @java.lang.Deprecated - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getStatisticalTimeSeriesFilter(); + @java.lang.Deprecated com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getStatisticalTimeSeriesFilter(); /** - * - * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; */ - @java.lang.Deprecated - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder - getStatisticalTimeSeriesFilterOrBuilder(); + @java.lang.Deprecated com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder getStatisticalTimeSeriesFilterOrBuilder(); com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.OutputFilterCase getOutputFilterCase(); } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQuery.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQuery.java similarity index 69% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQuery.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQuery.java index 2d973aec2895..38c441b42d8a 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQuery.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQuery.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/metrics.proto @@ -20,8 +5,6 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * TimeSeriesQuery collects the set of supported methods for querying time
            * series data from the Stackdriver metrics API.
          @@ -29,49 +12,44 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesQuery}
            */
          -public final class TimeSeriesQuery extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class TimeSeriesQuery extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TimeSeriesQuery)
               TimeSeriesQueryOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use TimeSeriesQuery.newBuilder() to construct.
             private TimeSeriesQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
             private TimeSeriesQuery() {
               unitOverride_ = "";
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new TimeSeriesQuery();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.MetricsProto
          -        .internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.MetricsProto
          -        .internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.TimeSeriesQuery.class,
          -            com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder.class);
          +            com.google.monitoring.dashboard.v1.TimeSeriesQuery.class, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder.class);
             }
           
             private int sourceCase_ = 0;
          -
             @SuppressWarnings("serial")
             private java.lang.Object source_;
          -
             public enum SourceCase
          -      implements
          -          com.google.protobuf.Internal.EnumLite,
          +      implements com.google.protobuf.Internal.EnumLite,
                     com.google.protobuf.AbstractMessage.InternalOneOfEnum {
               TIME_SERIES_FILTER(1),
               TIME_SERIES_FILTER_RATIO(2),
          @@ -79,7 +57,6 @@ public enum SourceCase
               PROMETHEUS_QUERY(6),
               SOURCE_NOT_SET(0);
               private final int value;
          -
               private SourceCase(int value) {
                 this.value = value;
               }
          @@ -95,40 +72,32 @@ public static SourceCase valueOf(int value) {
           
               public static SourceCase forNumber(int value) {
                 switch (value) {
          -        case 1:
          -          return TIME_SERIES_FILTER;
          -        case 2:
          -          return TIME_SERIES_FILTER_RATIO;
          -        case 3:
          -          return TIME_SERIES_QUERY_LANGUAGE;
          -        case 6:
          -          return PROMETHEUS_QUERY;
          -        case 0:
          -          return SOURCE_NOT_SET;
          -        default:
          -          return null;
          +        case 1: return TIME_SERIES_FILTER;
          +        case 2: return TIME_SERIES_FILTER_RATIO;
          +        case 3: return TIME_SERIES_QUERY_LANGUAGE;
          +        case 6: return PROMETHEUS_QUERY;
          +        case 0: return SOURCE_NOT_SET;
          +        default: return null;
                 }
               }
          -
               public int getNumber() {
                 return this.value;
               }
             };
           
          -  public SourceCase getSourceCase() {
          -    return SourceCase.forNumber(sourceCase_);
          +  public SourceCase
          +  getSourceCase() {
          +    return SourceCase.forNumber(
          +        sourceCase_);
             }
           
             public static final int TIME_SERIES_FILTER_FIELD_NUMBER = 1;
             /**
          -   *
          -   *
              * 
              * Filter parameters to fetch time series.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; - * * @return Whether the timeSeriesFilter field is set. */ @java.lang.Override @@ -136,26 +105,21 @@ public boolean hasTimeSeriesFilter() { return sourceCase_ == 1; } /** - * - * *
              * Filter parameters to fetch time series.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; - * * @return The timeSeriesFilter. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesFilter getTimeSeriesFilter() { if (sourceCase_ == 1) { - return (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_; + return (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_; } return com.google.monitoring.dashboard.v1.TimeSeriesFilter.getDefaultInstance(); } /** - * - * *
              * Filter parameters to fetch time series.
              * 
          @@ -163,25 +127,20 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilter getTimeSeriesFilter() * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder - getTimeSeriesFilterOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder getTimeSeriesFilterOrBuilder() { if (sourceCase_ == 1) { - return (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_; + return (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_; } return com.google.monitoring.dashboard.v1.TimeSeriesFilter.getDefaultInstance(); } public static final int TIME_SERIES_FILTER_RATIO_FIELD_NUMBER = 2; /** - * - * *
              * Parameters to fetch a ratio between two time series filters.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; * @return Whether the timeSeriesFilterRatio field is set. */ @java.lang.Override @@ -189,67 +148,53 @@ public boolean hasTimeSeriesFilterRatio() { return sourceCase_ == 2; } /** - * - * *
              * Parameters to fetch a ratio between two time series filters.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; * @return The timeSeriesFilterRatio. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio getTimeSeriesFilterRatio() { if (sourceCase_ == 2) { - return (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_; + return (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_; } return com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.getDefaultInstance(); } /** - * - * *
              * Parameters to fetch a ratio between two time series filters.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; - * + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder - getTimeSeriesFilterRatioOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder getTimeSeriesFilterRatioOrBuilder() { if (sourceCase_ == 2) { - return (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_; + return (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_; } return com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.getDefaultInstance(); } public static final int TIME_SERIES_QUERY_LANGUAGE_FIELD_NUMBER = 3; /** - * - * *
              * A query used to fetch time series with MQL.
              * 
          * * string time_series_query_language = 3; - * * @return Whether the timeSeriesQueryLanguage field is set. */ public boolean hasTimeSeriesQueryLanguage() { return sourceCase_ == 3; } /** - * - * *
              * A query used to fetch time series with MQL.
              * 
          * * string time_series_query_language = 3; - * * @return The timeSeriesQueryLanguage. */ public java.lang.String getTimeSeriesQueryLanguage() { @@ -260,7 +205,8 @@ public java.lang.String getTimeSeriesQueryLanguage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 3) { source_ = s; @@ -269,24 +215,23 @@ public java.lang.String getTimeSeriesQueryLanguage() { } } /** - * - * *
              * A query used to fetch time series with MQL.
              * 
          * * string time_series_query_language = 3; - * * @return The bytes for timeSeriesQueryLanguage. */ - public com.google.protobuf.ByteString getTimeSeriesQueryLanguageBytes() { + public com.google.protobuf.ByteString + getTimeSeriesQueryLanguageBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 3) { source_ = b; } @@ -298,28 +243,22 @@ public com.google.protobuf.ByteString getTimeSeriesQueryLanguageBytes() { public static final int PROMETHEUS_QUERY_FIELD_NUMBER = 6; /** - * - * *
              * A query used to fetch time series with PromQL.
              * 
          * * string prometheus_query = 6; - * * @return Whether the prometheusQuery field is set. */ public boolean hasPrometheusQuery() { return sourceCase_ == 6; } /** - * - * *
              * A query used to fetch time series with PromQL.
              * 
          * * string prometheus_query = 6; - * * @return The prometheusQuery. */ public java.lang.String getPrometheusQuery() { @@ -330,7 +269,8 @@ public java.lang.String getPrometheusQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 6) { source_ = s; @@ -339,24 +279,23 @@ public java.lang.String getPrometheusQuery() { } } /** - * - * *
              * A query used to fetch time series with PromQL.
              * 
          * * string prometheus_query = 6; - * * @return The bytes for prometheusQuery. */ - public com.google.protobuf.ByteString getPrometheusQueryBytes() { + public com.google.protobuf.ByteString + getPrometheusQueryBytes() { java.lang.Object ref = ""; if (sourceCase_ == 6) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 6) { source_ = b; } @@ -367,12 +306,9 @@ public com.google.protobuf.ByteString getPrometheusQueryBytes() { } public static final int UNIT_OVERRIDE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object unitOverride_ = ""; /** - * - * *
              * The unit of data contained in fetched time series. If non-empty, this
              * unit will override any unit that accompanies fetched data. The format is
          @@ -382,7 +318,6 @@ public com.google.protobuf.ByteString getPrometheusQueryBytes() {
              * 
          * * string unit_override = 5; - * * @return The unitOverride. */ @java.lang.Override @@ -391,15 +326,14 @@ public java.lang.String getUnitOverride() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unitOverride_ = s; return s; } } /** - * - * *
              * The unit of data contained in fetched time series. If non-empty, this
              * unit will override any unit that accompanies fetched data. The format is
          @@ -409,15 +343,16 @@ public java.lang.String getUnitOverride() {
              * 
          * * string unit_override = 5; - * * @return The bytes for unitOverride. */ @java.lang.Override - public com.google.protobuf.ByteString getUnitOverrideBytes() { + public com.google.protobuf.ByteString + getUnitOverrideBytes() { java.lang.Object ref = unitOverride_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); unitOverride_ = b; return b; } else { @@ -425,8 +360,28 @@ public com.google.protobuf.ByteString getUnitOverrideBytes() { } } - private byte memoizedIsInitialized = -1; + public static final int OUTPUT_FULL_DURATION_FIELD_NUMBER = 7; + private boolean outputFullDuration_ = false; + /** + *
          +   * Optional. If set, Cloud Monitoring will treat the full query duration as
          +   * the alignment period so that there will be only 1 output value.
          +   *
          +   * *Note: This could override the configured alignment period except for
          +   * the cases where a series of data points are expected, like
          +   *   - XyChart
          +   *   - Scorecard's spark chart
          +   * 
          + * + * bool output_full_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return The outputFullDuration. + */ + @java.lang.Override + public boolean getOutputFullDuration() { + return outputFullDuration_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -438,7 +393,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (sourceCase_ == 1) { output.writeMessage(1, (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_); } @@ -454,6 +410,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sourceCase_ == 6) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, source_); } + if (outputFullDuration_ != false) { + output.writeBool(7, outputFullDuration_); + } getUnknownFields().writeTo(output); } @@ -464,14 +423,12 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_); } if (sourceCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_); } if (sourceCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); @@ -482,6 +439,10 @@ public int getSerializedSize() { if (sourceCase_ == 6) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, source_); } + if (outputFullDuration_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, outputFullDuration_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -490,28 +451,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.TimeSeriesQuery)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.TimeSeriesQuery other = - (com.google.monitoring.dashboard.v1.TimeSeriesQuery) obj; + com.google.monitoring.dashboard.v1.TimeSeriesQuery other = (com.google.monitoring.dashboard.v1.TimeSeriesQuery) obj; - if (!getUnitOverride().equals(other.getUnitOverride())) return false; + if (!getUnitOverride() + .equals(other.getUnitOverride())) return false; + if (getOutputFullDuration() + != other.getOutputFullDuration()) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getTimeSeriesFilter().equals(other.getTimeSeriesFilter())) return false; + if (!getTimeSeriesFilter() + .equals(other.getTimeSeriesFilter())) return false; break; case 2: - if (!getTimeSeriesFilterRatio().equals(other.getTimeSeriesFilterRatio())) return false; + if (!getTimeSeriesFilterRatio() + .equals(other.getTimeSeriesFilterRatio())) return false; break; case 3: - if (!getTimeSeriesQueryLanguage().equals(other.getTimeSeriesQueryLanguage())) return false; + if (!getTimeSeriesQueryLanguage() + .equals(other.getTimeSeriesQueryLanguage())) return false; break; case 6: - if (!getPrometheusQuery().equals(other.getPrometheusQuery())) return false; + if (!getPrometheusQuery() + .equals(other.getPrometheusQuery())) return false; break; case 0: default: @@ -529,6 +496,9 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + UNIT_OVERRIDE_FIELD_NUMBER; hash = (53 * hash) + getUnitOverride().hashCode(); + hash = (37 * hash) + OUTPUT_FULL_DURATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOutputFullDuration()); switch (sourceCase_) { case 1: hash = (37 * hash) + TIME_SERIES_FILTER_FIELD_NUMBER; @@ -555,103 +525,98 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TimeSeriesQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.TimeSeriesQuery 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.TimeSeriesQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.TimeSeriesQuery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * TimeSeriesQuery collects the set of supported methods for querying time
              * series data from the Stackdriver metrics API.
          @@ -659,32 +624,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesQuery}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.TimeSeriesQuery)
                 com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto
          -          .internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto
          -          .internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.TimeSeriesQuery.class,
          -              com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder.class);
          +              com.google.monitoring.dashboard.v1.TimeSeriesQuery.class, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.TimeSeriesQuery.newBuilder()
          -    private Builder() {}
          +    private Builder() {
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          -      super(parent);
               }
           
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +      super(parent);
          +
          +    }
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -696,15 +662,16 @@ public Builder clear() {
                   timeSeriesFilterRatioBuilder_.clear();
                 }
                 unitOverride_ = "";
          +      outputFullDuration_ = false;
                 sourceCase_ = 0;
                 source_ = null;
                 return this;
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto
          -          .internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor;
               }
           
               @java.lang.Override
          @@ -723,11 +690,8 @@ public com.google.monitoring.dashboard.v1.TimeSeriesQuery build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.TimeSeriesQuery buildPartial() {
          -      com.google.monitoring.dashboard.v1.TimeSeriesQuery result =
          -          new com.google.monitoring.dashboard.v1.TimeSeriesQuery(this);
          -      if (bitField0_ != 0) {
          -        buildPartial0(result);
          -      }
          +      com.google.monitoring.dashboard.v1.TimeSeriesQuery result = new com.google.monitoring.dashboard.v1.TimeSeriesQuery(this);
          +      if (bitField0_ != 0) { buildPartial0(result); }
                 buildPartialOneofs(result);
                 onBuilt();
                 return result;
          @@ -738,15 +702,20 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesQuery re
                 if (((from_bitField0_ & 0x00000010) != 0)) {
                   result.unitOverride_ = unitOverride_;
                 }
          +      if (((from_bitField0_ & 0x00000020) != 0)) {
          +        result.outputFullDuration_ = outputFullDuration_;
          +      }
               }
           
               private void buildPartialOneofs(com.google.monitoring.dashboard.v1.TimeSeriesQuery result) {
                 result.sourceCase_ = sourceCase_;
                 result.source_ = this.source_;
          -      if (sourceCase_ == 1 && timeSeriesFilterBuilder_ != null) {
          +      if (sourceCase_ == 1 &&
          +          timeSeriesFilterBuilder_ != null) {
                   result.source_ = timeSeriesFilterBuilder_.build();
                 }
          -      if (sourceCase_ == 2 && timeSeriesFilterRatioBuilder_ != null) {
          +      if (sourceCase_ == 2 &&
          +          timeSeriesFilterRatioBuilder_ != null) {
                   result.source_ = timeSeriesFilterRatioBuilder_.build();
                 }
               }
          @@ -755,39 +724,38 @@ private void buildPartialOneofs(com.google.monitoring.dashboard.v1.TimeSeriesQue
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.TimeSeriesQuery) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesQuery) other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesQuery)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -795,42 +763,39 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesQuery other) {
          -      if (other == com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance())
          -        return this;
          +      if (other == com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance()) return this;
                 if (!other.getUnitOverride().isEmpty()) {
                   unitOverride_ = other.unitOverride_;
                   bitField0_ |= 0x00000010;
                   onChanged();
                 }
          +      if (other.getOutputFullDuration() != false) {
          +        setOutputFullDuration(other.getOutputFullDuration());
          +      }
                 switch (other.getSourceCase()) {
          -        case TIME_SERIES_FILTER:
          -          {
          -            mergeTimeSeriesFilter(other.getTimeSeriesFilter());
          -            break;
          -          }
          -        case TIME_SERIES_FILTER_RATIO:
          -          {
          -            mergeTimeSeriesFilterRatio(other.getTimeSeriesFilterRatio());
          -            break;
          -          }
          -        case TIME_SERIES_QUERY_LANGUAGE:
          -          {
          -            sourceCase_ = 3;
          -            source_ = other.source_;
          -            onChanged();
          -            break;
          -          }
          -        case PROMETHEUS_QUERY:
          -          {
          -            sourceCase_ = 6;
          -            source_ = other.source_;
          -            onChanged();
          -            break;
          -          }
          -        case SOURCE_NOT_SET:
          -          {
          -            break;
          -          }
          +        case TIME_SERIES_FILTER: {
          +          mergeTimeSeriesFilter(other.getTimeSeriesFilter());
          +          break;
          +        }
          +        case TIME_SERIES_FILTER_RATIO: {
          +          mergeTimeSeriesFilterRatio(other.getTimeSeriesFilterRatio());
          +          break;
          +        }
          +        case TIME_SERIES_QUERY_LANGUAGE: {
          +          sourceCase_ = 3;
          +          source_ = other.source_;
          +          onChanged();
          +          break;
          +        }
          +        case PROMETHEUS_QUERY: {
          +          sourceCase_ = 6;
          +          source_ = other.source_;
          +          onChanged();
          +          break;
          +        }
          +        case SOURCE_NOT_SET: {
          +          break;
          +        }
                 }
                 this.mergeUnknownFields(other.getUnknownFields());
                 onChanged();
          @@ -858,47 +823,48 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10:
          -              {
          -                input.readMessage(
          -                    getTimeSeriesFilterFieldBuilder().getBuilder(), extensionRegistry);
          -                sourceCase_ = 1;
          -                break;
          -              } // case 10
          -            case 18:
          -              {
          -                input.readMessage(
          -                    getTimeSeriesFilterRatioFieldBuilder().getBuilder(), extensionRegistry);
          -                sourceCase_ = 2;
          -                break;
          -              } // case 18
          -            case 26:
          -              {
          -                java.lang.String s = input.readStringRequireUtf8();
          -                sourceCase_ = 3;
          -                source_ = s;
          -                break;
          -              } // case 26
          -            case 42:
          -              {
          -                unitOverride_ = input.readStringRequireUtf8();
          -                bitField0_ |= 0x00000010;
          -                break;
          -              } // case 42
          -            case 50:
          -              {
          -                java.lang.String s = input.readStringRequireUtf8();
          -                sourceCase_ = 6;
          -                source_ = s;
          -                break;
          -              } // case 50
          -            default:
          -              {
          -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                  done = true; // was an endgroup tag
          -                }
          -                break;
          -              } // default:
          +            case 10: {
          +              input.readMessage(
          +                  getTimeSeriesFilterFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              sourceCase_ = 1;
          +              break;
          +            } // case 10
          +            case 18: {
          +              input.readMessage(
          +                  getTimeSeriesFilterRatioFieldBuilder().getBuilder(),
          +                  extensionRegistry);
          +              sourceCase_ = 2;
          +              break;
          +            } // case 18
          +            case 26: {
          +              java.lang.String s = input.readStringRequireUtf8();
          +              sourceCase_ = 3;
          +              source_ = s;
          +              break;
          +            } // case 26
          +            case 42: {
          +              unitOverride_ = input.readStringRequireUtf8();
          +              bitField0_ |= 0x00000010;
          +              break;
          +            } // case 42
          +            case 50: {
          +              java.lang.String s = input.readStringRequireUtf8();
          +              sourceCase_ = 6;
          +              source_ = s;
          +              break;
          +            } // case 50
          +            case 56: {
          +              outputFullDuration_ = input.readBool();
          +              bitField0_ |= 0x00000020;
          +              break;
          +            } // case 56
          +            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) {
          @@ -908,12 +874,12 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          -
               private int sourceCase_ = 0;
               private java.lang.Object source_;
          -
          -    public SourceCase getSourceCase() {
          -      return SourceCase.forNumber(sourceCase_);
          +    public SourceCase
          +        getSourceCase() {
          +      return SourceCase.forNumber(
          +          sourceCase_);
               }
           
               public Builder clearSource() {
          @@ -926,19 +892,13 @@ public Builder clearSource() {
               private int bitField0_;
           
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.TimeSeriesFilter,
          -            com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder,
          -            com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder>
          -        timeSeriesFilterBuilder_;
          +        com.google.monitoring.dashboard.v1.TimeSeriesFilter, com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder> timeSeriesFilterBuilder_;
               /**
          -     *
          -     *
                * 
                * Filter parameters to fetch time series.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; - * * @return Whether the timeSeriesFilter field is set. */ @java.lang.Override @@ -946,14 +906,11 @@ public boolean hasTimeSeriesFilter() { return sourceCase_ == 1; } /** - * - * *
                * Filter parameters to fetch time series.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; - * * @return The timeSeriesFilter. */ @java.lang.Override @@ -971,8 +928,6 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilter getTimeSeriesFilter() } } /** - * - * *
                * Filter parameters to fetch time series.
                * 
          @@ -993,8 +948,6 @@ public Builder setTimeSeriesFilter(com.google.monitoring.dashboard.v1.TimeSeries return this; } /** - * - * *
                * Filter parameters to fetch time series.
                * 
          @@ -1013,25 +966,18 @@ public Builder setTimeSeriesFilter( return this; } /** - * - * *
                * Filter parameters to fetch time series.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; */ - public Builder mergeTimeSeriesFilter( - com.google.monitoring.dashboard.v1.TimeSeriesFilter value) { + public Builder mergeTimeSeriesFilter(com.google.monitoring.dashboard.v1.TimeSeriesFilter value) { if (timeSeriesFilterBuilder_ == null) { - if (sourceCase_ == 1 - && source_ - != com.google.monitoring.dashboard.v1.TimeSeriesFilter.getDefaultInstance()) { - source_ = - com.google.monitoring.dashboard.v1.TimeSeriesFilter.newBuilder( - (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 1 && + source_ != com.google.monitoring.dashboard.v1.TimeSeriesFilter.getDefaultInstance()) { + source_ = com.google.monitoring.dashboard.v1.TimeSeriesFilter.newBuilder((com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -1047,8 +993,6 @@ public Builder mergeTimeSeriesFilter( return this; } /** - * - * *
                * Filter parameters to fetch time series.
                * 
          @@ -1072,21 +1016,16 @@ public Builder clearTimeSeriesFilter() { return this; } /** - * - * *
                * Filter parameters to fetch time series.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; */ - public com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder - getTimeSeriesFilterBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder getTimeSeriesFilterBuilder() { return getTimeSeriesFilterFieldBuilder().getBuilder(); } /** - * - * *
                * Filter parameters to fetch time series.
                * 
          @@ -1094,8 +1033,7 @@ public Builder clearTimeSeriesFilter() { * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder - getTimeSeriesFilterOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder getTimeSeriesFilterOrBuilder() { if ((sourceCase_ == 1) && (timeSeriesFilterBuilder_ != null)) { return timeSeriesFilterBuilder_.getMessageOrBuilder(); } else { @@ -1106,8 +1044,6 @@ public Builder clearTimeSeriesFilter() { } } /** - * - * *
                * Filter parameters to fetch time series.
                * 
          @@ -1115,19 +1051,14 @@ public Builder clearTimeSeriesFilter() { * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilter, - com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder> + com.google.monitoring.dashboard.v1.TimeSeriesFilter, com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder> getTimeSeriesFilterFieldBuilder() { if (timeSeriesFilterBuilder_ == null) { if (!(sourceCase_ == 1)) { source_ = com.google.monitoring.dashboard.v1.TimeSeriesFilter.getDefaultInstance(); } - timeSeriesFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilter, - com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder>( + timeSeriesFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesFilter, com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder>( (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_, getParentForChildren(), isClean()); @@ -1139,20 +1070,13 @@ public Builder clearTimeSeriesFilter() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio, - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder> - timeSeriesFilterRatioBuilder_; + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder> timeSeriesFilterRatioBuilder_; /** - * - * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; * @return Whether the timeSeriesFilterRatio field is set. */ @java.lang.Override @@ -1160,15 +1084,11 @@ public boolean hasTimeSeriesFilterRatio() { return sourceCase_ == 2; } /** - * - * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; * @return The timeSeriesFilterRatio. */ @java.lang.Override @@ -1186,17 +1106,13 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio getTimeSeriesFil } } /** - * - * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; - * + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; */ - public Builder setTimeSeriesFilterRatio( - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio value) { + public Builder setTimeSeriesFilterRatio(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio value) { if (timeSeriesFilterRatioBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1210,14 +1126,11 @@ public Builder setTimeSeriesFilterRatio( return this; } /** - * - * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; - * + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; */ public Builder setTimeSeriesFilterRatio( com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder builderForValue) { @@ -1231,26 +1144,18 @@ public Builder setTimeSeriesFilterRatio( return this; } /** - * - * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; - * + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; */ - public Builder mergeTimeSeriesFilterRatio( - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio value) { + public Builder mergeTimeSeriesFilterRatio(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio value) { if (timeSeriesFilterRatioBuilder_ == null) { - if (sourceCase_ == 2 - && source_ - != com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.getDefaultInstance()) { - source_ = - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.newBuilder( - (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 2 && + source_ != com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.getDefaultInstance()) { + source_ = com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.newBuilder((com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -1266,14 +1171,11 @@ public Builder mergeTimeSeriesFilterRatio( return this; } /** - * - * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; - * + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; */ public Builder clearTimeSeriesFilterRatio() { if (timeSeriesFilterRatioBuilder_ == null) { @@ -1292,32 +1194,24 @@ public Builder clearTimeSeriesFilterRatio() { return this; } /** - * - * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; - * + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; */ - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder - getTimeSeriesFilterRatioBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder getTimeSeriesFilterRatioBuilder() { return getTimeSeriesFilterRatioFieldBuilder().getBuilder(); } /** - * - * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; - * + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder - getTimeSeriesFilterRatioOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder getTimeSeriesFilterRatioOrBuilder() { if ((sourceCase_ == 2) && (timeSeriesFilterRatioBuilder_ != null)) { return timeSeriesFilterRatioBuilder_.getMessageOrBuilder(); } else { @@ -1328,29 +1222,21 @@ public Builder clearTimeSeriesFilterRatio() { } } /** - * - * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; - * + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio, - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder> + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder> getTimeSeriesFilterRatioFieldBuilder() { if (timeSeriesFilterRatioBuilder_ == null) { if (!(sourceCase_ == 2)) { source_ = com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.getDefaultInstance(); } - timeSeriesFilterRatioBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio, - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder>( + timeSeriesFilterRatioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder>( (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_, getParentForChildren(), isClean()); @@ -1362,14 +1248,11 @@ public Builder clearTimeSeriesFilterRatio() { } /** - * - * *
                * A query used to fetch time series with MQL.
                * 
          * * string time_series_query_language = 3; - * * @return Whether the timeSeriesQueryLanguage field is set. */ @java.lang.Override @@ -1377,14 +1260,11 @@ public boolean hasTimeSeriesQueryLanguage() { return sourceCase_ == 3; } /** - * - * *
                * A query used to fetch time series with MQL.
                * 
          * * string time_series_query_language = 3; - * * @return The timeSeriesQueryLanguage. */ @java.lang.Override @@ -1394,7 +1274,8 @@ public java.lang.String getTimeSeriesQueryLanguage() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 3) { source_ = s; @@ -1405,25 +1286,24 @@ public java.lang.String getTimeSeriesQueryLanguage() { } } /** - * - * *
                * A query used to fetch time series with MQL.
                * 
          * * string time_series_query_language = 3; - * * @return The bytes for timeSeriesQueryLanguage. */ @java.lang.Override - public com.google.protobuf.ByteString getTimeSeriesQueryLanguageBytes() { + public com.google.protobuf.ByteString + getTimeSeriesQueryLanguageBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 3) { source_ = b; } @@ -1433,35 +1313,28 @@ public com.google.protobuf.ByteString getTimeSeriesQueryLanguageBytes() { } } /** - * - * *
                * A query used to fetch time series with MQL.
                * 
          * * string time_series_query_language = 3; - * * @param value The timeSeriesQueryLanguage to set. * @return This builder for chaining. */ - public Builder setTimeSeriesQueryLanguage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTimeSeriesQueryLanguage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceCase_ = 3; source_ = value; onChanged(); return this; } /** - * - * *
                * A query used to fetch time series with MQL.
                * 
          * * string time_series_query_language = 3; - * * @return This builder for chaining. */ public Builder clearTimeSeriesQueryLanguage() { @@ -1473,21 +1346,17 @@ public Builder clearTimeSeriesQueryLanguage() { return this; } /** - * - * *
                * A query used to fetch time series with MQL.
                * 
          * * string time_series_query_language = 3; - * * @param value The bytes for timeSeriesQueryLanguage to set. * @return This builder for chaining. */ - public Builder setTimeSeriesQueryLanguageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTimeSeriesQueryLanguageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceCase_ = 3; source_ = value; @@ -1496,14 +1365,11 @@ public Builder setTimeSeriesQueryLanguageBytes(com.google.protobuf.ByteString va } /** - * - * *
                * A query used to fetch time series with PromQL.
                * 
          * * string prometheus_query = 6; - * * @return Whether the prometheusQuery field is set. */ @java.lang.Override @@ -1511,14 +1377,11 @@ public boolean hasPrometheusQuery() { return sourceCase_ == 6; } /** - * - * *
                * A query used to fetch time series with PromQL.
                * 
          * * string prometheus_query = 6; - * * @return The prometheusQuery. */ @java.lang.Override @@ -1528,7 +1391,8 @@ public java.lang.String getPrometheusQuery() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 6) { source_ = s; @@ -1539,25 +1403,24 @@ public java.lang.String getPrometheusQuery() { } } /** - * - * *
                * A query used to fetch time series with PromQL.
                * 
          * * string prometheus_query = 6; - * * @return The bytes for prometheusQuery. */ @java.lang.Override - public com.google.protobuf.ByteString getPrometheusQueryBytes() { + public com.google.protobuf.ByteString + getPrometheusQueryBytes() { java.lang.Object ref = ""; if (sourceCase_ == 6) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 6) { source_ = b; } @@ -1567,35 +1430,28 @@ public com.google.protobuf.ByteString getPrometheusQueryBytes() { } } /** - * - * *
                * A query used to fetch time series with PromQL.
                * 
          * * string prometheus_query = 6; - * * @param value The prometheusQuery to set. * @return This builder for chaining. */ - public Builder setPrometheusQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrometheusQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceCase_ = 6; source_ = value; onChanged(); return this; } /** - * - * *
                * A query used to fetch time series with PromQL.
                * 
          * * string prometheus_query = 6; - * * @return This builder for chaining. */ public Builder clearPrometheusQuery() { @@ -1607,21 +1463,17 @@ public Builder clearPrometheusQuery() { return this; } /** - * - * *
                * A query used to fetch time series with PromQL.
                * 
          * * string prometheus_query = 6; - * * @param value The bytes for prometheusQuery to set. * @return This builder for chaining. */ - public Builder setPrometheusQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrometheusQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceCase_ = 6; source_ = value; @@ -1631,8 +1483,6 @@ public Builder setPrometheusQueryBytes(com.google.protobuf.ByteString value) { private java.lang.Object unitOverride_ = ""; /** - * - * *
                * The unit of data contained in fetched time series. If non-empty, this
                * unit will override any unit that accompanies fetched data. The format is
          @@ -1642,13 +1492,13 @@ public Builder setPrometheusQueryBytes(com.google.protobuf.ByteString value) {
                * 
          * * string unit_override = 5; - * * @return The unitOverride. */ public java.lang.String getUnitOverride() { java.lang.Object ref = unitOverride_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unitOverride_ = s; return s; @@ -1657,8 +1507,6 @@ public java.lang.String getUnitOverride() { } } /** - * - * *
                * The unit of data contained in fetched time series. If non-empty, this
                * unit will override any unit that accompanies fetched data. The format is
          @@ -1668,14 +1516,15 @@ public java.lang.String getUnitOverride() {
                * 
          * * string unit_override = 5; - * * @return The bytes for unitOverride. */ - public com.google.protobuf.ByteString getUnitOverrideBytes() { + public com.google.protobuf.ByteString + getUnitOverrideBytes() { java.lang.Object ref = unitOverride_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); unitOverride_ = b; return b; } else { @@ -1683,8 +1532,6 @@ public com.google.protobuf.ByteString getUnitOverrideBytes() { } } /** - * - * *
                * The unit of data contained in fetched time series. If non-empty, this
                * unit will override any unit that accompanies fetched data. The format is
          @@ -1694,22 +1541,18 @@ public com.google.protobuf.ByteString getUnitOverrideBytes() {
                * 
          * * string unit_override = 5; - * * @param value The unitOverride to set. * @return This builder for chaining. */ - public Builder setUnitOverride(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnitOverride( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } unitOverride_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
                * The unit of data contained in fetched time series. If non-empty, this
                * unit will override any unit that accompanies fetched data. The format is
          @@ -1719,7 +1562,6 @@ public Builder setUnitOverride(java.lang.String value) {
                * 
          * * string unit_override = 5; - * * @return This builder for chaining. */ public Builder clearUnitOverride() { @@ -1729,8 +1571,6 @@ public Builder clearUnitOverride() { return this; } /** - * - * *
                * The unit of data contained in fetched time series. If non-empty, this
                * unit will override any unit that accompanies fetched data. The format is
          @@ -1740,14 +1580,12 @@ public Builder clearUnitOverride() {
                * 
          * * string unit_override = 5; - * * @param value The bytes for unitOverride to set. * @return This builder for chaining. */ - public Builder setUnitOverrideBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnitOverrideBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); unitOverride_ = value; bitField0_ |= 0x00000010; @@ -1755,8 +1593,70 @@ public Builder setUnitOverrideBytes(com.google.protobuf.ByteString value) { return this; } + private boolean outputFullDuration_ ; + /** + *
          +     * Optional. If set, Cloud Monitoring will treat the full query duration as
          +     * the alignment period so that there will be only 1 output value.
          +     *
          +     * *Note: This could override the configured alignment period except for
          +     * the cases where a series of data points are expected, like
          +     *   - XyChart
          +     *   - Scorecard's spark chart
          +     * 
          + * + * bool output_full_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return The outputFullDuration. + */ @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public boolean getOutputFullDuration() { + return outputFullDuration_; + } + /** + *
          +     * Optional. If set, Cloud Monitoring will treat the full query duration as
          +     * the alignment period so that there will be only 1 output value.
          +     *
          +     * *Note: This could override the configured alignment period except for
          +     * the cases where a series of data points are expected, like
          +     *   - XyChart
          +     *   - Scorecard's spark chart
          +     * 
          + * + * bool output_full_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The outputFullDuration to set. + * @return This builder for chaining. + */ + public Builder setOutputFullDuration(boolean value) { + + outputFullDuration_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
          +     * Optional. If set, Cloud Monitoring will treat the full query duration as
          +     * the alignment period so that there will be only 1 output value.
          +     *
          +     * *Note: This could override the configured alignment period except for
          +     * the cases where a series of data points are expected, like
          +     *   - XyChart
          +     *   - Scorecard's spark chart
          +     * 
          + * + * bool output_full_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearOutputFullDuration() { + bitField0_ = (bitField0_ & ~0x00000020); + outputFullDuration_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1766,12 +1666,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.TimeSeriesQuery) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.TimeSeriesQuery) private static final com.google.monitoring.dashboard.v1.TimeSeriesQuery DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.TimeSeriesQuery(); } @@ -1780,27 +1680,27 @@ public static com.google.monitoring.dashboard.v1.TimeSeriesQuery getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeriesQuery 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeriesQuery 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; @@ -1815,4 +1715,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.TimeSeriesQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQueryOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQueryOrBuilder.java similarity index 77% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQueryOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQueryOrBuilder.java index 734bfda19876..76ed3ca3a6dc 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQueryOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQueryOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/metrics.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface TimeSeriesQueryOrBuilder - extends +public interface TimeSeriesQueryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TimeSeriesQuery) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * Filter parameters to fetch time series.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; - * * @return Whether the timeSeriesFilter field is set. */ boolean hasTimeSeriesFilter(); /** - * - * *
              * Filter parameters to fetch time series.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; - * * @return The timeSeriesFilter. */ com.google.monitoring.dashboard.v1.TimeSeriesFilter getTimeSeriesFilter(); /** - * - * *
              * Filter parameters to fetch time series.
              * 
          @@ -60,121 +36,91 @@ public interface TimeSeriesQueryOrBuilder com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder getTimeSeriesFilterOrBuilder(); /** - * - * *
              * Parameters to fetch a ratio between two time series filters.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; * @return Whether the timeSeriesFilterRatio field is set. */ boolean hasTimeSeriesFilterRatio(); /** - * - * *
              * Parameters to fetch a ratio between two time series filters.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; * @return The timeSeriesFilterRatio. */ com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio getTimeSeriesFilterRatio(); /** - * - * *
              * Parameters to fetch a ratio between two time series filters.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; - * + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; */ - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder - getTimeSeriesFilterRatioOrBuilder(); + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder getTimeSeriesFilterRatioOrBuilder(); /** - * - * *
              * A query used to fetch time series with MQL.
              * 
          * * string time_series_query_language = 3; - * * @return Whether the timeSeriesQueryLanguage field is set. */ boolean hasTimeSeriesQueryLanguage(); /** - * - * *
              * A query used to fetch time series with MQL.
              * 
          * * string time_series_query_language = 3; - * * @return The timeSeriesQueryLanguage. */ java.lang.String getTimeSeriesQueryLanguage(); /** - * - * *
              * A query used to fetch time series with MQL.
              * 
          * * string time_series_query_language = 3; - * * @return The bytes for timeSeriesQueryLanguage. */ - com.google.protobuf.ByteString getTimeSeriesQueryLanguageBytes(); + com.google.protobuf.ByteString + getTimeSeriesQueryLanguageBytes(); /** - * - * *
              * A query used to fetch time series with PromQL.
              * 
          * * string prometheus_query = 6; - * * @return Whether the prometheusQuery field is set. */ boolean hasPrometheusQuery(); /** - * - * *
              * A query used to fetch time series with PromQL.
              * 
          * * string prometheus_query = 6; - * * @return The prometheusQuery. */ java.lang.String getPrometheusQuery(); /** - * - * *
              * A query used to fetch time series with PromQL.
              * 
          * * string prometheus_query = 6; - * * @return The bytes for prometheusQuery. */ - com.google.protobuf.ByteString getPrometheusQueryBytes(); + com.google.protobuf.ByteString + getPrometheusQueryBytes(); /** - * - * *
              * The unit of data contained in fetched time series. If non-empty, this
              * unit will override any unit that accompanies fetched data. The format is
          @@ -184,13 +130,10 @@ public interface TimeSeriesQueryOrBuilder
              * 
          * * string unit_override = 5; - * * @return The unitOverride. */ java.lang.String getUnitOverride(); /** - * - * *
              * The unit of data contained in fetched time series. If non-empty, this
              * unit will override any unit that accompanies fetched data. The format is
          @@ -200,10 +143,26 @@ public interface TimeSeriesQueryOrBuilder
              * 
          * * string unit_override = 5; - * * @return The bytes for unitOverride. */ - com.google.protobuf.ByteString getUnitOverrideBytes(); + com.google.protobuf.ByteString + getUnitOverrideBytes(); + + /** + *
          +   * Optional. If set, Cloud Monitoring will treat the full query duration as
          +   * the alignment period so that there will be only 1 output value.
          +   *
          +   * *Note: This could override the configured alignment period except for
          +   * the cases where a series of data points are expected, like
          +   *   - XyChart
          +   *   - Scorecard's spark chart
          +   * 
          + * + * bool output_full_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return The outputFullDuration. + */ + boolean getOutputFullDuration(); com.google.monitoring.dashboard.v1.TimeSeriesQuery.SourceCase getSourceCase(); } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java similarity index 63% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java index 07b23abd1187..4fe59b742d4f 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/table.proto @@ -20,24 +5,21 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * A table that displays time series data.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesTable} */ -public final class TimeSeriesTable extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TimeSeriesTable extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TimeSeriesTable) TimeSeriesTableOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TimeSeriesTable.newBuilder() to construct. private TimeSeriesTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TimeSeriesTable() { dataSets_ = java.util.Collections.emptyList(); metricVisualization_ = 0; @@ -46,38 +28,34 @@ private TimeSeriesTable() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TimeSeriesTable(); } - 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_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 + 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); + com.google.monitoring.dashboard.v1.TimeSeriesTable.class, 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 { + public enum MetricVisualization + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                * Unspecified state
                * 
          @@ -86,8 +64,6 @@ public enum MetricVisualization implements com.google.protobuf.ProtocolMessageEn */ METRIC_VISUALIZATION_UNSPECIFIED(0), /** - * - * *
                * Default text rendering
                * 
          @@ -96,8 +72,6 @@ public enum MetricVisualization implements com.google.protobuf.ProtocolMessageEn */ NUMBER(1), /** - * - * *
                * Horizontal bar rendering
                * 
          @@ -109,8 +83,6 @@ public enum MetricVisualization implements com.google.protobuf.ProtocolMessageEn ; /** - * - * *
                * Unspecified state
                * 
          @@ -119,8 +91,6 @@ public enum MetricVisualization implements com.google.protobuf.ProtocolMessageEn */ public static final int METRIC_VISUALIZATION_UNSPECIFIED_VALUE = 0; /** - * - * *
                * Default text rendering
                * 
          @@ -129,8 +99,6 @@ public enum MetricVisualization implements com.google.protobuf.ProtocolMessageEn */ public static final int NUMBER_VALUE = 1; /** - * - * *
                * Horizontal bar rendering
                * 
          @@ -139,6 +107,7 @@ public enum MetricVisualization implements com.google.protobuf.ProtocolMessageEn */ public static final int BAR_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -163,14 +132,10 @@ public static MetricVisualization valueOf(int 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; + case 0: return METRIC_VISUALIZATION_UNSPECIFIED; + case 1: return NUMBER; + case 2: return BAR; + default: return null; } } @@ -178,31 +143,29 @@ public static MetricVisualization forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + MetricVisualization> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MetricVisualization findValueByNumber(int number) { + return MetricVisualization.forNumber(number); + } + }; - 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() { + 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() { + 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); + 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(); @@ -210,7 +173,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor 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."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -227,58 +191,41 @@ private MetricVisualization(int value) { // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization) } - public interface TableDataSetOrBuilder - extends + public interface TableDataSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the timeSeriesQuery field is set. */ boolean hasTimeSeriesQuery(); /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The timeSeriesQuery. */ com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery(); /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder(); /** - * - * *
                * Optional. A template string for naming `TimeSeries` in the resulting data
                * set. This should be a string with interpolations of the form
          @@ -287,13 +234,10 @@ public interface TableDataSetOrBuilder
                * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The tableTemplate. */ 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
          @@ -302,14 +246,12 @@ public interface TableDataSetOrBuilder
                * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for tableTemplate. */ - com.google.protobuf.ByteString getTableTemplateBytes(); + 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
          @@ -318,16 +260,11 @@ public interface TableDataSetOrBuilder
                * 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]; * @return Whether the minAlignmentPeriod field is set. */ 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
          @@ -336,16 +273,11 @@ public interface TableDataSetOrBuilder
                * 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]; * @return The minAlignmentPeriod. */ 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
          @@ -354,116 +286,90 @@ public interface TableDataSetOrBuilder
                * 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]; */ com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder(); /** - * - * *
                * Optional. Table display options for configuring how the table is
                * rendered.
                * 
          * - * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the tableDisplayOptions field is set. */ boolean hasTableDisplayOptions(); /** - * - * *
                * Optional. Table display options for configuring how the table is
                * rendered.
                * 
          * - * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The tableDisplayOptions. */ com.google.monitoring.dashboard.v1.TableDisplayOptions getTableDisplayOptions(); /** - * - * *
                * Optional. Table display options for configuring how the table is
                * rendered.
                * 
          * - * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder - getTableDisplayOptionsOrBuilder(); + com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder getTableDisplayOptionsOrBuilder(); } /** - * - * *
              * Groups a time series query definition with table options.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet} */ - public static final class TableDataSet extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TableDataSet extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) TableDataSetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableDataSet.newBuilder() to construct. private TableDataSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TableDataSet() { tableTemplate_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TableDataSet(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.TableProto - .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.TableProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_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_TableDataSet_fieldAccessorTable + return com.google.monitoring.dashboard.v1.TableProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.class, - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder.class); + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.class, com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder.class); } private int bitField0_; public static final int TIME_SERIES_QUERY_FIELD_NUMBER = 1; private com.google.monitoring.dashboard.v1.TimeSeriesQuery timeSeriesQuery_; /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the timeSeriesQuery field is set. */ @java.lang.Override @@ -471,52 +377,35 @@ public boolean hasTimeSeriesQuery() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The timeSeriesQuery. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() { - return timeSeriesQuery_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() - : timeSeriesQuery_; + return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; } /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder - getTimeSeriesQueryOrBuilder() { - return timeSeriesQuery_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() - : timeSeriesQuery_; + public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder() { + return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; } public static final int TABLE_TEMPLATE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object tableTemplate_ = ""; /** - * - * *
                * Optional. A template string for naming `TimeSeries` in the resulting data
                * set. This should be a string with interpolations of the form
          @@ -525,7 +414,6 @@ public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() {
                * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The tableTemplate. */ @java.lang.Override @@ -534,15 +422,14 @@ public java.lang.String getTableTemplate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableTemplate_ = s; return s; } } /** - * - * *
                * Optional. A template string for naming `TimeSeries` in the resulting data
                * set. This should be a string with interpolations of the form
          @@ -551,15 +438,16 @@ public java.lang.String getTableTemplate() {
                * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for tableTemplate. */ @java.lang.Override - public com.google.protobuf.ByteString getTableTemplateBytes() { + public com.google.protobuf.ByteString + getTableTemplateBytes() { java.lang.Object ref = tableTemplate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tableTemplate_ = b; return b; } else { @@ -570,8 +458,6 @@ public com.google.protobuf.ByteString getTableTemplateBytes() { public static final int MIN_ALIGNMENT_PERIOD_FIELD_NUMBER = 3; private com.google.protobuf.Duration minAlignmentPeriod_; /** - * - * *
                * Optional. The lower bound on data point frequency for this data set,
                * implemented by specifying the minimum alignment period to use in a time
          @@ -580,10 +466,7 @@ public com.google.protobuf.ByteString getTableTemplateBytes() {
                * 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]; * @return Whether the minAlignmentPeriod field is set. */ @java.lang.Override @@ -591,8 +474,6 @@ public boolean hasMinAlignmentPeriod() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * Optional. The lower bound on data point frequency for this data set,
                * implemented by specifying the minimum alignment period to use in a time
          @@ -601,21 +482,14 @@ public boolean hasMinAlignmentPeriod() {
                * 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]; * @return The minAlignmentPeriod. */ @java.lang.Override public com.google.protobuf.Duration getMinAlignmentPeriod() { - return minAlignmentPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minAlignmentPeriod_; + return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; } /** - * - * *
                * Optional. The lower bound on data point frequency for this data set,
                * implemented by specifying the minimum alignment period to use in a time
          @@ -624,31 +498,22 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() {
                * 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]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { - return minAlignmentPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minAlignmentPeriod_; + return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; } public static final int TABLE_DISPLAY_OPTIONS_FIELD_NUMBER = 4; private com.google.monitoring.dashboard.v1.TableDisplayOptions tableDisplayOptions_; /** - * - * *
                * Optional. Table display options for configuring how the table is
                * rendered.
                * 
          * - * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the tableDisplayOptions field is set. */ @java.lang.Override @@ -656,47 +521,32 @@ public boolean hasTableDisplayOptions() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                * Optional. Table display options for configuring how the table is
                * rendered.
                * 
          * - * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The tableDisplayOptions. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TableDisplayOptions getTableDisplayOptions() { - return tableDisplayOptions_ == null - ? com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance() - : tableDisplayOptions_; + return tableDisplayOptions_ == null ? com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance() : tableDisplayOptions_; } /** - * - * *
                * Optional. Table display options for configuring how the table is
                * rendered.
                * 
          * - * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder - getTableDisplayOptionsOrBuilder() { - return tableDisplayOptions_ == null - ? com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance() - : tableDisplayOptions_; + public com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder getTableDisplayOptionsOrBuilder() { + return tableDisplayOptions_ == null ? com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance() : tableDisplayOptions_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -708,7 +558,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTimeSeriesQuery()); } @@ -731,18 +582,19 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeSeriesQuery()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTimeSeriesQuery()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableTemplate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tableTemplate_); } if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinAlignmentPeriod()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMinAlignmentPeriod()); } if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTableDisplayOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTableDisplayOptions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -752,26 +604,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet other = - (com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) obj; + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet other = (com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) obj; if (hasTimeSeriesQuery() != other.hasTimeSeriesQuery()) return false; if (hasTimeSeriesQuery()) { - if (!getTimeSeriesQuery().equals(other.getTimeSeriesQuery())) return false; + if (!getTimeSeriesQuery() + .equals(other.getTimeSeriesQuery())) return false; } - if (!getTableTemplate().equals(other.getTableTemplate())) return false; + if (!getTableTemplate() + .equals(other.getTableTemplate())) return false; if (hasMinAlignmentPeriod() != other.hasMinAlignmentPeriod()) return false; if (hasMinAlignmentPeriod()) { - if (!getMinAlignmentPeriod().equals(other.getMinAlignmentPeriod())) return false; + if (!getMinAlignmentPeriod() + .equals(other.getMinAlignmentPeriod())) return false; } if (hasTableDisplayOptions() != other.hasTableDisplayOptions()) return false; if (hasTableDisplayOptions()) { - if (!getTableDisplayOptions().equals(other.getTableDisplayOptions())) return false; + if (!getTableDisplayOptions() + .equals(other.getTableDisplayOptions())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -804,95 +659,89 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TableDataSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet 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.TableDataSet parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TableDataSet 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.TableDataSet 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.TableDataSet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet - 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.TableDataSet 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.TableDataSet - 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.TableDataSet 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.TableDataSet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + 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.TableDataSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet prototype) { + public static Builder newBuilder(com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -902,53 +751,47 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                * Groups a time series query definition with table options.
                * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.TableProto - .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.TableProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_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_TableDataSet_fieldAccessorTable + return com.google.monitoring.dashboard.v1.TableProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.class, - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder.class); + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.class, com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder.class); } - // Construct using - // com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.newBuilder() + // Construct using com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getTimeSeriesQueryFieldBuilder(); getMinAlignmentPeriodFieldBuilder(); getTableDisplayOptionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -973,14 +816,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.TableProto - .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.TableProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor; } @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet - getDefaultInstanceForType() { + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDefaultInstanceForType() { return com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.getDefaultInstance(); } @@ -995,39 +837,34 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet build() { @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet buildPartial() { - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet result = - new com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet result = new com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet result) { + private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.timeSeriesQuery_ = - timeSeriesQueryBuilder_ == null ? timeSeriesQuery_ : timeSeriesQueryBuilder_.build(); + result.timeSeriesQuery_ = timeSeriesQueryBuilder_ == null + ? timeSeriesQuery_ + : timeSeriesQueryBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.tableTemplate_ = tableTemplate_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.minAlignmentPeriod_ = - minAlignmentPeriodBuilder_ == null - ? minAlignmentPeriod_ - : minAlignmentPeriodBuilder_.build(); + result.minAlignmentPeriod_ = minAlignmentPeriodBuilder_ == null + ? minAlignmentPeriod_ + : minAlignmentPeriodBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.tableDisplayOptions_ = - tableDisplayOptionsBuilder_ == null - ? tableDisplayOptions_ - : tableDisplayOptionsBuilder_.build(); + result.tableDisplayOptions_ = tableDisplayOptionsBuilder_ == null + ? tableDisplayOptions_ + : tableDisplayOptionsBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; @@ -1037,52 +874,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TableDataSet) { - return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) other); + return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet other) { - if (other - == com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet other) { + if (other == com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.getDefaultInstance()) return this; if (other.hasTimeSeriesQuery()) { mergeTimeSeriesQuery(other.getTimeSeriesQuery()); } @@ -1123,40 +954,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getTimeSeriesQueryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - tableTemplate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getMinAlignmentPeriodFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getTableDisplayOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getTimeSeriesQueryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + tableTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getMinAlignmentPeriodFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getTableDisplayOptionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + 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) { @@ -1166,66 +995,46 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.monitoring.dashboard.v1.TimeSeriesQuery timeSeriesQuery_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, - com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> - timeSeriesQueryBuilder_; + com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> timeSeriesQueryBuilder_; /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the timeSeriesQuery field is set. */ public boolean hasTimeSeriesQuery() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The timeSeriesQuery. */ public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() { if (timeSeriesQueryBuilder_ == null) { - return timeSeriesQuery_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() - : timeSeriesQuery_; + return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; } else { return timeSeriesQueryBuilder_.getMessage(); } } /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { if (timeSeriesQueryBuilder_ == null) { @@ -1241,16 +1050,12 @@ public Builder setTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQ return this; } /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTimeSeriesQuery( com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder builderForValue) { @@ -1264,24 +1069,18 @@ public Builder setTimeSeriesQuery( return this; } /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeTimeSeriesQuery( - com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { + public Builder mergeTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { if (timeSeriesQueryBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && timeSeriesQuery_ != null - && timeSeriesQuery_ - != com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + timeSeriesQuery_ != null && + timeSeriesQuery_ != com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance()) { getTimeSeriesQueryBuilder().mergeFrom(value); } else { timeSeriesQuery_ = value; @@ -1296,16 +1095,12 @@ public Builder mergeTimeSeriesQuery( return this; } /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTimeSeriesQuery() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1318,69 +1113,51 @@ public Builder clearTimeSeriesQuery() { return this; } /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder - getTimeSeriesQueryBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder getTimeSeriesQueryBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTimeSeriesQueryFieldBuilder().getBuilder(); } /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder - getTimeSeriesQueryOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder() { if (timeSeriesQueryBuilder_ != null) { return timeSeriesQueryBuilder_.getMessageOrBuilder(); } else { - return timeSeriesQuery_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() - : timeSeriesQuery_; + return timeSeriesQuery_ == null ? + com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; } } /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, - com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> + com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> getTimeSeriesQueryFieldBuilder() { if (timeSeriesQueryBuilder_ == null) { - timeSeriesQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, - com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder>( - getTimeSeriesQuery(), getParentForChildren(), isClean()); + timeSeriesQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder>( + getTimeSeriesQuery(), + getParentForChildren(), + isClean()); timeSeriesQuery_ = null; } return timeSeriesQueryBuilder_; @@ -1388,8 +1165,6 @@ public Builder clearTimeSeriesQuery() { private java.lang.Object tableTemplate_ = ""; /** - * - * *
                  * Optional. A template string for naming `TimeSeries` in the resulting data
                  * set. This should be a string with interpolations of the form
          @@ -1398,13 +1173,13 @@ public Builder clearTimeSeriesQuery() {
                  * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The tableTemplate. */ public java.lang.String getTableTemplate() { java.lang.Object ref = tableTemplate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableTemplate_ = s; return s; @@ -1413,8 +1188,6 @@ 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
          @@ -1423,14 +1196,15 @@ public java.lang.String getTableTemplate() {
                  * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for tableTemplate. */ - public com.google.protobuf.ByteString getTableTemplateBytes() { + public com.google.protobuf.ByteString + getTableTemplateBytes() { java.lang.Object ref = tableTemplate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tableTemplate_ = b; return b; } else { @@ -1438,8 +1212,6 @@ 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
          @@ -1448,22 +1220,18 @@ public com.google.protobuf.ByteString getTableTemplateBytes() {
                  * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The tableTemplate to set. * @return This builder for chaining. */ - public Builder setTableTemplate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableTemplate( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } tableTemplate_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * Optional. A template string for naming `TimeSeries` in the resulting data
                  * set. This should be a string with interpolations of the form
          @@ -1472,7 +1240,6 @@ public Builder setTableTemplate(java.lang.String value) {
                  * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTableTemplate() { @@ -1482,8 +1249,6 @@ public Builder clearTableTemplate() { return this; } /** - * - * *
                  * Optional. A template string for naming `TimeSeries` in the resulting data
                  * set. This should be a string with interpolations of the form
          @@ -1492,14 +1257,12 @@ public Builder clearTableTemplate() {
                  * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for tableTemplate to set. * @return This builder for chaining. */ - public Builder setTableTemplateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableTemplateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tableTemplate_ = value; bitField0_ |= 0x00000002; @@ -1509,13 +1272,8 @@ public Builder setTableTemplateBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration minAlignmentPeriod_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - minAlignmentPeriodBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minAlignmentPeriodBuilder_; /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1524,18 +1282,13 @@ public Builder setTableTemplateBytes(com.google.protobuf.ByteString value) {
                  * 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]; * @return Whether the minAlignmentPeriod field is set. */ public boolean hasMinAlignmentPeriod() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1544,24 +1297,17 @@ public boolean hasMinAlignmentPeriod() {
                  * 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]; * @return The minAlignmentPeriod. */ public com.google.protobuf.Duration getMinAlignmentPeriod() { if (minAlignmentPeriodBuilder_ == null) { - return minAlignmentPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minAlignmentPeriod_; + return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; } else { return minAlignmentPeriodBuilder_.getMessage(); } } /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1570,9 +1316,7 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() {
                  * 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]; */ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) { if (minAlignmentPeriodBuilder_ == null) { @@ -1588,8 +1332,6 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) { return this; } /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1598,11 +1340,10 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) {
                  * 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]; */ - public Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMinAlignmentPeriod( + com.google.protobuf.Duration.Builder builderForValue) { if (minAlignmentPeriodBuilder_ == null) { minAlignmentPeriod_ = builderForValue.build(); } else { @@ -1613,8 +1354,6 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builde return this; } /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1623,15 +1362,13 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builde
                  * 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]; */ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) { if (minAlignmentPeriodBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && minAlignmentPeriod_ != null - && minAlignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + minAlignmentPeriod_ != null && + minAlignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { getMinAlignmentPeriodBuilder().mergeFrom(value); } else { minAlignmentPeriod_ = value; @@ -1646,8 +1383,6 @@ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) { return this; } /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1656,9 +1391,7 @@ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) {
                  * 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]; */ public Builder clearMinAlignmentPeriod() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1671,8 +1404,6 @@ public Builder clearMinAlignmentPeriod() { return this; } /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1681,9 +1412,7 @@ public Builder clearMinAlignmentPeriod() {
                  * 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]; */ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() { bitField0_ |= 0x00000004; @@ -1691,8 +1420,6 @@ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() { return getMinAlignmentPeriodFieldBuilder().getBuilder(); } /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1701,22 +1428,17 @@ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() {
                  * 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]; */ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { if (minAlignmentPeriodBuilder_ != null) { return minAlignmentPeriodBuilder_.getMessageOrBuilder(); } else { - return minAlignmentPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minAlignmentPeriod_; + return minAlignmentPeriod_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; } } /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1725,22 +1447,17 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() {
                  * 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]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMinAlignmentPeriodFieldBuilder() { if (minAlignmentPeriodBuilder_ == null) { - minAlignmentPeriodBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMinAlignmentPeriod(), getParentForChildren(), isClean()); + minAlignmentPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMinAlignmentPeriod(), + getParentForChildren(), + isClean()); minAlignmentPeriod_ = null; } return minAlignmentPeriodBuilder_; @@ -1748,64 +1465,44 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { private com.google.monitoring.dashboard.v1.TableDisplayOptions tableDisplayOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TableDisplayOptions, - com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder, - com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder> - tableDisplayOptionsBuilder_; + com.google.monitoring.dashboard.v1.TableDisplayOptions, com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder, com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder> tableDisplayOptionsBuilder_; /** - * - * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the tableDisplayOptions field is set. */ public boolean hasTableDisplayOptions() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The tableDisplayOptions. */ public com.google.monitoring.dashboard.v1.TableDisplayOptions getTableDisplayOptions() { if (tableDisplayOptionsBuilder_ == null) { - return tableDisplayOptions_ == null - ? com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance() - : tableDisplayOptions_; + return tableDisplayOptions_ == null ? com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance() : tableDisplayOptions_; } else { return tableDisplayOptionsBuilder_.getMessage(); } } /** - * - * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setTableDisplayOptions( - com.google.monitoring.dashboard.v1.TableDisplayOptions value) { + public Builder setTableDisplayOptions(com.google.monitoring.dashboard.v1.TableDisplayOptions value) { if (tableDisplayOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1819,16 +1516,12 @@ public Builder setTableDisplayOptions( return this; } /** - * - * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTableDisplayOptions( com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder builderForValue) { @@ -1842,24 +1535,18 @@ public Builder setTableDisplayOptions( return this; } /** - * - * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeTableDisplayOptions( - com.google.monitoring.dashboard.v1.TableDisplayOptions value) { + public Builder mergeTableDisplayOptions(com.google.monitoring.dashboard.v1.TableDisplayOptions value) { if (tableDisplayOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && tableDisplayOptions_ != null - && tableDisplayOptions_ - != com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + tableDisplayOptions_ != null && + tableDisplayOptions_ != com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance()) { getTableDisplayOptionsBuilder().mergeFrom(value); } else { tableDisplayOptions_ = value; @@ -1874,16 +1561,12 @@ public Builder mergeTableDisplayOptions( return this; } /** - * - * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearTableDisplayOptions() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1896,74 +1579,55 @@ public Builder clearTableDisplayOptions() { return this; } /** - * - * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder - getTableDisplayOptionsBuilder() { + public com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder getTableDisplayOptionsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getTableDisplayOptionsFieldBuilder().getBuilder(); } /** - * - * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder - getTableDisplayOptionsOrBuilder() { + public com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder getTableDisplayOptionsOrBuilder() { if (tableDisplayOptionsBuilder_ != null) { return tableDisplayOptionsBuilder_.getMessageOrBuilder(); } else { - return tableDisplayOptions_ == null - ? com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance() - : tableDisplayOptions_; + return tableDisplayOptions_ == null ? + com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance() : tableDisplayOptions_; } } /** - * - * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TableDisplayOptions, - com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder, - com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder> + com.google.monitoring.dashboard.v1.TableDisplayOptions, com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder, com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder> getTableDisplayOptionsFieldBuilder() { if (tableDisplayOptionsBuilder_ == null) { - tableDisplayOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TableDisplayOptions, - com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder, - com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder>( - getTableDisplayOptions(), getParentForChildren(), isClean()); + tableDisplayOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TableDisplayOptions, com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder, com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder>( + getTableDisplayOptions(), + getParentForChildren(), + isClean()); tableDisplayOptions_ = null; } return tableDisplayOptionsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1976,44 +1640,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) - private static final com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet - DEFAULT_INSTANCE; - + private static final com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet(); } - public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet - getDefaultInstance() { + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableDataSet 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableDataSet 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; @@ -2025,112 +1686,95 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet - getDefaultInstanceForType() { + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ColumnSettingsOrBuilder - extends + 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(); + 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(); } /** - * - * *
              * The persistent settings for a table's columns.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings} */ - public static final class ColumnSettings extends com.google.protobuf.GeneratedMessageV3 - implements + 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; + private static final long serialVersionUID = 0L; // Use ColumnSettings.newBuilder() to construct. private ColumnSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ColumnSettings() { column_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ColumnSettings(); } - 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; + 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 + 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); + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.class, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder.class); } public static final int COLUMN_FIELD_NUMBER = 1; - @SuppressWarnings("serial") 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 @@ -2139,29 +1783,29 @@ public java.lang.String getColumn() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 com.google.protobuf.ByteString getColumnBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); column_ = b; return b; } else { @@ -2172,14 +1816,11 @@ public com.google.protobuf.ByteString getColumnBytes() { public static final int VISIBLE_FIELD_NUMBER = 2; private boolean visible_ = false; /** - * - * *
                * Required. Whether the column should be visible on page load.
                * 
          * * bool visible = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The visible. */ @java.lang.Override @@ -2188,7 +1829,6 @@ public boolean getVisible() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2200,7 +1840,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -2220,7 +1861,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, column_); } if (visible_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, visible_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, visible_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2230,16 +1872,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings other = (com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings) obj; - if (!getColumn().equals(other.getColumn())) return false; - if (getVisible() != other.getVisible()) return false; + if (!getColumn() + .equals(other.getColumn())) return false; + if (getVisible() + != other.getVisible()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2254,102 +1897,97 @@ public int 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 = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVisible()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ColumnSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - 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 static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2359,42 +1997,39 @@ protected Builder newBuilderForType( 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 + 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; + 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 + 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); + 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() {} + // Construct using com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.newBuilder() + private Builder() { + + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + } @java.lang.Override public Builder clear() { super.clear(); @@ -2405,16 +2040,14 @@ public Builder clear() { } @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; + 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(); + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.getDefaultInstance(); } @java.lang.Override @@ -2428,17 +2061,13 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings build() @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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings result = new com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings result) { + private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.column_ = column_; @@ -2452,53 +2081,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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_; bitField0_ |= 0x00000001; @@ -2533,25 +2155,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - column_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - visible_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + column_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + visible_ = input.readBool(); + bitField0_ |= 0x00000002; + 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) { @@ -2561,25 +2180,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); column_ = s; return s; @@ -2588,21 +2204,20 @@ public java.lang.String getColumn() { } } /** - * - * *
                  * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); column_ = b; return b; } else { @@ -2610,35 +2225,28 @@ public com.google.protobuf.ByteString getColumnBytes() { } } /** - * - * *
                  * 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(); - } + public Builder setColumn( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } column_ = value; bitField0_ |= 0x00000001; 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() { @@ -2648,21 +2256,17 @@ public Builder clearColumn() { 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(); - } + public Builder setColumnBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); column_ = value; bitField0_ |= 0x00000001; @@ -2670,16 +2274,13 @@ public Builder setColumnBytes(com.google.protobuf.ByteString value) { return this; } - private boolean visible_; + 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 @@ -2687,14 +2288,11 @@ 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. */ @@ -2706,14 +2304,11 @@ public Builder setVisible(boolean value) { 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() { @@ -2722,7 +2317,6 @@ public Builder clearVisible() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2735,44 +2329,41 @@ public final Builder mergeUnknownFields( 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; - + 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() { + 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(); - } - }; + 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; @@ -2784,227 +2375,161 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings - getDefaultInstanceForType() { + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int DATA_SETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List - getDataSetsList() { + 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]; - * + * 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> + public java.util.List 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]; - * + * 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]; - * + * 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]; - * + * 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) { + 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_ = 0; /** - * - * *
              * Optional. Store rendering strategy
              * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .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() { + @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]; - * - * + * .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() { - com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization result = - com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.forNumber( - metricVisualization_); - return result == null - ? com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization getMetricVisualization() { + com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization result = com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.forNumber(metricVisualization_); + return result == null ? com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.UNRECOGNIZED : result; } public static final int COLUMN_SETTINGS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private java.util.List - columnSettings_; + 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getColumnSettingsList() { + 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]; - * + * 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> + public java.util.List 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]; - * + * 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]; - * + * 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) { + 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]; - * + * 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) { + 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; @@ -3016,14 +2541,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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()) { + 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++) { @@ -3039,16 +2562,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < dataSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataSets_.get(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_); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, columnSettings_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3058,17 +2581,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.monitoring.dashboard.v1.TimeSeriesTable other = (com.google.monitoring.dashboard.v1.TimeSeriesTable) obj; - if (!getDataSetsList().equals(other.getDataSetsList())) return false; + if (!getDataSetsList() + .equals(other.getDataSetsList())) return false; if (metricVisualization_ != other.metricVisualization_) return false; - if (!getColumnSettingsList().equals(other.getColumnSettingsList())) return false; + if (!getColumnSettingsList() + .equals(other.getColumnSettingsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3096,135 +2620,131 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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_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 + 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); + 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() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3248,9 +2768,9 @@ public Builder clear() { } @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 com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.TableProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor; } @java.lang.Override @@ -3269,18 +2789,14 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable build() { @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); + com.google.monitoring.dashboard.v1.TimeSeriesTable result = new com.google.monitoring.dashboard.v1.TimeSeriesTable(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.dashboard.v1.TimeSeriesTable result) { + private void buildPartialRepeatedFields(com.google.monitoring.dashboard.v1.TimeSeriesTable result) { if (dataSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dataSets_ = java.util.Collections.unmodifiableList(dataSets_); @@ -3312,39 +2828,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesTable re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesTable)other); } else { super.mergeFrom(other); return this; @@ -3352,8 +2867,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesTable other) { - if (other == com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance()) - return this; + if (other == com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance()) return this; if (dataSetsBuilder_ == null) { if (!other.dataSets_.isEmpty()) { if (dataSets_.isEmpty()) { @@ -3372,10 +2886,9 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesTable othe dataSetsBuilder_ = null; dataSets_ = other.dataSets_; bitField0_ = (bitField0_ & ~0x00000001); - dataSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDataSetsFieldBuilder() - : null; + dataSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDataSetsFieldBuilder() : null; } else { dataSetsBuilder_.addAllMessages(other.dataSets_); } @@ -3402,10 +2915,9 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesTable othe columnSettingsBuilder_ = null; columnSettings_ = other.columnSettings_; bitField0_ = (bitField0_ & ~0x00000004); - columnSettingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getColumnSettingsFieldBuilder() - : null; + columnSettingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getColumnSettingsFieldBuilder() : null; } else { columnSettingsBuilder_.addAllMessages(other.columnSettings_); } @@ -3437,47 +2949,43 @@ public Builder mergeFrom( 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(); - bitField0_ |= 0x00000002; - 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: + 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(); + bitField0_ |= 0x00000002; + 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) { @@ -3487,40 +2995,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - dataSets_ = java.util.Collections.emptyList(); - + 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_); + dataSets_ = new java.util.ArrayList(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_; + 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getDataSetsList() { + public java.util.List getDataSetsList() { if (dataSetsBuilder_ == null) { return java.util.Collections.unmodifiableList(dataSets_); } else { @@ -3528,15 +3024,11 @@ private void ensureDataSetsIsMutable() { } } /** - * - * *
                * Required. The data displayed in this table.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getDataSetsCount() { if (dataSetsBuilder_ == null) { @@ -3546,15 +3038,11 @@ public int getDataSetsCount() { } } /** - * - * *
                * Required. The data displayed in this table.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * 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) { @@ -3564,15 +3052,11 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDataSe } } /** - * - * *
                * Required. The data displayed in this table.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * 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) { @@ -3589,19 +3073,14 @@ public Builder setDataSets( return this; } /** - * - * *
                * Required. The data displayed in this table.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * 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) { + int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder builderForValue) { if (dataSetsBuilder_ == null) { ensureDataSetsIsMutable(); dataSets_.set(index, builderForValue.build()); @@ -3612,18 +3091,13 @@ public Builder setDataSets( return this; } /** - * - * *
                * Required. The data displayed in this table.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * 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) { + public Builder addDataSets(com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet value) { if (dataSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3637,15 +3111,11 @@ public Builder addDataSets( return this; } /** - * - * *
                * Required. The data displayed in this table.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * 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) { @@ -3662,15 +3132,11 @@ public Builder addDataSets( return this; } /** - * - * *
                * Required. The data displayed in this table.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * 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) { @@ -3684,19 +3150,14 @@ public Builder addDataSets( return this; } /** - * - * *
                * Required. The data displayed in this table.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * 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) { + int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder builderForValue) { if (dataSetsBuilder_ == null) { ensureDataSetsIsMutable(); dataSets_.add(index, builderForValue.build()); @@ -3707,23 +3168,18 @@ public Builder addDataSets( return this; } /** - * - * *
                * Required. The data displayed in this table.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * 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) { + java.lang.Iterable values) { if (dataSetsBuilder_ == null) { ensureDataSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dataSets_); onChanged(); } else { dataSetsBuilder_.addAllMessages(values); @@ -3731,15 +3187,11 @@ public Builder addAllDataSets( return this; } /** - * - * *
                * Required. The data displayed in this table.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDataSets() { if (dataSetsBuilder_ == null) { @@ -3752,15 +3204,11 @@ public Builder clearDataSets() { return this; } /** - * - * *
                * Required. The data displayed in this table.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeDataSets(int index) { if (dataSetsBuilder_ == null) { @@ -3773,53 +3221,39 @@ public Builder removeDataSets(int 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]; - * + * 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) { + 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]; - * + * 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) { + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder getDataSetsOrBuilder( + int index) { if (dataSetsBuilder_ == null) { - return dataSets_.get(index); - } else { + 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]; - * + * 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() { + public java.util.List + getDataSetsOrBuilderList() { if (dataSetsBuilder_ != null) { return dataSetsBuilder_.getMessageOrBuilderList(); } else { @@ -3827,68 +3261,49 @@ public Builder removeDataSets(int index) { } } /** - * - * *
                * Required. The data displayed in this table.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * 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()); + 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]; - * + * 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()); + 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getDataSetsBuilderList() { + 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> + 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()); + 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; } return dataSetsBuilder_; @@ -3896,33 +3311,22 @@ public Builder removeDataSets(int index) { private int metricVisualization_ = 0; /** - * - * *
                * Optional. Store rendering strategy
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .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() { + @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]; - * - * + * .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. */ @@ -3933,44 +3337,28 @@ public Builder setMetricVisualizationValue(int value) { return this; } /** - * - * *
                * Optional. Store rendering strategy
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .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() { - com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization result = - com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.forNumber( - metricVisualization_); - return result == null - ? com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.UNRECOGNIZED - : result; + public com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization getMetricVisualization() { + com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization result = com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.forNumber(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]; - * - * + * .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) { + public Builder setMetricVisualization(com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization value) { if (value == null) { throw new NullPointerException(); } @@ -3980,16 +3368,11 @@ public Builder setMetricVisualization( return this; } /** - * - * *
                * Optional. Store rendering strategy
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearMetricVisualization() { @@ -3999,37 +3382,26 @@ public Builder clearMetricVisualization() { return this; } - private java.util.List - columnSettings_ = java.util.Collections.emptyList(); - + private java.util.List columnSettings_ = + java.util.Collections.emptyList(); private void ensureColumnSettingsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - columnSettings_ = - new java.util.ArrayList< - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings>(columnSettings_); + columnSettings_ = new java.util.ArrayList(columnSettings_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings, - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder> - columnSettingsBuilder_; + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder> columnSettingsBuilder_; /** - * - * *
                * 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getColumnSettingsList() { + public java.util.List getColumnSettingsList() { if (columnSettingsBuilder_ == null) { return java.util.Collections.unmodifiableList(columnSettings_); } else { @@ -4037,15 +3409,11 @@ private void ensureColumnSettingsIsMutable() { } } /** - * - * *
                * 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public int getColumnSettingsCount() { if (columnSettingsBuilder_ == null) { @@ -4055,18 +3423,13 @@ public 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings getColumnSettings( - int index) { + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings getColumnSettings(int index) { if (columnSettingsBuilder_ == null) { return columnSettings_.get(index); } else { @@ -4074,15 +3437,11 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings getColu } } /** - * - * *
                * 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setColumnSettings( int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings value) { @@ -4099,19 +3458,14 @@ public Builder setColumnSettings( return this; } /** - * - * *
                * 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setColumnSettings( - int index, - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder builderForValue) { + int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder builderForValue) { if (columnSettingsBuilder_ == null) { ensureColumnSettingsIsMutable(); columnSettings_.set(index, builderForValue.build()); @@ -4122,18 +3476,13 @@ public Builder setColumnSettings( return this; } /** - * - * *
                * 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addColumnSettings( - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings value) { + public Builder addColumnSettings(com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings value) { if (columnSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4147,15 +3496,11 @@ public Builder addColumnSettings( return this; } /** - * - * *
                * 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addColumnSettings( int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings value) { @@ -4172,15 +3517,11 @@ public Builder addColumnSettings( return this; } /** - * - * *
                * 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addColumnSettings( com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder builderForValue) { @@ -4194,19 +3535,14 @@ public Builder addColumnSettings( return this; } /** - * - * *
                * 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addColumnSettings( - int index, - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder builderForValue) { + int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder builderForValue) { if (columnSettingsBuilder_ == null) { ensureColumnSettingsIsMutable(); columnSettings_.add(index, builderForValue.build()); @@ -4217,23 +3553,18 @@ public Builder addColumnSettings( return this; } /** - * - * *
                * 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllColumnSettings( - java.lang.Iterable< - ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings> - values) { + java.lang.Iterable values) { if (columnSettingsBuilder_ == null) { ensureColumnSettingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columnSettings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, columnSettings_); onChanged(); } else { columnSettingsBuilder_.addAllMessages(values); @@ -4241,15 +3572,11 @@ public Builder addAllColumnSettings( return this; } /** - * - * *
                * 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearColumnSettings() { if (columnSettingsBuilder_ == null) { @@ -4262,15 +3589,11 @@ public Builder clearColumnSettings() { return this; } /** - * - * *
                * 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeColumnSettings(int index) { if (columnSettingsBuilder_ == null) { @@ -4283,53 +3606,39 @@ public Builder removeColumnSettings(int index) { return this; } /** - * - * *
                * 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder - getColumnSettingsBuilder(int index) { + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder getColumnSettingsBuilder( + int index) { return getColumnSettingsFieldBuilder().getBuilder(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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder - getColumnSettingsOrBuilder(int index) { + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder getColumnSettingsOrBuilder( + int index) { if (columnSettingsBuilder_ == null) { - return columnSettings_.get(index); - } else { + return columnSettings_.get(index); } else { return columnSettingsBuilder_.getMessageOrBuilder(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]; - * + * 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.ColumnSettingsOrBuilder> - getColumnSettingsOrBuilderList() { + public java.util.List + getColumnSettingsOrBuilderList() { if (columnSettingsBuilder_ != null) { return columnSettingsBuilder_.getMessageOrBuilderList(); } else { @@ -4337,69 +3646,45 @@ public Builder removeColumnSettings(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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder - addColumnSettingsBuilder() { - return getColumnSettingsFieldBuilder() - .addBuilder( - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings - .getDefaultInstance()); + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder addColumnSettingsBuilder() { + return getColumnSettingsFieldBuilder().addBuilder( + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.getDefaultInstance()); } /** - * - * *
                * 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder - addColumnSettingsBuilder(int index) { - return getColumnSettingsFieldBuilder() - .addBuilder( - index, - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings - .getDefaultInstance()); + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder addColumnSettingsBuilder( + int index) { + return getColumnSettingsFieldBuilder().addBuilder( + index, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.getDefaultInstance()); } /** - * - * *
                * 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]; - * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getColumnSettingsBuilderList() { + public java.util.List + getColumnSettingsBuilderList() { return getColumnSettingsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings, - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder> + 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.ColumnSettings, - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder>( + columnSettingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder>( columnSettings_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -4408,9 +3693,9 @@ public Builder removeColumnSettings(int index) { } return columnSettingsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4420,12 +3705,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.TimeSeriesTable) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.TimeSeriesTable) private static final com.google.monitoring.dashboard.v1.TimeSeriesTable DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.TimeSeriesTable(); } @@ -4434,27 +3719,27 @@ public static com.google.monitoring.dashboard.v1.TimeSeriesTable getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeriesTable 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeriesTable 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; @@ -4469,4 +3754,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.TimeSeriesTable getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java new file mode 100644 index 000000000000..eea13364e370 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/table.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public interface TimeSeriesTableOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TimeSeriesTable) + com.google.protobuf.MessageOrBuilder { + + /** + *
          +   * Required. The data displayed in this table.
          +   * 
          + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getDataSetsList(); + /** + *
          +   * Required. The data displayed in this table.
          +   * 
          + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDataSets(int index); + /** + *
          +   * Required. The data displayed in this table.
          +   * 
          + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + int getDataSetsCount(); + /** + *
          +   * Required. The data displayed in this table.
          +   * 
          + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getDataSetsOrBuilderList(); + /** + *
          +   * Required. The data displayed in this table.
          +   * 
          + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + 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 + 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/UpdateDashboardRequest.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequest.java similarity index 63% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequest.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequest.java index 5f008776bc8a..7083bee09101 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequest.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto @@ -20,61 +5,53 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * The `UpdateDashboard` request.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.UpdateDashboardRequest} */ -public final class UpdateDashboardRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateDashboardRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.UpdateDashboardRequest) UpdateDashboardRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateDashboardRequest.newBuilder() to construct. private UpdateDashboardRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateDashboardRequest() {} + private UpdateDashboardRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateDashboardRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.UpdateDashboardRequest.class, - com.google.monitoring.dashboard.v1.UpdateDashboardRequest.Builder.class); + com.google.monitoring.dashboard.v1.UpdateDashboardRequest.class, com.google.monitoring.dashboard.v1.UpdateDashboardRequest.Builder.class); } private int bitField0_; public static final int DASHBOARD_FIELD_NUMBER = 1; private com.google.monitoring.dashboard.v1.Dashboard dashboard_; /** - * - * *
              * Required. The dashboard that will replace the existing dashboard.
              * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dashboard field is set. */ @java.lang.Override @@ -82,54 +59,38 @@ public boolean hasDashboard() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
              * Required. The dashboard that will replace the existing dashboard.
              * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The dashboard. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Dashboard getDashboard() { - return dashboard_ == null - ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() - : dashboard_; + return dashboard_ == null ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() : dashboard_; } /** - * - * *
              * Required. The dashboard that will replace the existing dashboard.
              * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardOrBuilder() { - return dashboard_ == null - ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() - : dashboard_; + return dashboard_ == null ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() : dashboard_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
              * If set, validate the request and preview the review, but do not actually
              * save it.
              * 
          * * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -138,7 +99,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,7 +110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getDashboard()); } @@ -167,10 +128,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDashboard()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDashboard()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -180,19 +143,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.UpdateDashboardRequest)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.UpdateDashboardRequest other = - (com.google.monitoring.dashboard.v1.UpdateDashboardRequest) obj; + com.google.monitoring.dashboard.v1.UpdateDashboardRequest other = (com.google.monitoring.dashboard.v1.UpdateDashboardRequest) obj; if (hasDashboard() != other.hasDashboard()) return false; if (hasDashboard()) { - if (!getDashboard().equals(other.getDashboard())) return false; + if (!getDashboard() + .equals(other.getDashboard())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -209,134 +173,127 @@ public int hashCode() { hash = (53 * hash) + getDashboard().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.UpdateDashboardRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest 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.UpdateDashboardRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.dashboard.v1.UpdateDashboardRequest prototype) { + public static Builder newBuilder(com.google.monitoring.dashboard.v1.UpdateDashboardRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * The `UpdateDashboard` request.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.UpdateDashboardRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.UpdateDashboardRequest) com.google.monitoring.dashboard.v1.UpdateDashboardRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.UpdateDashboardRequest.class, - com.google.monitoring.dashboard.v1.UpdateDashboardRequest.Builder.class); + com.google.monitoring.dashboard.v1.UpdateDashboardRequest.class, com.google.monitoring.dashboard.v1.UpdateDashboardRequest.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.UpdateDashboardRequest.newBuilder() @@ -344,17 +301,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getDashboardFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -369,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto - .internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor; } @java.lang.Override @@ -390,11 +347,8 @@ public com.google.monitoring.dashboard.v1.UpdateDashboardRequest build() { @java.lang.Override public com.google.monitoring.dashboard.v1.UpdateDashboardRequest buildPartial() { - com.google.monitoring.dashboard.v1.UpdateDashboardRequest result = - new com.google.monitoring.dashboard.v1.UpdateDashboardRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.dashboard.v1.UpdateDashboardRequest result = new com.google.monitoring.dashboard.v1.UpdateDashboardRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -403,7 +357,9 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.UpdateDashboardReq int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.dashboard_ = dashboardBuilder_ == null ? dashboard_ : dashboardBuilder_.build(); + result.dashboard_ = dashboardBuilder_ == null + ? dashboard_ + : dashboardBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -416,39 +372,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.UpdateDashboardReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.UpdateDashboardRequest) { - return mergeFrom((com.google.monitoring.dashboard.v1.UpdateDashboardRequest) other); + return mergeFrom((com.google.monitoring.dashboard.v1.UpdateDashboardRequest)other); } else { super.mergeFrom(other); return this; @@ -456,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.UpdateDashboardRequest other) { - if (other == com.google.monitoring.dashboard.v1.UpdateDashboardRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.dashboard.v1.UpdateDashboardRequest.getDefaultInstance()) return this; if (other.hasDashboard()) { mergeDashboard(other.getDashboard()); } @@ -490,25 +444,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getDashboardFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 24: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getDashboardFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + 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) { @@ -518,63 +471,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.monitoring.dashboard.v1.Dashboard dashboard_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, - com.google.monitoring.dashboard.v1.Dashboard.Builder, - com.google.monitoring.dashboard.v1.DashboardOrBuilder> - dashboardBuilder_; + com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder> dashboardBuilder_; /** - * - * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dashboard field is set. */ public boolean hasDashboard() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The dashboard. */ public com.google.monitoring.dashboard.v1.Dashboard getDashboard() { if (dashboardBuilder_ == null) { - return dashboard_ == null - ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() - : dashboard_; + return dashboard_ == null ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() : dashboard_; } else { return dashboardBuilder_.getMessage(); } } /** - * - * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDashboard(com.google.monitoring.dashboard.v1.Dashboard value) { if (dashboardBuilder_ == null) { @@ -590,15 +523,11 @@ public Builder setDashboard(com.google.monitoring.dashboard.v1.Dashboard value) return this; } /** - * - * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDashboard( com.google.monitoring.dashboard.v1.Dashboard.Builder builderForValue) { @@ -612,21 +541,17 @@ public Builder setDashboard( return this; } /** - * - * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDashboard(com.google.monitoring.dashboard.v1.Dashboard value) { if (dashboardBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && dashboard_ != null - && dashboard_ != com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + dashboard_ != null && + dashboard_ != com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()) { getDashboardBuilder().mergeFrom(value); } else { dashboard_ = value; @@ -641,15 +566,11 @@ public Builder mergeDashboard(com.google.monitoring.dashboard.v1.Dashboard value return this; } /** - * - * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDashboard() { bitField0_ = (bitField0_ & ~0x00000001); @@ -662,15 +583,11 @@ public Builder clearDashboard() { return this; } /** - * - * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.dashboard.v1.Dashboard.Builder getDashboardBuilder() { bitField0_ |= 0x00000001; @@ -678,64 +595,49 @@ public com.google.monitoring.dashboard.v1.Dashboard.Builder getDashboardBuilder( return getDashboardFieldBuilder().getBuilder(); } /** - * - * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardOrBuilder() { if (dashboardBuilder_ != null) { return dashboardBuilder_.getMessageOrBuilder(); } else { - return dashboard_ == null - ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() - : dashboard_; + return dashboard_ == null ? + com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() : dashboard_; } } /** - * - * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, - com.google.monitoring.dashboard.v1.Dashboard.Builder, - com.google.monitoring.dashboard.v1.DashboardOrBuilder> + com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder> getDashboardFieldBuilder() { if (dashboardBuilder_ == null) { - dashboardBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, - com.google.monitoring.dashboard.v1.Dashboard.Builder, - com.google.monitoring.dashboard.v1.DashboardOrBuilder>( - getDashboard(), getParentForChildren(), isClean()); + dashboardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder>( + getDashboard(), + getParentForChildren(), + isClean()); dashboard_ = null; } return dashboardBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
                * If set, validate the request and preview the review, but do not actually
                * save it.
                * 
          * * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -743,15 +645,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
                * If set, validate the request and preview the review, but do not actually
                * save it.
                * 
          * * bool validate_only = 3; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -763,15 +662,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
                * If set, validate the request and preview the review, but do not actually
                * save it.
                * 
          * * bool validate_only = 3; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -780,9 +676,9 @@ public Builder clearValidateOnly() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -792,12 +688,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.UpdateDashboardRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.UpdateDashboardRequest) private static final com.google.monitoring.dashboard.v1.UpdateDashboardRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.UpdateDashboardRequest(); } @@ -806,27 +702,27 @@ public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDashboardRequest 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDashboardRequest 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; @@ -841,4 +737,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.UpdateDashboardRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequestOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequestOrBuilder.java similarity index 51% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequestOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequestOrBuilder.java index 8e5b1bfbd9c6..81d820b879fb 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequestOrBuilder.java @@ -1,80 +1,47 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface UpdateDashboardRequestOrBuilder - extends +public interface UpdateDashboardRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.UpdateDashboardRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * Required. The dashboard that will replace the existing dashboard.
              * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dashboard field is set. */ boolean hasDashboard(); /** - * - * *
              * Required. The dashboard that will replace the existing dashboard.
              * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The dashboard. */ com.google.monitoring.dashboard.v1.Dashboard getDashboard(); /** - * - * *
              * Required. The dashboard that will replace the existing dashboard.
              * 
          * - * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardOrBuilder(); /** - * - * *
              * If set, validate the request and preview the review, but do not actually
              * save it.
              * 
          * * bool validate_only = 3; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java new file mode 100644 index 000000000000..f8681f6f6a3c --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java @@ -0,0 +1,4178 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/widget.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +/** + *
          + * Widget contains a single dashboard component and configuration of how to
          + * present the component in the dashboard.
          + * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.Widget} + */ +public final class Widget extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Widget) + WidgetOrBuilder { +private static final long serialVersionUID = 0L; + // Use Widget.newBuilder() to construct. + private Widget(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Widget() { + title_ = ""; + id_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Widget(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.WidgetProto.internal_static_google_monitoring_dashboard_v1_Widget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.WidgetProto.internal_static_google_monitoring_dashboard_v1_Widget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.Widget.class, com.google.monitoring.dashboard.v1.Widget.Builder.class); + } + + private int contentCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object content_; + public enum ContentCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + XY_CHART(2), + SCORECARD(3), + TEXT(4), + BLANK(5), + ALERT_CHART(7), + TIME_SERIES_TABLE(8), + COLLAPSIBLE_GROUP(9), + LOGS_PANEL(10), + INCIDENT_LIST(12), + PIE_CHART(14), + ERROR_REPORTING_PANEL(19), + SECTION_HEADER(21), + SINGLE_VIEW_GROUP(22), + CONTENT_NOT_SET(0); + private final int value; + private ContentCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ContentCase valueOf(int value) { + return forNumber(value); + } + + public static ContentCase forNumber(int value) { + switch (value) { + case 2: return XY_CHART; + case 3: return SCORECARD; + case 4: return TEXT; + case 5: return BLANK; + case 7: return ALERT_CHART; + case 8: return TIME_SERIES_TABLE; + case 9: return COLLAPSIBLE_GROUP; + case 10: return LOGS_PANEL; + case 12: return INCIDENT_LIST; + case 14: return PIE_CHART; + case 19: return ERROR_REPORTING_PANEL; + case 21: return SECTION_HEADER; + case 22: return SINGLE_VIEW_GROUP; + case 0: return CONTENT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ContentCase + getContentCase() { + return ContentCase.forNumber( + contentCase_); + } + + public static final int TITLE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + /** + *
          +   * Optional. The title of the widget.
          +   * 
          + * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + 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(); + title_ = s; + return s; + } + } + /** + *
          +   * Optional. The title of the widget.
          +   * 
          + * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int XY_CHART_FIELD_NUMBER = 2; + /** + *
          +   * A chart of time series data.
          +   * 
          + * + * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + * @return Whether the xyChart field is set. + */ + @java.lang.Override + public boolean hasXyChart() { + return contentCase_ == 2; + } + /** + *
          +   * A chart of time series data.
          +   * 
          + * + * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + * @return The xyChart. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.XyChart getXyChart() { + if (contentCase_ == 2) { + return (com.google.monitoring.dashboard.v1.XyChart) content_; + } + return com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance(); + } + /** + *
          +   * A chart of time series data.
          +   * 
          + * + * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.XyChartOrBuilder getXyChartOrBuilder() { + if (contentCase_ == 2) { + return (com.google.monitoring.dashboard.v1.XyChart) content_; + } + return com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance(); + } + + public static final int SCORECARD_FIELD_NUMBER = 3; + /** + *
          +   * A scorecard summarizing time series data.
          +   * 
          + * + * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + * @return Whether the scorecard field is set. + */ + @java.lang.Override + public boolean hasScorecard() { + return contentCase_ == 3; + } + /** + *
          +   * A scorecard summarizing time series data.
          +   * 
          + * + * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + * @return The scorecard. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.Scorecard getScorecard() { + if (contentCase_ == 3) { + return (com.google.monitoring.dashboard.v1.Scorecard) content_; + } + return com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance(); + } + /** + *
          +   * A scorecard summarizing time series data.
          +   * 
          + * + * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.ScorecardOrBuilder getScorecardOrBuilder() { + if (contentCase_ == 3) { + return (com.google.monitoring.dashboard.v1.Scorecard) content_; + } + return com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance(); + } + + public static final int TEXT_FIELD_NUMBER = 4; + /** + *
          +   * A raw string or markdown displaying textual content.
          +   * 
          + * + * .google.monitoring.dashboard.v1.Text text = 4; + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return contentCase_ == 4; + } + /** + *
          +   * A raw string or markdown displaying textual content.
          +   * 
          + * + * .google.monitoring.dashboard.v1.Text text = 4; + * @return The text. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text getText() { + if (contentCase_ == 4) { + return (com.google.monitoring.dashboard.v1.Text) content_; + } + return com.google.monitoring.dashboard.v1.Text.getDefaultInstance(); + } + /** + *
          +   * A raw string or markdown displaying textual content.
          +   * 
          + * + * .google.monitoring.dashboard.v1.Text text = 4; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.TextOrBuilder getTextOrBuilder() { + if (contentCase_ == 4) { + return (com.google.monitoring.dashboard.v1.Text) content_; + } + return com.google.monitoring.dashboard.v1.Text.getDefaultInstance(); + } + + public static final int BLANK_FIELD_NUMBER = 5; + /** + *
          +   * A blank space.
          +   * 
          + * + * .google.protobuf.Empty blank = 5; + * @return Whether the blank field is set. + */ + @java.lang.Override + public boolean hasBlank() { + return contentCase_ == 5; + } + /** + *
          +   * A blank space.
          +   * 
          + * + * .google.protobuf.Empty blank = 5; + * @return The blank. + */ + @java.lang.Override + public com.google.protobuf.Empty getBlank() { + if (contentCase_ == 5) { + return (com.google.protobuf.Empty) content_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + /** + *
          +   * A blank space.
          +   * 
          + * + * .google.protobuf.Empty blank = 5; + */ + @java.lang.Override + public com.google.protobuf.EmptyOrBuilder getBlankOrBuilder() { + if (contentCase_ == 5) { + return (com.google.protobuf.Empty) content_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + + public static final int ALERT_CHART_FIELD_NUMBER = 7; + /** + *
          +   * A chart of alert policy data.
          +   * 
          + * + * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + * @return Whether the alertChart field is set. + */ + @java.lang.Override + public boolean hasAlertChart() { + return contentCase_ == 7; + } + /** + *
          +   * A chart of alert policy data.
          +   * 
          + * + * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + * @return The alertChart. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.AlertChart getAlertChart() { + if (contentCase_ == 7) { + return (com.google.monitoring.dashboard.v1.AlertChart) content_; + } + return com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance(); + } + /** + *
          +   * A chart of alert policy data.
          +   * 
          + * + * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.AlertChartOrBuilder getAlertChartOrBuilder() { + if (contentCase_ == 7) { + return (com.google.monitoring.dashboard.v1.AlertChart) content_; + } + return com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance(); + } + + public static final int TIME_SERIES_TABLE_FIELD_NUMBER = 8; + /** + *
          +   * A widget that displays time series data in a tabular format.
          +   * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + * @return Whether the timeSeriesTable field is set. + */ + @java.lang.Override + public boolean hasTimeSeriesTable() { + return contentCase_ == 8; + } + /** + *
          +   * A widget that displays time series data in a tabular format.
          +   * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + * @return The timeSeriesTable. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable getTimeSeriesTable() { + if (contentCase_ == 8) { + return (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_; + } + return com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); + } + /** + *
          +   * A widget that displays time series data in a tabular format.
          +   * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder getTimeSeriesTableOrBuilder() { + if (contentCase_ == 8) { + return (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_; + } + return com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); + } + + public static final int COLLAPSIBLE_GROUP_FIELD_NUMBER = 9; + /** + *
          +   * A widget that groups the other widgets. All widgets that are within
          +   * the area spanned by the grouping widget are considered member widgets.
          +   * 
          + * + * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + * @return Whether the collapsibleGroup field is set. + */ + @java.lang.Override + public boolean hasCollapsibleGroup() { + return contentCase_ == 9; + } + /** + *
          +   * A widget that groups the other widgets. All widgets that are within
          +   * the area spanned by the grouping widget are considered member widgets.
          +   * 
          + * + * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + * @return The collapsibleGroup. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.CollapsibleGroup getCollapsibleGroup() { + if (contentCase_ == 9) { + return (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_; + } + return com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance(); + } + /** + *
          +   * A widget that groups the other widgets. All widgets that are within
          +   * the area spanned by the grouping widget are considered member widgets.
          +   * 
          + * + * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder getCollapsibleGroupOrBuilder() { + if (contentCase_ == 9) { + return (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_; + } + return com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance(); + } + + public static final int LOGS_PANEL_FIELD_NUMBER = 10; + /** + *
          +   * A widget that shows a stream of logs.
          +   * 
          + * + * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + * @return Whether the logsPanel field is set. + */ + @java.lang.Override + public boolean hasLogsPanel() { + return contentCase_ == 10; + } + /** + *
          +   * A widget that shows a stream of logs.
          +   * 
          + * + * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + * @return The logsPanel. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.LogsPanel getLogsPanel() { + if (contentCase_ == 10) { + return (com.google.monitoring.dashboard.v1.LogsPanel) content_; + } + return com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance(); + } + /** + *
          +   * A widget that shows a stream of logs.
          +   * 
          + * + * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.LogsPanelOrBuilder getLogsPanelOrBuilder() { + if (contentCase_ == 10) { + return (com.google.monitoring.dashboard.v1.LogsPanel) content_; + } + return com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance(); + } + + public static final int INCIDENT_LIST_FIELD_NUMBER = 12; + /** + *
          +   * A widget that shows list of incidents.
          +   * 
          + * + * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + * @return Whether the incidentList field is set. + */ + @java.lang.Override + public boolean hasIncidentList() { + return contentCase_ == 12; + } + /** + *
          +   * A widget that shows list of incidents.
          +   * 
          + * + * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + * @return The incidentList. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.IncidentList getIncidentList() { + if (contentCase_ == 12) { + return (com.google.monitoring.dashboard.v1.IncidentList) content_; + } + return com.google.monitoring.dashboard.v1.IncidentList.getDefaultInstance(); + } + /** + *
          +   * A widget that shows list of incidents.
          +   * 
          + * + * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.IncidentListOrBuilder getIncidentListOrBuilder() { + if (contentCase_ == 12) { + return (com.google.monitoring.dashboard.v1.IncidentList) content_; + } + return com.google.monitoring.dashboard.v1.IncidentList.getDefaultInstance(); + } + + public static final int PIE_CHART_FIELD_NUMBER = 14; + /** + *
          +   * A widget that displays timeseries data as a pie chart.
          +   * 
          + * + * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + * @return Whether the pieChart field is set. + */ + @java.lang.Override + public boolean hasPieChart() { + return contentCase_ == 14; + } + /** + *
          +   * A widget that displays timeseries data as a pie chart.
          +   * 
          + * + * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + * @return The pieChart. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.PieChart getPieChart() { + if (contentCase_ == 14) { + return (com.google.monitoring.dashboard.v1.PieChart) content_; + } + return com.google.monitoring.dashboard.v1.PieChart.getDefaultInstance(); + } + /** + *
          +   * A widget that displays timeseries data as a pie chart.
          +   * 
          + * + * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.PieChartOrBuilder getPieChartOrBuilder() { + if (contentCase_ == 14) { + return (com.google.monitoring.dashboard.v1.PieChart) content_; + } + return com.google.monitoring.dashboard.v1.PieChart.getDefaultInstance(); + } + + public static final int ERROR_REPORTING_PANEL_FIELD_NUMBER = 19; + /** + *
          +   * A widget that displays a list of error groups.
          +   * 
          + * + * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + * @return Whether the errorReportingPanel field is set. + */ + @java.lang.Override + public boolean hasErrorReportingPanel() { + return contentCase_ == 19; + } + /** + *
          +   * A widget that displays a list of error groups.
          +   * 
          + * + * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + * @return The errorReportingPanel. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.ErrorReportingPanel getErrorReportingPanel() { + if (contentCase_ == 19) { + return (com.google.monitoring.dashboard.v1.ErrorReportingPanel) content_; + } + return com.google.monitoring.dashboard.v1.ErrorReportingPanel.getDefaultInstance(); + } + /** + *
          +   * A widget that displays a list of error groups.
          +   * 
          + * + * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder getErrorReportingPanelOrBuilder() { + if (contentCase_ == 19) { + return (com.google.monitoring.dashboard.v1.ErrorReportingPanel) content_; + } + return com.google.monitoring.dashboard.v1.ErrorReportingPanel.getDefaultInstance(); + } + + public static final int SECTION_HEADER_FIELD_NUMBER = 21; + /** + *
          +   * A widget that defines a section header for easier navigation of the
          +   * dashboard.
          +   * 
          + * + * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + * @return Whether the sectionHeader field is set. + */ + @java.lang.Override + public boolean hasSectionHeader() { + return contentCase_ == 21; + } + /** + *
          +   * A widget that defines a section header for easier navigation of the
          +   * dashboard.
          +   * 
          + * + * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + * @return The sectionHeader. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.SectionHeader getSectionHeader() { + if (contentCase_ == 21) { + return (com.google.monitoring.dashboard.v1.SectionHeader) content_; + } + return com.google.monitoring.dashboard.v1.SectionHeader.getDefaultInstance(); + } + /** + *
          +   * A widget that defines a section header for easier navigation of the
          +   * dashboard.
          +   * 
          + * + * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder getSectionHeaderOrBuilder() { + if (contentCase_ == 21) { + return (com.google.monitoring.dashboard.v1.SectionHeader) content_; + } + return com.google.monitoring.dashboard.v1.SectionHeader.getDefaultInstance(); + } + + public static final int SINGLE_VIEW_GROUP_FIELD_NUMBER = 22; + /** + *
          +   * A widget that groups the other widgets by using a dropdown menu.
          +   * 
          + * + * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + * @return Whether the singleViewGroup field is set. + */ + @java.lang.Override + public boolean hasSingleViewGroup() { + return contentCase_ == 22; + } + /** + *
          +   * A widget that groups the other widgets by using a dropdown menu.
          +   * 
          + * + * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + * @return The singleViewGroup. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.SingleViewGroup getSingleViewGroup() { + if (contentCase_ == 22) { + return (com.google.monitoring.dashboard.v1.SingleViewGroup) content_; + } + return com.google.monitoring.dashboard.v1.SingleViewGroup.getDefaultInstance(); + } + /** + *
          +   * A widget that groups the other widgets by using a dropdown menu.
          +   * 
          + * + * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder getSingleViewGroupOrBuilder() { + if (contentCase_ == 22) { + return (com.google.monitoring.dashboard.v1.SingleViewGroup) content_; + } + return com.google.monitoring.dashboard.v1.SingleViewGroup.getDefaultInstance(); + } + + public static final int ID_FIELD_NUMBER = 17; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
          +   * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
          +   * underscores. Widget ids are optional.
          +   * 
          + * + * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + *
          +   * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
          +   * underscores. Widget ids are optional.
          +   * 
          + * + * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); + } + if (contentCase_ == 2) { + output.writeMessage(2, (com.google.monitoring.dashboard.v1.XyChart) content_); + } + if (contentCase_ == 3) { + output.writeMessage(3, (com.google.monitoring.dashboard.v1.Scorecard) content_); + } + if (contentCase_ == 4) { + output.writeMessage(4, (com.google.monitoring.dashboard.v1.Text) content_); + } + if (contentCase_ == 5) { + output.writeMessage(5, (com.google.protobuf.Empty) content_); + } + if (contentCase_ == 7) { + output.writeMessage(7, (com.google.monitoring.dashboard.v1.AlertChart) content_); + } + if (contentCase_ == 8) { + output.writeMessage(8, (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_); + } + if (contentCase_ == 9) { + output.writeMessage(9, (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_); + } + if (contentCase_ == 10) { + output.writeMessage(10, (com.google.monitoring.dashboard.v1.LogsPanel) content_); + } + if (contentCase_ == 12) { + output.writeMessage(12, (com.google.monitoring.dashboard.v1.IncidentList) content_); + } + if (contentCase_ == 14) { + output.writeMessage(14, (com.google.monitoring.dashboard.v1.PieChart) content_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, id_); + } + if (contentCase_ == 19) { + output.writeMessage(19, (com.google.monitoring.dashboard.v1.ErrorReportingPanel) content_); + } + if (contentCase_ == 21) { + output.writeMessage(21, (com.google.monitoring.dashboard.v1.SectionHeader) content_); + } + if (contentCase_ == 22) { + output.writeMessage(22, (com.google.monitoring.dashboard.v1.SingleViewGroup) content_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); + } + if (contentCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.monitoring.dashboard.v1.XyChart) content_); + } + if (contentCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.monitoring.dashboard.v1.Scorecard) content_); + } + if (contentCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.monitoring.dashboard.v1.Text) content_); + } + if (contentCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.protobuf.Empty) content_); + } + if (contentCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.monitoring.dashboard.v1.AlertChart) content_); + } + if (contentCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_); + } + if (contentCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_); + } + if (contentCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (com.google.monitoring.dashboard.v1.LogsPanel) content_); + } + if (contentCase_ == 12) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (com.google.monitoring.dashboard.v1.IncidentList) content_); + } + if (contentCase_ == 14) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, (com.google.monitoring.dashboard.v1.PieChart) content_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, id_); + } + if (contentCase_ == 19) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, (com.google.monitoring.dashboard.v1.ErrorReportingPanel) content_); + } + if (contentCase_ == 21) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, (com.google.monitoring.dashboard.v1.SectionHeader) content_); + } + if (contentCase_ == 22) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, (com.google.monitoring.dashboard.v1.SingleViewGroup) content_); + } + 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.Widget)) { + return super.equals(obj); + } + com.google.monitoring.dashboard.v1.Widget other = (com.google.monitoring.dashboard.v1.Widget) obj; + + if (!getTitle() + .equals(other.getTitle())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getContentCase().equals(other.getContentCase())) return false; + switch (contentCase_) { + case 2: + if (!getXyChart() + .equals(other.getXyChart())) return false; + break; + case 3: + if (!getScorecard() + .equals(other.getScorecard())) return false; + break; + case 4: + if (!getText() + .equals(other.getText())) return false; + break; + case 5: + if (!getBlank() + .equals(other.getBlank())) return false; + break; + case 7: + if (!getAlertChart() + .equals(other.getAlertChart())) return false; + break; + case 8: + if (!getTimeSeriesTable() + .equals(other.getTimeSeriesTable())) return false; + break; + case 9: + if (!getCollapsibleGroup() + .equals(other.getCollapsibleGroup())) return false; + break; + case 10: + if (!getLogsPanel() + .equals(other.getLogsPanel())) return false; + break; + case 12: + if (!getIncidentList() + .equals(other.getIncidentList())) return false; + break; + case 14: + if (!getPieChart() + .equals(other.getPieChart())) return false; + break; + case 19: + if (!getErrorReportingPanel() + .equals(other.getErrorReportingPanel())) return false; + break; + case 21: + if (!getSectionHeader() + .equals(other.getSectionHeader())) return false; + break; + case 22: + if (!getSingleViewGroup() + .equals(other.getSingleViewGroup())) return false; + break; + case 0: + default: + } + 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(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + switch (contentCase_) { + case 2: + hash = (37 * hash) + XY_CHART_FIELD_NUMBER; + hash = (53 * hash) + getXyChart().hashCode(); + break; + case 3: + hash = (37 * hash) + SCORECARD_FIELD_NUMBER; + hash = (53 * hash) + getScorecard().hashCode(); + break; + case 4: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 5: + hash = (37 * hash) + BLANK_FIELD_NUMBER; + hash = (53 * hash) + getBlank().hashCode(); + break; + case 7: + hash = (37 * hash) + ALERT_CHART_FIELD_NUMBER; + hash = (53 * hash) + getAlertChart().hashCode(); + break; + case 8: + hash = (37 * hash) + TIME_SERIES_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTimeSeriesTable().hashCode(); + break; + case 9: + hash = (37 * hash) + COLLAPSIBLE_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getCollapsibleGroup().hashCode(); + break; + case 10: + hash = (37 * hash) + LOGS_PANEL_FIELD_NUMBER; + hash = (53 * hash) + getLogsPanel().hashCode(); + break; + case 12: + hash = (37 * hash) + INCIDENT_LIST_FIELD_NUMBER; + hash = (53 * hash) + getIncidentList().hashCode(); + break; + case 14: + hash = (37 * hash) + PIE_CHART_FIELD_NUMBER; + hash = (53 * hash) + getPieChart().hashCode(); + break; + case 19: + hash = (37 * hash) + ERROR_REPORTING_PANEL_FIELD_NUMBER; + hash = (53 * hash) + getErrorReportingPanel().hashCode(); + break; + case 21: + hash = (37 * hash) + SECTION_HEADER_FIELD_NUMBER; + hash = (53 * hash) + getSectionHeader().hashCode(); + break; + case 22: + hash = (37 * hash) + SINGLE_VIEW_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getSingleViewGroup().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.dashboard.v1.Widget parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.Widget 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.Widget parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.Widget 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.Widget parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.dashboard.v1.Widget 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.Widget parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.dashboard.v1.Widget 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.Widget parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.Widget 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.Widget 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.Widget 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.Widget 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; + } + /** + *
          +   * Widget contains a single dashboard component and configuration of how to
          +   * present the component in the dashboard.
          +   * 
          + * + * Protobuf type {@code google.monitoring.dashboard.v1.Widget} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Widget) + com.google.monitoring.dashboard.v1.WidgetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.WidgetProto.internal_static_google_monitoring_dashboard_v1_Widget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.WidgetProto.internal_static_google_monitoring_dashboard_v1_Widget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.Widget.class, com.google.monitoring.dashboard.v1.Widget.Builder.class); + } + + // Construct using com.google.monitoring.dashboard.v1.Widget.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + title_ = ""; + if (xyChartBuilder_ != null) { + xyChartBuilder_.clear(); + } + if (scorecardBuilder_ != null) { + scorecardBuilder_.clear(); + } + if (textBuilder_ != null) { + textBuilder_.clear(); + } + if (blankBuilder_ != null) { + blankBuilder_.clear(); + } + if (alertChartBuilder_ != null) { + alertChartBuilder_.clear(); + } + if (timeSeriesTableBuilder_ != null) { + timeSeriesTableBuilder_.clear(); + } + if (collapsibleGroupBuilder_ != null) { + collapsibleGroupBuilder_.clear(); + } + if (logsPanelBuilder_ != null) { + logsPanelBuilder_.clear(); + } + if (incidentListBuilder_ != null) { + incidentListBuilder_.clear(); + } + if (pieChartBuilder_ != null) { + pieChartBuilder_.clear(); + } + if (errorReportingPanelBuilder_ != null) { + errorReportingPanelBuilder_.clear(); + } + if (sectionHeaderBuilder_ != null) { + sectionHeaderBuilder_.clear(); + } + if (singleViewGroupBuilder_ != null) { + singleViewGroupBuilder_.clear(); + } + id_ = ""; + contentCase_ = 0; + content_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.WidgetProto.internal_static_google_monitoring_dashboard_v1_Widget_descriptor; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.Widget getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.Widget.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.Widget build() { + com.google.monitoring.dashboard.v1.Widget result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.Widget buildPartial() { + com.google.monitoring.dashboard.v1.Widget result = new com.google.monitoring.dashboard.v1.Widget(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.monitoring.dashboard.v1.Widget result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.id_ = id_; + } + } + + private void buildPartialOneofs(com.google.monitoring.dashboard.v1.Widget result) { + result.contentCase_ = contentCase_; + result.content_ = this.content_; + if (contentCase_ == 2 && + xyChartBuilder_ != null) { + result.content_ = xyChartBuilder_.build(); + } + if (contentCase_ == 3 && + scorecardBuilder_ != null) { + result.content_ = scorecardBuilder_.build(); + } + if (contentCase_ == 4 && + textBuilder_ != null) { + result.content_ = textBuilder_.build(); + } + if (contentCase_ == 5 && + blankBuilder_ != null) { + result.content_ = blankBuilder_.build(); + } + if (contentCase_ == 7 && + alertChartBuilder_ != null) { + result.content_ = alertChartBuilder_.build(); + } + if (contentCase_ == 8 && + timeSeriesTableBuilder_ != null) { + result.content_ = timeSeriesTableBuilder_.build(); + } + if (contentCase_ == 9 && + collapsibleGroupBuilder_ != null) { + result.content_ = collapsibleGroupBuilder_.build(); + } + if (contentCase_ == 10 && + logsPanelBuilder_ != null) { + result.content_ = logsPanelBuilder_.build(); + } + if (contentCase_ == 12 && + incidentListBuilder_ != null) { + result.content_ = incidentListBuilder_.build(); + } + if (contentCase_ == 14 && + pieChartBuilder_ != null) { + result.content_ = pieChartBuilder_.build(); + } + if (contentCase_ == 19 && + errorReportingPanelBuilder_ != null) { + result.content_ = errorReportingPanelBuilder_.build(); + } + if (contentCase_ == 21 && + sectionHeaderBuilder_ != null) { + result.content_ = sectionHeaderBuilder_.build(); + } + if (contentCase_ == 22 && + singleViewGroupBuilder_ != null) { + result.content_ = singleViewGroupBuilder_.build(); + } + } + + @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.Widget) { + return mergeFrom((com.google.monitoring.dashboard.v1.Widget)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.dashboard.v1.Widget other) { + if (other == com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()) return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00004000; + onChanged(); + } + switch (other.getContentCase()) { + case XY_CHART: { + mergeXyChart(other.getXyChart()); + break; + } + case SCORECARD: { + mergeScorecard(other.getScorecard()); + break; + } + case TEXT: { + mergeText(other.getText()); + break; + } + case BLANK: { + mergeBlank(other.getBlank()); + break; + } + case ALERT_CHART: { + mergeAlertChart(other.getAlertChart()); + break; + } + case TIME_SERIES_TABLE: { + mergeTimeSeriesTable(other.getTimeSeriesTable()); + break; + } + case COLLAPSIBLE_GROUP: { + mergeCollapsibleGroup(other.getCollapsibleGroup()); + break; + } + case LOGS_PANEL: { + mergeLogsPanel(other.getLogsPanel()); + break; + } + case INCIDENT_LIST: { + mergeIncidentList(other.getIncidentList()); + break; + } + case PIE_CHART: { + mergePieChart(other.getPieChart()); + break; + } + case ERROR_REPORTING_PANEL: { + mergeErrorReportingPanel(other.getErrorReportingPanel()); + break; + } + case SECTION_HEADER: { + mergeSectionHeader(other.getSectionHeader()); + break; + } + case SINGLE_VIEW_GROUP: { + mergeSingleViewGroup(other.getSingleViewGroup()); + break; + } + case CONTENT_NOT_SET: { + break; + } + } + 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: { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getXyChartFieldBuilder().getBuilder(), + extensionRegistry); + contentCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getScorecardFieldBuilder().getBuilder(), + extensionRegistry); + contentCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getTextFieldBuilder().getBuilder(), + extensionRegistry); + contentCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getBlankFieldBuilder().getBuilder(), + extensionRegistry); + contentCase_ = 5; + break; + } // case 42 + case 58: { + input.readMessage( + getAlertChartFieldBuilder().getBuilder(), + extensionRegistry); + contentCase_ = 7; + break; + } // case 58 + case 66: { + input.readMessage( + getTimeSeriesTableFieldBuilder().getBuilder(), + extensionRegistry); + contentCase_ = 8; + break; + } // case 66 + case 74: { + input.readMessage( + getCollapsibleGroupFieldBuilder().getBuilder(), + extensionRegistry); + contentCase_ = 9; + break; + } // case 74 + case 82: { + input.readMessage( + getLogsPanelFieldBuilder().getBuilder(), + extensionRegistry); + contentCase_ = 10; + break; + } // case 82 + case 98: { + input.readMessage( + getIncidentListFieldBuilder().getBuilder(), + extensionRegistry); + contentCase_ = 12; + break; + } // case 98 + case 114: { + input.readMessage( + getPieChartFieldBuilder().getBuilder(), + extensionRegistry); + contentCase_ = 14; + break; + } // case 114 + case 138: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 138 + case 154: { + input.readMessage( + getErrorReportingPanelFieldBuilder().getBuilder(), + extensionRegistry); + contentCase_ = 19; + break; + } // case 154 + case 170: { + input.readMessage( + getSectionHeaderFieldBuilder().getBuilder(), + extensionRegistry); + contentCase_ = 21; + break; + } // case 170 + case 178: { + input.readMessage( + getSingleViewGroupFieldBuilder().getBuilder(), + extensionRegistry); + contentCase_ = 22; + break; + } // case 178 + 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 contentCase_ = 0; + private java.lang.Object content_; + public ContentCase + getContentCase() { + return ContentCase.forNumber( + contentCase_); + } + + public Builder clearContent() { + contentCase_ = 0; + content_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object title_ = ""; + /** + *
          +     * Optional. The title of the widget.
          +     * 
          + * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
          +     * Optional. The title of the widget.
          +     * 
          + * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for title. + */ + public com.google.protobuf.ByteString + getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
          +     * Optional. The title of the widget.
          +     * 
          + * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
          +     * Optional. The title of the widget.
          +     * 
          + * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
          +     * Optional. The title of the widget.
          +     * 
          + * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.XyChart, com.google.monitoring.dashboard.v1.XyChart.Builder, com.google.monitoring.dashboard.v1.XyChartOrBuilder> xyChartBuilder_; + /** + *
          +     * A chart of time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + * @return Whether the xyChart field is set. + */ + @java.lang.Override + public boolean hasXyChart() { + return contentCase_ == 2; + } + /** + *
          +     * A chart of time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + * @return The xyChart. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.XyChart getXyChart() { + if (xyChartBuilder_ == null) { + if (contentCase_ == 2) { + return (com.google.monitoring.dashboard.v1.XyChart) content_; + } + return com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance(); + } else { + if (contentCase_ == 2) { + return xyChartBuilder_.getMessage(); + } + return com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance(); + } + } + /** + *
          +     * A chart of time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + */ + public Builder setXyChart(com.google.monitoring.dashboard.v1.XyChart value) { + if (xyChartBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + xyChartBuilder_.setMessage(value); + } + contentCase_ = 2; + return this; + } + /** + *
          +     * A chart of time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + */ + public Builder setXyChart( + com.google.monitoring.dashboard.v1.XyChart.Builder builderForValue) { + if (xyChartBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + xyChartBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 2; + return this; + } + /** + *
          +     * A chart of time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + */ + public Builder mergeXyChart(com.google.monitoring.dashboard.v1.XyChart value) { + if (xyChartBuilder_ == null) { + if (contentCase_ == 2 && + content_ != com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance()) { + content_ = com.google.monitoring.dashboard.v1.XyChart.newBuilder((com.google.monitoring.dashboard.v1.XyChart) content_) + .mergeFrom(value).buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 2) { + xyChartBuilder_.mergeFrom(value); + } else { + xyChartBuilder_.setMessage(value); + } + } + contentCase_ = 2; + return this; + } + /** + *
          +     * A chart of time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + */ + public Builder clearXyChart() { + if (xyChartBuilder_ == null) { + if (contentCase_ == 2) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 2) { + contentCase_ = 0; + content_ = null; + } + xyChartBuilder_.clear(); + } + return this; + } + /** + *
          +     * A chart of time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + */ + public com.google.monitoring.dashboard.v1.XyChart.Builder getXyChartBuilder() { + return getXyChartFieldBuilder().getBuilder(); + } + /** + *
          +     * A chart of time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.XyChartOrBuilder getXyChartOrBuilder() { + if ((contentCase_ == 2) && (xyChartBuilder_ != null)) { + return xyChartBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 2) { + return (com.google.monitoring.dashboard.v1.XyChart) content_; + } + return com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance(); + } + } + /** + *
          +     * A chart of time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.XyChart, com.google.monitoring.dashboard.v1.XyChart.Builder, com.google.monitoring.dashboard.v1.XyChartOrBuilder> + getXyChartFieldBuilder() { + if (xyChartBuilder_ == null) { + if (!(contentCase_ == 2)) { + content_ = com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance(); + } + xyChartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.XyChart, com.google.monitoring.dashboard.v1.XyChart.Builder, com.google.monitoring.dashboard.v1.XyChartOrBuilder>( + (com.google.monitoring.dashboard.v1.XyChart) content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 2; + onChanged(); + return xyChartBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Scorecard, com.google.monitoring.dashboard.v1.Scorecard.Builder, com.google.monitoring.dashboard.v1.ScorecardOrBuilder> scorecardBuilder_; + /** + *
          +     * A scorecard summarizing time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + * @return Whether the scorecard field is set. + */ + @java.lang.Override + public boolean hasScorecard() { + return contentCase_ == 3; + } + /** + *
          +     * A scorecard summarizing time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + * @return The scorecard. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.Scorecard getScorecard() { + if (scorecardBuilder_ == null) { + if (contentCase_ == 3) { + return (com.google.monitoring.dashboard.v1.Scorecard) content_; + } + return com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance(); + } else { + if (contentCase_ == 3) { + return scorecardBuilder_.getMessage(); + } + return com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance(); + } + } + /** + *
          +     * A scorecard summarizing time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + */ + public Builder setScorecard(com.google.monitoring.dashboard.v1.Scorecard value) { + if (scorecardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + scorecardBuilder_.setMessage(value); + } + contentCase_ = 3; + return this; + } + /** + *
          +     * A scorecard summarizing time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + */ + public Builder setScorecard( + com.google.monitoring.dashboard.v1.Scorecard.Builder builderForValue) { + if (scorecardBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + scorecardBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 3; + return this; + } + /** + *
          +     * A scorecard summarizing time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + */ + public Builder mergeScorecard(com.google.monitoring.dashboard.v1.Scorecard value) { + if (scorecardBuilder_ == null) { + if (contentCase_ == 3 && + content_ != com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance()) { + content_ = com.google.monitoring.dashboard.v1.Scorecard.newBuilder((com.google.monitoring.dashboard.v1.Scorecard) content_) + .mergeFrom(value).buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 3) { + scorecardBuilder_.mergeFrom(value); + } else { + scorecardBuilder_.setMessage(value); + } + } + contentCase_ = 3; + return this; + } + /** + *
          +     * A scorecard summarizing time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + */ + public Builder clearScorecard() { + if (scorecardBuilder_ == null) { + if (contentCase_ == 3) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 3) { + contentCase_ = 0; + content_ = null; + } + scorecardBuilder_.clear(); + } + return this; + } + /** + *
          +     * A scorecard summarizing time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + */ + public com.google.monitoring.dashboard.v1.Scorecard.Builder getScorecardBuilder() { + return getScorecardFieldBuilder().getBuilder(); + } + /** + *
          +     * A scorecard summarizing time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.ScorecardOrBuilder getScorecardOrBuilder() { + if ((contentCase_ == 3) && (scorecardBuilder_ != null)) { + return scorecardBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 3) { + return (com.google.monitoring.dashboard.v1.Scorecard) content_; + } + return com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance(); + } + } + /** + *
          +     * A scorecard summarizing time series data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Scorecard, com.google.monitoring.dashboard.v1.Scorecard.Builder, com.google.monitoring.dashboard.v1.ScorecardOrBuilder> + getScorecardFieldBuilder() { + if (scorecardBuilder_ == null) { + if (!(contentCase_ == 3)) { + content_ = com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance(); + } + scorecardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Scorecard, com.google.monitoring.dashboard.v1.Scorecard.Builder, com.google.monitoring.dashboard.v1.ScorecardOrBuilder>( + (com.google.monitoring.dashboard.v1.Scorecard) content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 3; + onChanged(); + return scorecardBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Text, com.google.monitoring.dashboard.v1.Text.Builder, com.google.monitoring.dashboard.v1.TextOrBuilder> textBuilder_; + /** + *
          +     * A raw string or markdown displaying textual content.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text text = 4; + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return contentCase_ == 4; + } + /** + *
          +     * A raw string or markdown displaying textual content.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text text = 4; + * @return The text. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text getText() { + if (textBuilder_ == null) { + if (contentCase_ == 4) { + return (com.google.monitoring.dashboard.v1.Text) content_; + } + return com.google.monitoring.dashboard.v1.Text.getDefaultInstance(); + } else { + if (contentCase_ == 4) { + return textBuilder_.getMessage(); + } + return com.google.monitoring.dashboard.v1.Text.getDefaultInstance(); + } + } + /** + *
          +     * A raw string or markdown displaying textual content.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text text = 4; + */ + public Builder setText(com.google.monitoring.dashboard.v1.Text value) { + if (textBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + textBuilder_.setMessage(value); + } + contentCase_ = 4; + return this; + } + /** + *
          +     * A raw string or markdown displaying textual content.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text text = 4; + */ + public Builder setText( + com.google.monitoring.dashboard.v1.Text.Builder builderForValue) { + if (textBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + textBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 4; + return this; + } + /** + *
          +     * A raw string or markdown displaying textual content.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text text = 4; + */ + public Builder mergeText(com.google.monitoring.dashboard.v1.Text value) { + if (textBuilder_ == null) { + if (contentCase_ == 4 && + content_ != com.google.monitoring.dashboard.v1.Text.getDefaultInstance()) { + content_ = com.google.monitoring.dashboard.v1.Text.newBuilder((com.google.monitoring.dashboard.v1.Text) content_) + .mergeFrom(value).buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 4) { + textBuilder_.mergeFrom(value); + } else { + textBuilder_.setMessage(value); + } + } + contentCase_ = 4; + return this; + } + /** + *
          +     * A raw string or markdown displaying textual content.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text text = 4; + */ + public Builder clearText() { + if (textBuilder_ == null) { + if (contentCase_ == 4) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 4) { + contentCase_ = 0; + content_ = null; + } + textBuilder_.clear(); + } + return this; + } + /** + *
          +     * A raw string or markdown displaying textual content.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text text = 4; + */ + public com.google.monitoring.dashboard.v1.Text.Builder getTextBuilder() { + return getTextFieldBuilder().getBuilder(); + } + /** + *
          +     * A raw string or markdown displaying textual content.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text text = 4; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.TextOrBuilder getTextOrBuilder() { + if ((contentCase_ == 4) && (textBuilder_ != null)) { + return textBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 4) { + return (com.google.monitoring.dashboard.v1.Text) content_; + } + return com.google.monitoring.dashboard.v1.Text.getDefaultInstance(); + } + } + /** + *
          +     * A raw string or markdown displaying textual content.
          +     * 
          + * + * .google.monitoring.dashboard.v1.Text text = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Text, com.google.monitoring.dashboard.v1.Text.Builder, com.google.monitoring.dashboard.v1.TextOrBuilder> + getTextFieldBuilder() { + if (textBuilder_ == null) { + if (!(contentCase_ == 4)) { + content_ = com.google.monitoring.dashboard.v1.Text.getDefaultInstance(); + } + textBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Text, com.google.monitoring.dashboard.v1.Text.Builder, com.google.monitoring.dashboard.v1.TextOrBuilder>( + (com.google.monitoring.dashboard.v1.Text) content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 4; + onChanged(); + return textBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> blankBuilder_; + /** + *
          +     * A blank space.
          +     * 
          + * + * .google.protobuf.Empty blank = 5; + * @return Whether the blank field is set. + */ + @java.lang.Override + public boolean hasBlank() { + return contentCase_ == 5; + } + /** + *
          +     * A blank space.
          +     * 
          + * + * .google.protobuf.Empty blank = 5; + * @return The blank. + */ + @java.lang.Override + public com.google.protobuf.Empty getBlank() { + if (blankBuilder_ == null) { + if (contentCase_ == 5) { + return (com.google.protobuf.Empty) content_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } else { + if (contentCase_ == 5) { + return blankBuilder_.getMessage(); + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + } + /** + *
          +     * A blank space.
          +     * 
          + * + * .google.protobuf.Empty blank = 5; + */ + public Builder setBlank(com.google.protobuf.Empty value) { + if (blankBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + blankBuilder_.setMessage(value); + } + contentCase_ = 5; + return this; + } + /** + *
          +     * A blank space.
          +     * 
          + * + * .google.protobuf.Empty blank = 5; + */ + public Builder setBlank( + com.google.protobuf.Empty.Builder builderForValue) { + if (blankBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + blankBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 5; + return this; + } + /** + *
          +     * A blank space.
          +     * 
          + * + * .google.protobuf.Empty blank = 5; + */ + public Builder mergeBlank(com.google.protobuf.Empty value) { + if (blankBuilder_ == null) { + if (contentCase_ == 5 && + content_ != com.google.protobuf.Empty.getDefaultInstance()) { + content_ = com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) content_) + .mergeFrom(value).buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 5) { + blankBuilder_.mergeFrom(value); + } else { + blankBuilder_.setMessage(value); + } + } + contentCase_ = 5; + return this; + } + /** + *
          +     * A blank space.
          +     * 
          + * + * .google.protobuf.Empty blank = 5; + */ + public Builder clearBlank() { + if (blankBuilder_ == null) { + if (contentCase_ == 5) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 5) { + contentCase_ = 0; + content_ = null; + } + blankBuilder_.clear(); + } + return this; + } + /** + *
          +     * A blank space.
          +     * 
          + * + * .google.protobuf.Empty blank = 5; + */ + public com.google.protobuf.Empty.Builder getBlankBuilder() { + return getBlankFieldBuilder().getBuilder(); + } + /** + *
          +     * A blank space.
          +     * 
          + * + * .google.protobuf.Empty blank = 5; + */ + @java.lang.Override + public com.google.protobuf.EmptyOrBuilder getBlankOrBuilder() { + if ((contentCase_ == 5) && (blankBuilder_ != null)) { + return blankBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 5) { + return (com.google.protobuf.Empty) content_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + } + /** + *
          +     * A blank space.
          +     * 
          + * + * .google.protobuf.Empty blank = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> + getBlankFieldBuilder() { + if (blankBuilder_ == null) { + if (!(contentCase_ == 5)) { + content_ = com.google.protobuf.Empty.getDefaultInstance(); + } + blankBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder>( + (com.google.protobuf.Empty) content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 5; + onChanged(); + return blankBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.AlertChart, com.google.monitoring.dashboard.v1.AlertChart.Builder, com.google.monitoring.dashboard.v1.AlertChartOrBuilder> alertChartBuilder_; + /** + *
          +     * A chart of alert policy data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + * @return Whether the alertChart field is set. + */ + @java.lang.Override + public boolean hasAlertChart() { + return contentCase_ == 7; + } + /** + *
          +     * A chart of alert policy data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + * @return The alertChart. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.AlertChart getAlertChart() { + if (alertChartBuilder_ == null) { + if (contentCase_ == 7) { + return (com.google.monitoring.dashboard.v1.AlertChart) content_; + } + return com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance(); + } else { + if (contentCase_ == 7) { + return alertChartBuilder_.getMessage(); + } + return com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance(); + } + } + /** + *
          +     * A chart of alert policy data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + */ + public Builder setAlertChart(com.google.monitoring.dashboard.v1.AlertChart value) { + if (alertChartBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + alertChartBuilder_.setMessage(value); + } + contentCase_ = 7; + return this; + } + /** + *
          +     * A chart of alert policy data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + */ + public Builder setAlertChart( + com.google.monitoring.dashboard.v1.AlertChart.Builder builderForValue) { + if (alertChartBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + alertChartBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 7; + return this; + } + /** + *
          +     * A chart of alert policy data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + */ + public Builder mergeAlertChart(com.google.monitoring.dashboard.v1.AlertChart value) { + if (alertChartBuilder_ == null) { + if (contentCase_ == 7 && + content_ != com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance()) { + content_ = com.google.monitoring.dashboard.v1.AlertChart.newBuilder((com.google.monitoring.dashboard.v1.AlertChart) content_) + .mergeFrom(value).buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 7) { + alertChartBuilder_.mergeFrom(value); + } else { + alertChartBuilder_.setMessage(value); + } + } + contentCase_ = 7; + return this; + } + /** + *
          +     * A chart of alert policy data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + */ + public Builder clearAlertChart() { + if (alertChartBuilder_ == null) { + if (contentCase_ == 7) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 7) { + contentCase_ = 0; + content_ = null; + } + alertChartBuilder_.clear(); + } + return this; + } + /** + *
          +     * A chart of alert policy data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + */ + public com.google.monitoring.dashboard.v1.AlertChart.Builder getAlertChartBuilder() { + return getAlertChartFieldBuilder().getBuilder(); + } + /** + *
          +     * A chart of alert policy data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.AlertChartOrBuilder getAlertChartOrBuilder() { + if ((contentCase_ == 7) && (alertChartBuilder_ != null)) { + return alertChartBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 7) { + return (com.google.monitoring.dashboard.v1.AlertChart) content_; + } + return com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance(); + } + } + /** + *
          +     * A chart of alert policy data.
          +     * 
          + * + * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.AlertChart, com.google.monitoring.dashboard.v1.AlertChart.Builder, com.google.monitoring.dashboard.v1.AlertChartOrBuilder> + getAlertChartFieldBuilder() { + if (alertChartBuilder_ == null) { + if (!(contentCase_ == 7)) { + content_ = com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance(); + } + alertChartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.AlertChart, com.google.monitoring.dashboard.v1.AlertChart.Builder, com.google.monitoring.dashboard.v1.AlertChartOrBuilder>( + (com.google.monitoring.dashboard.v1.AlertChart) content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 7; + onChanged(); + return alertChartBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesTable, com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder, com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder> timeSeriesTableBuilder_; + /** + *
          +     * A widget that displays time series data in a tabular format.
          +     * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + * @return Whether the timeSeriesTable field is set. + */ + @java.lang.Override + public boolean hasTimeSeriesTable() { + return contentCase_ == 8; + } + /** + *
          +     * A widget that displays time series data in a tabular format.
          +     * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + * @return The timeSeriesTable. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable getTimeSeriesTable() { + if (timeSeriesTableBuilder_ == null) { + if (contentCase_ == 8) { + return (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_; + } + return com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); + } else { + if (contentCase_ == 8) { + return timeSeriesTableBuilder_.getMessage(); + } + return com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); + } + } + /** + *
          +     * A widget that displays time series data in a tabular format.
          +     * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + */ + public Builder setTimeSeriesTable(com.google.monitoring.dashboard.v1.TimeSeriesTable value) { + if (timeSeriesTableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + timeSeriesTableBuilder_.setMessage(value); + } + contentCase_ = 8; + return this; + } + /** + *
          +     * A widget that displays time series data in a tabular format.
          +     * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + */ + public Builder setTimeSeriesTable( + com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder builderForValue) { + if (timeSeriesTableBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + timeSeriesTableBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 8; + return this; + } + /** + *
          +     * A widget that displays time series data in a tabular format.
          +     * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + */ + public Builder mergeTimeSeriesTable(com.google.monitoring.dashboard.v1.TimeSeriesTable value) { + if (timeSeriesTableBuilder_ == null) { + if (contentCase_ == 8 && + content_ != com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance()) { + content_ = com.google.monitoring.dashboard.v1.TimeSeriesTable.newBuilder((com.google.monitoring.dashboard.v1.TimeSeriesTable) content_) + .mergeFrom(value).buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 8) { + timeSeriesTableBuilder_.mergeFrom(value); + } else { + timeSeriesTableBuilder_.setMessage(value); + } + } + contentCase_ = 8; + return this; + } + /** + *
          +     * A widget that displays time series data in a tabular format.
          +     * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + */ + public Builder clearTimeSeriesTable() { + if (timeSeriesTableBuilder_ == null) { + if (contentCase_ == 8) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 8) { + contentCase_ = 0; + content_ = null; + } + timeSeriesTableBuilder_.clear(); + } + return this; + } + /** + *
          +     * A widget that displays time series data in a tabular format.
          +     * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + */ + public com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder getTimeSeriesTableBuilder() { + return getTimeSeriesTableFieldBuilder().getBuilder(); + } + /** + *
          +     * A widget that displays time series data in a tabular format.
          +     * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder getTimeSeriesTableOrBuilder() { + if ((contentCase_ == 8) && (timeSeriesTableBuilder_ != null)) { + return timeSeriesTableBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 8) { + return (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_; + } + return com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); + } + } + /** + *
          +     * A widget that displays time series data in a tabular format.
          +     * 
          + * + * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesTable, com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder, com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder> + getTimeSeriesTableFieldBuilder() { + if (timeSeriesTableBuilder_ == null) { + if (!(contentCase_ == 8)) { + content_ = com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); + } + timeSeriesTableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesTable, com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder, com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder>( + (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 8; + onChanged(); + return timeSeriesTableBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.CollapsibleGroup, com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder, com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder> collapsibleGroupBuilder_; + /** + *
          +     * A widget that groups the other widgets. All widgets that are within
          +     * the area spanned by the grouping widget are considered member widgets.
          +     * 
          + * + * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + * @return Whether the collapsibleGroup field is set. + */ + @java.lang.Override + public boolean hasCollapsibleGroup() { + return contentCase_ == 9; + } + /** + *
          +     * A widget that groups the other widgets. All widgets that are within
          +     * the area spanned by the grouping widget are considered member widgets.
          +     * 
          + * + * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + * @return The collapsibleGroup. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.CollapsibleGroup getCollapsibleGroup() { + if (collapsibleGroupBuilder_ == null) { + if (contentCase_ == 9) { + return (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_; + } + return com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance(); + } else { + if (contentCase_ == 9) { + return collapsibleGroupBuilder_.getMessage(); + } + return com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance(); + } + } + /** + *
          +     * A widget that groups the other widgets. All widgets that are within
          +     * the area spanned by the grouping widget are considered member widgets.
          +     * 
          + * + * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + */ + public Builder setCollapsibleGroup(com.google.monitoring.dashboard.v1.CollapsibleGroup value) { + if (collapsibleGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + collapsibleGroupBuilder_.setMessage(value); + } + contentCase_ = 9; + return this; + } + /** + *
          +     * A widget that groups the other widgets. All widgets that are within
          +     * the area spanned by the grouping widget are considered member widgets.
          +     * 
          + * + * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + */ + public Builder setCollapsibleGroup( + com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder builderForValue) { + if (collapsibleGroupBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + collapsibleGroupBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 9; + return this; + } + /** + *
          +     * A widget that groups the other widgets. All widgets that are within
          +     * the area spanned by the grouping widget are considered member widgets.
          +     * 
          + * + * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + */ + public Builder mergeCollapsibleGroup(com.google.monitoring.dashboard.v1.CollapsibleGroup value) { + if (collapsibleGroupBuilder_ == null) { + if (contentCase_ == 9 && + content_ != com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance()) { + content_ = com.google.monitoring.dashboard.v1.CollapsibleGroup.newBuilder((com.google.monitoring.dashboard.v1.CollapsibleGroup) content_) + .mergeFrom(value).buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 9) { + collapsibleGroupBuilder_.mergeFrom(value); + } else { + collapsibleGroupBuilder_.setMessage(value); + } + } + contentCase_ = 9; + return this; + } + /** + *
          +     * A widget that groups the other widgets. All widgets that are within
          +     * the area spanned by the grouping widget are considered member widgets.
          +     * 
          + * + * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + */ + public Builder clearCollapsibleGroup() { + if (collapsibleGroupBuilder_ == null) { + if (contentCase_ == 9) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 9) { + contentCase_ = 0; + content_ = null; + } + collapsibleGroupBuilder_.clear(); + } + return this; + } + /** + *
          +     * A widget that groups the other widgets. All widgets that are within
          +     * the area spanned by the grouping widget are considered member widgets.
          +     * 
          + * + * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + */ + public com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder getCollapsibleGroupBuilder() { + return getCollapsibleGroupFieldBuilder().getBuilder(); + } + /** + *
          +     * A widget that groups the other widgets. All widgets that are within
          +     * the area spanned by the grouping widget are considered member widgets.
          +     * 
          + * + * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder getCollapsibleGroupOrBuilder() { + if ((contentCase_ == 9) && (collapsibleGroupBuilder_ != null)) { + return collapsibleGroupBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 9) { + return (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_; + } + return com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance(); + } + } + /** + *
          +     * A widget that groups the other widgets. All widgets that are within
          +     * the area spanned by the grouping widget are considered member widgets.
          +     * 
          + * + * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.CollapsibleGroup, com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder, com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder> + getCollapsibleGroupFieldBuilder() { + if (collapsibleGroupBuilder_ == null) { + if (!(contentCase_ == 9)) { + content_ = com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance(); + } + collapsibleGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.CollapsibleGroup, com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder, com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder>( + (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 9; + onChanged(); + return collapsibleGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.LogsPanel, com.google.monitoring.dashboard.v1.LogsPanel.Builder, com.google.monitoring.dashboard.v1.LogsPanelOrBuilder> logsPanelBuilder_; + /** + *
          +     * A widget that shows a stream of logs.
          +     * 
          + * + * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + * @return Whether the logsPanel field is set. + */ + @java.lang.Override + public boolean hasLogsPanel() { + return contentCase_ == 10; + } + /** + *
          +     * A widget that shows a stream of logs.
          +     * 
          + * + * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + * @return The logsPanel. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.LogsPanel getLogsPanel() { + if (logsPanelBuilder_ == null) { + if (contentCase_ == 10) { + return (com.google.monitoring.dashboard.v1.LogsPanel) content_; + } + return com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance(); + } else { + if (contentCase_ == 10) { + return logsPanelBuilder_.getMessage(); + } + return com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance(); + } + } + /** + *
          +     * A widget that shows a stream of logs.
          +     * 
          + * + * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + */ + public Builder setLogsPanel(com.google.monitoring.dashboard.v1.LogsPanel value) { + if (logsPanelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + logsPanelBuilder_.setMessage(value); + } + contentCase_ = 10; + return this; + } + /** + *
          +     * A widget that shows a stream of logs.
          +     * 
          + * + * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + */ + public Builder setLogsPanel( + com.google.monitoring.dashboard.v1.LogsPanel.Builder builderForValue) { + if (logsPanelBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + logsPanelBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 10; + return this; + } + /** + *
          +     * A widget that shows a stream of logs.
          +     * 
          + * + * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + */ + public Builder mergeLogsPanel(com.google.monitoring.dashboard.v1.LogsPanel value) { + if (logsPanelBuilder_ == null) { + if (contentCase_ == 10 && + content_ != com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance()) { + content_ = com.google.monitoring.dashboard.v1.LogsPanel.newBuilder((com.google.monitoring.dashboard.v1.LogsPanel) content_) + .mergeFrom(value).buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 10) { + logsPanelBuilder_.mergeFrom(value); + } else { + logsPanelBuilder_.setMessage(value); + } + } + contentCase_ = 10; + return this; + } + /** + *
          +     * A widget that shows a stream of logs.
          +     * 
          + * + * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + */ + public Builder clearLogsPanel() { + if (logsPanelBuilder_ == null) { + if (contentCase_ == 10) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 10) { + contentCase_ = 0; + content_ = null; + } + logsPanelBuilder_.clear(); + } + return this; + } + /** + *
          +     * A widget that shows a stream of logs.
          +     * 
          + * + * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + */ + public com.google.monitoring.dashboard.v1.LogsPanel.Builder getLogsPanelBuilder() { + return getLogsPanelFieldBuilder().getBuilder(); + } + /** + *
          +     * A widget that shows a stream of logs.
          +     * 
          + * + * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.LogsPanelOrBuilder getLogsPanelOrBuilder() { + if ((contentCase_ == 10) && (logsPanelBuilder_ != null)) { + return logsPanelBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 10) { + return (com.google.monitoring.dashboard.v1.LogsPanel) content_; + } + return com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance(); + } + } + /** + *
          +     * A widget that shows a stream of logs.
          +     * 
          + * + * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.LogsPanel, com.google.monitoring.dashboard.v1.LogsPanel.Builder, com.google.monitoring.dashboard.v1.LogsPanelOrBuilder> + getLogsPanelFieldBuilder() { + if (logsPanelBuilder_ == null) { + if (!(contentCase_ == 10)) { + content_ = com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance(); + } + logsPanelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.LogsPanel, com.google.monitoring.dashboard.v1.LogsPanel.Builder, com.google.monitoring.dashboard.v1.LogsPanelOrBuilder>( + (com.google.monitoring.dashboard.v1.LogsPanel) content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 10; + onChanged(); + return logsPanelBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.IncidentList, com.google.monitoring.dashboard.v1.IncidentList.Builder, com.google.monitoring.dashboard.v1.IncidentListOrBuilder> incidentListBuilder_; + /** + *
          +     * A widget that shows list of incidents.
          +     * 
          + * + * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + * @return Whether the incidentList field is set. + */ + @java.lang.Override + public boolean hasIncidentList() { + return contentCase_ == 12; + } + /** + *
          +     * A widget that shows list of incidents.
          +     * 
          + * + * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + * @return The incidentList. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.IncidentList getIncidentList() { + if (incidentListBuilder_ == null) { + if (contentCase_ == 12) { + return (com.google.monitoring.dashboard.v1.IncidentList) content_; + } + return com.google.monitoring.dashboard.v1.IncidentList.getDefaultInstance(); + } else { + if (contentCase_ == 12) { + return incidentListBuilder_.getMessage(); + } + return com.google.monitoring.dashboard.v1.IncidentList.getDefaultInstance(); + } + } + /** + *
          +     * A widget that shows list of incidents.
          +     * 
          + * + * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + */ + public Builder setIncidentList(com.google.monitoring.dashboard.v1.IncidentList value) { + if (incidentListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + incidentListBuilder_.setMessage(value); + } + contentCase_ = 12; + return this; + } + /** + *
          +     * A widget that shows list of incidents.
          +     * 
          + * + * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + */ + public Builder setIncidentList( + com.google.monitoring.dashboard.v1.IncidentList.Builder builderForValue) { + if (incidentListBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + incidentListBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 12; + return this; + } + /** + *
          +     * A widget that shows list of incidents.
          +     * 
          + * + * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + */ + public Builder mergeIncidentList(com.google.monitoring.dashboard.v1.IncidentList value) { + if (incidentListBuilder_ == null) { + if (contentCase_ == 12 && + content_ != com.google.monitoring.dashboard.v1.IncidentList.getDefaultInstance()) { + content_ = com.google.monitoring.dashboard.v1.IncidentList.newBuilder((com.google.monitoring.dashboard.v1.IncidentList) content_) + .mergeFrom(value).buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 12) { + incidentListBuilder_.mergeFrom(value); + } else { + incidentListBuilder_.setMessage(value); + } + } + contentCase_ = 12; + return this; + } + /** + *
          +     * A widget that shows list of incidents.
          +     * 
          + * + * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + */ + public Builder clearIncidentList() { + if (incidentListBuilder_ == null) { + if (contentCase_ == 12) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 12) { + contentCase_ = 0; + content_ = null; + } + incidentListBuilder_.clear(); + } + return this; + } + /** + *
          +     * A widget that shows list of incidents.
          +     * 
          + * + * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + */ + public com.google.monitoring.dashboard.v1.IncidentList.Builder getIncidentListBuilder() { + return getIncidentListFieldBuilder().getBuilder(); + } + /** + *
          +     * A widget that shows list of incidents.
          +     * 
          + * + * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.IncidentListOrBuilder getIncidentListOrBuilder() { + if ((contentCase_ == 12) && (incidentListBuilder_ != null)) { + return incidentListBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 12) { + return (com.google.monitoring.dashboard.v1.IncidentList) content_; + } + return com.google.monitoring.dashboard.v1.IncidentList.getDefaultInstance(); + } + } + /** + *
          +     * A widget that shows list of incidents.
          +     * 
          + * + * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.IncidentList, com.google.monitoring.dashboard.v1.IncidentList.Builder, com.google.monitoring.dashboard.v1.IncidentListOrBuilder> + getIncidentListFieldBuilder() { + if (incidentListBuilder_ == null) { + if (!(contentCase_ == 12)) { + content_ = com.google.monitoring.dashboard.v1.IncidentList.getDefaultInstance(); + } + incidentListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.IncidentList, com.google.monitoring.dashboard.v1.IncidentList.Builder, com.google.monitoring.dashboard.v1.IncidentListOrBuilder>( + (com.google.monitoring.dashboard.v1.IncidentList) content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 12; + onChanged(); + return incidentListBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.PieChart, com.google.monitoring.dashboard.v1.PieChart.Builder, com.google.monitoring.dashboard.v1.PieChartOrBuilder> pieChartBuilder_; + /** + *
          +     * A widget that displays timeseries data as a pie chart.
          +     * 
          + * + * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + * @return Whether the pieChart field is set. + */ + @java.lang.Override + public boolean hasPieChart() { + return contentCase_ == 14; + } + /** + *
          +     * A widget that displays timeseries data as a pie chart.
          +     * 
          + * + * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + * @return The pieChart. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.PieChart getPieChart() { + if (pieChartBuilder_ == null) { + if (contentCase_ == 14) { + return (com.google.monitoring.dashboard.v1.PieChart) content_; + } + return com.google.monitoring.dashboard.v1.PieChart.getDefaultInstance(); + } else { + if (contentCase_ == 14) { + return pieChartBuilder_.getMessage(); + } + return com.google.monitoring.dashboard.v1.PieChart.getDefaultInstance(); + } + } + /** + *
          +     * A widget that displays timeseries data as a pie chart.
          +     * 
          + * + * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + */ + public Builder setPieChart(com.google.monitoring.dashboard.v1.PieChart value) { + if (pieChartBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + pieChartBuilder_.setMessage(value); + } + contentCase_ = 14; + return this; + } + /** + *
          +     * A widget that displays timeseries data as a pie chart.
          +     * 
          + * + * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + */ + public Builder setPieChart( + com.google.monitoring.dashboard.v1.PieChart.Builder builderForValue) { + if (pieChartBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + pieChartBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 14; + return this; + } + /** + *
          +     * A widget that displays timeseries data as a pie chart.
          +     * 
          + * + * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + */ + public Builder mergePieChart(com.google.monitoring.dashboard.v1.PieChart value) { + if (pieChartBuilder_ == null) { + if (contentCase_ == 14 && + content_ != com.google.monitoring.dashboard.v1.PieChart.getDefaultInstance()) { + content_ = com.google.monitoring.dashboard.v1.PieChart.newBuilder((com.google.monitoring.dashboard.v1.PieChart) content_) + .mergeFrom(value).buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 14) { + pieChartBuilder_.mergeFrom(value); + } else { + pieChartBuilder_.setMessage(value); + } + } + contentCase_ = 14; + return this; + } + /** + *
          +     * A widget that displays timeseries data as a pie chart.
          +     * 
          + * + * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + */ + public Builder clearPieChart() { + if (pieChartBuilder_ == null) { + if (contentCase_ == 14) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 14) { + contentCase_ = 0; + content_ = null; + } + pieChartBuilder_.clear(); + } + return this; + } + /** + *
          +     * A widget that displays timeseries data as a pie chart.
          +     * 
          + * + * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + */ + public com.google.monitoring.dashboard.v1.PieChart.Builder getPieChartBuilder() { + return getPieChartFieldBuilder().getBuilder(); + } + /** + *
          +     * A widget that displays timeseries data as a pie chart.
          +     * 
          + * + * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.PieChartOrBuilder getPieChartOrBuilder() { + if ((contentCase_ == 14) && (pieChartBuilder_ != null)) { + return pieChartBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 14) { + return (com.google.monitoring.dashboard.v1.PieChart) content_; + } + return com.google.monitoring.dashboard.v1.PieChart.getDefaultInstance(); + } + } + /** + *
          +     * A widget that displays timeseries data as a pie chart.
          +     * 
          + * + * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.PieChart, com.google.monitoring.dashboard.v1.PieChart.Builder, com.google.monitoring.dashboard.v1.PieChartOrBuilder> + getPieChartFieldBuilder() { + if (pieChartBuilder_ == null) { + if (!(contentCase_ == 14)) { + content_ = com.google.monitoring.dashboard.v1.PieChart.getDefaultInstance(); + } + pieChartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.PieChart, com.google.monitoring.dashboard.v1.PieChart.Builder, com.google.monitoring.dashboard.v1.PieChartOrBuilder>( + (com.google.monitoring.dashboard.v1.PieChart) content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 14; + onChanged(); + return pieChartBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.ErrorReportingPanel, com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder, com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder> errorReportingPanelBuilder_; + /** + *
          +     * A widget that displays a list of error groups.
          +     * 
          + * + * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + * @return Whether the errorReportingPanel field is set. + */ + @java.lang.Override + public boolean hasErrorReportingPanel() { + return contentCase_ == 19; + } + /** + *
          +     * A widget that displays a list of error groups.
          +     * 
          + * + * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + * @return The errorReportingPanel. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.ErrorReportingPanel getErrorReportingPanel() { + if (errorReportingPanelBuilder_ == null) { + if (contentCase_ == 19) { + return (com.google.monitoring.dashboard.v1.ErrorReportingPanel) content_; + } + return com.google.monitoring.dashboard.v1.ErrorReportingPanel.getDefaultInstance(); + } else { + if (contentCase_ == 19) { + return errorReportingPanelBuilder_.getMessage(); + } + return com.google.monitoring.dashboard.v1.ErrorReportingPanel.getDefaultInstance(); + } + } + /** + *
          +     * A widget that displays a list of error groups.
          +     * 
          + * + * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + */ + public Builder setErrorReportingPanel(com.google.monitoring.dashboard.v1.ErrorReportingPanel value) { + if (errorReportingPanelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + errorReportingPanelBuilder_.setMessage(value); + } + contentCase_ = 19; + return this; + } + /** + *
          +     * A widget that displays a list of error groups.
          +     * 
          + * + * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + */ + public Builder setErrorReportingPanel( + com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder builderForValue) { + if (errorReportingPanelBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + errorReportingPanelBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 19; + return this; + } + /** + *
          +     * A widget that displays a list of error groups.
          +     * 
          + * + * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + */ + public Builder mergeErrorReportingPanel(com.google.monitoring.dashboard.v1.ErrorReportingPanel value) { + if (errorReportingPanelBuilder_ == null) { + if (contentCase_ == 19 && + content_ != com.google.monitoring.dashboard.v1.ErrorReportingPanel.getDefaultInstance()) { + content_ = com.google.monitoring.dashboard.v1.ErrorReportingPanel.newBuilder((com.google.monitoring.dashboard.v1.ErrorReportingPanel) content_) + .mergeFrom(value).buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 19) { + errorReportingPanelBuilder_.mergeFrom(value); + } else { + errorReportingPanelBuilder_.setMessage(value); + } + } + contentCase_ = 19; + return this; + } + /** + *
          +     * A widget that displays a list of error groups.
          +     * 
          + * + * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + */ + public Builder clearErrorReportingPanel() { + if (errorReportingPanelBuilder_ == null) { + if (contentCase_ == 19) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 19) { + contentCase_ = 0; + content_ = null; + } + errorReportingPanelBuilder_.clear(); + } + return this; + } + /** + *
          +     * A widget that displays a list of error groups.
          +     * 
          + * + * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + */ + public com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder getErrorReportingPanelBuilder() { + return getErrorReportingPanelFieldBuilder().getBuilder(); + } + /** + *
          +     * A widget that displays a list of error groups.
          +     * 
          + * + * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder getErrorReportingPanelOrBuilder() { + if ((contentCase_ == 19) && (errorReportingPanelBuilder_ != null)) { + return errorReportingPanelBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 19) { + return (com.google.monitoring.dashboard.v1.ErrorReportingPanel) content_; + } + return com.google.monitoring.dashboard.v1.ErrorReportingPanel.getDefaultInstance(); + } + } + /** + *
          +     * A widget that displays a list of error groups.
          +     * 
          + * + * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.ErrorReportingPanel, com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder, com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder> + getErrorReportingPanelFieldBuilder() { + if (errorReportingPanelBuilder_ == null) { + if (!(contentCase_ == 19)) { + content_ = com.google.monitoring.dashboard.v1.ErrorReportingPanel.getDefaultInstance(); + } + errorReportingPanelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.ErrorReportingPanel, com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder, com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder>( + (com.google.monitoring.dashboard.v1.ErrorReportingPanel) content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 19; + onChanged(); + return errorReportingPanelBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.SectionHeader, com.google.monitoring.dashboard.v1.SectionHeader.Builder, com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder> sectionHeaderBuilder_; + /** + *
          +     * A widget that defines a section header for easier navigation of the
          +     * dashboard.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + * @return Whether the sectionHeader field is set. + */ + @java.lang.Override + public boolean hasSectionHeader() { + return contentCase_ == 21; + } + /** + *
          +     * A widget that defines a section header for easier navigation of the
          +     * dashboard.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + * @return The sectionHeader. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.SectionHeader getSectionHeader() { + if (sectionHeaderBuilder_ == null) { + if (contentCase_ == 21) { + return (com.google.monitoring.dashboard.v1.SectionHeader) content_; + } + return com.google.monitoring.dashboard.v1.SectionHeader.getDefaultInstance(); + } else { + if (contentCase_ == 21) { + return sectionHeaderBuilder_.getMessage(); + } + return com.google.monitoring.dashboard.v1.SectionHeader.getDefaultInstance(); + } + } + /** + *
          +     * A widget that defines a section header for easier navigation of the
          +     * dashboard.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + */ + public Builder setSectionHeader(com.google.monitoring.dashboard.v1.SectionHeader value) { + if (sectionHeaderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + sectionHeaderBuilder_.setMessage(value); + } + contentCase_ = 21; + return this; + } + /** + *
          +     * A widget that defines a section header for easier navigation of the
          +     * dashboard.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + */ + public Builder setSectionHeader( + com.google.monitoring.dashboard.v1.SectionHeader.Builder builderForValue) { + if (sectionHeaderBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + sectionHeaderBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 21; + return this; + } + /** + *
          +     * A widget that defines a section header for easier navigation of the
          +     * dashboard.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + */ + public Builder mergeSectionHeader(com.google.monitoring.dashboard.v1.SectionHeader value) { + if (sectionHeaderBuilder_ == null) { + if (contentCase_ == 21 && + content_ != com.google.monitoring.dashboard.v1.SectionHeader.getDefaultInstance()) { + content_ = com.google.monitoring.dashboard.v1.SectionHeader.newBuilder((com.google.monitoring.dashboard.v1.SectionHeader) content_) + .mergeFrom(value).buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 21) { + sectionHeaderBuilder_.mergeFrom(value); + } else { + sectionHeaderBuilder_.setMessage(value); + } + } + contentCase_ = 21; + return this; + } + /** + *
          +     * A widget that defines a section header for easier navigation of the
          +     * dashboard.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + */ + public Builder clearSectionHeader() { + if (sectionHeaderBuilder_ == null) { + if (contentCase_ == 21) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 21) { + contentCase_ = 0; + content_ = null; + } + sectionHeaderBuilder_.clear(); + } + return this; + } + /** + *
          +     * A widget that defines a section header for easier navigation of the
          +     * dashboard.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + */ + public com.google.monitoring.dashboard.v1.SectionHeader.Builder getSectionHeaderBuilder() { + return getSectionHeaderFieldBuilder().getBuilder(); + } + /** + *
          +     * A widget that defines a section header for easier navigation of the
          +     * dashboard.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder getSectionHeaderOrBuilder() { + if ((contentCase_ == 21) && (sectionHeaderBuilder_ != null)) { + return sectionHeaderBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 21) { + return (com.google.monitoring.dashboard.v1.SectionHeader) content_; + } + return com.google.monitoring.dashboard.v1.SectionHeader.getDefaultInstance(); + } + } + /** + *
          +     * A widget that defines a section header for easier navigation of the
          +     * dashboard.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.SectionHeader, com.google.monitoring.dashboard.v1.SectionHeader.Builder, com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder> + getSectionHeaderFieldBuilder() { + if (sectionHeaderBuilder_ == null) { + if (!(contentCase_ == 21)) { + content_ = com.google.monitoring.dashboard.v1.SectionHeader.getDefaultInstance(); + } + sectionHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.SectionHeader, com.google.monitoring.dashboard.v1.SectionHeader.Builder, com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder>( + (com.google.monitoring.dashboard.v1.SectionHeader) content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 21; + onChanged(); + return sectionHeaderBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.SingleViewGroup, com.google.monitoring.dashboard.v1.SingleViewGroup.Builder, com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder> singleViewGroupBuilder_; + /** + *
          +     * A widget that groups the other widgets by using a dropdown menu.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + * @return Whether the singleViewGroup field is set. + */ + @java.lang.Override + public boolean hasSingleViewGroup() { + return contentCase_ == 22; + } + /** + *
          +     * A widget that groups the other widgets by using a dropdown menu.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + * @return The singleViewGroup. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.SingleViewGroup getSingleViewGroup() { + if (singleViewGroupBuilder_ == null) { + if (contentCase_ == 22) { + return (com.google.monitoring.dashboard.v1.SingleViewGroup) content_; + } + return com.google.monitoring.dashboard.v1.SingleViewGroup.getDefaultInstance(); + } else { + if (contentCase_ == 22) { + return singleViewGroupBuilder_.getMessage(); + } + return com.google.monitoring.dashboard.v1.SingleViewGroup.getDefaultInstance(); + } + } + /** + *
          +     * A widget that groups the other widgets by using a dropdown menu.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + */ + public Builder setSingleViewGroup(com.google.monitoring.dashboard.v1.SingleViewGroup value) { + if (singleViewGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + singleViewGroupBuilder_.setMessage(value); + } + contentCase_ = 22; + return this; + } + /** + *
          +     * A widget that groups the other widgets by using a dropdown menu.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + */ + public Builder setSingleViewGroup( + com.google.monitoring.dashboard.v1.SingleViewGroup.Builder builderForValue) { + if (singleViewGroupBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + singleViewGroupBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 22; + return this; + } + /** + *
          +     * A widget that groups the other widgets by using a dropdown menu.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + */ + public Builder mergeSingleViewGroup(com.google.monitoring.dashboard.v1.SingleViewGroup value) { + if (singleViewGroupBuilder_ == null) { + if (contentCase_ == 22 && + content_ != com.google.monitoring.dashboard.v1.SingleViewGroup.getDefaultInstance()) { + content_ = com.google.monitoring.dashboard.v1.SingleViewGroup.newBuilder((com.google.monitoring.dashboard.v1.SingleViewGroup) content_) + .mergeFrom(value).buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 22) { + singleViewGroupBuilder_.mergeFrom(value); + } else { + singleViewGroupBuilder_.setMessage(value); + } + } + contentCase_ = 22; + return this; + } + /** + *
          +     * A widget that groups the other widgets by using a dropdown menu.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + */ + public Builder clearSingleViewGroup() { + if (singleViewGroupBuilder_ == null) { + if (contentCase_ == 22) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 22) { + contentCase_ = 0; + content_ = null; + } + singleViewGroupBuilder_.clear(); + } + return this; + } + /** + *
          +     * A widget that groups the other widgets by using a dropdown menu.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + */ + public com.google.monitoring.dashboard.v1.SingleViewGroup.Builder getSingleViewGroupBuilder() { + return getSingleViewGroupFieldBuilder().getBuilder(); + } + /** + *
          +     * A widget that groups the other widgets by using a dropdown menu.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder getSingleViewGroupOrBuilder() { + if ((contentCase_ == 22) && (singleViewGroupBuilder_ != null)) { + return singleViewGroupBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 22) { + return (com.google.monitoring.dashboard.v1.SingleViewGroup) content_; + } + return com.google.monitoring.dashboard.v1.SingleViewGroup.getDefaultInstance(); + } + } + /** + *
          +     * A widget that groups the other widgets by using a dropdown menu.
          +     * 
          + * + * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.SingleViewGroup, com.google.monitoring.dashboard.v1.SingleViewGroup.Builder, com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder> + getSingleViewGroupFieldBuilder() { + if (singleViewGroupBuilder_ == null) { + if (!(contentCase_ == 22)) { + content_ = com.google.monitoring.dashboard.v1.SingleViewGroup.getDefaultInstance(); + } + singleViewGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.SingleViewGroup, com.google.monitoring.dashboard.v1.SingleViewGroup.Builder, com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder>( + (com.google.monitoring.dashboard.v1.SingleViewGroup) content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 22; + onChanged(); + return singleViewGroupBuilder_; + } + + private java.lang.Object id_ = ""; + /** + *
          +     * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
          +     * underscores. Widget ids are optional.
          +     * 
          + * + * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
          +     * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
          +     * underscores. Widget ids are optional.
          +     * 
          + * + * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
          +     * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
          +     * underscores. Widget ids are optional.
          +     * 
          + * + * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
          +     * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
          +     * underscores. Widget ids are optional.
          +     * 
          + * + * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + /** + *
          +     * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
          +     * underscores. Widget ids are optional.
          +     * 
          + * + * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00004000; + 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.Widget) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Widget) + private static final com.google.monitoring.dashboard.v1.Widget DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Widget(); + } + + public static com.google.monitoring.dashboard.v1.Widget getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Widget 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.Widget getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java similarity index 58% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java index 2f6f80725fd1..e8bf9558b539 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java @@ -1,81 +1,52 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/widget.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface WidgetOrBuilder - extends +public interface WidgetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Widget) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * Optional. The title of the widget.
              * 
          * * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The title. */ java.lang.String getTitle(); /** - * - * *
              * Optional. The title of the widget.
              * 
          * * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for title. */ - com.google.protobuf.ByteString getTitleBytes(); + com.google.protobuf.ByteString + getTitleBytes(); /** - * - * *
              * A chart of time series data.
              * 
          * * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; - * * @return Whether the xyChart field is set. */ boolean hasXyChart(); /** - * - * *
              * A chart of time series data.
              * 
          * * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; - * * @return The xyChart. */ com.google.monitoring.dashboard.v1.XyChart getXyChart(); /** - * - * *
              * A chart of time series data.
              * 
          @@ -85,32 +56,24 @@ public interface WidgetOrBuilder com.google.monitoring.dashboard.v1.XyChartOrBuilder getXyChartOrBuilder(); /** - * - * *
              * A scorecard summarizing time series data.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; - * * @return Whether the scorecard field is set. */ boolean hasScorecard(); /** - * - * *
              * A scorecard summarizing time series data.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; - * * @return The scorecard. */ com.google.monitoring.dashboard.v1.Scorecard getScorecard(); /** - * - * *
              * A scorecard summarizing time series data.
              * 
          @@ -120,32 +83,24 @@ public interface WidgetOrBuilder com.google.monitoring.dashboard.v1.ScorecardOrBuilder getScorecardOrBuilder(); /** - * - * *
              * A raw string or markdown displaying textual content.
              * 
          * * .google.monitoring.dashboard.v1.Text text = 4; - * * @return Whether the text field is set. */ boolean hasText(); /** - * - * *
              * A raw string or markdown displaying textual content.
              * 
          * * .google.monitoring.dashboard.v1.Text text = 4; - * * @return The text. */ com.google.monitoring.dashboard.v1.Text getText(); /** - * - * *
              * A raw string or markdown displaying textual content.
              * 
          @@ -155,32 +110,24 @@ public interface WidgetOrBuilder com.google.monitoring.dashboard.v1.TextOrBuilder getTextOrBuilder(); /** - * - * *
              * A blank space.
              * 
          * * .google.protobuf.Empty blank = 5; - * * @return Whether the blank field is set. */ boolean hasBlank(); /** - * - * *
              * A blank space.
              * 
          * * .google.protobuf.Empty blank = 5; - * * @return The blank. */ com.google.protobuf.Empty getBlank(); /** - * - * *
              * A blank space.
              * 
          @@ -190,32 +137,24 @@ public interface WidgetOrBuilder com.google.protobuf.EmptyOrBuilder getBlankOrBuilder(); /** - * - * *
              * A chart of alert policy data.
              * 
          * * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; - * * @return Whether the alertChart field is set. */ boolean hasAlertChart(); /** - * - * *
              * A chart of alert policy data.
              * 
          * * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; - * * @return The alertChart. */ com.google.monitoring.dashboard.v1.AlertChart getAlertChart(); /** - * - * *
              * A chart of alert policy data.
              * 
          @@ -225,32 +164,24 @@ public interface WidgetOrBuilder com.google.monitoring.dashboard.v1.AlertChartOrBuilder getAlertChartOrBuilder(); /** - * - * *
              * A widget that displays time series data in a tabular format.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; - * * @return Whether the timeSeriesTable field is set. */ boolean hasTimeSeriesTable(); /** - * - * *
              * A widget that displays time series data in a tabular format.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; - * * @return The timeSeriesTable. */ com.google.monitoring.dashboard.v1.TimeSeriesTable getTimeSeriesTable(); /** - * - * *
              * A widget that displays time series data in a tabular format.
              * 
          @@ -260,34 +191,26 @@ public interface WidgetOrBuilder com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder getTimeSeriesTableOrBuilder(); /** - * - * *
              * A widget that groups the other widgets. All widgets that are within
              * the area spanned by the grouping widget are considered member widgets.
              * 
          * * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; - * * @return Whether the collapsibleGroup field is set. */ boolean hasCollapsibleGroup(); /** - * - * *
              * A widget that groups the other widgets. All widgets that are within
              * the area spanned by the grouping widget are considered member widgets.
              * 
          * * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; - * * @return The collapsibleGroup. */ com.google.monitoring.dashboard.v1.CollapsibleGroup getCollapsibleGroup(); /** - * - * *
              * A widget that groups the other widgets. All widgets that are within
              * the area spanned by the grouping widget are considered member widgets.
          @@ -298,32 +221,24 @@ public interface WidgetOrBuilder
             com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder getCollapsibleGroupOrBuilder();
           
             /**
          -   *
          -   *
              * 
              * A widget that shows a stream of logs.
              * 
          * * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; - * * @return Whether the logsPanel field is set. */ boolean hasLogsPanel(); /** - * - * *
              * A widget that shows a stream of logs.
              * 
          * * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; - * * @return The logsPanel. */ com.google.monitoring.dashboard.v1.LogsPanel getLogsPanel(); /** - * - * *
              * A widget that shows a stream of logs.
              * 
          @@ -332,5 +247,165 @@ public interface WidgetOrBuilder */ com.google.monitoring.dashboard.v1.LogsPanelOrBuilder getLogsPanelOrBuilder(); + /** + *
          +   * A widget that shows list of incidents.
          +   * 
          + * + * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + * @return Whether the incidentList field is set. + */ + boolean hasIncidentList(); + /** + *
          +   * A widget that shows list of incidents.
          +   * 
          + * + * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + * @return The incidentList. + */ + com.google.monitoring.dashboard.v1.IncidentList getIncidentList(); + /** + *
          +   * A widget that shows list of incidents.
          +   * 
          + * + * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + */ + com.google.monitoring.dashboard.v1.IncidentListOrBuilder getIncidentListOrBuilder(); + + /** + *
          +   * A widget that displays timeseries data as a pie chart.
          +   * 
          + * + * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + * @return Whether the pieChart field is set. + */ + boolean hasPieChart(); + /** + *
          +   * A widget that displays timeseries data as a pie chart.
          +   * 
          + * + * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + * @return The pieChart. + */ + com.google.monitoring.dashboard.v1.PieChart getPieChart(); + /** + *
          +   * A widget that displays timeseries data as a pie chart.
          +   * 
          + * + * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + */ + com.google.monitoring.dashboard.v1.PieChartOrBuilder getPieChartOrBuilder(); + + /** + *
          +   * A widget that displays a list of error groups.
          +   * 
          + * + * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + * @return Whether the errorReportingPanel field is set. + */ + boolean hasErrorReportingPanel(); + /** + *
          +   * A widget that displays a list of error groups.
          +   * 
          + * + * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + * @return The errorReportingPanel. + */ + com.google.monitoring.dashboard.v1.ErrorReportingPanel getErrorReportingPanel(); + /** + *
          +   * A widget that displays a list of error groups.
          +   * 
          + * + * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + */ + com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder getErrorReportingPanelOrBuilder(); + + /** + *
          +   * A widget that defines a section header for easier navigation of the
          +   * dashboard.
          +   * 
          + * + * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + * @return Whether the sectionHeader field is set. + */ + boolean hasSectionHeader(); + /** + *
          +   * A widget that defines a section header for easier navigation of the
          +   * dashboard.
          +   * 
          + * + * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + * @return The sectionHeader. + */ + com.google.monitoring.dashboard.v1.SectionHeader getSectionHeader(); + /** + *
          +   * A widget that defines a section header for easier navigation of the
          +   * dashboard.
          +   * 
          + * + * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + */ + com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder getSectionHeaderOrBuilder(); + + /** + *
          +   * A widget that groups the other widgets by using a dropdown menu.
          +   * 
          + * + * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + * @return Whether the singleViewGroup field is set. + */ + boolean hasSingleViewGroup(); + /** + *
          +   * A widget that groups the other widgets by using a dropdown menu.
          +   * 
          + * + * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + * @return The singleViewGroup. + */ + com.google.monitoring.dashboard.v1.SingleViewGroup getSingleViewGroup(); + /** + *
          +   * A widget that groups the other widgets by using a dropdown menu.
          +   * 
          + * + * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + */ + com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder getSingleViewGroupOrBuilder(); + + /** + *
          +   * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
          +   * underscores. Widget ids are optional.
          +   * 
          + * + * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return The id. + */ + java.lang.String getId(); + /** + *
          +   * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
          +   * underscores. Widget ids are optional.
          +   * 
          + * + * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + com.google.monitoring.dashboard.v1.Widget.ContentCase getContentCase(); } diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java new file mode 100644 index 000000000000..1235b74999a6 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java @@ -0,0 +1,128 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/widget.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class WidgetProto { + private WidgetProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_Widget_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_Widget_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n+google/monitoring/dashboard/v1/widget." + + "proto\022\036google.monitoring.dashboard.v1\032\037g" + + "oogle/api/field_behavior.proto\032/google/m" + + "onitoring/dashboard/v1/alertchart.proto\032" + + "6google/monitoring/dashboard/v1/collapsi" + + "ble_group.proto\032:google/monitoring/dashb" + + "oard/v1/error_reporting_panel.proto\0322goo" + + "gle/monitoring/dashboard/v1/incident_lis" + + "t.proto\032/google/monitoring/dashboard/v1/" + + "logs_panel.proto\032-google/monitoring/dash" + + "board/v1/piechart.proto\032.google/monitori" + + "ng/dashboard/v1/scorecard.proto\0323google/" + + "monitoring/dashboard/v1/section_header.p" + + "roto\0326google/monitoring/dashboard/v1/sin" + + "gle_view_group.proto\032*google/monitoring/" + + "dashboard/v1/table.proto\032)google/monitor" + + "ing/dashboard/v1/text.proto\032,google/moni" + + "toring/dashboard/v1/xychart.proto\032\033googl" + + "e/protobuf/empty.proto\"\250\007\n\006Widget\022\022\n\005tit" + + "le\030\001 \001(\tB\003\340A\001\022;\n\010xy_chart\030\002 \001(\0132\'.google" + + ".monitoring.dashboard.v1.XyChartH\000\022>\n\tsc" + + "orecard\030\003 \001(\0132).google.monitoring.dashbo" + + "ard.v1.ScorecardH\000\0224\n\004text\030\004 \001(\0132$.googl" + + "e.monitoring.dashboard.v1.TextH\000\022\'\n\005blan" + + "k\030\005 \001(\0132\026.google.protobuf.EmptyH\000\022A\n\013ale" + + "rt_chart\030\007 \001(\0132*.google.monitoring.dashb" + + "oard.v1.AlertChartH\000\022L\n\021time_series_tabl" + + "e\030\010 \001(\0132/.google.monitoring.dashboard.v1" + + ".TimeSeriesTableH\000\022M\n\021collapsible_group\030" + + "\t \001(\01320.google.monitoring.dashboard.v1.C" + + "ollapsibleGroupH\000\022?\n\nlogs_panel\030\n \001(\0132)." + + "google.monitoring.dashboard.v1.LogsPanel" + + "H\000\022E\n\rincident_list\030\014 \001(\0132,.google.monit" + + "oring.dashboard.v1.IncidentListH\000\022=\n\tpie" + + "_chart\030\016 \001(\0132(.google.monitoring.dashboa" + + "rd.v1.PieChartH\000\022T\n\025error_reporting_pane" + + "l\030\023 \001(\01323.google.monitoring.dashboard.v1" + + ".ErrorReportingPanelH\000\022G\n\016section_header" + + "\030\025 \001(\0132-.google.monitoring.dashboard.v1." + + "SectionHeaderH\000\022L\n\021single_view_group\030\026 \001" + + "(\0132/.google.monitoring.dashboard.v1.Sing" + + "leViewGroupH\000\022\017\n\002id\030\021 \001(\tB\003\340A\001B\t\n\007conten" + + "tB\364\001\n\"com.google.monitoring.dashboard.v1" + + "B\013WidgetProtoP\001ZFcloud.google.com/go/mon" + + "itoring/dashboard/apiv1/dashboardpb;dash" + + "boardpb\252\002$Google.Cloud.Monitoring.Dashbo" + + "ard.V1\312\002$Google\\Cloud\\Monitoring\\Dashboa" + + "rd\\V1\352\002(Google::Cloud::Monitoring::Dashb" + + "oard::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.monitoring.dashboard.v1.AlertChartProto.getDescriptor(), + com.google.monitoring.dashboard.v1.CollapsibleGroupProto.getDescriptor(), + com.google.monitoring.dashboard.v1.ErrorReportingPanelProto.getDescriptor(), + com.google.monitoring.dashboard.v1.IncidentListProto.getDescriptor(), + com.google.monitoring.dashboard.v1.LogsPanelProto.getDescriptor(), + com.google.monitoring.dashboard.v1.PieChartProto.getDescriptor(), + com.google.monitoring.dashboard.v1.ScorecardProto.getDescriptor(), + com.google.monitoring.dashboard.v1.SectionHeaderProto.getDescriptor(), + com.google.monitoring.dashboard.v1.SingleViewGroupProto.getDescriptor(), + com.google.monitoring.dashboard.v1.TableProto.getDescriptor(), + com.google.monitoring.dashboard.v1.TextProto.getDescriptor(), + com.google.monitoring.dashboard.v1.XyChartProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_Widget_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_Widget_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_Widget_descriptor, + new java.lang.String[] { "Title", "XyChart", "Scorecard", "Text", "Blank", "AlertChart", "TimeSeriesTable", "CollapsibleGroup", "LogsPanel", "IncidentList", "PieChart", "ErrorReportingPanel", "SectionHeader", "SingleViewGroup", "Id", "Content", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.monitoring.dashboard.v1.AlertChartProto.getDescriptor(); + com.google.monitoring.dashboard.v1.CollapsibleGroupProto.getDescriptor(); + com.google.monitoring.dashboard.v1.ErrorReportingPanelProto.getDescriptor(); + com.google.monitoring.dashboard.v1.IncidentListProto.getDescriptor(); + com.google.monitoring.dashboard.v1.LogsPanelProto.getDescriptor(); + com.google.monitoring.dashboard.v1.PieChartProto.getDescriptor(); + com.google.monitoring.dashboard.v1.ScorecardProto.getDescriptor(); + com.google.monitoring.dashboard.v1.SectionHeaderProto.getDescriptor(); + com.google.monitoring.dashboard.v1.SingleViewGroupProto.getDescriptor(); + com.google.monitoring.dashboard.v1.TableProto.getDescriptor(); + com.google.monitoring.dashboard.v1.TextProto.getDescriptor(); + com.google.monitoring.dashboard.v1.XyChartProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java similarity index 70% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java index 97df66eb4284..709c50381eca 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/xychart.proto @@ -20,24 +5,21 @@ package com.google.monitoring.dashboard.v1; /** - * - * *
            * A chart that displays data on a 2D (X and Y axes) plane.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.XyChart} */ -public final class XyChart extends com.google.protobuf.GeneratedMessageV3 - implements +public final class XyChart extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.XyChart) XyChartOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use XyChart.newBuilder() to construct. private XyChart(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private XyChart() { dataSets_ = java.util.Collections.emptyList(); thresholds_ = java.util.Collections.emptyList(); @@ -45,102 +27,78 @@ private XyChart() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new XyChart(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_XyChart_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_XyChart_fieldAccessorTable + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.XyChart.class, - com.google.monitoring.dashboard.v1.XyChart.Builder.class); + com.google.monitoring.dashboard.v1.XyChart.class, com.google.monitoring.dashboard.v1.XyChart.Builder.class); } - public interface DataSetOrBuilder - extends + public interface DataSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.XyChart.DataSet) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the timeSeriesQuery field is set. */ boolean hasTimeSeriesQuery(); /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The timeSeriesQuery. */ com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery(); /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder(); /** - * - * *
                * How this data should be plotted on the chart.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; - * * @return The enum numeric value on the wire for plotType. */ int getPlotTypeValue(); /** - * - * *
                * How this data should be plotted on the chart.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; - * * @return The plotType. */ com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType getPlotType(); /** - * - * *
                * A template string for naming `TimeSeries` in the resulting data set.
                * This should be a string with interpolations of the form `${label_name}`,
          @@ -148,13 +106,10 @@ public interface DataSetOrBuilder
                * 
          * * string legend_template = 3; - * * @return The legendTemplate. */ java.lang.String getLegendTemplate(); /** - * - * *
                * A template string for naming `TimeSeries` in the resulting data set.
                * This should be a string with interpolations of the form `${label_name}`,
          @@ -162,14 +117,12 @@ public interface DataSetOrBuilder
                * 
          * * string legend_template = 3; - * * @return The bytes for legendTemplate. */ - com.google.protobuf.ByteString getLegendTemplateBytes(); + 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
          @@ -178,16 +131,11 @@ public interface DataSetOrBuilder
                * 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]; * @return Whether the minAlignmentPeriod field is set. */ 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
          @@ -196,16 +144,11 @@ public interface DataSetOrBuilder
                * 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]; * @return The minAlignmentPeriod. */ 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
          @@ -214,60 +157,45 @@ public interface DataSetOrBuilder
                * 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]; */ com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder(); /** - * - * *
                * Optional. The target axis to use for plotting the metric.
                * 
          * - * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for targetAxis. */ int getTargetAxisValue(); /** - * - * *
                * Optional. The target axis to use for plotting the metric.
                * 
          * - * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The targetAxis. */ com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis getTargetAxis(); } /** - * - * *
              * Groups a time series query definition with charting options.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.XyChart.DataSet} */ - public static final class DataSet extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DataSet extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.XyChart.DataSet) DataSetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DataSet.newBuilder() to construct. private DataSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DataSet() { plotType_ = 0; legendTemplate_ = ""; @@ -276,38 +204,34 @@ private DataSet() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DataSet(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_fieldAccessorTable + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.XyChart.DataSet.class, - com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder.class); + com.google.monitoring.dashboard.v1.XyChart.DataSet.class, com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder.class); } /** - * - * *
                * The types of plotting strategies for data sets.
                * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.XyChart.DataSet.PlotType} */ - public enum PlotType implements com.google.protobuf.ProtocolMessageEnum { + public enum PlotType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                  * Plot type is unspecified. The view will default to `LINE`.
                  * 
          @@ -316,8 +240,6 @@ public enum PlotType implements com.google.protobuf.ProtocolMessageEnum { */ PLOT_TYPE_UNSPECIFIED(0), /** - * - * *
                  * The data is plotted as a set of lines (one line per series).
                  * 
          @@ -326,12 +248,10 @@ public enum PlotType implements com.google.protobuf.ProtocolMessageEnum { */ LINE(1), /** - * - * *
                  * The data is plotted as a set of filled areas (one area per series),
                  * with the areas stacked vertically (the base of each area is the top of
          -       * its predecessor, and the base of the first area is the X axis). Since
          +       * its predecessor, and the base of the first area is the x-axis). Since
                  * the areas do not overlap, each is filled with a different opaque color.
                  * 
          * @@ -339,12 +259,10 @@ public enum PlotType implements com.google.protobuf.ProtocolMessageEnum { */ STACKED_AREA(2), /** - * - * *
                  * The data is plotted as a set of rectangular boxes (one box per series),
                  * with the boxes stacked vertically (the base of each box is the top of
          -       * its predecessor, and the base of the first box is the X axis). Since
          +       * its predecessor, and the base of the first box is the x-axis). Since
                  * the boxes do not overlap, each is filled with a different opaque color.
                  * 
          * @@ -352,8 +270,6 @@ public enum PlotType implements com.google.protobuf.ProtocolMessageEnum { */ STACKED_BAR(3), /** - * - * *
                  * The data is plotted as a heatmap. The series being plotted must have a
                  * `DISTRIBUTION` value type. The value of each bucket in the distribution
          @@ -368,8 +284,6 @@ public enum PlotType implements com.google.protobuf.ProtocolMessageEnum {
                 ;
           
                 /**
          -       *
          -       *
                  * 
                  * Plot type is unspecified. The view will default to `LINE`.
                  * 
          @@ -378,8 +292,6 @@ public enum PlotType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PLOT_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
                  * The data is plotted as a set of lines (one line per series).
                  * 
          @@ -388,12 +300,10 @@ public enum PlotType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LINE_VALUE = 1; /** - * - * *
                  * The data is plotted as a set of filled areas (one area per series),
                  * with the areas stacked vertically (the base of each area is the top of
          -       * its predecessor, and the base of the first area is the X axis). Since
          +       * its predecessor, and the base of the first area is the x-axis). Since
                  * the areas do not overlap, each is filled with a different opaque color.
                  * 
          * @@ -401,12 +311,10 @@ public enum PlotType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STACKED_AREA_VALUE = 2; /** - * - * *
                  * The data is plotted as a set of rectangular boxes (one box per series),
                  * with the boxes stacked vertically (the base of each box is the top of
          -       * its predecessor, and the base of the first box is the X axis). Since
          +       * its predecessor, and the base of the first box is the x-axis). Since
                  * the boxes do not overlap, each is filled with a different opaque color.
                  * 
          * @@ -414,8 +322,6 @@ public enum PlotType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STACKED_BAR_VALUE = 3; /** - * - * *
                  * The data is plotted as a heatmap. The series being plotted must have a
                  * `DISTRIBUTION` value type. The value of each bucket in the distribution
          @@ -427,6 +333,7 @@ public enum PlotType implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final int HEATMAP_VALUE = 4;
           
          +
                 public final int getNumber() {
                   if (this == UNRECOGNIZED) {
                     throw new java.lang.IllegalArgumentException(
          @@ -451,55 +358,51 @@ public static PlotType valueOf(int value) {
                  */
                 public static PlotType forNumber(int value) {
                   switch (value) {
          -          case 0:
          -            return PLOT_TYPE_UNSPECIFIED;
          -          case 1:
          -            return LINE;
          -          case 2:
          -            return STACKED_AREA;
          -          case 3:
          -            return STACKED_BAR;
          -          case 4:
          -            return HEATMAP;
          -          default:
          -            return null;
          +          case 0: return PLOT_TYPE_UNSPECIFIED;
          +          case 1: return LINE;
          +          case 2: return STACKED_AREA;
          +          case 3: return STACKED_BAR;
          +          case 4: return HEATMAP;
          +          default: return null;
                   }
                 }
           
          -      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
          +      public static com.google.protobuf.Internal.EnumLiteMap
          +          internalGetValueMap() {
                   return internalValueMap;
                 }
          +      private static final com.google.protobuf.Internal.EnumLiteMap<
          +          PlotType> internalValueMap =
          +            new com.google.protobuf.Internal.EnumLiteMap() {
          +              public PlotType findValueByNumber(int number) {
          +                return PlotType.forNumber(number);
          +              }
          +            };
           
          -      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
          -          new com.google.protobuf.Internal.EnumLiteMap() {
          -            public PlotType findValueByNumber(int number) {
          -              return PlotType.forNumber(number);
          -            }
          -          };
          -
          -      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
          +      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() {
          +      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.XyChart.DataSet.getDescriptor()
          -            .getEnumTypes()
          -            .get(0);
          +      public static final com.google.protobuf.Descriptors.EnumDescriptor
          +          getDescriptor() {
          +        return com.google.monitoring.dashboard.v1.XyChart.DataSet.getDescriptor().getEnumTypes().get(0);
                 }
           
                 private static final PlotType[] VALUES = values();
           
          -      public static PlotType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          +      public static PlotType valueOf(
          +          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                   if (desc.getType() != getDescriptor()) {
          -          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
          +          throw new java.lang.IllegalArgumentException(
          +            "EnumValueDescriptor is not for this type.");
                   }
                   if (desc.getIndex() == -1) {
                     return UNRECOGNIZED;
          @@ -517,18 +420,15 @@ private PlotType(int value) {
               }
           
               /**
          -     *
          -     *
                * 
                * An axis identifier.
                * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis} */ - public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { + public enum TargetAxis + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                  * The target axis was not specified. Defaults to Y1.
                  * 
          @@ -537,8 +437,6 @@ public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { */ TARGET_AXIS_UNSPECIFIED(0), /** - * - * *
                  * The y_axis (the right axis of chart).
                  * 
          @@ -547,8 +445,6 @@ public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { */ Y1(1), /** - * - * *
                  * The y2_axis (the left axis of chart).
                  * 
          @@ -560,8 +456,6 @@ public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                  * The target axis was not specified. Defaults to Y1.
                  * 
          @@ -570,8 +464,6 @@ public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TARGET_AXIS_UNSPECIFIED_VALUE = 0; /** - * - * *
                  * The y_axis (the right axis of chart).
                  * 
          @@ -580,8 +472,6 @@ public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { */ public static final int Y1_VALUE = 1; /** - * - * *
                  * The y2_axis (the left axis of chart).
                  * 
          @@ -590,6 +480,7 @@ public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { */ public static final int Y2_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -614,51 +505,49 @@ public static TargetAxis valueOf(int value) { */ public static TargetAxis forNumber(int value) { switch (value) { - case 0: - return TARGET_AXIS_UNSPECIFIED; - case 1: - return Y1; - case 2: - return Y2; - default: - return null; + case 0: return TARGET_AXIS_UNSPECIFIED; + case 1: return Y1; + case 2: return Y2; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + TargetAxis> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TargetAxis findValueByNumber(int number) { + return TargetAxis.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TargetAxis findValueByNumber(int number) { - return TargetAxis.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + 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.XyChart.DataSet.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChart.DataSet.getDescriptor().getEnumTypes().get(1); } private static final TargetAxis[] VALUES = values(); - public static TargetAxis valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TargetAxis valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -679,17 +568,12 @@ private TargetAxis(int value) { public static final int TIME_SERIES_QUERY_FIELD_NUMBER = 1; private com.google.monitoring.dashboard.v1.TimeSeriesQuery timeSeriesQuery_; /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the timeSeriesQuery field is set. */ @java.lang.Override @@ -697,89 +581,61 @@ public boolean hasTimeSeriesQuery() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The timeSeriesQuery. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() { - return timeSeriesQuery_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() - : timeSeriesQuery_; + return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; } /** - * - * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder - getTimeSeriesQueryOrBuilder() { - return timeSeriesQuery_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() - : timeSeriesQuery_; + public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder() { + return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; } public static final int PLOT_TYPE_FIELD_NUMBER = 2; private int plotType_ = 0; /** - * - * *
                * How this data should be plotted on the chart.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; - * * @return The enum numeric value on the wire for plotType. */ - @java.lang.Override - public int getPlotTypeValue() { + @java.lang.Override public int getPlotTypeValue() { return plotType_; } /** - * - * *
                * How this data should be plotted on the chart.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; - * * @return The plotType. */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType getPlotType() { - com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType result = - com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.forNumber(plotType_); - return result == null - ? com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType getPlotType() { + com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType result = com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.forNumber(plotType_); + return result == null ? com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.UNRECOGNIZED : result; } public static final int LEGEND_TEMPLATE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object legendTemplate_ = ""; /** - * - * *
                * A template string for naming `TimeSeries` in the resulting data set.
                * This should be a string with interpolations of the form `${label_name}`,
          @@ -787,7 +643,6 @@ public com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType getPlotType()
                * 
          * * string legend_template = 3; - * * @return The legendTemplate. */ @java.lang.Override @@ -796,15 +651,14 @@ public java.lang.String getLegendTemplate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); legendTemplate_ = s; return s; } } /** - * - * *
                * A template string for naming `TimeSeries` in the resulting data set.
                * This should be a string with interpolations of the form `${label_name}`,
          @@ -812,15 +666,16 @@ public java.lang.String getLegendTemplate() {
                * 
          * * string legend_template = 3; - * * @return The bytes for legendTemplate. */ @java.lang.Override - public com.google.protobuf.ByteString getLegendTemplateBytes() { + public com.google.protobuf.ByteString + getLegendTemplateBytes() { java.lang.Object ref = legendTemplate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); legendTemplate_ = b; return b; } else { @@ -831,8 +686,6 @@ public com.google.protobuf.ByteString getLegendTemplateBytes() { public static final int MIN_ALIGNMENT_PERIOD_FIELD_NUMBER = 4; private com.google.protobuf.Duration minAlignmentPeriod_; /** - * - * *
                * Optional. The lower bound on data point frequency for this data set,
                * implemented by specifying the minimum alignment period to use in a time
          @@ -841,10 +694,7 @@ public com.google.protobuf.ByteString getLegendTemplateBytes() {
                * 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]; * @return Whether the minAlignmentPeriod field is set. */ @java.lang.Override @@ -852,8 +702,6 @@ public boolean hasMinAlignmentPeriod() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * Optional. The lower bound on data point frequency for this data set,
                * implemented by specifying the minimum alignment period to use in a time
          @@ -862,21 +710,14 @@ public boolean hasMinAlignmentPeriod() {
                * 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]; * @return The minAlignmentPeriod. */ @java.lang.Override public com.google.protobuf.Duration getMinAlignmentPeriod() { - return minAlignmentPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minAlignmentPeriod_; + return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; } /** - * - * *
                * Optional. The lower bound on data point frequency for this data set,
                * implemented by specifying the minimum alignment period to use in a time
          @@ -885,60 +726,40 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() {
                * 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]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { - return minAlignmentPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minAlignmentPeriod_; + return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; } public static final int TARGET_AXIS_FIELD_NUMBER = 5; private int targetAxis_ = 0; /** - * - * *
                * Optional. The target axis to use for plotting the metric.
                * 
          * - * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for targetAxis. */ - @java.lang.Override - public int getTargetAxisValue() { + @java.lang.Override public int getTargetAxisValue() { return targetAxis_; } /** - * - * *
                * Optional. The target axis to use for plotting the metric.
                * 
          * - * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The targetAxis. */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis getTargetAxis() { - com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis result = - com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.forNumber(targetAxis_); - return result == null - ? com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis getTargetAxis() { + com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis result = com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.forNumber(targetAxis_); + return result == null ? com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -950,13 +771,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTimeSeriesQuery()); } - if (plotType_ - != com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.PLOT_TYPE_UNSPECIFIED - .getNumber()) { + if (plotType_ != com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.PLOT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, plotType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(legendTemplate_)) { @@ -965,9 +785,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getMinAlignmentPeriod()); } - if (targetAxis_ - != com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.TARGET_AXIS_UNSPECIFIED - .getNumber()) { + if (targetAxis_ != com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.TARGET_AXIS_UNSPECIFIED.getNumber()) { output.writeEnum(5, targetAxis_); } getUnknownFields().writeTo(output); @@ -980,24 +798,23 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeSeriesQuery()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTimeSeriesQuery()); } - if (plotType_ - != com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.PLOT_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, plotType_); + if (plotType_ != com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.PLOT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, plotType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(legendTemplate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, legendTemplate_); } if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMinAlignmentPeriod()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMinAlignmentPeriod()); } - if (targetAxis_ - != com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.TARGET_AXIS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, targetAxis_); + if (targetAxis_ != com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.TARGET_AXIS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, targetAxis_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1007,23 +824,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.XyChart.DataSet)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.XyChart.DataSet other = - (com.google.monitoring.dashboard.v1.XyChart.DataSet) obj; + com.google.monitoring.dashboard.v1.XyChart.DataSet other = (com.google.monitoring.dashboard.v1.XyChart.DataSet) obj; if (hasTimeSeriesQuery() != other.hasTimeSeriesQuery()) return false; if (hasTimeSeriesQuery()) { - if (!getTimeSeriesQuery().equals(other.getTimeSeriesQuery())) return false; + if (!getTimeSeriesQuery() + .equals(other.getTimeSeriesQuery())) return false; } if (plotType_ != other.plotType_) return false; - if (!getLegendTemplate().equals(other.getLegendTemplate())) return false; + if (!getLegendTemplate() + .equals(other.getLegendTemplate())) return false; if (hasMinAlignmentPeriod() != other.hasMinAlignmentPeriod()) return false; if (hasMinAlignmentPeriod()) { - if (!getMinAlignmentPeriod().equals(other.getMinAlignmentPeriod())) return false; + if (!getMinAlignmentPeriod() + .equals(other.getMinAlignmentPeriod())) return false; } if (targetAxis_ != other.targetAxis_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -1057,93 +876,89 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.XyChart.DataSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.XyChart.DataSet 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.XyChart.DataSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.XyChart.DataSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1153,32 +968,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                * Groups a time series query definition with charting options.
                * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.XyChart.DataSet} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.XyChart.DataSet) com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_fieldAccessorTable + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.XyChart.DataSet.class, - com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder.class); + com.google.monitoring.dashboard.v1.XyChart.DataSet.class, com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.XyChart.DataSet.newBuilder() @@ -1186,18 +996,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getTimeSeriesQueryFieldBuilder(); getMinAlignmentPeriodFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1219,9 +1029,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor; } @java.lang.Override @@ -1240,11 +1050,8 @@ public com.google.monitoring.dashboard.v1.XyChart.DataSet build() { @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.DataSet buildPartial() { - com.google.monitoring.dashboard.v1.XyChart.DataSet result = - new com.google.monitoring.dashboard.v1.XyChart.DataSet(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.dashboard.v1.XyChart.DataSet result = new com.google.monitoring.dashboard.v1.XyChart.DataSet(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1253,8 +1060,9 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.XyChart.DataSet re int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.timeSeriesQuery_ = - timeSeriesQueryBuilder_ == null ? timeSeriesQuery_ : timeSeriesQueryBuilder_.build(); + result.timeSeriesQuery_ = timeSeriesQueryBuilder_ == null + ? timeSeriesQuery_ + : timeSeriesQueryBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -1264,10 +1072,9 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.XyChart.DataSet re result.legendTemplate_ = legendTemplate_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.minAlignmentPeriod_ = - minAlignmentPeriodBuilder_ == null - ? minAlignmentPeriod_ - : minAlignmentPeriodBuilder_.build(); + result.minAlignmentPeriod_ = minAlignmentPeriodBuilder_ == null + ? minAlignmentPeriod_ + : minAlignmentPeriodBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { @@ -1280,41 +1087,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.XyChart.DataSet re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.XyChart.DataSet) { - return mergeFrom((com.google.monitoring.dashboard.v1.XyChart.DataSet) other); + return mergeFrom((com.google.monitoring.dashboard.v1.XyChart.DataSet)other); } else { super.mergeFrom(other); return this; @@ -1322,8 +1126,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.XyChart.DataSet other) { - if (other == com.google.monitoring.dashboard.v1.XyChart.DataSet.getDefaultInstance()) - return this; + if (other == com.google.monitoring.dashboard.v1.XyChart.DataSet.getDefaultInstance()) return this; if (other.hasTimeSeriesQuery()) { mergeTimeSeriesQuery(other.getTimeSeriesQuery()); } @@ -1367,45 +1170,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getTimeSeriesQueryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - plotType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - legendTemplate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getMinAlignmentPeriodFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - targetAxis_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getTimeSeriesQueryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + plotType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + legendTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getMinAlignmentPeriodFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + targetAxis_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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) { @@ -1415,66 +1214,46 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.monitoring.dashboard.v1.TimeSeriesQuery timeSeriesQuery_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, - com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> - timeSeriesQueryBuilder_; + com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> timeSeriesQueryBuilder_; /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the timeSeriesQuery field is set. */ public boolean hasTimeSeriesQuery() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The timeSeriesQuery. */ public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() { if (timeSeriesQueryBuilder_ == null) { - return timeSeriesQuery_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() - : timeSeriesQuery_; + return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; } else { return timeSeriesQueryBuilder_.getMessage(); } } /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { if (timeSeriesQueryBuilder_ == null) { @@ -1490,16 +1269,12 @@ public Builder setTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQ return this; } /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTimeSeriesQuery( com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder builderForValue) { @@ -1513,24 +1288,18 @@ public Builder setTimeSeriesQuery( return this; } /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeTimeSeriesQuery( - com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { + public Builder mergeTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { if (timeSeriesQueryBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && timeSeriesQuery_ != null - && timeSeriesQuery_ - != com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + timeSeriesQuery_ != null && + timeSeriesQuery_ != com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance()) { getTimeSeriesQueryBuilder().mergeFrom(value); } else { timeSeriesQuery_ = value; @@ -1545,16 +1314,12 @@ public Builder mergeTimeSeriesQuery( return this; } /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTimeSeriesQuery() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1567,69 +1332,51 @@ public Builder clearTimeSeriesQuery() { return this; } /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder - getTimeSeriesQueryBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder getTimeSeriesQueryBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTimeSeriesQueryFieldBuilder().getBuilder(); } /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder - getTimeSeriesQueryOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder() { if (timeSeriesQueryBuilder_ != null) { return timeSeriesQueryBuilder_.getMessageOrBuilder(); } else { - return timeSeriesQuery_ == null - ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() - : timeSeriesQuery_; + return timeSeriesQuery_ == null ? + com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; } } /** - * - * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, - com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> + com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> getTimeSeriesQueryFieldBuilder() { if (timeSeriesQueryBuilder_ == null) { - timeSeriesQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, - com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder>( - getTimeSeriesQuery(), getParentForChildren(), isClean()); + timeSeriesQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder>( + getTimeSeriesQuery(), + getParentForChildren(), + isClean()); timeSeriesQuery_ = null; } return timeSeriesQueryBuilder_; @@ -1637,29 +1384,22 @@ public Builder clearTimeSeriesQuery() { private int plotType_ = 0; /** - * - * *
                  * How this data should be plotted on the chart.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; - * * @return The enum numeric value on the wire for plotType. */ - @java.lang.Override - public int getPlotTypeValue() { + @java.lang.Override public int getPlotTypeValue() { return plotType_; } /** - * - * *
                  * How this data should be plotted on the chart.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; - * * @param value The enum numeric value on the wire for plotType to set. * @return This builder for chaining. */ @@ -1670,38 +1410,28 @@ public Builder setPlotTypeValue(int value) { return this; } /** - * - * *
                  * How this data should be plotted on the chart.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; - * * @return The plotType. */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType getPlotType() { - com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType result = - com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.forNumber(plotType_); - return result == null - ? com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.UNRECOGNIZED - : result; + com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType result = com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.forNumber(plotType_); + return result == null ? com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.UNRECOGNIZED : result; } /** - * - * *
                  * How this data should be plotted on the chart.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; - * * @param value The plotType to set. * @return This builder for chaining. */ - public Builder setPlotType( - com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType value) { + public Builder setPlotType(com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType value) { if (value == null) { throw new NullPointerException(); } @@ -1711,14 +1441,11 @@ public Builder setPlotType( return this; } /** - * - * *
                  * How this data should be plotted on the chart.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; - * * @return This builder for chaining. */ public Builder clearPlotType() { @@ -1730,8 +1457,6 @@ public Builder clearPlotType() { private java.lang.Object legendTemplate_ = ""; /** - * - * *
                  * A template string for naming `TimeSeries` in the resulting data set.
                  * This should be a string with interpolations of the form `${label_name}`,
          @@ -1739,13 +1464,13 @@ public Builder clearPlotType() {
                  * 
          * * string legend_template = 3; - * * @return The legendTemplate. */ public java.lang.String getLegendTemplate() { java.lang.Object ref = legendTemplate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); legendTemplate_ = s; return s; @@ -1754,8 +1479,6 @@ public java.lang.String getLegendTemplate() { } } /** - * - * *
                  * A template string for naming `TimeSeries` in the resulting data set.
                  * This should be a string with interpolations of the form `${label_name}`,
          @@ -1763,14 +1486,15 @@ public java.lang.String getLegendTemplate() {
                  * 
          * * string legend_template = 3; - * * @return The bytes for legendTemplate. */ - public com.google.protobuf.ByteString getLegendTemplateBytes() { + public com.google.protobuf.ByteString + getLegendTemplateBytes() { java.lang.Object ref = legendTemplate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); legendTemplate_ = b; return b; } else { @@ -1778,8 +1502,6 @@ public com.google.protobuf.ByteString getLegendTemplateBytes() { } } /** - * - * *
                  * A template string for naming `TimeSeries` in the resulting data set.
                  * This should be a string with interpolations of the form `${label_name}`,
          @@ -1787,22 +1509,18 @@ public com.google.protobuf.ByteString getLegendTemplateBytes() {
                  * 
          * * string legend_template = 3; - * * @param value The legendTemplate to set. * @return This builder for chaining. */ - public Builder setLegendTemplate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLegendTemplate( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } legendTemplate_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * A template string for naming `TimeSeries` in the resulting data set.
                  * This should be a string with interpolations of the form `${label_name}`,
          @@ -1810,7 +1528,6 @@ public Builder setLegendTemplate(java.lang.String value) {
                  * 
          * * string legend_template = 3; - * * @return This builder for chaining. */ public Builder clearLegendTemplate() { @@ -1820,8 +1537,6 @@ public Builder clearLegendTemplate() { return this; } /** - * - * *
                  * A template string for naming `TimeSeries` in the resulting data set.
                  * This should be a string with interpolations of the form `${label_name}`,
          @@ -1829,14 +1544,12 @@ public Builder clearLegendTemplate() {
                  * 
          * * string legend_template = 3; - * * @param value The bytes for legendTemplate to set. * @return This builder for chaining. */ - public Builder setLegendTemplateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLegendTemplateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); legendTemplate_ = value; bitField0_ |= 0x00000004; @@ -1846,13 +1559,8 @@ public Builder setLegendTemplateBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration minAlignmentPeriod_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - minAlignmentPeriodBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minAlignmentPeriodBuilder_; /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1861,18 +1569,13 @@ public Builder setLegendTemplateBytes(com.google.protobuf.ByteString value) {
                  * 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]; * @return Whether the minAlignmentPeriod field is set. */ public boolean hasMinAlignmentPeriod() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1881,24 +1584,17 @@ public boolean hasMinAlignmentPeriod() {
                  * 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]; * @return The minAlignmentPeriod. */ public com.google.protobuf.Duration getMinAlignmentPeriod() { if (minAlignmentPeriodBuilder_ == null) { - return minAlignmentPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minAlignmentPeriod_; + return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; } else { return minAlignmentPeriodBuilder_.getMessage(); } } /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1907,9 +1603,7 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() {
                  * 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]; */ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) { if (minAlignmentPeriodBuilder_ == null) { @@ -1925,8 +1619,6 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) { return this; } /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1935,11 +1627,10 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) {
                  * 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]; */ - public Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMinAlignmentPeriod( + com.google.protobuf.Duration.Builder builderForValue) { if (minAlignmentPeriodBuilder_ == null) { minAlignmentPeriod_ = builderForValue.build(); } else { @@ -1950,8 +1641,6 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builde return this; } /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1960,15 +1649,13 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builde
                  * 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]; */ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) { if (minAlignmentPeriodBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && minAlignmentPeriod_ != null - && minAlignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + minAlignmentPeriod_ != null && + minAlignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { getMinAlignmentPeriodBuilder().mergeFrom(value); } else { minAlignmentPeriod_ = value; @@ -1983,8 +1670,6 @@ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) { return this; } /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1993,9 +1678,7 @@ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) {
                  * 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]; */ public Builder clearMinAlignmentPeriod() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2008,8 +1691,6 @@ public Builder clearMinAlignmentPeriod() { return this; } /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -2018,9 +1699,7 @@ public Builder clearMinAlignmentPeriod() {
                  * 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]; */ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() { bitField0_ |= 0x00000008; @@ -2028,8 +1707,6 @@ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() { return getMinAlignmentPeriodFieldBuilder().getBuilder(); } /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -2038,22 +1715,17 @@ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() {
                  * 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]; */ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { if (minAlignmentPeriodBuilder_ != null) { return minAlignmentPeriodBuilder_.getMessageOrBuilder(); } else { - return minAlignmentPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minAlignmentPeriod_; + return minAlignmentPeriod_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; } } /** - * - * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -2062,22 +1734,17 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() {
                  * 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]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMinAlignmentPeriodFieldBuilder() { if (minAlignmentPeriodBuilder_ == null) { - minAlignmentPeriodBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMinAlignmentPeriod(), getParentForChildren(), isClean()); + minAlignmentPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMinAlignmentPeriod(), + getParentForChildren(), + isClean()); minAlignmentPeriod_ = null; } return minAlignmentPeriodBuilder_; @@ -2085,33 +1752,22 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { private int targetAxis_ = 0; /** - * - * *
                  * Optional. The target axis to use for plotting the metric.
                  * 
          * - * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for targetAxis. */ - @java.lang.Override - public int getTargetAxisValue() { + @java.lang.Override public int getTargetAxisValue() { return targetAxis_; } /** - * - * *
                  * Optional. The target axis to use for plotting the metric.
                  * 
          * - * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for targetAxis to set. * @return This builder for chaining. */ @@ -2122,42 +1778,28 @@ public Builder setTargetAxisValue(int value) { return this; } /** - * - * *
                  * Optional. The target axis to use for plotting the metric.
                  * 
          * - * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The targetAxis. */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis getTargetAxis() { - com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis result = - com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.forNumber(targetAxis_); - return result == null - ? com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.UNRECOGNIZED - : result; + com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis result = com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.forNumber(targetAxis_); + return result == null ? com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.UNRECOGNIZED : result; } /** - * - * *
                  * Optional. The target axis to use for plotting the metric.
                  * 
          * - * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The targetAxis to set. * @return This builder for chaining. */ - public Builder setTargetAxis( - com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis value) { + public Builder setTargetAxis(com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis value) { if (value == null) { throw new NullPointerException(); } @@ -2167,16 +1809,11 @@ public Builder setTargetAxis( return this; } /** - * - * *
                  * Optional. The target axis to use for plotting the metric.
                  * 
          * - * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearTargetAxis() { @@ -2185,7 +1822,6 @@ public Builder clearTargetAxis() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2198,12 +1834,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.XyChart.DataSet) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.XyChart.DataSet) private static final com.google.monitoring.dashboard.v1.XyChart.DataSet DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.XyChart.DataSet(); } @@ -2212,28 +1848,27 @@ public static com.google.monitoring.dashboard.v1.XyChart.DataSet getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataSet 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataSet 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; @@ -2248,82 +1883,68 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.XyChart.DataSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AxisOrBuilder - extends + public interface AxisOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.XyChart.Axis) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * The label of the axis.
                * 
          * * string label = 1; - * * @return The label. */ java.lang.String getLabel(); /** - * - * *
                * The label of the axis.
                * 
          * * string label = 1; - * * @return The bytes for label. */ - com.google.protobuf.ByteString getLabelBytes(); + com.google.protobuf.ByteString + getLabelBytes(); /** - * - * *
                * The axis scale. By default, a linear scale is used.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; - * * @return The enum numeric value on the wire for scale. */ int getScaleValue(); /** - * - * *
                * The axis scale. By default, a linear scale is used.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; - * * @return The scale. */ com.google.monitoring.dashboard.v1.XyChart.Axis.Scale getScale(); } /** - * - * *
              * A chart axis.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.XyChart.Axis} */ - public static final class Axis extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Axis extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.XyChart.Axis) AxisOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Axis.newBuilder() to construct. private Axis(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Axis() { label_ = ""; scale_ = 0; @@ -2331,38 +1952,34 @@ private Axis() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Axis(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_XyChart_Axis_fieldAccessorTable + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_Axis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.XyChart.Axis.class, - com.google.monitoring.dashboard.v1.XyChart.Axis.Builder.class); + com.google.monitoring.dashboard.v1.XyChart.Axis.class, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder.class); } /** - * - * *
                * Types of scales used in axes.
                * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.XyChart.Axis.Scale} */ - public enum Scale implements com.google.protobuf.ProtocolMessageEnum { + public enum Scale + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                  * Scale is unspecified. The view will default to `LINEAR`.
                  * 
          @@ -2371,8 +1988,6 @@ public enum Scale implements com.google.protobuf.ProtocolMessageEnum { */ SCALE_UNSPECIFIED(0), /** - * - * *
                  * Linear scale.
                  * 
          @@ -2381,8 +1996,6 @@ public enum Scale implements com.google.protobuf.ProtocolMessageEnum { */ LINEAR(1), /** - * - * *
                  * Logarithmic scale (base 10).
                  * 
          @@ -2394,8 +2007,6 @@ public enum Scale implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                  * Scale is unspecified. The view will default to `LINEAR`.
                  * 
          @@ -2404,8 +2015,6 @@ public enum Scale implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCALE_UNSPECIFIED_VALUE = 0; /** - * - * *
                  * Linear scale.
                  * 
          @@ -2414,8 +2023,6 @@ public enum Scale implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LINEAR_VALUE = 1; /** - * - * *
                  * Logarithmic scale (base 10).
                  * 
          @@ -2424,6 +2031,7 @@ public enum Scale implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOG10_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -2448,51 +2056,49 @@ public static Scale valueOf(int value) { */ public static Scale forNumber(int value) { switch (value) { - case 0: - return SCALE_UNSPECIFIED; - case 1: - return LINEAR; - case 2: - return LOG10; - default: - return null; + case 0: return SCALE_UNSPECIFIED; + case 1: return LINEAR; + case 2: return LOG10; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Scale> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Scale findValueByNumber(int number) { + return Scale.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Scale findValueByNumber(int number) { - return Scale.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + 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.XyChart.Axis.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChart.Axis.getDescriptor().getEnumTypes().get(0); } private static final Scale[] VALUES = values(); - public static Scale valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Scale valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -2510,18 +2116,14 @@ private Scale(int value) { } public static final int LABEL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object label_ = ""; /** - * - * *
                * The label of the axis.
                * 
          * * string label = 1; - * * @return The label. */ @java.lang.Override @@ -2530,29 +2132,29 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** - * - * *
                * The label of the axis.
                * 
          * * string label = 1; - * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -2563,42 +2165,30 @@ public com.google.protobuf.ByteString getLabelBytes() { public static final int SCALE_FIELD_NUMBER = 2; private int scale_ = 0; /** - * - * *
                * The axis scale. By default, a linear scale is used.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; - * * @return The enum numeric value on the wire for scale. */ - @java.lang.Override - public int getScaleValue() { + @java.lang.Override public int getScaleValue() { return scale_; } /** - * - * *
                * The axis scale. By default, a linear scale is used.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; - * * @return The scale. */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.XyChart.Axis.Scale getScale() { - com.google.monitoring.dashboard.v1.XyChart.Axis.Scale result = - com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.forNumber(scale_); - return result == null - ? com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.Axis.Scale getScale() { + com.google.monitoring.dashboard.v1.XyChart.Axis.Scale result = com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.forNumber(scale_); + return result == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2610,12 +2200,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } - if (scale_ - != com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.SCALE_UNSPECIFIED.getNumber()) { + if (scale_ != com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.SCALE_UNSPECIFIED.getNumber()) { output.writeEnum(2, scale_); } getUnknownFields().writeTo(output); @@ -2630,9 +2220,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); } - if (scale_ - != com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.SCALE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, scale_); + if (scale_ != com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.SCALE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, scale_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2642,15 +2232,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.XyChart.Axis)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.XyChart.Axis other = - (com.google.monitoring.dashboard.v1.XyChart.Axis) obj; + com.google.monitoring.dashboard.v1.XyChart.Axis other = (com.google.monitoring.dashboard.v1.XyChart.Axis) obj; - if (!getLabel().equals(other.getLabel())) return false; + if (!getLabel() + .equals(other.getLabel())) return false; if (scale_ != other.scale_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2673,93 +2263,89 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.XyChart.Axis parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.XyChart.Axis parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.XyChart.Axis parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.XyChart.Axis 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.XyChart.Axis parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.XyChart.Axis parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.dashboard.v1.XyChart.Axis parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.XyChart.Axis parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.XyChart.Axis parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.XyChart.Axis parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.XyChart.Axis parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.XyChart.Axis parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.XyChart.Axis parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.XyChart.Axis parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.XyChart.Axis prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2769,41 +2355,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                * A chart axis.
                * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.XyChart.Axis} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.XyChart.Axis) com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_XyChart_Axis_fieldAccessorTable + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_Axis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.XyChart.Axis.class, - com.google.monitoring.dashboard.v1.XyChart.Axis.Builder.class); + com.google.monitoring.dashboard.v1.XyChart.Axis.class, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.XyChart.Axis.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2814,9 +2398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor; } @java.lang.Override @@ -2835,11 +2419,8 @@ public com.google.monitoring.dashboard.v1.XyChart.Axis build() { @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.Axis buildPartial() { - com.google.monitoring.dashboard.v1.XyChart.Axis result = - new com.google.monitoring.dashboard.v1.XyChart.Axis(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.dashboard.v1.XyChart.Axis result = new com.google.monitoring.dashboard.v1.XyChart.Axis(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -2858,41 +2439,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.XyChart.Axis resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.XyChart.Axis) { - return mergeFrom((com.google.monitoring.dashboard.v1.XyChart.Axis) other); + return mergeFrom((com.google.monitoring.dashboard.v1.XyChart.Axis)other); } else { super.mergeFrom(other); return this; @@ -2900,8 +2478,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.XyChart.Axis other) { - if (other == com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance()) - return this; + if (other == com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance()) return this; if (!other.getLabel().isEmpty()) { label_ = other.label_; bitField0_ |= 0x00000001; @@ -2936,25 +2513,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - label_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - scale_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + label_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + scale_ = input.readEnum(); + bitField0_ |= 0x00000002; + 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) { @@ -2964,25 +2538,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object label_ = ""; /** - * - * *
                  * The label of the axis.
                  * 
          * * string label = 1; - * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -2991,21 +2562,20 @@ public java.lang.String getLabel() { } } /** - * - * *
                  * The label of the axis.
                  * 
          * * string label = 1; - * * @return The bytes for label. */ - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -3013,35 +2583,28 @@ public com.google.protobuf.ByteString getLabelBytes() { } } /** - * - * *
                  * The label of the axis.
                  * 
          * * string label = 1; - * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLabel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } label_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * The label of the axis.
                  * 
          * * string label = 1; - * * @return This builder for chaining. */ public Builder clearLabel() { @@ -3051,21 +2614,17 @@ public Builder clearLabel() { return this; } /** - * - * *
                  * The label of the axis.
                  * 
          * * string label = 1; - * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); label_ = value; bitField0_ |= 0x00000001; @@ -3075,29 +2634,22 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) { private int scale_ = 0; /** - * - * *
                  * The axis scale. By default, a linear scale is used.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; - * * @return The enum numeric value on the wire for scale. */ - @java.lang.Override - public int getScaleValue() { + @java.lang.Override public int getScaleValue() { return scale_; } /** - * - * *
                  * The axis scale. By default, a linear scale is used.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; - * * @param value The enum numeric value on the wire for scale to set. * @return This builder for chaining. */ @@ -3108,33 +2660,24 @@ public Builder setScaleValue(int value) { return this; } /** - * - * *
                  * The axis scale. By default, a linear scale is used.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; - * * @return The scale. */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.Axis.Scale getScale() { - com.google.monitoring.dashboard.v1.XyChart.Axis.Scale result = - com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.forNumber(scale_); - return result == null - ? com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.UNRECOGNIZED - : result; + com.google.monitoring.dashboard.v1.XyChart.Axis.Scale result = com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.forNumber(scale_); + return result == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.UNRECOGNIZED : result; } /** - * - * *
                  * The axis scale. By default, a linear scale is used.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; - * * @param value The scale to set. * @return This builder for chaining. */ @@ -3148,14 +2691,11 @@ public Builder setScale(com.google.monitoring.dashboard.v1.XyChart.Axis.Scale va return this; } /** - * - * *
                  * The axis scale. By default, a linear scale is used.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; - * * @return This builder for chaining. */ public Builder clearScale() { @@ -3164,7 +2704,6 @@ public Builder clearScale() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3177,12 +2716,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.XyChart.Axis) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.XyChart.Axis) private static final com.google.monitoring.dashboard.v1.XyChart.Axis DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.XyChart.Axis(); } @@ -3191,28 +2730,27 @@ public static com.google.monitoring.dashboard.v1.XyChart.Axis getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Axis 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Axis 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; @@ -3227,84 +2765,64 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.XyChart.Axis getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int DATA_SETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List dataSets_; /** - * - * *
              * Required. The data displayed in this chart.
              * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getDataSetsList() { return dataSets_; } /** - * - * *
              * Required. The data displayed in this chart.
              * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getDataSetsOrBuilderList() { return dataSets_; } /** - * - * *
              * Required. The data displayed in this chart.
              * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getDataSetsCount() { return dataSets_.size(); } /** - * - * *
              * Required. The data displayed in this chart.
              * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.DataSet getDataSets(int index) { return dataSets_.get(index); } /** - * - * *
              * Required. The data displayed in this chart.
              * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOrBuilder( @@ -3315,8 +2833,6 @@ public com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOr public static final int TIMESHIFT_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration timeshiftDuration_; /** - * - * *
              * The duration used to display a comparison chart. A comparison chart
              * simultaneously shows values from two similar-length time periods
          @@ -3326,7 +2842,6 @@ public com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOr
              * 
          * * .google.protobuf.Duration timeshift_duration = 4; - * * @return Whether the timeshiftDuration field is set. */ @java.lang.Override @@ -3334,8 +2849,6 @@ public boolean hasTimeshiftDuration() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
              * The duration used to display a comparison chart. A comparison chart
              * simultaneously shows values from two similar-length time periods
          @@ -3345,18 +2858,13 @@ public boolean hasTimeshiftDuration() {
              * 
          * * .google.protobuf.Duration timeshift_duration = 4; - * * @return The timeshiftDuration. */ @java.lang.Override public com.google.protobuf.Duration getTimeshiftDuration() { - return timeshiftDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : timeshiftDuration_; + return timeshiftDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeshiftDuration_; } /** - * - * *
              * The duration used to display a comparison chart. A comparison chart
              * simultaneously shows values from two similar-length time periods
          @@ -3369,18 +2877,13 @@ public com.google.protobuf.Duration getTimeshiftDuration() {
              */
             @java.lang.Override
             public com.google.protobuf.DurationOrBuilder getTimeshiftDurationOrBuilder() {
          -    return timeshiftDuration_ == null
          -        ? com.google.protobuf.Duration.getDefaultInstance()
          -        : timeshiftDuration_;
          +    return timeshiftDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeshiftDuration_;
             }
           
             public static final int THRESHOLDS_FIELD_NUMBER = 5;
          -
             @SuppressWarnings("serial")
             private java.util.List thresholds_;
             /**
          -   *
          -   *
              * 
              * Threshold lines drawn horizontally across the chart.
              * 
          @@ -3392,8 +2895,6 @@ public java.util.List getThreshold return thresholds_; } /** - * - * *
              * Threshold lines drawn horizontally across the chart.
              * 
          @@ -3401,13 +2902,11 @@ public java.util.List getThreshold * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ @java.lang.Override - public java.util.List + public java.util.List getThresholdsOrBuilderList() { return thresholds_; } /** - * - * *
              * Threshold lines drawn horizontally across the chart.
              * 
          @@ -3419,8 +2918,6 @@ public int getThresholdsCount() { return thresholds_.size(); } /** - * - * *
              * Threshold lines drawn horizontally across the chart.
              * 
          @@ -3432,8 +2929,6 @@ public com.google.monitoring.dashboard.v1.Threshold getThresholds(int index) { return thresholds_.get(index); } /** - * - * *
              * Threshold lines drawn horizontally across the chart.
              * 
          @@ -3441,21 +2936,19 @@ public com.google.monitoring.dashboard.v1.Threshold getThresholds(int index) { * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(int index) { + public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder( + int index) { return thresholds_.get(index); } public static final int X_AXIS_FIELD_NUMBER = 6; private com.google.monitoring.dashboard.v1.XyChart.Axis xAxis_; /** - * - * *
          -   * The properties applied to the X axis.
          +   * The properties applied to the x-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; - * * @return Whether the xAxis field is set. */ @java.lang.Override @@ -3463,49 +2956,37 @@ public boolean hasXAxis() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
          -   * The properties applied to the X axis.
          +   * The properties applied to the x-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; - * * @return The xAxis. */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.Axis getXAxis() { - return xAxis_ == null - ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() - : xAxis_; + return xAxis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : xAxis_; } /** - * - * *
          -   * The properties applied to the X axis.
          +   * The properties applied to the x-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getXAxisOrBuilder() { - return xAxis_ == null - ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() - : xAxis_; + return xAxis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : xAxis_; } public static final int Y_AXIS_FIELD_NUMBER = 7; private com.google.monitoring.dashboard.v1.XyChart.Axis yAxis_; /** - * - * *
          -   * The properties applied to the Y axis.
          +   * The properties applied to the y-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; - * * @return Whether the yAxis field is set. */ @java.lang.Override @@ -3513,49 +2994,37 @@ public boolean hasYAxis() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
          -   * The properties applied to the Y axis.
          +   * The properties applied to the y-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; - * * @return The yAxis. */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.Axis getYAxis() { - return yAxis_ == null - ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() - : yAxis_; + return yAxis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : yAxis_; } /** - * - * *
          -   * The properties applied to the Y axis.
          +   * The properties applied to the y-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getYAxisOrBuilder() { - return yAxis_ == null - ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() - : yAxis_; + return yAxis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : yAxis_; } public static final int Y2_AXIS_FIELD_NUMBER = 9; private com.google.monitoring.dashboard.v1.XyChart.Axis y2Axis_; /** - * - * *
          -   * The properties applied to the Y2 axis.
          +   * The properties applied to the y2-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; - * * @return Whether the y2Axis field is set. */ @java.lang.Override @@ -3563,49 +3032,37 @@ public boolean hasY2Axis() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
          -   * The properties applied to the Y2 axis.
          +   * The properties applied to the y2-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; - * * @return The y2Axis. */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.Axis getY2Axis() { - return y2Axis_ == null - ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() - : y2Axis_; + return y2Axis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : y2Axis_; } /** - * - * *
          -   * The properties applied to the Y2 axis.
          +   * The properties applied to the y2-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getY2AxisOrBuilder() { - return y2Axis_ == null - ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() - : y2Axis_; + return y2Axis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : y2Axis_; } public static final int CHART_OPTIONS_FIELD_NUMBER = 8; private com.google.monitoring.dashboard.v1.ChartOptions chartOptions_; /** - * - * *
              * Display options for the chart.
              * 
          * * .google.monitoring.dashboard.v1.ChartOptions chart_options = 8; - * * @return Whether the chartOptions field is set. */ @java.lang.Override @@ -3613,25 +3070,18 @@ public boolean hasChartOptions() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
              * Display options for the chart.
              * 
          * * .google.monitoring.dashboard.v1.ChartOptions chart_options = 8; - * * @return The chartOptions. */ @java.lang.Override public com.google.monitoring.dashboard.v1.ChartOptions getChartOptions() { - return chartOptions_ == null - ? com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance() - : chartOptions_; + return chartOptions_ == null ? com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance() : chartOptions_; } /** - * - * *
              * Display options for the chart.
              * 
          @@ -3640,13 +3090,10 @@ public com.google.monitoring.dashboard.v1.ChartOptions getChartOptions() { */ @java.lang.Override public com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder getChartOptionsOrBuilder() { - return chartOptions_ == null - ? com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance() - : chartOptions_; + return chartOptions_ == null ? com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance() : chartOptions_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3658,7 +3105,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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)); } @@ -3690,25 +3138,32 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < dataSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataSets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, dataSets_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTimeshiftDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTimeshiftDuration()); } for (int i = 0; i < thresholds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, thresholds_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, thresholds_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getXAxis()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getXAxis()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getYAxis()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getYAxis()); } if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getChartOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getChartOptions()); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getY2Axis()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getY2Axis()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3718,35 +3173,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.XyChart)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.XyChart other = - (com.google.monitoring.dashboard.v1.XyChart) obj; + com.google.monitoring.dashboard.v1.XyChart other = (com.google.monitoring.dashboard.v1.XyChart) obj; - if (!getDataSetsList().equals(other.getDataSetsList())) return false; + if (!getDataSetsList() + .equals(other.getDataSetsList())) return false; if (hasTimeshiftDuration() != other.hasTimeshiftDuration()) return false; if (hasTimeshiftDuration()) { - if (!getTimeshiftDuration().equals(other.getTimeshiftDuration())) return false; + if (!getTimeshiftDuration() + .equals(other.getTimeshiftDuration())) return false; } - if (!getThresholdsList().equals(other.getThresholdsList())) return false; + if (!getThresholdsList() + .equals(other.getThresholdsList())) return false; if (hasXAxis() != other.hasXAxis()) return false; if (hasXAxis()) { - if (!getXAxis().equals(other.getXAxis())) return false; + if (!getXAxis() + .equals(other.getXAxis())) return false; } if (hasYAxis() != other.hasYAxis()) return false; if (hasYAxis()) { - if (!getYAxis().equals(other.getYAxis())) return false; + if (!getYAxis() + .equals(other.getYAxis())) return false; } if (hasY2Axis() != other.hasY2Axis()) return false; if (hasY2Axis()) { - if (!getY2Axis().equals(other.getY2Axis())) return false; + if (!getY2Axis() + .equals(other.getY2Axis())) return false; } if (hasChartOptions() != other.hasChartOptions()) return false; if (hasChartOptions()) { - if (!getChartOptions().equals(other.getChartOptions())) return false; + if (!getChartOptions() + .equals(other.getChartOptions())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3792,127 +3253,120 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.XyChart parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.XyChart parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.XyChart parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.XyChart parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.XyChart 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.XyChart parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.dashboard.v1.XyChart parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.XyChart parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.XyChart parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.XyChart parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.XyChart parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.XyChart parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.XyChart parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.dashboard.v1.XyChart parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.XyChart prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * A chart that displays data on a 2D (X and Y axes) plane.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.XyChart} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.XyChart) com.google.monitoring.dashboard.v1.XyChartOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_XyChart_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_XyChart_fieldAccessorTable + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.XyChart.class, - com.google.monitoring.dashboard.v1.XyChart.Builder.class); + com.google.monitoring.dashboard.v1.XyChart.class, com.google.monitoring.dashboard.v1.XyChart.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.XyChart.newBuilder() @@ -3920,13 +3374,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getDataSetsFieldBuilder(); getTimeshiftDurationFieldBuilder(); getThresholdsFieldBuilder(); @@ -3936,7 +3391,6 @@ private void maybeForceBuilderInitialization() { getChartOptionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3984,9 +3438,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.XyChartProto - .internal_static_google_monitoring_dashboard_v1_XyChart_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_descriptor; } @java.lang.Override @@ -4005,12 +3459,9 @@ public com.google.monitoring.dashboard.v1.XyChart build() { @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart buildPartial() { - com.google.monitoring.dashboard.v1.XyChart result = - new com.google.monitoring.dashboard.v1.XyChart(this); + com.google.monitoring.dashboard.v1.XyChart result = new com.google.monitoring.dashboard.v1.XyChart(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -4040,27 +3491,33 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.XyChart result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.timeshiftDuration_ = - timeshiftDurationBuilder_ == null - ? timeshiftDuration_ - : timeshiftDurationBuilder_.build(); + result.timeshiftDuration_ = timeshiftDurationBuilder_ == null + ? timeshiftDuration_ + : timeshiftDurationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.xAxis_ = xAxisBuilder_ == null ? xAxis_ : xAxisBuilder_.build(); + result.xAxis_ = xAxisBuilder_ == null + ? xAxis_ + : xAxisBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.yAxis_ = yAxisBuilder_ == null ? yAxis_ : yAxisBuilder_.build(); + result.yAxis_ = yAxisBuilder_ == null + ? yAxis_ + : yAxisBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.y2Axis_ = y2AxisBuilder_ == null ? y2Axis_ : y2AxisBuilder_.build(); + result.y2Axis_ = y2AxisBuilder_ == null + ? y2Axis_ + : y2AxisBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.chartOptions_ = - chartOptionsBuilder_ == null ? chartOptions_ : chartOptionsBuilder_.build(); + result.chartOptions_ = chartOptionsBuilder_ == null + ? chartOptions_ + : chartOptionsBuilder_.build(); to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; @@ -4070,39 +3527,38 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.XyChart result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.XyChart) { - return mergeFrom((com.google.monitoring.dashboard.v1.XyChart) other); + return mergeFrom((com.google.monitoring.dashboard.v1.XyChart)other); } else { super.mergeFrom(other); return this; @@ -4129,10 +3585,9 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.XyChart other) { dataSetsBuilder_ = null; dataSets_ = other.dataSets_; bitField0_ = (bitField0_ & ~0x00000001); - dataSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDataSetsFieldBuilder() - : null; + dataSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDataSetsFieldBuilder() : null; } else { dataSetsBuilder_.addAllMessages(other.dataSets_); } @@ -4159,10 +3614,9 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.XyChart other) { thresholdsBuilder_ = null; thresholds_ = other.thresholds_; bitField0_ = (bitField0_ & ~0x00000004); - thresholdsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getThresholdsFieldBuilder() - : null; + thresholdsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getThresholdsFieldBuilder() : null; } else { thresholdsBuilder_.addAllMessages(other.thresholds_); } @@ -4206,71 +3660,73 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.monitoring.dashboard.v1.XyChart.DataSet m = - input.readMessage( - com.google.monitoring.dashboard.v1.XyChart.DataSet.parser(), - extensionRegistry); - if (dataSetsBuilder_ == null) { - ensureDataSetsIsMutable(); - dataSets_.add(m); - } else { - dataSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 34: - { - input.readMessage( - getTimeshiftDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 34 - case 42: - { - com.google.monitoring.dashboard.v1.Threshold m = - input.readMessage( - com.google.monitoring.dashboard.v1.Threshold.parser(), extensionRegistry); - if (thresholdsBuilder_ == null) { - ensureThresholdsIsMutable(); - thresholds_.add(m); - } else { - thresholdsBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - input.readMessage(getXAxisFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 50 - case 58: - { - input.readMessage(getYAxisFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 58 - case 66: - { - input.readMessage(getChartOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 74: - { - input.readMessage(getY2AxisFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.monitoring.dashboard.v1.XyChart.DataSet m = + input.readMessage( + com.google.monitoring.dashboard.v1.XyChart.DataSet.parser(), + extensionRegistry); + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + dataSets_.add(m); + } else { + dataSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 34: { + input.readMessage( + getTimeshiftDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: { + com.google.monitoring.dashboard.v1.Threshold m = + input.readMessage( + com.google.monitoring.dashboard.v1.Threshold.parser(), + extensionRegistry); + if (thresholdsBuilder_ == null) { + ensureThresholdsIsMutable(); + thresholds_.add(m); + } else { + thresholdsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + input.readMessage( + getXAxisFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 58: { + input.readMessage( + getYAxisFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 66: { + input.readMessage( + getChartOptionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: { + input.readMessage( + getY2AxisFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 74 + 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) { @@ -4280,36 +3736,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List dataSets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDataSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - dataSets_ = - new java.util.ArrayList(dataSets_); + dataSets_ = new java.util.ArrayList(dataSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.DataSet, - com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder, - com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder> - dataSetsBuilder_; + com.google.monitoring.dashboard.v1.XyChart.DataSet, com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder, com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder> dataSetsBuilder_; /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getDataSetsList() { if (dataSetsBuilder_ == null) { @@ -4319,15 +3765,11 @@ public java.util.List getDat } } /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getDataSetsCount() { if (dataSetsBuilder_ == null) { @@ -4337,15 +3779,11 @@ public int getDataSetsCount() { } } /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.dashboard.v1.XyChart.DataSet getDataSets(int index) { if (dataSetsBuilder_ == null) { @@ -4355,15 +3793,11 @@ public com.google.monitoring.dashboard.v1.XyChart.DataSet getDataSets(int index) } } /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDataSets( int index, com.google.monitoring.dashboard.v1.XyChart.DataSet value) { @@ -4380,15 +3814,11 @@ public Builder setDataSets( return this; } /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDataSets( int index, com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder builderForValue) { @@ -4402,15 +3832,11 @@ public Builder setDataSets( return this; } /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addDataSets(com.google.monitoring.dashboard.v1.XyChart.DataSet value) { if (dataSetsBuilder_ == null) { @@ -4426,15 +3852,11 @@ public Builder addDataSets(com.google.monitoring.dashboard.v1.XyChart.DataSet va return this; } /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addDataSets( int index, com.google.monitoring.dashboard.v1.XyChart.DataSet value) { @@ -4451,15 +3873,11 @@ public Builder addDataSets( return this; } /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addDataSets( com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder builderForValue) { @@ -4473,15 +3891,11 @@ public Builder addDataSets( return this; } /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addDataSets( int index, com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder builderForValue) { @@ -4495,21 +3909,18 @@ public Builder addDataSets( return this; } /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllDataSets( java.lang.Iterable values) { if (dataSetsBuilder_ == null) { ensureDataSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dataSets_); onChanged(); } else { dataSetsBuilder_.addAllMessages(values); @@ -4517,15 +3928,11 @@ public Builder addAllDataSets( return this; } /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDataSets() { if (dataSetsBuilder_ == null) { @@ -4538,15 +3945,11 @@ public Builder clearDataSets() { return this; } /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeDataSets(int index) { if (dataSetsBuilder_ == null) { @@ -4559,52 +3962,39 @@ public Builder removeDataSets(int index) { return this; } /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder getDataSetsBuilder( int index) { return getDataSetsFieldBuilder().getBuilder(index); } /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOrBuilder( int index) { if (dataSetsBuilder_ == null) { - return dataSets_.get(index); - } else { + return dataSets_.get(index); } else { return dataSetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getDataSetsOrBuilderList() { + public java.util.List + getDataSetsOrBuilderList() { if (dataSetsBuilder_ != null) { return dataSetsBuilder_.getMessageOrBuilderList(); } else { @@ -4612,65 +4002,49 @@ public com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOr } } /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder addDataSetsBuilder() { - return getDataSetsFieldBuilder() - .addBuilder(com.google.monitoring.dashboard.v1.XyChart.DataSet.getDefaultInstance()); + return getDataSetsFieldBuilder().addBuilder( + com.google.monitoring.dashboard.v1.XyChart.DataSet.getDefaultInstance()); } /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder addDataSetsBuilder( int index) { - return getDataSetsFieldBuilder() - .addBuilder( - index, com.google.monitoring.dashboard.v1.XyChart.DataSet.getDefaultInstance()); + return getDataSetsFieldBuilder().addBuilder( + index, com.google.monitoring.dashboard.v1.XyChart.DataSet.getDefaultInstance()); } /** - * - * *
                * Required. The data displayed in this chart.
                * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getDataSetsBuilderList() { + public java.util.List + getDataSetsBuilderList() { return getDataSetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.DataSet, - com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder, - com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder> + com.google.monitoring.dashboard.v1.XyChart.DataSet, com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder, com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder> getDataSetsFieldBuilder() { if (dataSetsBuilder_ == null) { - dataSetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.DataSet, - com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder, - com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder>( - dataSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dataSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.XyChart.DataSet, com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder, com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder>( + dataSets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); dataSets_ = null; } return dataSetsBuilder_; @@ -4678,13 +4052,8 @@ public com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder addDataSetsBui private com.google.protobuf.Duration timeshiftDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - timeshiftDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeshiftDurationBuilder_; /** - * - * *
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4694,15 +4063,12 @@ public com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder addDataSetsBui
                * 
          * * .google.protobuf.Duration timeshift_duration = 4; - * * @return Whether the timeshiftDuration field is set. */ public boolean hasTimeshiftDuration() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4712,21 +4078,16 @@ public boolean hasTimeshiftDuration() {
                * 
          * * .google.protobuf.Duration timeshift_duration = 4; - * * @return The timeshiftDuration. */ public com.google.protobuf.Duration getTimeshiftDuration() { if (timeshiftDurationBuilder_ == null) { - return timeshiftDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : timeshiftDuration_; + return timeshiftDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeshiftDuration_; } else { return timeshiftDurationBuilder_.getMessage(); } } /** - * - * *
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4751,8 +4112,6 @@ public Builder setTimeshiftDuration(com.google.protobuf.Duration value) {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4763,7 +4122,8 @@ public Builder setTimeshiftDuration(com.google.protobuf.Duration value) {
                *
                * .google.protobuf.Duration timeshift_duration = 4;
                */
          -    public Builder setTimeshiftDuration(com.google.protobuf.Duration.Builder builderForValue) {
          +    public Builder setTimeshiftDuration(
          +        com.google.protobuf.Duration.Builder builderForValue) {
                 if (timeshiftDurationBuilder_ == null) {
                   timeshiftDuration_ = builderForValue.build();
                 } else {
          @@ -4774,8 +4134,6 @@ public Builder setTimeshiftDuration(com.google.protobuf.Duration.Builder builder
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4788,9 +4146,9 @@ public Builder setTimeshiftDuration(com.google.protobuf.Duration.Builder builder
                */
               public Builder mergeTimeshiftDuration(com.google.protobuf.Duration value) {
                 if (timeshiftDurationBuilder_ == null) {
          -        if (((bitField0_ & 0x00000002) != 0)
          -            && timeshiftDuration_ != null
          -            && timeshiftDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
          +        if (((bitField0_ & 0x00000002) != 0) &&
          +          timeshiftDuration_ != null &&
          +          timeshiftDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
                     getTimeshiftDurationBuilder().mergeFrom(value);
                   } else {
                     timeshiftDuration_ = value;
          @@ -4805,8 +4163,6 @@ public Builder mergeTimeshiftDuration(com.google.protobuf.Duration value) {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4828,8 +4184,6 @@ public Builder clearTimeshiftDuration() {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4846,8 +4200,6 @@ public com.google.protobuf.Duration.Builder getTimeshiftDurationBuilder() {
                 return getTimeshiftDurationFieldBuilder().getBuilder();
               }
               /**
          -     *
          -     *
                * 
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4862,14 +4214,11 @@ public com.google.protobuf.DurationOrBuilder getTimeshiftDurationOrBuilder() {
                 if (timeshiftDurationBuilder_ != null) {
                   return timeshiftDurationBuilder_.getMessageOrBuilder();
                 } else {
          -        return timeshiftDuration_ == null
          -            ? com.google.protobuf.Duration.getDefaultInstance()
          -            : timeshiftDuration_;
          +        return timeshiftDuration_ == null ?
          +            com.google.protobuf.Duration.getDefaultInstance() : timeshiftDuration_;
                 }
               }
               /**
          -     *
          -     *
                * 
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4881,42 +4230,32 @@ public com.google.protobuf.DurationOrBuilder getTimeshiftDurationOrBuilder() {
                * .google.protobuf.Duration timeshift_duration = 4;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.protobuf.Duration,
          -            com.google.protobuf.Duration.Builder,
          -            com.google.protobuf.DurationOrBuilder>
          +        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
                   getTimeshiftDurationFieldBuilder() {
                 if (timeshiftDurationBuilder_ == null) {
          -        timeshiftDurationBuilder_ =
          -            new com.google.protobuf.SingleFieldBuilderV3<
          -                com.google.protobuf.Duration,
          -                com.google.protobuf.Duration.Builder,
          -                com.google.protobuf.DurationOrBuilder>(
          -                getTimeshiftDuration(), getParentForChildren(), isClean());
          +        timeshiftDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          +            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
          +                getTimeshiftDuration(),
          +                getParentForChildren(),
          +                isClean());
                   timeshiftDuration_ = null;
                 }
                 return timeshiftDurationBuilder_;
               }
           
               private java.util.List thresholds_ =
          -        java.util.Collections.emptyList();
          -
          +      java.util.Collections.emptyList();
               private void ensureThresholdsIsMutable() {
                 if (!((bitField0_ & 0x00000004) != 0)) {
          -        thresholds_ =
          -            new java.util.ArrayList(thresholds_);
          +        thresholds_ = new java.util.ArrayList(thresholds_);
                   bitField0_ |= 0x00000004;
          -      }
          +       }
               }
           
               private com.google.protobuf.RepeatedFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.Threshold,
          -            com.google.monitoring.dashboard.v1.Threshold.Builder,
          -            com.google.monitoring.dashboard.v1.ThresholdOrBuilder>
          -        thresholdsBuilder_;
          +        com.google.monitoring.dashboard.v1.Threshold, com.google.monitoring.dashboard.v1.Threshold.Builder, com.google.monitoring.dashboard.v1.ThresholdOrBuilder> thresholdsBuilder_;
           
               /**
          -     *
          -     *
                * 
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -4931,8 +4270,6 @@ public java.util.List getThreshold } } /** - * - * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -4947,8 +4284,6 @@ public int getThresholdsCount() { } } /** - * - * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -4963,15 +4298,14 @@ public com.google.monitoring.dashboard.v1.Threshold getThresholds(int index) { } } /** - * - * *
                * Threshold lines drawn horizontally across the chart.
                * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - public Builder setThresholds(int index, com.google.monitoring.dashboard.v1.Threshold value) { + public Builder setThresholds( + int index, com.google.monitoring.dashboard.v1.Threshold value) { if (thresholdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4985,8 +4319,6 @@ public Builder setThresholds(int index, com.google.monitoring.dashboard.v1.Thres return this; } /** - * - * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -5005,8 +4337,6 @@ public Builder setThresholds( return this; } /** - * - * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -5027,15 +4357,14 @@ public Builder addThresholds(com.google.monitoring.dashboard.v1.Threshold value) return this; } /** - * - * *
                * Threshold lines drawn horizontally across the chart.
                * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - public Builder addThresholds(int index, com.google.monitoring.dashboard.v1.Threshold value) { + public Builder addThresholds( + int index, com.google.monitoring.dashboard.v1.Threshold value) { if (thresholdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5049,8 +4378,6 @@ public Builder addThresholds(int index, com.google.monitoring.dashboard.v1.Thres return this; } /** - * - * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -5069,8 +4396,6 @@ public Builder addThresholds( return this; } /** - * - * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -5089,8 +4414,6 @@ public Builder addThresholds( return this; } /** - * - * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -5101,7 +4424,8 @@ public Builder addAllThresholds( java.lang.Iterable values) { if (thresholdsBuilder_ == null) { ensureThresholdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, thresholds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, thresholds_); onChanged(); } else { thresholdsBuilder_.addAllMessages(values); @@ -5109,8 +4433,6 @@ public Builder addAllThresholds( return this; } /** - * - * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -5128,8 +4450,6 @@ public Builder clearThresholds() { return this; } /** - * - * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -5147,44 +4467,39 @@ public Builder removeThresholds(int index) { return this; } /** - * - * *
                * Threshold lines drawn horizontally across the chart.
                * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - public com.google.monitoring.dashboard.v1.Threshold.Builder getThresholdsBuilder(int index) { + public com.google.monitoring.dashboard.v1.Threshold.Builder getThresholdsBuilder( + int index) { return getThresholdsFieldBuilder().getBuilder(index); } /** - * - * *
                * Threshold lines drawn horizontally across the chart.
                * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(int index) { + public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder( + int index) { if (thresholdsBuilder_ == null) { - return thresholds_.get(index); - } else { + return thresholds_.get(index); } else { return thresholdsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                * Threshold lines drawn horizontally across the chart.
                * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - public java.util.List - getThresholdsOrBuilderList() { + public java.util.List + getThresholdsOrBuilderList() { if (thresholdsBuilder_ != null) { return thresholdsBuilder_.getMessageOrBuilderList(); } else { @@ -5192,8 +4507,6 @@ public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuil } } /** - * - * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -5201,48 +4514,42 @@ public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuil * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder() { - return getThresholdsFieldBuilder() - .addBuilder(com.google.monitoring.dashboard.v1.Threshold.getDefaultInstance()); + return getThresholdsFieldBuilder().addBuilder( + com.google.monitoring.dashboard.v1.Threshold.getDefaultInstance()); } /** - * - * *
                * Threshold lines drawn horizontally across the chart.
                * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder(int index) { - return getThresholdsFieldBuilder() - .addBuilder(index, com.google.monitoring.dashboard.v1.Threshold.getDefaultInstance()); + public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder( + int index) { + return getThresholdsFieldBuilder().addBuilder( + index, com.google.monitoring.dashboard.v1.Threshold.getDefaultInstance()); } /** - * - * *
                * Threshold lines drawn horizontally across the chart.
                * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - public java.util.List - getThresholdsBuilderList() { + public java.util.List + getThresholdsBuilderList() { return getThresholdsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Threshold, - com.google.monitoring.dashboard.v1.Threshold.Builder, - com.google.monitoring.dashboard.v1.ThresholdOrBuilder> + com.google.monitoring.dashboard.v1.Threshold, com.google.monitoring.dashboard.v1.Threshold.Builder, com.google.monitoring.dashboard.v1.ThresholdOrBuilder> getThresholdsFieldBuilder() { if (thresholdsBuilder_ == null) { - thresholdsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Threshold, - com.google.monitoring.dashboard.v1.Threshold.Builder, - com.google.monitoring.dashboard.v1.ThresholdOrBuilder>( - thresholds_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + thresholdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.Threshold, com.google.monitoring.dashboard.v1.Threshold.Builder, com.google.monitoring.dashboard.v1.ThresholdOrBuilder>( + thresholds_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); thresholds_ = null; } return thresholdsBuilder_; @@ -5250,49 +4557,36 @@ public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder private com.google.monitoring.dashboard.v1.XyChart.Axis xAxis_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, - com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, - com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> - xAxisBuilder_; + com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> xAxisBuilder_; /** - * - * *
          -     * The properties applied to the X axis.
          +     * The properties applied to the x-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; - * * @return Whether the xAxis field is set. */ public boolean hasXAxis() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
          -     * The properties applied to the X axis.
          +     * The properties applied to the x-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; - * * @return The xAxis. */ public com.google.monitoring.dashboard.v1.XyChart.Axis getXAxis() { if (xAxisBuilder_ == null) { - return xAxis_ == null - ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() - : xAxis_; + return xAxis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : xAxis_; } else { return xAxisBuilder_.getMessage(); } } /** - * - * *
          -     * The properties applied to the X axis.
          +     * The properties applied to the x-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; @@ -5311,10 +4605,8 @@ public Builder setXAxis(com.google.monitoring.dashboard.v1.XyChart.Axis value) { return this; } /** - * - * *
          -     * The properties applied to the X axis.
          +     * The properties applied to the x-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; @@ -5331,19 +4623,17 @@ public Builder setXAxis( return this; } /** - * - * *
          -     * The properties applied to the X axis.
          +     * The properties applied to the x-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; */ public Builder mergeXAxis(com.google.monitoring.dashboard.v1.XyChart.Axis value) { if (xAxisBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && xAxis_ != null - && xAxis_ != com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + xAxis_ != null && + xAxis_ != com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance()) { getXAxisBuilder().mergeFrom(value); } else { xAxis_ = value; @@ -5358,10 +4648,8 @@ public Builder mergeXAxis(com.google.monitoring.dashboard.v1.XyChart.Axis value) return this; } /** - * - * *
          -     * The properties applied to the X axis.
          +     * The properties applied to the x-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; @@ -5377,10 +4665,8 @@ public Builder clearXAxis() { return this; } /** - * - * *
          -     * The properties applied to the X axis.
          +     * The properties applied to the x-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; @@ -5391,10 +4677,8 @@ public com.google.monitoring.dashboard.v1.XyChart.Axis.Builder getXAxisBuilder() return getXAxisFieldBuilder().getBuilder(); } /** - * - * *
          -     * The properties applied to the X axis.
          +     * The properties applied to the x-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; @@ -5403,32 +4687,26 @@ public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getXAxisOrBuilde if (xAxisBuilder_ != null) { return xAxisBuilder_.getMessageOrBuilder(); } else { - return xAxis_ == null - ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() - : xAxis_; + return xAxis_ == null ? + com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : xAxis_; } } /** - * - * *
          -     * The properties applied to the X axis.
          +     * The properties applied to the x-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, - com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, - com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> + com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> getXAxisFieldBuilder() { if (xAxisBuilder_ == null) { - xAxisBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, - com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, - com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder>( - getXAxis(), getParentForChildren(), isClean()); + xAxisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder>( + getXAxis(), + getParentForChildren(), + isClean()); xAxis_ = null; } return xAxisBuilder_; @@ -5436,49 +4714,36 @@ public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getXAxisOrBuilde private com.google.monitoring.dashboard.v1.XyChart.Axis yAxis_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, - com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, - com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> - yAxisBuilder_; + com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> yAxisBuilder_; /** - * - * *
          -     * The properties applied to the Y axis.
          +     * The properties applied to the y-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; - * * @return Whether the yAxis field is set. */ public boolean hasYAxis() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
          -     * The properties applied to the Y axis.
          +     * The properties applied to the y-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; - * * @return The yAxis. */ public com.google.monitoring.dashboard.v1.XyChart.Axis getYAxis() { if (yAxisBuilder_ == null) { - return yAxis_ == null - ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() - : yAxis_; + return yAxis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : yAxis_; } else { return yAxisBuilder_.getMessage(); } } /** - * - * *
          -     * The properties applied to the Y axis.
          +     * The properties applied to the y-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; @@ -5497,10 +4762,8 @@ public Builder setYAxis(com.google.monitoring.dashboard.v1.XyChart.Axis value) { return this; } /** - * - * *
          -     * The properties applied to the Y axis.
          +     * The properties applied to the y-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; @@ -5517,19 +4780,17 @@ public Builder setYAxis( return this; } /** - * - * *
          -     * The properties applied to the Y axis.
          +     * The properties applied to the y-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; */ public Builder mergeYAxis(com.google.monitoring.dashboard.v1.XyChart.Axis value) { if (yAxisBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && yAxis_ != null - && yAxis_ != com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + yAxis_ != null && + yAxis_ != com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance()) { getYAxisBuilder().mergeFrom(value); } else { yAxis_ = value; @@ -5544,10 +4805,8 @@ public Builder mergeYAxis(com.google.monitoring.dashboard.v1.XyChart.Axis value) return this; } /** - * - * *
          -     * The properties applied to the Y axis.
          +     * The properties applied to the y-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; @@ -5563,10 +4822,8 @@ public Builder clearYAxis() { return this; } /** - * - * *
          -     * The properties applied to the Y axis.
          +     * The properties applied to the y-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; @@ -5577,10 +4834,8 @@ public com.google.monitoring.dashboard.v1.XyChart.Axis.Builder getYAxisBuilder() return getYAxisFieldBuilder().getBuilder(); } /** - * - * *
          -     * The properties applied to the Y axis.
          +     * The properties applied to the y-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; @@ -5589,32 +4844,26 @@ public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getYAxisOrBuilde if (yAxisBuilder_ != null) { return yAxisBuilder_.getMessageOrBuilder(); } else { - return yAxis_ == null - ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() - : yAxis_; + return yAxis_ == null ? + com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : yAxis_; } } /** - * - * *
          -     * The properties applied to the Y axis.
          +     * The properties applied to the y-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, - com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, - com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> + com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> getYAxisFieldBuilder() { if (yAxisBuilder_ == null) { - yAxisBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, - com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, - com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder>( - getYAxis(), getParentForChildren(), isClean()); + yAxisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder>( + getYAxis(), + getParentForChildren(), + isClean()); yAxis_ = null; } return yAxisBuilder_; @@ -5622,49 +4871,36 @@ public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getYAxisOrBuilde private com.google.monitoring.dashboard.v1.XyChart.Axis y2Axis_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, - com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, - com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> - y2AxisBuilder_; + com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> y2AxisBuilder_; /** - * - * *
          -     * The properties applied to the Y2 axis.
          +     * The properties applied to the y2-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; - * * @return Whether the y2Axis field is set. */ public boolean hasY2Axis() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
          -     * The properties applied to the Y2 axis.
          +     * The properties applied to the y2-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; - * * @return The y2Axis. */ public com.google.monitoring.dashboard.v1.XyChart.Axis getY2Axis() { if (y2AxisBuilder_ == null) { - return y2Axis_ == null - ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() - : y2Axis_; + return y2Axis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : y2Axis_; } else { return y2AxisBuilder_.getMessage(); } } /** - * - * *
          -     * The properties applied to the Y2 axis.
          +     * The properties applied to the y2-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; @@ -5683,10 +4919,8 @@ public Builder setY2Axis(com.google.monitoring.dashboard.v1.XyChart.Axis value) return this; } /** - * - * *
          -     * The properties applied to the Y2 axis.
          +     * The properties applied to the y2-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; @@ -5703,19 +4937,17 @@ public Builder setY2Axis( return this; } /** - * - * *
          -     * The properties applied to the Y2 axis.
          +     * The properties applied to the y2-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; */ public Builder mergeY2Axis(com.google.monitoring.dashboard.v1.XyChart.Axis value) { if (y2AxisBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && y2Axis_ != null - && y2Axis_ != com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + y2Axis_ != null && + y2Axis_ != com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance()) { getY2AxisBuilder().mergeFrom(value); } else { y2Axis_ = value; @@ -5730,10 +4962,8 @@ public Builder mergeY2Axis(com.google.monitoring.dashboard.v1.XyChart.Axis value return this; } /** - * - * *
          -     * The properties applied to the Y2 axis.
          +     * The properties applied to the y2-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; @@ -5749,10 +4979,8 @@ public Builder clearY2Axis() { return this; } /** - * - * *
          -     * The properties applied to the Y2 axis.
          +     * The properties applied to the y2-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; @@ -5763,10 +4991,8 @@ public com.google.monitoring.dashboard.v1.XyChart.Axis.Builder getY2AxisBuilder( return getY2AxisFieldBuilder().getBuilder(); } /** - * - * *
          -     * The properties applied to the Y2 axis.
          +     * The properties applied to the y2-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; @@ -5775,32 +5001,26 @@ public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getY2AxisOrBuild if (y2AxisBuilder_ != null) { return y2AxisBuilder_.getMessageOrBuilder(); } else { - return y2Axis_ == null - ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() - : y2Axis_; + return y2Axis_ == null ? + com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : y2Axis_; } } /** - * - * *
          -     * The properties applied to the Y2 axis.
          +     * The properties applied to the y2-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, - com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, - com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> + com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> getY2AxisFieldBuilder() { if (y2AxisBuilder_ == null) { - y2AxisBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, - com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, - com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder>( - getY2Axis(), getParentForChildren(), isClean()); + y2AxisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder>( + getY2Axis(), + getParentForChildren(), + isClean()); y2Axis_ = null; } return y2AxisBuilder_; @@ -5808,47 +5028,34 @@ public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getY2AxisOrBuild private com.google.monitoring.dashboard.v1.ChartOptions chartOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.ChartOptions, - com.google.monitoring.dashboard.v1.ChartOptions.Builder, - com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder> - chartOptionsBuilder_; + com.google.monitoring.dashboard.v1.ChartOptions, com.google.monitoring.dashboard.v1.ChartOptions.Builder, com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder> chartOptionsBuilder_; /** - * - * *
                * Display options for the chart.
                * 
          * * .google.monitoring.dashboard.v1.ChartOptions chart_options = 8; - * * @return Whether the chartOptions field is set. */ public boolean hasChartOptions() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
                * Display options for the chart.
                * 
          * * .google.monitoring.dashboard.v1.ChartOptions chart_options = 8; - * * @return The chartOptions. */ public com.google.monitoring.dashboard.v1.ChartOptions getChartOptions() { if (chartOptionsBuilder_ == null) { - return chartOptions_ == null - ? com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance() - : chartOptions_; + return chartOptions_ == null ? com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance() : chartOptions_; } else { return chartOptionsBuilder_.getMessage(); } } /** - * - * *
                * Display options for the chart.
                * 
          @@ -5869,8 +5076,6 @@ public Builder setChartOptions(com.google.monitoring.dashboard.v1.ChartOptions v return this; } /** - * - * *
                * Display options for the chart.
                * 
          @@ -5889,8 +5094,6 @@ public Builder setChartOptions( return this; } /** - * - * *
                * Display options for the chart.
                * 
          @@ -5899,10 +5102,9 @@ public Builder setChartOptions( */ public Builder mergeChartOptions(com.google.monitoring.dashboard.v1.ChartOptions value) { if (chartOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && chartOptions_ != null - && chartOptions_ - != com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + chartOptions_ != null && + chartOptions_ != com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance()) { getChartOptionsBuilder().mergeFrom(value); } else { chartOptions_ = value; @@ -5917,8 +5119,6 @@ public Builder mergeChartOptions(com.google.monitoring.dashboard.v1.ChartOptions return this; } /** - * - * *
                * Display options for the chart.
                * 
          @@ -5936,8 +5136,6 @@ public Builder clearChartOptions() { return this; } /** - * - * *
                * Display options for the chart.
                * 
          @@ -5950,8 +5148,6 @@ public com.google.monitoring.dashboard.v1.ChartOptions.Builder getChartOptionsBu return getChartOptionsFieldBuilder().getBuilder(); } /** - * - * *
                * Display options for the chart.
                * 
          @@ -5962,14 +5158,11 @@ public com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder getChartOptionsO if (chartOptionsBuilder_ != null) { return chartOptionsBuilder_.getMessageOrBuilder(); } else { - return chartOptions_ == null - ? com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance() - : chartOptions_; + return chartOptions_ == null ? + com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance() : chartOptions_; } } /** - * - * *
                * Display options for the chart.
                * 
          @@ -5977,24 +5170,21 @@ public com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder getChartOptionsO * .google.monitoring.dashboard.v1.ChartOptions chart_options = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.ChartOptions, - com.google.monitoring.dashboard.v1.ChartOptions.Builder, - com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder> + com.google.monitoring.dashboard.v1.ChartOptions, com.google.monitoring.dashboard.v1.ChartOptions.Builder, com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder> getChartOptionsFieldBuilder() { if (chartOptionsBuilder_ == null) { - chartOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.ChartOptions, - com.google.monitoring.dashboard.v1.ChartOptions.Builder, - com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder>( - getChartOptions(), getParentForChildren(), isClean()); + chartOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.ChartOptions, com.google.monitoring.dashboard.v1.ChartOptions.Builder, com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder>( + getChartOptions(), + getParentForChildren(), + isClean()); chartOptions_ = null; } return chartOptionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6004,12 +5194,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.XyChart) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.XyChart) private static final com.google.monitoring.dashboard.v1.XyChart DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.XyChart(); } @@ -6018,27 +5208,27 @@ public static com.google.monitoring.dashboard.v1.XyChart getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public XyChart 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(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public XyChart 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; @@ -6053,4 +5243,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.XyChart getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java similarity index 73% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java index 4d249f295423..29bec8874c84 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java @@ -1,94 +1,58 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/xychart.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface XyChartOrBuilder - extends +public interface XyChartOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.XyChart) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * Required. The data displayed in this chart.
              * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getDataSetsList(); + java.util.List + getDataSetsList(); /** - * - * *
              * Required. The data displayed in this chart.
              * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.dashboard.v1.XyChart.DataSet getDataSets(int index); /** - * - * *
              * Required. The data displayed in this chart.
              * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ int getDataSetsCount(); /** - * - * *
              * Required. The data displayed in this chart.
              * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getDataSetsOrBuilderList(); /** - * - * *
              * Required. The data displayed in this chart.
              * 
          * - * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOrBuilder(int index); + com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOrBuilder( + int index); /** - * - * *
              * The duration used to display a comparison chart. A comparison chart
              * simultaneously shows values from two similar-length time periods
          @@ -98,13 +62,10 @@ public interface XyChartOrBuilder
              * 
          * * .google.protobuf.Duration timeshift_duration = 4; - * * @return Whether the timeshiftDuration field is set. */ boolean hasTimeshiftDuration(); /** - * - * *
              * The duration used to display a comparison chart. A comparison chart
              * simultaneously shows values from two similar-length time periods
          @@ -114,13 +75,10 @@ public interface XyChartOrBuilder
              * 
          * * .google.protobuf.Duration timeshift_duration = 4; - * * @return The timeshiftDuration. */ com.google.protobuf.Duration getTimeshiftDuration(); /** - * - * *
              * The duration used to display a comparison chart. A comparison chart
              * simultaneously shows values from two similar-length time periods
          @@ -134,18 +92,15 @@ public interface XyChartOrBuilder
             com.google.protobuf.DurationOrBuilder getTimeshiftDurationOrBuilder();
           
             /**
          -   *
          -   *
              * 
              * Threshold lines drawn horizontally across the chart.
              * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - java.util.List getThresholdsList(); + java.util.List + getThresholdsList(); /** - * - * *
              * Threshold lines drawn horizontally across the chart.
              * 
          @@ -154,8 +109,6 @@ public interface XyChartOrBuilder */ com.google.monitoring.dashboard.v1.Threshold getThresholds(int index); /** - * - * *
              * Threshold lines drawn horizontally across the chart.
              * 
          @@ -164,56 +117,45 @@ public interface XyChartOrBuilder */ int getThresholdsCount(); /** - * - * *
              * Threshold lines drawn horizontally across the chart.
              * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - java.util.List + java.util.List getThresholdsOrBuilderList(); /** - * - * *
              * Threshold lines drawn horizontally across the chart.
              * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(int index); + com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder( + int index); /** - * - * *
          -   * The properties applied to the X axis.
          +   * The properties applied to the x-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; - * * @return Whether the xAxis field is set. */ boolean hasXAxis(); /** - * - * *
          -   * The properties applied to the X axis.
          +   * The properties applied to the x-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; - * * @return The xAxis. */ com.google.monitoring.dashboard.v1.XyChart.Axis getXAxis(); /** - * - * *
          -   * The properties applied to the X axis.
          +   * The properties applied to the x-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; @@ -221,34 +163,26 @@ public interface XyChartOrBuilder com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getXAxisOrBuilder(); /** - * - * *
          -   * The properties applied to the Y axis.
          +   * The properties applied to the y-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; - * * @return Whether the yAxis field is set. */ boolean hasYAxis(); /** - * - * *
          -   * The properties applied to the Y axis.
          +   * The properties applied to the y-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; - * * @return The yAxis. */ com.google.monitoring.dashboard.v1.XyChart.Axis getYAxis(); /** - * - * *
          -   * The properties applied to the Y axis.
          +   * The properties applied to the y-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; @@ -256,34 +190,26 @@ public interface XyChartOrBuilder com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getYAxisOrBuilder(); /** - * - * *
          -   * The properties applied to the Y2 axis.
          +   * The properties applied to the y2-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; - * * @return Whether the y2Axis field is set. */ boolean hasY2Axis(); /** - * - * *
          -   * The properties applied to the Y2 axis.
          +   * The properties applied to the y2-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; - * * @return The y2Axis. */ com.google.monitoring.dashboard.v1.XyChart.Axis getY2Axis(); /** - * - * *
          -   * The properties applied to the Y2 axis.
          +   * The properties applied to the y2-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; @@ -291,32 +217,24 @@ public interface XyChartOrBuilder com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getY2AxisOrBuilder(); /** - * - * *
              * Display options for the chart.
              * 
          * * .google.monitoring.dashboard.v1.ChartOptions chart_options = 8; - * * @return Whether the chartOptions field is set. */ boolean hasChartOptions(); /** - * - * *
              * Display options for the chart.
              * 
          * * .google.monitoring.dashboard.v1.ChartOptions chart_options = 8; - * * @return The chartOptions. */ com.google.monitoring.dashboard.v1.ChartOptions getChartOptions(); /** - * - * *
              * Display options for the chart.
              * 
          diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java new file mode 100644 index 000000000000..5122c86b8624 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java @@ -0,0 +1,133 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/xychart.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class XyChartProto { + private XyChartProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_XyChart_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_XyChart_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_XyChart_Axis_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_ChartOptions_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/monitoring/dashboard/v1/xychart" + + ".proto\022\036google.monitoring.dashboard.v1\032\037" + + "google/api/field_behavior.proto\032,google/" + + "monitoring/dashboard/v1/metrics.proto\032\036g" + + "oogle/protobuf/duration.proto\"\315\010\n\007XyChar" + + "t\022G\n\tdata_sets\030\001 \003(\0132/.google.monitoring" + + ".dashboard.v1.XyChart.DataSetB\003\340A\002\0225\n\022ti" + + "meshift_duration\030\004 \001(\0132\031.google.protobuf" + + ".Duration\022=\n\nthresholds\030\005 \003(\0132).google.m" + + "onitoring.dashboard.v1.Threshold\022<\n\006x_ax" + + "is\030\006 \001(\0132,.google.monitoring.dashboard.v" + + "1.XyChart.Axis\022<\n\006y_axis\030\007 \001(\0132,.google." + + "monitoring.dashboard.v1.XyChart.Axis\022=\n\007" + + "y2_axis\030\t \001(\0132,.google.monitoring.dashbo" + + "ard.v1.XyChart.Axis\022C\n\rchart_options\030\010 \001" + + "(\0132,.google.monitoring.dashboard.v1.Char" + + "tOptions\032\360\003\n\007DataSet\022O\n\021time_series_quer" + + "y\030\001 \001(\0132/.google.monitoring.dashboard.v1" + + ".TimeSeriesQueryB\003\340A\002\022K\n\tplot_type\030\002 \001(\016" + + "28.google.monitoring.dashboard.v1.XyChar" + + "t.DataSet.PlotType\022\027\n\017legend_template\030\003 " + + "\001(\t\022<\n\024min_alignment_period\030\004 \001(\0132\031.goog" + + "le.protobuf.DurationB\003\340A\001\022T\n\013target_axis" + + "\030\005 \001(\0162:.google.monitoring.dashboard.v1." + + "XyChart.DataSet.TargetAxisB\003\340A\001\"_\n\010PlotT" + + "ype\022\031\n\025PLOT_TYPE_UNSPECIFIED\020\000\022\010\n\004LINE\020\001" + + "\022\020\n\014STACKED_AREA\020\002\022\017\n\013STACKED_BAR\020\003\022\013\n\007H" + + "EATMAP\020\004\"9\n\nTargetAxis\022\033\n\027TARGET_AXIS_UN" + + "SPECIFIED\020\000\022\006\n\002Y1\020\001\022\006\n\002Y2\020\002\032\217\001\n\004Axis\022\r\n\005" + + "label\030\001 \001(\t\022A\n\005scale\030\002 \001(\01622.google.moni" + + "toring.dashboard.v1.XyChart.Axis.Scale\"5" + + "\n\005Scale\022\025\n\021SCALE_UNSPECIFIED\020\000\022\n\n\006LINEAR" + + "\020\001\022\t\n\005LOG10\020\002\"\216\001\n\014ChartOptions\022?\n\004mode\030\001" + + " \001(\01621.google.monitoring.dashboard.v1.Ch" + + "artOptions.Mode\"=\n\004Mode\022\024\n\020MODE_UNSPECIF" + + "IED\020\000\022\t\n\005COLOR\020\001\022\t\n\005X_RAY\020\002\022\t\n\005STATS\020\003B\365" + + "\001\n\"com.google.monitoring.dashboard.v1B\014X" + + "yChartProtoP\001ZFcloud.google.com/go/monit" + + "oring/dashboard/apiv1/dashboardpb;dashbo" + + "ardpb\252\002$Google.Cloud.Monitoring.Dashboar" + + "d.V1\312\002$Google\\Cloud\\Monitoring\\Dashboard" + + "\\V1\352\002(Google::Cloud::Monitoring::Dashboa" + + "rd::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_XyChart_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_XyChart_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_XyChart_descriptor, + new java.lang.String[] { "DataSets", "TimeshiftDuration", "Thresholds", "XAxis", "YAxis", "Y2Axis", "ChartOptions", }); + internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor = + internal_static_google_monitoring_dashboard_v1_XyChart_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor, + new java.lang.String[] { "TimeSeriesQuery", "PlotType", "LegendTemplate", "MinAlignmentPeriod", "TargetAxis", }); + internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor = + internal_static_google_monitoring_dashboard_v1_XyChart_descriptor.getNestedTypes().get(1); + internal_static_google_monitoring_dashboard_v1_XyChart_Axis_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor, + new java.lang.String[] { "Label", "Scale", }); + internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_dashboard_v1_ChartOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor, + new java.lang.String[] { "Mode", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto similarity index 98% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto index e0bae9bcd8f2..d6ec736b70d1 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/collapsible_group.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/collapsible_group.proto similarity index 97% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/collapsible_group.proto rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/collapsible_group.proto index 2ef705d59212..386a68e93f59 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/collapsible_group.proto +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/collapsible_group.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/common.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/common.proto similarity index 99% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/common.proto rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/common.proto index 1cb2b3089ece..981eb0a04dad 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/common.proto +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ syntax = "proto3"; package google.monitoring.dashboard.v1; import "google/protobuf/duration.proto"; +import "google/type/interval.proto"; option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1"; option go_package = "cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb"; @@ -425,6 +426,9 @@ message PickTimeSeriesFilter { // How to use the ranking to select time series that pass through the filter. Direction direction = 3; + + // Select the top N streams/time series within this time interval + google.type.Interval interval = 4; } // A filter that ranks streams based on their statistical relation to other diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard.proto similarity index 95% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard.proto rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard.proto index 0f8410938235..d2a2889c3af3 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard.proto +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,8 +37,8 @@ message Dashboard { pattern: "projects/{project}/dashboards/{dashboard}" }; - // Immutable. The resource name of the dashboard. - string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + // Identifier. The resource name of the dashboard. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. The mutable, human-readable name. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard_filter.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard_filter.proto similarity index 98% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard_filter.proto rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard_filter.proto index c234c3a97158..793228a859f8 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard_filter.proto +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard_filter.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto similarity index 90% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto index 9679c569fd50..0e118f4984ea 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -52,6 +52,7 @@ service DashboardsService { post: "/v1/{parent=projects/*}/dashboards" body: "dashboard" }; + option (google.api.method_signature) = "parent,dashboard"; } // Lists the existing dashboards. @@ -63,6 +64,7 @@ service DashboardsService { option (google.api.http) = { get: "/v1/{parent=projects/*}/dashboards" }; + option (google.api.method_signature) = "parent"; } // Fetches a specific dashboard. @@ -74,6 +76,7 @@ service DashboardsService { option (google.api.http) = { get: "/v1/{name=projects/*/dashboards/*}" }; + option (google.api.method_signature) = "name"; } // Deletes an existing custom dashboard. @@ -85,6 +88,7 @@ service DashboardsService { option (google.api.http) = { delete: "/v1/{name=projects/*/dashboards/*}" }; + option (google.api.method_signature) = "name"; } // Replaces an existing custom dashboard with a new definition. @@ -107,7 +111,12 @@ message CreateDashboardRequest { // projects/[PROJECT_ID_OR_NUMBER] // // The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name. - string parent = 1 [(google.api.field_behavior) = REQUIRED]; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; // Required. The initial dashboard specification. Dashboard dashboard = 2 [(google.api.field_behavior) = REQUIRED]; @@ -133,10 +142,11 @@ message ListDashboardsRequest { // If unspecified, a default of 1000 is used. int32 page_size = 2; - // If this field is not empty then it must contain the `nextPageToken` value - // returned by a previous call to this method. Using this field causes the - // method to return additional results from the previous method call. - string page_token = 3; + // Optional. If this field is not empty then it must contain the + // `nextPageToken` value returned by a previous call to this method. Using + // this field causes the method to return additional results from the previous + // method call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // The `ListDashboards` request. diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/drilldowns.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/drilldowns.proto similarity index 97% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/drilldowns.proto rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/drilldowns.proto index 806ab822f407..ef405de90f82 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/drilldowns.proto +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/drilldowns.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/error_reporting_panel.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/error_reporting_panel.proto new file mode 100644 index 000000000000..5a4d79b39068 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/error_reporting_panel.proto @@ -0,0 +1,50 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.monitoring.dashboard.v1; + +option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1"; +option go_package = "cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb"; +option java_multiple_files = true; +option java_outer_classname = "ErrorReportingPanelProto"; +option java_package = "com.google.monitoring.dashboard.v1"; +option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1"; + +// A widget that displays a list of error groups. +message ErrorReportingPanel { + // The resource name of the Google Cloud Platform project. Written + // as `projects/{projectID}` or `projects/{projectNumber}`, where + // `{projectID}` and `{projectNumber}` can be found in the + // [Google Cloud console](https://support.google.com/cloud/answer/6158840). + // + // Examples: `projects/my-project-123`, `projects/5551234`. + repeated string project_names = 1; + + // An identifier of the service, such as the name of the + // executable, job, or Google App Engine service name. This field is expected + // to have a low number of values that are relatively stable over time, as + // opposed to `version`, which can be changed whenever new code is deployed. + // + // Contains the service name for error reports extracted from Google + // App Engine logs or `default` if the App Engine default service is used. + repeated string services = 2; + + // Represents the source code version that the developer provided, + // which could represent a version label or a Git SHA-1 hash, for example. + // For App Engine standard environment, the version is set to the version of + // the app. + repeated string versions = 3; +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/incident_list.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/incident_list.proto new file mode 100644 index 000000000000..1915e93a79b0 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/incident_list.proto @@ -0,0 +1,43 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.monitoring.dashboard.v1; + +import "google/api/field_behavior.proto"; +import "google/api/monitored_resource.proto"; + +option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1"; +option go_package = "cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb"; +option java_multiple_files = true; +option java_outer_classname = "IncidentListProto"; +option java_package = "com.google.monitoring.dashboard.v1"; +option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1"; +option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1"; + +// A widget that displays a list of incidents +message IncidentList { + // Optional. The monitored resource for which incidents are listed. + // The resource doesn't need to be fully specified. That is, you can specify + // the resource type but not the values of the resource labels. + // The resource type and labels are used for filtering. + repeated google.api.MonitoredResource monitored_resources = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of alert policy names to filter the incident list by. + // Don't include the project ID prefix in the policy name. For + // example, use `alertPolicies/utilization`. + repeated string policy_names = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/layouts.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/layouts.proto similarity index 99% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/layouts.proto rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/layouts.proto index 11373088058c..3be46ae25996 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/layouts.proto +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/layouts.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/logs_panel.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/logs_panel.proto similarity index 98% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/logs_panel.proto rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/logs_panel.proto index f7a66c57c933..2044451f67e8 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/logs_panel.proto +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/logs_panel.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto similarity index 93% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto index 6f73f67480e7..df2421ac58d0 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -51,6 +51,15 @@ message TimeSeriesQuery { // [`unit`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors) // field in `MetricDescriptor`. string unit_override = 5; + + // Optional. If set, Cloud Monitoring will treat the full query duration as + // the alignment period so that there will be only 1 output value. + // + // *Note: This could override the configured alignment period except for + // the cases where a series of data points are expected, like + // - XyChart + // - Scorecard's spark chart + bool output_full_duration = 7 [(google.api.field_behavior) = OPTIONAL]; } // A filter that defines a subset of time series data that is displayed in a diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/piechart.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/piechart.proto new file mode 100644 index 000000000000..c59c83af5aaa --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/piechart.proto @@ -0,0 +1,78 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.monitoring.dashboard.v1; + +import "google/api/field_behavior.proto"; +import "google/monitoring/dashboard/v1/metrics.proto"; +import "google/protobuf/duration.proto"; + +option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1"; +option go_package = "cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb"; +option java_multiple_files = true; +option java_outer_classname = "PieChartProto"; +option java_package = "com.google.monitoring.dashboard.v1"; +option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1"; +option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1"; + +// A widget that displays timeseries data as a pie or a donut. +message PieChart { + // Groups a time series query definition. + message PieChartDataSet { + // Required. The query for the PieChart. See, + // `google.monitoring.dashboard.v1.TimeSeriesQuery`. + TimeSeriesQuery time_series_query = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A template for the name of the slice. This name will be + // displayed in the legend and the tooltip of the pie chart. It replaces the + // auto-generated names for the slices. For example, if the template is set + // to + // `${resource.labels.zone}`, the zone's value will be used for the name + // instead of the default name. + string slice_name_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 make sense to fetch and align data at one minute intervals. + google.protobuf.Duration min_alignment_period = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Types for the pie chart. + enum PieChartType { + // The zero value. No type specified. Do not use. + PIE_CHART_TYPE_UNSPECIFIED = 0; + + // A Pie type PieChart. + PIE = 1; + + // Similar to PIE, but the DONUT type PieChart has a hole in the middle. + DONUT = 2; + } + + // Required. The queries for the chart's data. + repeated PieChartDataSet data_sets = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Indicates the visualization type for the PieChart. + PieChartType chart_type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Indicates whether or not the pie chart should show slices' labels + bool show_labels = 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/scorecard.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/scorecard.proto similarity index 95% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/scorecard.proto rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/scorecard.proto index 80c28e6e4fd2..23fcd6a50211 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/scorecard.proto +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/scorecard.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ package google.monitoring.dashboard.v1; import "google/api/field_behavior.proto"; import "google/monitoring/dashboard/v1/metrics.proto"; import "google/protobuf/duration.proto"; +import "google/protobuf/empty.proto"; option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1"; option go_package = "cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb"; @@ -74,6 +75,10 @@ message Scorecard { // Will cause the scorecard to show a spark chart. SparkChartView spark_chart_view = 5; + + // Will cause the `Scorecard` to show only the value, with no indicator to + // its value relative to its thresholds. + google.protobuf.Empty blank_view = 7; } // The thresholds used to determine the state of the scorecard given the diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/text.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/section_header.proto similarity index 65% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/text.proto rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/section_header.proto index 7c3c17679ac8..1bec020c866a 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/text.proto +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/section_header.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,28 +19,17 @@ package google.monitoring.dashboard.v1; option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1"; option go_package = "cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb"; option java_multiple_files = true; -option java_outer_classname = "TextProto"; +option java_outer_classname = "SectionHeaderProto"; option java_package = "com.google.monitoring.dashboard.v1"; option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1"; option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1"; -// A widget that displays textual content. -message Text { - // The format type of the text content. - enum Format { - // Format is unspecified. Defaults to MARKDOWN. - FORMAT_UNSPECIFIED = 0; +// A widget that defines a new section header. Sections populate a table of +// contents and allow easier navigation of long-form content. +message SectionHeader { + // The subtitle of the section + string subtitle = 1; - // The text contains Markdown formatting. - MARKDOWN = 1; - - // The text contains no special formatting. - RAW = 2; - } - - // The text content to be displayed. - string content = 1; - - // How the text content is formatted. - Format format = 2; + // Whether to insert a divider below the section in the table of contents + bool divider_below = 2; } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/service.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/service.proto similarity index 97% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/service.proto rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/service.proto index b531fea0a092..c75f3d37072c 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/service.proto +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/service.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/single_view_group.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/single_view_group.proto new file mode 100644 index 000000000000..e6393925e6e4 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/single_view_group.proto @@ -0,0 +1,30 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.monitoring.dashboard.v1; + +option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1"; +option go_package = "cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb"; +option java_multiple_files = true; +option java_outer_classname = "SingleViewGroupProto"; +option java_package = "com.google.monitoring.dashboard.v1"; +option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1"; +option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1"; + +// A widget that groups the other widgets by using a dropdown menu. All widgets +// that are within the area spanned by the grouping widget are considered +// member widgets. +message SingleViewGroup {} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto similarity index 99% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto index 081217b83a7d..810a5c837ea4 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto similarity index 97% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto index 38e1dea57f6a..5cc9369a586c 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/text.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/text.proto new file mode 100644 index 000000000000..f38828da080c --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/text.proto @@ -0,0 +1,189 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.monitoring.dashboard.v1; + +option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1"; +option go_package = "cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb"; +option java_multiple_files = true; +option java_outer_classname = "TextProto"; +option java_package = "com.google.monitoring.dashboard.v1"; +option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1"; +option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1"; + +// A widget that displays textual content. +message Text { + // The format type of the text content. + enum Format { + // Format is unspecified. Defaults to MARKDOWN. + FORMAT_UNSPECIFIED = 0; + + // The text contains Markdown formatting. + MARKDOWN = 1; + + // The text contains no special formatting. + RAW = 2; + } + + // Properties that determine how the title and content are styled + message TextStyle { + // The horizontal alignment of both the title and content on a text widget + enum HorizontalAlignment { + // No horizontal alignment specified, will default to H_LEFT + HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0; + + // Left-align + H_LEFT = 1; + + // Center-align + H_CENTER = 2; + + // Right-align + H_RIGHT = 3; + } + + // The vertical alignment of both the title and content on a text widget + enum VerticalAlignment { + // No vertical alignment specified, will default to V_TOP + VERTICAL_ALIGNMENT_UNSPECIFIED = 0; + + // Top-align + V_TOP = 1; + + // Center-align + V_CENTER = 2; + + // Bottom-align + V_BOTTOM = 3; + } + + // Specifies padding size around a text widget + enum PaddingSize { + // No padding size specified, will default to P_EXTRA_SMALL + PADDING_SIZE_UNSPECIFIED = 0; + + // Extra small padding + P_EXTRA_SMALL = 1; + + // Small padding + P_SMALL = 2; + + // Medium padding + P_MEDIUM = 3; + + // Large padding + P_LARGE = 4; + + // Extra large padding + P_EXTRA_LARGE = 5; + } + + // Specifies a font size for the title and content of a text widget + enum FontSize { + // No font size specified, will default to FS_LARGE + FONT_SIZE_UNSPECIFIED = 0; + + // Extra small font size + FS_EXTRA_SMALL = 1; + + // Small font size + FS_SMALL = 2; + + // Medium font size + FS_MEDIUM = 3; + + // Large font size + FS_LARGE = 4; + + // Extra large font size + FS_EXTRA_LARGE = 5; + } + + // Specifies where a visual pointer is placed on a text widget (also + // sometimes called a "tail") + enum PointerLocation { + // No visual pointer + POINTER_LOCATION_UNSPECIFIED = 0; + + // Placed in the middle of the top of the widget + PL_TOP = 1; + + // Placed in the middle of the right side of the widget + PL_RIGHT = 2; + + // Placed in the middle of the bottom of the widget + PL_BOTTOM = 3; + + // Placed in the middle of the left side of the widget + PL_LEFT = 4; + + // Placed on the left side of the top of the widget + PL_TOP_LEFT = 5; + + // Placed on the right side of the top of the widget + PL_TOP_RIGHT = 6; + + // Placed on the top of the right side of the widget + PL_RIGHT_TOP = 7; + + // Placed on the bottom of the right side of the widget + PL_RIGHT_BOTTOM = 8; + + // Placed on the right side of the bottom of the widget + PL_BOTTOM_RIGHT = 9; + + // Placed on the left side of the bottom of the widget + PL_BOTTOM_LEFT = 10; + + // Placed on the bottom of the left side of the widget + PL_LEFT_BOTTOM = 11; + + // Placed on the top of the left side of the widget + PL_LEFT_TOP = 12; + } + + // The background color as a hex string. "#RRGGBB" or "#RGB" + string background_color = 1; + + // The text color as a hex string. "#RRGGBB" or "#RGB" + string text_color = 2; + + // The horizontal alignment of both the title and content + HorizontalAlignment horizontal_alignment = 3; + + // The vertical alignment of both the title and content + VerticalAlignment vertical_alignment = 4; + + // The amount of padding around the widget + PaddingSize padding = 5; + + // Font sizes for both the title and content. The title will still be larger + // relative to the content. + FontSize font_size = 6; + + // The pointer location for this widget (also sometimes called a "tail") + PointerLocation pointer_location = 7; + } + + // The text content to be displayed. + string content = 1; + + // How the text content is formatted. + Format format = 2; + + // How the text is styled + TextStyle style = 3; +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/widget.proto b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/widget.proto similarity index 71% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/widget.proto rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/widget.proto index cb77c7ae4a95..465f79fbe181 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/widget.proto +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/widget.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,8 +19,13 @@ package google.monitoring.dashboard.v1; import "google/api/field_behavior.proto"; import "google/monitoring/dashboard/v1/alertchart.proto"; import "google/monitoring/dashboard/v1/collapsible_group.proto"; +import "google/monitoring/dashboard/v1/error_reporting_panel.proto"; +import "google/monitoring/dashboard/v1/incident_list.proto"; import "google/monitoring/dashboard/v1/logs_panel.proto"; +import "google/monitoring/dashboard/v1/piechart.proto"; import "google/monitoring/dashboard/v1/scorecard.proto"; +import "google/monitoring/dashboard/v1/section_header.proto"; +import "google/monitoring/dashboard/v1/single_view_group.proto"; import "google/monitoring/dashboard/v1/table.proto"; import "google/monitoring/dashboard/v1/text.proto"; import "google/monitoring/dashboard/v1/xychart.proto"; @@ -66,5 +71,25 @@ message Widget { // A widget that shows a stream of logs. LogsPanel logs_panel = 10; + + // A widget that shows list of incidents. + IncidentList incident_list = 12; + + // A widget that displays timeseries data as a pie chart. + PieChart pie_chart = 14; + + // A widget that displays a list of error groups. + ErrorReportingPanel error_reporting_panel = 19; + + // A widget that defines a section header for easier navigation of the + // dashboard. + SectionHeader section_header = 21; + + // A widget that groups the other widgets by using a dropdown menu. + SingleViewGroup single_view_group = 22; } + + // Optional. The widget id. Ids may be made up of alphanumerics, dashes and + // underscores. Widget ids are optional. + string id = 17 [(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/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/xychart.proto similarity index 95% rename from java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/xychart.proto rename to owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/xychart.proto index ae7ddc305995..281fb7cf0c95 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/xychart.proto +++ b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/xychart.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -42,13 +42,13 @@ message XyChart { // The data is plotted as a set of filled areas (one area per series), // with the areas stacked vertically (the base of each area is the top of - // its predecessor, and the base of the first area is the X axis). Since + // its predecessor, and the base of the first area is the x-axis). Since // the areas do not overlap, each is filled with a different opaque color. STACKED_AREA = 2; // The data is plotted as a set of rectangular boxes (one box per series), // with the boxes stacked vertically (the base of each box is the top of - // its predecessor, and the base of the first box is the X axis). Since + // its predecessor, and the base of the first box is the x-axis). Since // the boxes do not overlap, each is filled with a different opaque color. STACKED_BAR = 3; @@ -130,13 +130,13 @@ message XyChart { // Threshold lines drawn horizontally across the chart. repeated Threshold thresholds = 5; - // The properties applied to the X axis. + // The properties applied to the x-axis. Axis x_axis = 6; - // The properties applied to the Y axis. + // The properties applied to the y-axis. Axis y_axis = 7; - // The properties applied to the Y2 axis. + // The properties applied to the y2-axis. Axis y2_axis = 9; // Display options for the chart. diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetEndpoint.java diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/AsyncCreateDashboard.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/AsyncCreateDashboard.java similarity index 94% rename from java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/AsyncCreateDashboard.java rename to owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/AsyncCreateDashboard.java index 8839a825c1f6..4617753ffa0a 100644 --- a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/AsyncCreateDashboard.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/AsyncCreateDashboard.java @@ -21,6 +21,7 @@ import com.google.cloud.monitoring.dashboard.v1.DashboardsServiceClient; import com.google.monitoring.dashboard.v1.CreateDashboardRequest; import com.google.monitoring.dashboard.v1.Dashboard; +import com.google.monitoring.dashboard.v1.ProjectName; public class AsyncCreateDashboard { @@ -37,7 +38,7 @@ public static void asyncCreateDashboard() throws Exception { try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) { CreateDashboardRequest request = CreateDashboardRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setDashboard(Dashboard.newBuilder().build()) .setValidateOnly(true) .build(); diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboard.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboard.java similarity index 94% rename from java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboard.java rename to owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboard.java index e09b7bbb26ca..456dc7519503 100644 --- a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboard.java +++ b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboard.java @@ -20,6 +20,7 @@ import com.google.cloud.monitoring.dashboard.v1.DashboardsServiceClient; import com.google.monitoring.dashboard.v1.CreateDashboardRequest; import com.google.monitoring.dashboard.v1.Dashboard; +import com.google.monitoring.dashboard.v1.ProjectName; public class SyncCreateDashboard { @@ -36,7 +37,7 @@ public static void syncCreateDashboard() throws Exception { try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) { CreateDashboardRequest request = CreateDashboardRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setDashboard(Dashboard.newBuilder().build()) .setValidateOnly(true) .build(); diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardProjectnameDashboard.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardProjectnameDashboard.java new file mode 100644 index 000000000000..a380b26ac5dc --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardProjectnameDashboard.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.monitoring.dashboard.v1.samples; + +// [START monitoring_v1_generated_DashboardsService_CreateDashboard_ProjectnameDashboard_sync] +import com.google.cloud.monitoring.dashboard.v1.DashboardsServiceClient; +import com.google.monitoring.dashboard.v1.Dashboard; +import com.google.monitoring.dashboard.v1.ProjectName; + +public class SyncCreateDashboardProjectnameDashboard { + + public static void main(String[] args) throws Exception { + syncCreateDashboardProjectnameDashboard(); + } + + public static void syncCreateDashboardProjectnameDashboard() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + Dashboard dashboard = Dashboard.newBuilder().build(); + Dashboard response = dashboardsServiceClient.createDashboard(parent, dashboard); + } + } +} +// [END monitoring_v1_generated_DashboardsService_CreateDashboard_ProjectnameDashboard_sync] diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardStringDashboard.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardStringDashboard.java new file mode 100644 index 000000000000..5fdb966c8459 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardStringDashboard.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.monitoring.dashboard.v1.samples; + +// [START monitoring_v1_generated_DashboardsService_CreateDashboard_StringDashboard_sync] +import com.google.cloud.monitoring.dashboard.v1.DashboardsServiceClient; +import com.google.monitoring.dashboard.v1.Dashboard; +import com.google.monitoring.dashboard.v1.ProjectName; + +public class SyncCreateDashboardStringDashboard { + + public static void main(String[] args) throws Exception { + syncCreateDashboardStringDashboard(); + } + + public static void syncCreateDashboardStringDashboard() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + Dashboard dashboard = Dashboard.newBuilder().build(); + Dashboard response = dashboardsServiceClient.createDashboard(parent, dashboard); + } + } +} +// [END monitoring_v1_generated_DashboardsService_CreateDashboard_StringDashboard_sync] diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/AsyncDeleteDashboard.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/AsyncDeleteDashboard.java similarity index 100% rename from java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/AsyncDeleteDashboard.java rename to owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/AsyncDeleteDashboard.java diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboard.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboard.java similarity index 100% rename from java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboard.java rename to owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboard.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardDashboardname.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardDashboardname.java new file mode 100644 index 000000000000..5ce423cb9450 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardDashboardname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.monitoring.dashboard.v1.samples; + +// [START monitoring_v1_generated_DashboardsService_DeleteDashboard_Dashboardname_sync] +import com.google.cloud.monitoring.dashboard.v1.DashboardsServiceClient; +import com.google.monitoring.dashboard.v1.DashboardName; +import com.google.protobuf.Empty; + +public class SyncDeleteDashboardDashboardname { + + public static void main(String[] args) throws Exception { + syncDeleteDashboardDashboardname(); + } + + public static void syncDeleteDashboardDashboardname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) { + DashboardName name = DashboardName.of("[PROJECT]", "[DASHBOARD]"); + dashboardsServiceClient.deleteDashboard(name); + } + } +} +// [END monitoring_v1_generated_DashboardsService_DeleteDashboard_Dashboardname_sync] diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardString.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardString.java new file mode 100644 index 000000000000..06b9668cf0f3 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.monitoring.dashboard.v1.samples; + +// [START monitoring_v1_generated_DashboardsService_DeleteDashboard_String_sync] +import com.google.cloud.monitoring.dashboard.v1.DashboardsServiceClient; +import com.google.monitoring.dashboard.v1.DashboardName; +import com.google.protobuf.Empty; + +public class SyncDeleteDashboardString { + + public static void main(String[] args) throws Exception { + syncDeleteDashboardString(); + } + + public static void syncDeleteDashboardString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) { + String name = DashboardName.of("[PROJECT]", "[DASHBOARD]").toString(); + dashboardsServiceClient.deleteDashboard(name); + } + } +} +// [END monitoring_v1_generated_DashboardsService_DeleteDashboard_String_sync] diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/AsyncGetDashboard.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/AsyncGetDashboard.java similarity index 100% rename from java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/AsyncGetDashboard.java rename to owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/AsyncGetDashboard.java diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboard.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboard.java similarity index 100% rename from java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboard.java rename to owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboard.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardDashboardname.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardDashboardname.java new file mode 100644 index 000000000000..0c3974d66527 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardDashboardname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.monitoring.dashboard.v1.samples; + +// [START monitoring_v1_generated_DashboardsService_GetDashboard_Dashboardname_sync] +import com.google.cloud.monitoring.dashboard.v1.DashboardsServiceClient; +import com.google.monitoring.dashboard.v1.Dashboard; +import com.google.monitoring.dashboard.v1.DashboardName; + +public class SyncGetDashboardDashboardname { + + public static void main(String[] args) throws Exception { + syncGetDashboardDashboardname(); + } + + public static void syncGetDashboardDashboardname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) { + DashboardName name = DashboardName.of("[PROJECT]", "[DASHBOARD]"); + Dashboard response = dashboardsServiceClient.getDashboard(name); + } + } +} +// [END monitoring_v1_generated_DashboardsService_GetDashboard_Dashboardname_sync] diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardString.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardString.java new file mode 100644 index 000000000000..7268a6781bf5 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.monitoring.dashboard.v1.samples; + +// [START monitoring_v1_generated_DashboardsService_GetDashboard_String_sync] +import com.google.cloud.monitoring.dashboard.v1.DashboardsServiceClient; +import com.google.monitoring.dashboard.v1.Dashboard; +import com.google.monitoring.dashboard.v1.DashboardName; + +public class SyncGetDashboardString { + + public static void main(String[] args) throws Exception { + syncGetDashboardString(); + } + + public static void syncGetDashboardString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) { + String name = DashboardName.of("[PROJECT]", "[DASHBOARD]").toString(); + Dashboard response = dashboardsServiceClient.getDashboard(name); + } + } +} +// [END monitoring_v1_generated_DashboardsService_GetDashboard_String_sync] diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboards.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboards.java similarity index 100% rename from java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboards.java rename to owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboards.java diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboardsPaged.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboardsPaged.java similarity index 100% rename from java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboardsPaged.java rename to owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboardsPaged.java diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboards.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboards.java similarity index 100% rename from java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboards.java rename to owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboards.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsProjectname.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsProjectname.java new file mode 100644 index 000000000000..be46309db176 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsProjectname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.monitoring.dashboard.v1.samples; + +// [START monitoring_v1_generated_DashboardsService_ListDashboards_Projectname_sync] +import com.google.cloud.monitoring.dashboard.v1.DashboardsServiceClient; +import com.google.monitoring.dashboard.v1.Dashboard; +import com.google.monitoring.dashboard.v1.ProjectName; + +public class SyncListDashboardsProjectname { + + public static void main(String[] args) throws Exception { + syncListDashboardsProjectname(); + } + + public static void syncListDashboardsProjectname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + for (Dashboard element : dashboardsServiceClient.listDashboards(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END monitoring_v1_generated_DashboardsService_ListDashboards_Projectname_sync] diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsString.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsString.java new file mode 100644 index 000000000000..f3376eff3df4 --- /dev/null +++ b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.monitoring.dashboard.v1.samples; + +// [START monitoring_v1_generated_DashboardsService_ListDashboards_String_sync] +import com.google.cloud.monitoring.dashboard.v1.DashboardsServiceClient; +import com.google.monitoring.dashboard.v1.Dashboard; +import com.google.monitoring.dashboard.v1.ProjectName; + +public class SyncListDashboardsString { + + public static void main(String[] args) throws Exception { + syncListDashboardsString(); + } + + public static void syncListDashboardsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + for (Dashboard element : dashboardsServiceClient.listDashboards(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END monitoring_v1_generated_DashboardsService_ListDashboards_String_sync] diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/AsyncUpdateDashboard.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/AsyncUpdateDashboard.java similarity index 100% rename from java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/AsyncUpdateDashboard.java rename to owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/AsyncUpdateDashboard.java diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/SyncUpdateDashboard.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/SyncUpdateDashboard.java similarity index 100% rename from java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/SyncUpdateDashboard.java rename to owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/SyncUpdateDashboard.java diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservicesettings/createdashboard/SyncCreateDashboard.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservicesettings/createdashboard/SyncCreateDashboard.java similarity index 100% rename from java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservicesettings/createdashboard/SyncCreateDashboard.java rename to owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservicesettings/createdashboard/SyncCreateDashboard.java diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/stub/dashboardsservicestubsettings/createdashboard/SyncCreateDashboard.java b/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/stub/dashboardsservicestubsettings/createdashboard/SyncCreateDashboard.java similarity index 100% rename from java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/stub/dashboardsservicestubsettings/createdashboard/SyncCreateDashboard.java rename to owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/stub/dashboardsservicestubsettings/createdashboard/SyncCreateDashboard.java From abf32e4f014876f81632fcb077e717cc76122275 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 9 Feb 2024 01:06:25 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../dashboard/v1/DashboardsServiceClient.java | 0 .../v1/DashboardsServiceSettings.java | 1 - .../dashboard/v1/gapic_metadata.json | 0 .../monitoring/dashboard/v1/package-info.java | 0 .../v1/stub/DashboardsServiceStub.java | 0 .../stub/DashboardsServiceStubSettings.java | 0 .../GrpcDashboardsServiceCallableFactory.java | 0 .../v1/stub/GrpcDashboardsServiceStub.java | 1 - ...pJsonDashboardsServiceCallableFactory.java | 0 .../stub/HttpJsonDashboardsServiceStub.java | 0 .../reflect-config.json | 0 .../DashboardsServiceClientHttpJsonTest.java | 0 .../v1/DashboardsServiceClientTest.java | 0 .../dashboard/v1/MockDashboardsService.java | 0 .../v1/MockDashboardsServiceImpl.java | 0 .../dashboard/v1/DashboardsServiceGrpc.java | 610 ++-- .../monitoring/dashboard/v1/Aggregation.java | 896 ++++-- .../dashboard/v1/AggregationOrBuilder.java | 56 +- .../monitoring/dashboard/v1/AlertChart.java | 312 +- .../dashboard/v1/AlertChartOrBuilder.java | 27 +- .../dashboard/v1/AlertChartProto.java | 85 + .../monitoring/dashboard/v1/ChartOptions.java | 378 ++- .../dashboard/v1/ChartOptionsOrBuilder.java | 24 +- .../dashboard/v1/CollapsibleGroup.java | 284 +- .../v1/CollapsibleGroupOrBuilder.java | 39 + .../dashboard/v1/CollapsibleGroupProto.java | 69 + .../monitoring/dashboard/v1/ColumnLayout.java | 841 +++--- .../dashboard/v1/ColumnLayoutOrBuilder.java | 36 +- .../monitoring/dashboard/v1/CommonProto.java | 140 + .../dashboard/v1/CreateDashboardRequest.java | 525 ++-- .../v1/CreateDashboardRequestOrBuilder.java | 58 +- .../monitoring/dashboard/v1/Dashboard.java | 1258 +++++--- .../dashboard/v1/DashboardFilter.java | 677 +++-- .../v1/DashboardFilterOrBuilder.java | 54 +- .../dashboard/v1/DashboardFilterProto.java | 87 + .../dashboard/v1/DashboardName.java | 0 .../dashboard/v1/DashboardOrBuilder.java | 122 +- .../dashboard/v1/DashboardsProto.java | 125 + .../dashboard/v1/DashboardsServiceProto.java | 203 ++ .../dashboard/v1/DeleteDashboardRequest.java | 350 ++- .../v1/DeleteDashboardRequestOrBuilder.java | 59 + .../dashboard/v1/ErrorReportingPanel.java | 576 ++-- .../v1/ErrorReportingPanelOrBuilder.java | 72 +- .../v1/ErrorReportingPanelProto.java | 69 + .../dashboard/v1/GetDashboardRequest.java | 350 ++- .../v1/GetDashboardRequestOrBuilder.java | 35 +- .../monitoring/dashboard/v1/GridLayout.java | 432 +-- .../dashboard/v1/GridLayoutOrBuilder.java | 39 +- .../monitoring/dashboard/v1/IncidentList.java | 602 ++-- .../dashboard/v1/IncidentListOrBuilder.java | 74 +- .../dashboard/v1/IncidentListProto.java | 84 + .../monitoring/dashboard/v1/LayoutsProto.java | 165 ++ .../dashboard/v1/ListDashboardsRequest.java | 453 +-- .../v1/ListDashboardsRequestOrBuilder.java | 47 +- .../dashboard/v1/ListDashboardsResponse.java | 483 ++-- .../v1/ListDashboardsResponseOrBuilder.java | 45 +- .../monitoring/dashboard/v1/LogsPanel.java | 420 +-- .../dashboard/v1/LogsPanelOrBuilder.java | 45 +- .../dashboard/v1/LogsPanelProto.java | 69 + .../monitoring/dashboard/v1/MetricsProto.java | 192 ++ .../monitoring/dashboard/v1/MosaicLayout.java | 907 +++--- .../dashboard/v1/MosaicLayoutOrBuilder.java | 39 +- .../dashboard/v1/PickTimeSeriesFilter.java | 658 +++-- .../v1/PickTimeSeriesFilterOrBuilder.java | 41 +- .../monitoring/dashboard/v1/PieChart.java | 1363 ++++++--- .../dashboard/v1/PieChartOrBuilder.java | 131 + .../dashboard/v1/PieChartProto.java | 107 + .../monitoring/dashboard/v1/ProjectName.java | 0 .../monitoring/dashboard/v1/RowLayout.java | 842 +++--- .../dashboard/v1/RowLayoutOrBuilder.java | 36 +- .../monitoring/dashboard/v1/Scorecard.java | 1667 +++++++---- .../dashboard/v1/ScorecardOrBuilder.java | 80 +- .../dashboard/v1/ScorecardProto.java | 130 + .../dashboard/v1/SectionHeader.java | 353 ++- .../dashboard/v1/SectionHeaderOrBuilder.java | 30 +- .../dashboard/v1/SectionHeaderProto.java | 70 + .../dashboard/v1/SingleViewGroup.java | 245 +- .../v1/SingleViewGroupOrBuilder.java | 25 + .../dashboard/v1/SingleViewGroupProto.java | 67 + .../dashboard/v1/SparkChartType.java | 82 +- .../v1/StatisticalTimeSeriesFilter.java | 457 +-- .../StatisticalTimeSeriesFilterOrBuilder.java | 33 +- .../dashboard/v1/TableDisplayOptions.java | 449 +-- .../v1/TableDisplayOptionsOrBuilder.java | 101 + .../v1/TableDisplayOptionsProto.java | 80 + .../monitoring/dashboard/v1/TableProto.java | 133 + .../google/monitoring/dashboard/v1/Text.java | 1861 ++++++++---- .../dashboard/v1/TextOrBuilder.java | 41 +- .../monitoring/dashboard/v1/TextProto.java | 121 + .../monitoring/dashboard/v1/Threshold.java | 736 +++-- .../dashboard/v1/ThresholdOrBuilder.java | 48 +- .../dashboard/v1/TimeSeriesFilter.java | 911 ++++-- .../v1/TimeSeriesFilterOrBuilder.java | 92 +- .../dashboard/v1/TimeSeriesFilterRatio.java | 1439 ++++++---- .../v1/TimeSeriesFilterRatioOrBuilder.java | 97 +- .../dashboard/v1/TimeSeriesQuery.java | 833 ++++-- .../v1/TimeSeriesQueryOrBuilder.java | 82 +- .../dashboard/v1/TimeSeriesTable.java | 2245 ++++++++++----- .../v1/TimeSeriesTableOrBuilder.java | 183 ++ .../dashboard/v1/UpdateDashboardRequest.java | 428 +-- .../v1/UpdateDashboardRequestOrBuilder.java | 41 +- .../monitoring/dashboard/v1/Widget.java | 1702 +++++++---- .../dashboard/v1/WidgetOrBuilder.java | 140 +- .../monitoring/dashboard/v1/WidgetProto.java | 158 + .../monitoring/dashboard/v1/XyChart.java | 2552 +++++++++++------ .../dashboard/v1/XyChartOrBuilder.java | 114 +- .../monitoring/dashboard/v1/XyChartProto.java | 157 + .../monitoring/dashboard/v1/alertchart.proto | 0 .../dashboard/v1/collapsible_group.proto | 0 .../monitoring/dashboard/v1/common.proto | 0 .../monitoring/dashboard/v1/dashboard.proto | 0 .../dashboard/v1/dashboard_filter.proto | 0 .../dashboard/v1/dashboards_service.proto | 0 .../monitoring/dashboard/v1/drilldowns.proto | 0 .../dashboard/v1/error_reporting_panel.proto | 0 .../dashboard/v1/incident_list.proto | 0 .../monitoring/dashboard/v1/layouts.proto | 0 .../monitoring/dashboard/v1/logs_panel.proto | 0 .../monitoring/dashboard/v1/metrics.proto | 0 .../monitoring/dashboard/v1/piechart.proto | 0 .../monitoring/dashboard/v1/scorecard.proto | 0 .../dashboard/v1/section_header.proto | 0 .../monitoring/dashboard/v1/service.proto | 0 .../dashboard/v1/single_view_group.proto | 0 .../monitoring/dashboard/v1/table.proto | 0 .../dashboard/v1/table_display_options.proto | 0 .../google/monitoring/dashboard/v1/text.proto | 0 .../monitoring/dashboard/v1/widget.proto | 0 .../monitoring/dashboard/v1/xychart.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createdashboard/AsyncCreateDashboard.java | 0 .../createdashboard/SyncCreateDashboard.java | 0 ...ncCreateDashboardProjectnameDashboard.java | 0 .../SyncCreateDashboardStringDashboard.java | 0 .../deletedashboard/AsyncDeleteDashboard.java | 0 .../deletedashboard/SyncDeleteDashboard.java | 0 .../SyncDeleteDashboardDashboardname.java | 0 .../SyncDeleteDashboardString.java | 0 .../getdashboard/AsyncGetDashboard.java | 0 .../getdashboard/SyncGetDashboard.java | 0 .../SyncGetDashboardDashboardname.java | 0 .../getdashboard/SyncGetDashboardString.java | 0 .../listdashboards/AsyncListDashboards.java | 0 .../AsyncListDashboardsPaged.java | 0 .../listdashboards/SyncListDashboards.java | 0 .../SyncListDashboardsProjectname.java | 0 .../SyncListDashboardsString.java | 0 .../updatedashboard/AsyncUpdateDashboard.java | 0 .../updatedashboard/SyncUpdateDashboard.java | 0 .../createdashboard/SyncCreateDashboard.java | 0 .../createdashboard/SyncCreateDashboard.java | 0 .../dashboard/v1/AlertChartProto.java | 70 - .../v1/CollapsibleGroupOrBuilder.java | 20 - .../dashboard/v1/CollapsibleGroupProto.java | 56 - .../monitoring/dashboard/v1/CommonProto.java | 123 - .../dashboard/v1/DashboardFilterProto.java | 72 - .../dashboard/v1/DashboardsProto.java | 100 - .../dashboard/v1/DashboardsServiceProto.java | 183 -- .../v1/DeleteDashboardRequestOrBuilder.java | 34 - .../dashboard/v1/DrilldownsProto.java | 44 - .../v1/ErrorReportingPanelProto.java | 56 - .../dashboard/v1/IncidentListProto.java | 69 - .../monitoring/dashboard/v1/LayoutsProto.java | 140 - .../dashboard/v1/LogsPanelProto.java | 56 - .../monitoring/dashboard/v1/MetricsProto.java | 155 - .../dashboard/v1/PieChartOrBuilder.java | 83 - .../dashboard/v1/PieChartProto.java | 91 - .../dashboard/v1/ScorecardProto.java | 108 - .../dashboard/v1/SectionHeaderProto.java | 57 - .../dashboard/v1/ServiceMonitoringProto.java | 44 - .../v1/SingleViewGroupOrBuilder.java | 10 - .../dashboard/v1/SingleViewGroupProto.java | 56 - .../v1/TableDisplayOptionsOrBuilder.java | 63 - .../v1/TableDisplayOptionsProto.java | 65 - .../monitoring/dashboard/v1/TableProto.java | 112 - .../monitoring/dashboard/v1/TextProto.java | 101 - .../v1/TimeSeriesTableOrBuilder.java | 117 - .../monitoring/dashboard/v1/WidgetProto.java | 128 - .../monitoring/dashboard/v1/XyChartProto.java | 133 - 181 files changed, 22855 insertions(+), 13167 deletions(-) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java (99%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/package-info.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStub.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceCallableFactory.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceStub.java (99%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceCallableFactory.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceStub.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/google-cloud-monitoring-dashboard/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.dashboard.v1/reflect-config.json (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientTest.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsService.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsServiceImpl.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java (52%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java (85%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java (92%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java (66%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartOrBuilder.java (56%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptions.java (67%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptionsOrBuilder.java (53%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java (66%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayout.java (74%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayoutOrBuilder.java (66%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CommonProto.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequest.java (64%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequestOrBuilder.java (53%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java (74%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java (71%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java (73%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardName.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java (84%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequest.java (63%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequestOrBuilder.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanel.java (78%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelOrBuilder.java (84%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelProto.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequest.java (65%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequestOrBuilder.java (50%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayout.java (72%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayoutOrBuilder.java (69%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentList.java (71%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListOrBuilder.java (69%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListProto.java create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequest.java (69%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequestOrBuilder.java (62%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponse.java (72%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponseOrBuilder.java (69%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java (71%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java (73%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java (73%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java (67%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilter.java (71%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilterOrBuilder.java (77%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChart.java (66%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartOrBuilder.java create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartProto.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ProjectName.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayout.java (74%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayoutOrBuilder.java (65%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Scorecard.java (77%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardOrBuilder.java (88%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeader.java (68%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderOrBuilder.java (54%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderProto.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroup.java (64%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupOrBuilder.java create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupProto.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SparkChartType.java (68%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilter.java (66%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilterOrBuilder.java (66%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java (63%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Text.java (70%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextOrBuilder.java (69%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextProto.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java (70%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java (76%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilter.java (66%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java (70%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatio.java (67%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatioOrBuilder.java (68%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQuery.java (72%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQueryOrBuilder.java (79%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java (63%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequest.java (63%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequestOrBuilder.java (51%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java (74%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java (89%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java (70%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java (77%) create mode 100644 java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/collapsible_group.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/common.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard_filter.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/drilldowns.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/error_reporting_panel.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/incident_list.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/layouts.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/logs_panel.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/piechart.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/scorecard.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/section_header.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/service.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/single_view_group.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/text.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/widget.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/xychart.proto (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/AsyncCreateDashboard.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboard.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardProjectnameDashboard.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardStringDashboard.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/AsyncDeleteDashboard.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboard.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardDashboardname.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardString.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/AsyncGetDashboard.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboard.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardDashboardname.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardString.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboards.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboardsPaged.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboards.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsProjectname.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsString.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/AsyncUpdateDashboard.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/SyncUpdateDashboard.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservicesettings/createdashboard/SyncCreateDashboard.java (100%) rename {owl-bot-staging/java-monitoring-dashboards/v1 => java-monitoring-dashboards}/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/stub/dashboardsservicestubsettings/createdashboard/SyncCreateDashboard.java (100%) delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CommonProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DrilldownsProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartOrBuilder.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ServiceMonitoringProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupOrBuilder.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java delete mode 100644 owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java rename to java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java similarity index 99% rename from owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java rename to java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java index c0a2c048d376..8374d05c009a 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.monitoring.dashboard.v1.stub.DashboardsServiceStubSettings; diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/gapic_metadata.json b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/gapic_metadata.json rename to java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/package-info.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/package-info.java rename to java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/package-info.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStub.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStub.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStub.java rename to java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStub.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java rename to java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceCallableFactory.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceCallableFactory.java rename to java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceCallableFactory.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceStub.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceStub.java similarity index 99% rename from owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceStub.java rename to java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceStub.java index a21d1fb43833..4c5f10674928 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceStub.java +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/GrpcDashboardsServiceStub.java @@ -37,7 +37,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceCallableFactory.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceCallableFactory.java rename to java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceCallableFactory.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceStub.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceStub.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceStub.java rename to java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceStub.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.dashboard.v1/reflect-config.json b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.dashboard.v1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.dashboard.v1/reflect-config.json rename to java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.dashboard.v1/reflect-config.json diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientHttpJsonTest.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientHttpJsonTest.java rename to java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientTest.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientTest.java rename to java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientTest.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsService.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsService.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsService.java rename to java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsService.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsServiceImpl.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsServiceImpl.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsServiceImpl.java rename to java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/MockDashboardsServiceImpl.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/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 similarity index 52% rename from owl-bot-staging/java-monitoring-dashboards/v1/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java rename to java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java index fd7fda0f21a0..655c2f8cbc6f 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/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 @@ -1,8 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.monitoring.dashboard.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
            * Manages Stackdriver dashboards. A dashboard is an arrangement of data display
            * widgets in a specific layout.
          @@ -16,209 +33,282 @@ public final class DashboardsServiceGrpc {
           
             private DashboardsServiceGrpc() {}
           
          -  public static final java.lang.String SERVICE_NAME = "google.monitoring.dashboard.v1.DashboardsService";
          +  public static final java.lang.String SERVICE_NAME =
          +      "google.monitoring.dashboard.v1.DashboardsService";
           
             // Static method descriptors that strictly reflect the proto.
          -  private static volatile io.grpc.MethodDescriptor getCreateDashboardMethod;
          +  private static volatile io.grpc.MethodDescriptor<
          +          com.google.monitoring.dashboard.v1.CreateDashboardRequest,
          +          com.google.monitoring.dashboard.v1.Dashboard>
          +      getCreateDashboardMethod;
           
             @io.grpc.stub.annotations.RpcMethod(
                 fullMethodName = SERVICE_NAME + '/' + "CreateDashboard",
                 requestType = com.google.monitoring.dashboard.v1.CreateDashboardRequest.class,
                 responseType = com.google.monitoring.dashboard.v1.Dashboard.class,
                 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
          -  public static io.grpc.MethodDescriptor getCreateDashboardMethod() {
          -    io.grpc.MethodDescriptor getCreateDashboardMethod;
          +  public static io.grpc.MethodDescriptor<
          +          com.google.monitoring.dashboard.v1.CreateDashboardRequest,
          +          com.google.monitoring.dashboard.v1.Dashboard>
          +      getCreateDashboardMethod() {
          +    io.grpc.MethodDescriptor<
          +            com.google.monitoring.dashboard.v1.CreateDashboardRequest,
          +            com.google.monitoring.dashboard.v1.Dashboard>
          +        getCreateDashboardMethod;
               if ((getCreateDashboardMethod = DashboardsServiceGrpc.getCreateDashboardMethod) == null) {
                 synchronized (DashboardsServiceGrpc.class) {
                   if ((getCreateDashboardMethod = DashboardsServiceGrpc.getCreateDashboardMethod) == null) {
          -          DashboardsServiceGrpc.getCreateDashboardMethod = getCreateDashboardMethod =
          -              io.grpc.MethodDescriptor.newBuilder()
          -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          -              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDashboard"))
          -              .setSampledToLocalTracing(true)
          -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          -                  com.google.monitoring.dashboard.v1.CreateDashboardRequest.getDefaultInstance()))
          -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          -                  com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()))
          -              .setSchemaDescriptor(new DashboardsServiceMethodDescriptorSupplier("CreateDashboard"))
          -              .build();
          +          DashboardsServiceGrpc.getCreateDashboardMethod =
          +              getCreateDashboardMethod =
          +                  io.grpc.MethodDescriptor
          +                      .
          +                          newBuilder()
          +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDashboard"))
          +                      .setSampledToLocalTracing(true)
          +                      .setRequestMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.monitoring.dashboard.v1.CreateDashboardRequest
          +                                  .getDefaultInstance()))
          +                      .setResponseMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()))
          +                      .setSchemaDescriptor(
          +                          new DashboardsServiceMethodDescriptorSupplier("CreateDashboard"))
          +                      .build();
                   }
                 }
               }
               return getCreateDashboardMethod;
             }
           
          -  private static volatile io.grpc.MethodDescriptor getListDashboardsMethod;
          +  private static volatile io.grpc.MethodDescriptor<
          +          com.google.monitoring.dashboard.v1.ListDashboardsRequest,
          +          com.google.monitoring.dashboard.v1.ListDashboardsResponse>
          +      getListDashboardsMethod;
           
             @io.grpc.stub.annotations.RpcMethod(
                 fullMethodName = SERVICE_NAME + '/' + "ListDashboards",
                 requestType = com.google.monitoring.dashboard.v1.ListDashboardsRequest.class,
                 responseType = com.google.monitoring.dashboard.v1.ListDashboardsResponse.class,
                 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
          -  public static io.grpc.MethodDescriptor getListDashboardsMethod() {
          -    io.grpc.MethodDescriptor getListDashboardsMethod;
          +  public static io.grpc.MethodDescriptor<
          +          com.google.monitoring.dashboard.v1.ListDashboardsRequest,
          +          com.google.monitoring.dashboard.v1.ListDashboardsResponse>
          +      getListDashboardsMethod() {
          +    io.grpc.MethodDescriptor<
          +            com.google.monitoring.dashboard.v1.ListDashboardsRequest,
          +            com.google.monitoring.dashboard.v1.ListDashboardsResponse>
          +        getListDashboardsMethod;
               if ((getListDashboardsMethod = DashboardsServiceGrpc.getListDashboardsMethod) == null) {
                 synchronized (DashboardsServiceGrpc.class) {
                   if ((getListDashboardsMethod = DashboardsServiceGrpc.getListDashboardsMethod) == null) {
          -          DashboardsServiceGrpc.getListDashboardsMethod = getListDashboardsMethod =
          -              io.grpc.MethodDescriptor.newBuilder()
          -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          -              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDashboards"))
          -              .setSampledToLocalTracing(true)
          -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          -                  com.google.monitoring.dashboard.v1.ListDashboardsRequest.getDefaultInstance()))
          -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          -                  com.google.monitoring.dashboard.v1.ListDashboardsResponse.getDefaultInstance()))
          -              .setSchemaDescriptor(new DashboardsServiceMethodDescriptorSupplier("ListDashboards"))
          -              .build();
          +          DashboardsServiceGrpc.getListDashboardsMethod =
          +              getListDashboardsMethod =
          +                  io.grpc.MethodDescriptor
          +                      .
          +                          newBuilder()
          +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDashboards"))
          +                      .setSampledToLocalTracing(true)
          +                      .setRequestMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.monitoring.dashboard.v1.ListDashboardsRequest
          +                                  .getDefaultInstance()))
          +                      .setResponseMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.monitoring.dashboard.v1.ListDashboardsResponse
          +                                  .getDefaultInstance()))
          +                      .setSchemaDescriptor(
          +                          new DashboardsServiceMethodDescriptorSupplier("ListDashboards"))
          +                      .build();
                   }
                 }
               }
               return getListDashboardsMethod;
             }
           
          -  private static volatile io.grpc.MethodDescriptor getGetDashboardMethod;
          +  private static volatile io.grpc.MethodDescriptor<
          +          com.google.monitoring.dashboard.v1.GetDashboardRequest,
          +          com.google.monitoring.dashboard.v1.Dashboard>
          +      getGetDashboardMethod;
           
             @io.grpc.stub.annotations.RpcMethod(
                 fullMethodName = SERVICE_NAME + '/' + "GetDashboard",
                 requestType = com.google.monitoring.dashboard.v1.GetDashboardRequest.class,
                 responseType = com.google.monitoring.dashboard.v1.Dashboard.class,
                 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
          -  public static io.grpc.MethodDescriptor getGetDashboardMethod() {
          -    io.grpc.MethodDescriptor getGetDashboardMethod;
          +  public static io.grpc.MethodDescriptor<
          +          com.google.monitoring.dashboard.v1.GetDashboardRequest,
          +          com.google.monitoring.dashboard.v1.Dashboard>
          +      getGetDashboardMethod() {
          +    io.grpc.MethodDescriptor<
          +            com.google.monitoring.dashboard.v1.GetDashboardRequest,
          +            com.google.monitoring.dashboard.v1.Dashboard>
          +        getGetDashboardMethod;
               if ((getGetDashboardMethod = DashboardsServiceGrpc.getGetDashboardMethod) == null) {
                 synchronized (DashboardsServiceGrpc.class) {
                   if ((getGetDashboardMethod = DashboardsServiceGrpc.getGetDashboardMethod) == null) {
          -          DashboardsServiceGrpc.getGetDashboardMethod = getGetDashboardMethod =
          -              io.grpc.MethodDescriptor.newBuilder()
          -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          -              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDashboard"))
          -              .setSampledToLocalTracing(true)
          -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          -                  com.google.monitoring.dashboard.v1.GetDashboardRequest.getDefaultInstance()))
          -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          -                  com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()))
          -              .setSchemaDescriptor(new DashboardsServiceMethodDescriptorSupplier("GetDashboard"))
          -              .build();
          +          DashboardsServiceGrpc.getGetDashboardMethod =
          +              getGetDashboardMethod =
          +                  io.grpc.MethodDescriptor
          +                      .
          +                          newBuilder()
          +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDashboard"))
          +                      .setSampledToLocalTracing(true)
          +                      .setRequestMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.monitoring.dashboard.v1.GetDashboardRequest
          +                                  .getDefaultInstance()))
          +                      .setResponseMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()))
          +                      .setSchemaDescriptor(
          +                          new DashboardsServiceMethodDescriptorSupplier("GetDashboard"))
          +                      .build();
                   }
                 }
               }
               return getGetDashboardMethod;
             }
           
          -  private static volatile io.grpc.MethodDescriptor getDeleteDashboardMethod;
          +  private static volatile io.grpc.MethodDescriptor<
          +          com.google.monitoring.dashboard.v1.DeleteDashboardRequest, com.google.protobuf.Empty>
          +      getDeleteDashboardMethod;
           
             @io.grpc.stub.annotations.RpcMethod(
                 fullMethodName = SERVICE_NAME + '/' + "DeleteDashboard",
                 requestType = com.google.monitoring.dashboard.v1.DeleteDashboardRequest.class,
                 responseType = com.google.protobuf.Empty.class,
                 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
          -  public static io.grpc.MethodDescriptor getDeleteDashboardMethod() {
          -    io.grpc.MethodDescriptor getDeleteDashboardMethod;
          +  public static io.grpc.MethodDescriptor<
          +          com.google.monitoring.dashboard.v1.DeleteDashboardRequest, com.google.protobuf.Empty>
          +      getDeleteDashboardMethod() {
          +    io.grpc.MethodDescriptor<
          +            com.google.monitoring.dashboard.v1.DeleteDashboardRequest, com.google.protobuf.Empty>
          +        getDeleteDashboardMethod;
               if ((getDeleteDashboardMethod = DashboardsServiceGrpc.getDeleteDashboardMethod) == null) {
                 synchronized (DashboardsServiceGrpc.class) {
                   if ((getDeleteDashboardMethod = DashboardsServiceGrpc.getDeleteDashboardMethod) == null) {
          -          DashboardsServiceGrpc.getDeleteDashboardMethod = getDeleteDashboardMethod =
          -              io.grpc.MethodDescriptor.newBuilder()
          -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          -              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDashboard"))
          -              .setSampledToLocalTracing(true)
          -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          -                  com.google.monitoring.dashboard.v1.DeleteDashboardRequest.getDefaultInstance()))
          -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          -                  com.google.protobuf.Empty.getDefaultInstance()))
          -              .setSchemaDescriptor(new DashboardsServiceMethodDescriptorSupplier("DeleteDashboard"))
          -              .build();
          +          DashboardsServiceGrpc.getDeleteDashboardMethod =
          +              getDeleteDashboardMethod =
          +                  io.grpc.MethodDescriptor
          +                      .
          +                          newBuilder()
          +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDashboard"))
          +                      .setSampledToLocalTracing(true)
          +                      .setRequestMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.monitoring.dashboard.v1.DeleteDashboardRequest
          +                                  .getDefaultInstance()))
          +                      .setResponseMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.protobuf.Empty.getDefaultInstance()))
          +                      .setSchemaDescriptor(
          +                          new DashboardsServiceMethodDescriptorSupplier("DeleteDashboard"))
          +                      .build();
                   }
                 }
               }
               return getDeleteDashboardMethod;
             }
           
          -  private static volatile io.grpc.MethodDescriptor getUpdateDashboardMethod;
          +  private static volatile io.grpc.MethodDescriptor<
          +          com.google.monitoring.dashboard.v1.UpdateDashboardRequest,
          +          com.google.monitoring.dashboard.v1.Dashboard>
          +      getUpdateDashboardMethod;
           
             @io.grpc.stub.annotations.RpcMethod(
                 fullMethodName = SERVICE_NAME + '/' + "UpdateDashboard",
                 requestType = com.google.monitoring.dashboard.v1.UpdateDashboardRequest.class,
                 responseType = com.google.monitoring.dashboard.v1.Dashboard.class,
                 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
          -  public static io.grpc.MethodDescriptor getUpdateDashboardMethod() {
          -    io.grpc.MethodDescriptor getUpdateDashboardMethod;
          +  public static io.grpc.MethodDescriptor<
          +          com.google.monitoring.dashboard.v1.UpdateDashboardRequest,
          +          com.google.monitoring.dashboard.v1.Dashboard>
          +      getUpdateDashboardMethod() {
          +    io.grpc.MethodDescriptor<
          +            com.google.monitoring.dashboard.v1.UpdateDashboardRequest,
          +            com.google.monitoring.dashboard.v1.Dashboard>
          +        getUpdateDashboardMethod;
               if ((getUpdateDashboardMethod = DashboardsServiceGrpc.getUpdateDashboardMethod) == null) {
                 synchronized (DashboardsServiceGrpc.class) {
                   if ((getUpdateDashboardMethod = DashboardsServiceGrpc.getUpdateDashboardMethod) == null) {
          -          DashboardsServiceGrpc.getUpdateDashboardMethod = getUpdateDashboardMethod =
          -              io.grpc.MethodDescriptor.newBuilder()
          -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          -              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDashboard"))
          -              .setSampledToLocalTracing(true)
          -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          -                  com.google.monitoring.dashboard.v1.UpdateDashboardRequest.getDefaultInstance()))
          -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
          -                  com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()))
          -              .setSchemaDescriptor(new DashboardsServiceMethodDescriptorSupplier("UpdateDashboard"))
          -              .build();
          +          DashboardsServiceGrpc.getUpdateDashboardMethod =
          +              getUpdateDashboardMethod =
          +                  io.grpc.MethodDescriptor
          +                      .
          +                          newBuilder()
          +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
          +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDashboard"))
          +                      .setSampledToLocalTracing(true)
          +                      .setRequestMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.monitoring.dashboard.v1.UpdateDashboardRequest
          +                                  .getDefaultInstance()))
          +                      .setResponseMarshaller(
          +                          io.grpc.protobuf.ProtoUtils.marshaller(
          +                              com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()))
          +                      .setSchemaDescriptor(
          +                          new DashboardsServiceMethodDescriptorSupplier("UpdateDashboard"))
          +                      .build();
                   }
                 }
               }
               return getUpdateDashboardMethod;
             }
           
          -  /**
          -   * Creates a new async stub that supports all call types for the service
          -   */
          +  /** Creates a new async stub that supports all call types for the service */
             public static DashboardsServiceStub newStub(io.grpc.Channel channel) {
               io.grpc.stub.AbstractStub.StubFactory factory =
          -      new io.grpc.stub.AbstractStub.StubFactory() {
          -        @java.lang.Override
          -        public DashboardsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          -          return new DashboardsServiceStub(channel, callOptions);
          -        }
          -      };
          +        new io.grpc.stub.AbstractStub.StubFactory() {
          +          @java.lang.Override
          +          public DashboardsServiceStub newStub(
          +              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          +            return new DashboardsServiceStub(channel, callOptions);
          +          }
          +        };
               return DashboardsServiceStub.newStub(factory, channel);
             }
           
             /**
              * Creates a new blocking-style stub that supports unary and streaming output calls on the service
              */
          -  public static DashboardsServiceBlockingStub newBlockingStub(
          -      io.grpc.Channel channel) {
          +  public static DashboardsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
               io.grpc.stub.AbstractStub.StubFactory factory =
          -      new io.grpc.stub.AbstractStub.StubFactory() {
          -        @java.lang.Override
          -        public DashboardsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          -          return new DashboardsServiceBlockingStub(channel, callOptions);
          -        }
          -      };
          +        new io.grpc.stub.AbstractStub.StubFactory() {
          +          @java.lang.Override
          +          public DashboardsServiceBlockingStub newStub(
          +              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          +            return new DashboardsServiceBlockingStub(channel, callOptions);
          +          }
          +        };
               return DashboardsServiceBlockingStub.newStub(factory, channel);
             }
           
          -  /**
          -   * Creates a new ListenableFuture-style stub that supports unary calls on the service
          -   */
          -  public static DashboardsServiceFutureStub newFutureStub(
          -      io.grpc.Channel channel) {
          +  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
          +  public static DashboardsServiceFutureStub newFutureStub(io.grpc.Channel channel) {
               io.grpc.stub.AbstractStub.StubFactory factory =
          -      new io.grpc.stub.AbstractStub.StubFactory() {
          -        @java.lang.Override
          -        public DashboardsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          -          return new DashboardsServiceFutureStub(channel, callOptions);
          -        }
          -      };
          +        new io.grpc.stub.AbstractStub.StubFactory() {
          +          @java.lang.Override
          +          public DashboardsServiceFutureStub newStub(
          +              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          +            return new DashboardsServiceFutureStub(channel, callOptions);
          +          }
          +        };
               return DashboardsServiceFutureStub.newStub(factory, channel);
             }
           
             /**
          +   *
          +   *
              * 
              * Manages Stackdriver dashboards. A dashboard is an arrangement of data display
              * widgets in a specific layout.
          @@ -227,6 +317,8 @@ public DashboardsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.Call
             public interface AsyncService {
           
               /**
          +     *
          +     *
                * 
                * Creates a new custom dashboard. For examples on how you can use this API to
                * create dashboards, see [Managing dashboards by
          @@ -236,12 +328,17 @@ public interface AsyncService {
                * Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - default void createDashboard(com.google.monitoring.dashboard.v1.CreateDashboardRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDashboardMethod(), responseObserver); + default void createDashboard( + com.google.monitoring.dashboard.v1.CreateDashboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDashboardMethod(), responseObserver); } /** + * + * *
                * Lists the existing dashboards.
                * This method requires the `monitoring.dashboards.list` permission
          @@ -249,12 +346,17 @@ default void createDashboard(com.google.monitoring.dashboard.v1.CreateDashboardR
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - default void listDashboards(com.google.monitoring.dashboard.v1.ListDashboardsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDashboardsMethod(), responseObserver); + default void listDashboards( + com.google.monitoring.dashboard.v1.ListDashboardsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDashboardsMethod(), responseObserver); } /** + * + * *
                * Fetches a specific dashboard.
                * This method requires the `monitoring.dashboards.get` permission
          @@ -262,12 +364,17 @@ default void listDashboards(com.google.monitoring.dashboard.v1.ListDashboardsReq
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - default void getDashboard(com.google.monitoring.dashboard.v1.GetDashboardRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDashboardMethod(), responseObserver); + default void getDashboard( + com.google.monitoring.dashboard.v1.GetDashboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDashboardMethod(), responseObserver); } /** + * + * *
                * Deletes an existing custom dashboard.
                * This method requires the `monitoring.dashboards.delete` permission
          @@ -275,12 +382,16 @@ default void getDashboard(com.google.monitoring.dashboard.v1.GetDashboardRequest
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - default void deleteDashboard(com.google.monitoring.dashboard.v1.DeleteDashboardRequest request, + default void deleteDashboard( + com.google.monitoring.dashboard.v1.DeleteDashboardRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDashboardMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDashboardMethod(), responseObserver); } /** + * + * *
                * Replaces an existing custom dashboard with a new definition.
                * This method requires the `monitoring.dashboards.update` permission
          @@ -288,29 +399,35 @@ default void deleteDashboard(com.google.monitoring.dashboard.v1.DeleteDashboardR
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - default void updateDashboard(com.google.monitoring.dashboard.v1.UpdateDashboardRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDashboardMethod(), responseObserver); + default void updateDashboard( + com.google.monitoring.dashboard.v1.UpdateDashboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDashboardMethod(), responseObserver); } } /** * Base class for the server implementation of the service DashboardsService. + * *
              * Manages Stackdriver dashboards. A dashboard is an arrangement of data display
              * widgets in a specific layout.
              * 
          */ - public static abstract class DashboardsServiceImplBase + public abstract static class DashboardsServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return DashboardsServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service DashboardsService. + * *
              * Manages Stackdriver dashboards. A dashboard is an arrangement of data display
              * widgets in a specific layout.
          @@ -318,8 +435,7 @@ public static abstract class DashboardsServiceImplBase
              */
             public static final class DashboardsServiceStub
                 extends io.grpc.stub.AbstractAsyncStub {
          -    private DashboardsServiceStub(
          -        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          +    private DashboardsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
                 super(channel, callOptions);
               }
           
          @@ -330,6 +446,8 @@ protected DashboardsServiceStub build(
               }
           
               /**
          +     *
          +     *
                * 
                * Creates a new custom dashboard. For examples on how you can use this API to
                * create dashboards, see [Managing dashboards by
          @@ -339,13 +457,19 @@ protected DashboardsServiceStub build(
                * Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public void createDashboard(com.google.monitoring.dashboard.v1.CreateDashboardRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createDashboard( + com.google.monitoring.dashboard.v1.CreateDashboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDashboardMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateDashboardMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                * Lists the existing dashboards.
                * This method requires the `monitoring.dashboards.list` permission
          @@ -353,13 +477,19 @@ public void createDashboard(com.google.monitoring.dashboard.v1.CreateDashboardRe
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public void listDashboards(com.google.monitoring.dashboard.v1.ListDashboardsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listDashboards( + com.google.monitoring.dashboard.v1.ListDashboardsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDashboardsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListDashboardsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                * Fetches a specific dashboard.
                * This method requires the `monitoring.dashboards.get` permission
          @@ -367,13 +497,19 @@ public void listDashboards(com.google.monitoring.dashboard.v1.ListDashboardsRequ
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public void getDashboard(com.google.monitoring.dashboard.v1.GetDashboardRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getDashboard( + com.google.monitoring.dashboard.v1.GetDashboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDashboardMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetDashboardMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                * Deletes an existing custom dashboard.
                * This method requires the `monitoring.dashboards.delete` permission
          @@ -381,13 +517,18 @@ public void getDashboard(com.google.monitoring.dashboard.v1.GetDashboardRequest
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public void deleteDashboard(com.google.monitoring.dashboard.v1.DeleteDashboardRequest request, + public void deleteDashboard( + com.google.monitoring.dashboard.v1.DeleteDashboardRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDashboardMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteDashboardMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                * Replaces an existing custom dashboard with a new definition.
                * This method requires the `monitoring.dashboards.update` permission
          @@ -395,15 +536,20 @@ public void deleteDashboard(com.google.monitoring.dashboard.v1.DeleteDashboardRe
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public void updateDashboard(com.google.monitoring.dashboard.v1.UpdateDashboardRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void updateDashboard( + com.google.monitoring.dashboard.v1.UpdateDashboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDashboardMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateDashboardMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service DashboardsService. + * *
              * Manages Stackdriver dashboards. A dashboard is an arrangement of data display
              * widgets in a specific layout.
          @@ -423,6 +569,8 @@ protected DashboardsServiceBlockingStub build(
               }
           
               /**
          +     *
          +     *
                * 
                * Creates a new custom dashboard. For examples on how you can use this API to
                * create dashboards, see [Managing dashboards by
          @@ -432,12 +580,15 @@ protected DashboardsServiceBlockingStub build(
                * Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public com.google.monitoring.dashboard.v1.Dashboard createDashboard(com.google.monitoring.dashboard.v1.CreateDashboardRequest request) { + public com.google.monitoring.dashboard.v1.Dashboard createDashboard( + com.google.monitoring.dashboard.v1.CreateDashboardRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateDashboardMethod(), getCallOptions(), request); } /** + * + * *
                * Lists the existing dashboards.
                * This method requires the `monitoring.dashboards.list` permission
          @@ -445,12 +596,15 @@ public com.google.monitoring.dashboard.v1.Dashboard createDashboard(com.google.m
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public com.google.monitoring.dashboard.v1.ListDashboardsResponse listDashboards(com.google.monitoring.dashboard.v1.ListDashboardsRequest request) { + public com.google.monitoring.dashboard.v1.ListDashboardsResponse listDashboards( + com.google.monitoring.dashboard.v1.ListDashboardsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListDashboardsMethod(), getCallOptions(), request); } /** + * + * *
                * Fetches a specific dashboard.
                * This method requires the `monitoring.dashboards.get` permission
          @@ -458,12 +612,15 @@ public com.google.monitoring.dashboard.v1.ListDashboardsResponse listDashboards(
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public com.google.monitoring.dashboard.v1.Dashboard getDashboard(com.google.monitoring.dashboard.v1.GetDashboardRequest request) { + public com.google.monitoring.dashboard.v1.Dashboard getDashboard( + com.google.monitoring.dashboard.v1.GetDashboardRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetDashboardMethod(), getCallOptions(), request); } /** + * + * *
                * Deletes an existing custom dashboard.
                * This method requires the `monitoring.dashboards.delete` permission
          @@ -471,12 +628,15 @@ public com.google.monitoring.dashboard.v1.Dashboard getDashboard(com.google.moni
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public com.google.protobuf.Empty deleteDashboard(com.google.monitoring.dashboard.v1.DeleteDashboardRequest request) { + public com.google.protobuf.Empty deleteDashboard( + com.google.monitoring.dashboard.v1.DeleteDashboardRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteDashboardMethod(), getCallOptions(), request); } /** + * + * *
                * Replaces an existing custom dashboard with a new definition.
                * This method requires the `monitoring.dashboards.update` permission
          @@ -484,7 +644,8 @@ public com.google.protobuf.Empty deleteDashboard(com.google.monitoring.dashboard
                * [Cloud Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public com.google.monitoring.dashboard.v1.Dashboard updateDashboard(com.google.monitoring.dashboard.v1.UpdateDashboardRequest request) { + public com.google.monitoring.dashboard.v1.Dashboard updateDashboard( + com.google.monitoring.dashboard.v1.UpdateDashboardRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateDashboardMethod(), getCallOptions(), request); } @@ -492,6 +653,7 @@ public com.google.monitoring.dashboard.v1.Dashboard updateDashboard(com.google.m /** * A stub to allow clients to do ListenableFuture-style rpc calls to service DashboardsService. + * *
              * Manages Stackdriver dashboards. A dashboard is an arrangement of data display
              * widgets in a specific layout.
          @@ -499,8 +661,7 @@ public com.google.monitoring.dashboard.v1.Dashboard updateDashboard(com.google.m
              */
             public static final class DashboardsServiceFutureStub
                 extends io.grpc.stub.AbstractFutureStub {
          -    private DashboardsServiceFutureStub(
          -        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          +    private DashboardsServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
                 super(channel, callOptions);
               }
           
          @@ -511,6 +672,8 @@ protected DashboardsServiceFutureStub build(
               }
           
               /**
          +     *
          +     *
                * 
                * Creates a new custom dashboard. For examples on how you can use this API to
                * create dashboards, see [Managing dashboards by
          @@ -520,13 +683,16 @@ protected DashboardsServiceFutureStub build(
                * Identity and Access Management](https://cloud.google.com/iam).
                * 
          */ - public com.google.common.util.concurrent.ListenableFuture createDashboard( - com.google.monitoring.dashboard.v1.CreateDashboardRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.dashboard.v1.Dashboard> + createDashboard(com.google.monitoring.dashboard.v1.CreateDashboardRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateDashboardMethod(), getCallOptions()), request); } /** + * + * *
                * Lists the existing dashboards.
                * This method requires the `monitoring.dashboards.list` permission
          @@ -534,13 +700,16 @@ public com.google.common.util.concurrent.ListenableFuture
                */
          -    public com.google.common.util.concurrent.ListenableFuture listDashboards(
          -        com.google.monitoring.dashboard.v1.ListDashboardsRequest request) {
          +    public com.google.common.util.concurrent.ListenableFuture<
          +            com.google.monitoring.dashboard.v1.ListDashboardsResponse>
          +        listDashboards(com.google.monitoring.dashboard.v1.ListDashboardsRequest request) {
                 return io.grpc.stub.ClientCalls.futureUnaryCall(
                     getChannel().newCall(getListDashboardsMethod(), getCallOptions()), request);
               }
           
               /**
          +     *
          +     *
                * 
                * Fetches a specific dashboard.
                * This method requires the `monitoring.dashboards.get` permission
          @@ -548,13 +717,16 @@ public com.google.common.util.concurrent.ListenableFuture
                */
          -    public com.google.common.util.concurrent.ListenableFuture getDashboard(
          -        com.google.monitoring.dashboard.v1.GetDashboardRequest request) {
          +    public com.google.common.util.concurrent.ListenableFuture<
          +            com.google.monitoring.dashboard.v1.Dashboard>
          +        getDashboard(com.google.monitoring.dashboard.v1.GetDashboardRequest request) {
                 return io.grpc.stub.ClientCalls.futureUnaryCall(
                     getChannel().newCall(getGetDashboardMethod(), getCallOptions()), request);
               }
           
               /**
          +     *
          +     *
                * 
                * Deletes an existing custom dashboard.
                * This method requires the `monitoring.dashboards.delete` permission
          @@ -562,13 +734,15 @@ public com.google.common.util.concurrent.ListenableFuture
                */
          -    public com.google.common.util.concurrent.ListenableFuture deleteDashboard(
          -        com.google.monitoring.dashboard.v1.DeleteDashboardRequest request) {
          +    public com.google.common.util.concurrent.ListenableFuture
          +        deleteDashboard(com.google.monitoring.dashboard.v1.DeleteDashboardRequest request) {
                 return io.grpc.stub.ClientCalls.futureUnaryCall(
                     getChannel().newCall(getDeleteDashboardMethod(), getCallOptions()), request);
               }
           
               /**
          +     *
          +     *
                * 
                * Replaces an existing custom dashboard with a new definition.
                * This method requires the `monitoring.dashboards.update` permission
          @@ -576,8 +750,9 @@ public com.google.common.util.concurrent.ListenableFuture
                */
          -    public com.google.common.util.concurrent.ListenableFuture updateDashboard(
          -        com.google.monitoring.dashboard.v1.UpdateDashboardRequest request) {
          +    public com.google.common.util.concurrent.ListenableFuture<
          +            com.google.monitoring.dashboard.v1.Dashboard>
          +        updateDashboard(com.google.monitoring.dashboard.v1.UpdateDashboardRequest request) {
                 return io.grpc.stub.ClientCalls.futureUnaryCall(
                     getChannel().newCall(getUpdateDashboardMethod(), getCallOptions()), request);
               }
          @@ -589,11 +764,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
          -      io.grpc.stub.ServerCalls.UnaryMethod,
          -      io.grpc.stub.ServerCalls.ServerStreamingMethod,
          -      io.grpc.stub.ServerCalls.ClientStreamingMethod,
          -      io.grpc.stub.ServerCalls.BidiStreamingMethod {
          +  private static final class MethodHandlers
          +      implements io.grpc.stub.ServerCalls.UnaryMethod,
          +          io.grpc.stub.ServerCalls.ServerStreamingMethod,
          +          io.grpc.stub.ServerCalls.ClientStreamingMethod,
          +          io.grpc.stub.ServerCalls.BidiStreamingMethod {
               private final AsyncService serviceImpl;
               private final int methodId;
           
          @@ -607,24 +782,34 @@ private static final class MethodHandlers implements
               public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
                 switch (methodId) {
                   case METHODID_CREATE_DASHBOARD:
          -          serviceImpl.createDashboard((com.google.monitoring.dashboard.v1.CreateDashboardRequest) request,
          -              (io.grpc.stub.StreamObserver) responseObserver);
          +          serviceImpl.createDashboard(
          +              (com.google.monitoring.dashboard.v1.CreateDashboardRequest) request,
          +              (io.grpc.stub.StreamObserver)
          +                  responseObserver);
                     break;
                   case METHODID_LIST_DASHBOARDS:
          -          serviceImpl.listDashboards((com.google.monitoring.dashboard.v1.ListDashboardsRequest) request,
          -              (io.grpc.stub.StreamObserver) responseObserver);
          +          serviceImpl.listDashboards(
          +              (com.google.monitoring.dashboard.v1.ListDashboardsRequest) request,
          +              (io.grpc.stub.StreamObserver<
          +                      com.google.monitoring.dashboard.v1.ListDashboardsResponse>)
          +                  responseObserver);
                     break;
                   case METHODID_GET_DASHBOARD:
          -          serviceImpl.getDashboard((com.google.monitoring.dashboard.v1.GetDashboardRequest) request,
          -              (io.grpc.stub.StreamObserver) responseObserver);
          +          serviceImpl.getDashboard(
          +              (com.google.monitoring.dashboard.v1.GetDashboardRequest) request,
          +              (io.grpc.stub.StreamObserver)
          +                  responseObserver);
                     break;
                   case METHODID_DELETE_DASHBOARD:
          -          serviceImpl.deleteDashboard((com.google.monitoring.dashboard.v1.DeleteDashboardRequest) request,
          +          serviceImpl.deleteDashboard(
          +              (com.google.monitoring.dashboard.v1.DeleteDashboardRequest) request,
                         (io.grpc.stub.StreamObserver) responseObserver);
                     break;
                   case METHODID_UPDATE_DASHBOARD:
          -          serviceImpl.updateDashboard((com.google.monitoring.dashboard.v1.UpdateDashboardRequest) request,
          -              (io.grpc.stub.StreamObserver) responseObserver);
          +          serviceImpl.updateDashboard(
          +              (com.google.monitoring.dashboard.v1.UpdateDashboardRequest) request,
          +              (io.grpc.stub.StreamObserver)
          +                  responseObserver);
                     break;
                   default:
                     throw new AssertionError();
          @@ -645,45 +830,44 @@ public io.grpc.stub.StreamObserver invoke(
             public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
               return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
                   .addMethod(
          -          getCreateDashboardMethod(),
          -          io.grpc.stub.ServerCalls.asyncUnaryCall(
          -            new MethodHandlers<
          -              com.google.monitoring.dashboard.v1.CreateDashboardRequest,
          -              com.google.monitoring.dashboard.v1.Dashboard>(
          -                service, METHODID_CREATE_DASHBOARD)))
          +            getCreateDashboardMethod(),
          +            io.grpc.stub.ServerCalls.asyncUnaryCall(
          +                new MethodHandlers<
          +                    com.google.monitoring.dashboard.v1.CreateDashboardRequest,
          +                    com.google.monitoring.dashboard.v1.Dashboard>(
          +                    service, METHODID_CREATE_DASHBOARD)))
                   .addMethod(
          -          getListDashboardsMethod(),
          -          io.grpc.stub.ServerCalls.asyncUnaryCall(
          -            new MethodHandlers<
          -              com.google.monitoring.dashboard.v1.ListDashboardsRequest,
          -              com.google.monitoring.dashboard.v1.ListDashboardsResponse>(
          -                service, METHODID_LIST_DASHBOARDS)))
          +            getListDashboardsMethod(),
          +            io.grpc.stub.ServerCalls.asyncUnaryCall(
          +                new MethodHandlers<
          +                    com.google.monitoring.dashboard.v1.ListDashboardsRequest,
          +                    com.google.monitoring.dashboard.v1.ListDashboardsResponse>(
          +                    service, METHODID_LIST_DASHBOARDS)))
                   .addMethod(
          -          getGetDashboardMethod(),
          -          io.grpc.stub.ServerCalls.asyncUnaryCall(
          -            new MethodHandlers<
          -              com.google.monitoring.dashboard.v1.GetDashboardRequest,
          -              com.google.monitoring.dashboard.v1.Dashboard>(
          -                service, METHODID_GET_DASHBOARD)))
          +            getGetDashboardMethod(),
          +            io.grpc.stub.ServerCalls.asyncUnaryCall(
          +                new MethodHandlers<
          +                    com.google.monitoring.dashboard.v1.GetDashboardRequest,
          +                    com.google.monitoring.dashboard.v1.Dashboard>(service, METHODID_GET_DASHBOARD)))
                   .addMethod(
          -          getDeleteDashboardMethod(),
          -          io.grpc.stub.ServerCalls.asyncUnaryCall(
          -            new MethodHandlers<
          -              com.google.monitoring.dashboard.v1.DeleteDashboardRequest,
          -              com.google.protobuf.Empty>(
          -                service, METHODID_DELETE_DASHBOARD)))
          +            getDeleteDashboardMethod(),
          +            io.grpc.stub.ServerCalls.asyncUnaryCall(
          +                new MethodHandlers<
          +                    com.google.monitoring.dashboard.v1.DeleteDashboardRequest,
          +                    com.google.protobuf.Empty>(service, METHODID_DELETE_DASHBOARD)))
                   .addMethod(
          -          getUpdateDashboardMethod(),
          -          io.grpc.stub.ServerCalls.asyncUnaryCall(
          -            new MethodHandlers<
          -              com.google.monitoring.dashboard.v1.UpdateDashboardRequest,
          -              com.google.monitoring.dashboard.v1.Dashboard>(
          -                service, METHODID_UPDATE_DASHBOARD)))
          +            getUpdateDashboardMethod(),
          +            io.grpc.stub.ServerCalls.asyncUnaryCall(
          +                new MethodHandlers<
          +                    com.google.monitoring.dashboard.v1.UpdateDashboardRequest,
          +                    com.google.monitoring.dashboard.v1.Dashboard>(
          +                    service, METHODID_UPDATE_DASHBOARD)))
                   .build();
             }
           
          -  private static abstract class DashboardsServiceBaseDescriptorSupplier
          -      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
          +  private abstract static class DashboardsServiceBaseDescriptorSupplier
          +      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
          +          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
               DashboardsServiceBaseDescriptorSupplier() {}
           
               @java.lang.Override
          @@ -725,14 +909,16 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
                 synchronized (DashboardsServiceGrpc.class) {
                   result = serviceDescriptor;
                   if (result == null) {
          -          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
          -              .setSchemaDescriptor(new DashboardsServiceFileDescriptorSupplier())
          -              .addMethod(getCreateDashboardMethod())
          -              .addMethod(getListDashboardsMethod())
          -              .addMethod(getGetDashboardMethod())
          -              .addMethod(getDeleteDashboardMethod())
          -              .addMethod(getUpdateDashboardMethod())
          -              .build();
          +          serviceDescriptor =
          +              result =
          +                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
          +                      .setSchemaDescriptor(new DashboardsServiceFileDescriptorSupplier())
          +                      .addMethod(getCreateDashboardMethod())
          +                      .addMethod(getListDashboardsMethod())
          +                      .addMethod(getGetDashboardMethod())
          +                      .addMethod(getDeleteDashboardMethod())
          +                      .addMethod(getUpdateDashboardMethod())
          +                      .build();
                   }
                 }
               }
          diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java
          similarity index 85%
          rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java
          rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java
          index 8364528f60e2..f7d2518e55f1 100644
          --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java
          +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java
          @@ -1,3 +1,18 @@
          +/*
          + * Copyright 2024 Google LLC
          + *
          + * Licensed under the Apache License, Version 2.0 (the "License");
          + * you may not use this file except in compliance with the License.
          + * You may obtain a copy of the License at
          + *
          + *     https://www.apache.org/licenses/LICENSE-2.0
          + *
          + * Unless required by applicable law or agreed to in writing, software
          + * distributed under the License is distributed on an "AS IS" BASIS,
          + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          + * See the License for the specific language governing permissions and
          + * limitations under the License.
          + */
           // Generated by the protocol buffer compiler.  DO NOT EDIT!
           // source: google/monitoring/dashboard/v1/common.proto
           
          @@ -5,6 +20,8 @@
           package com.google.monitoring.dashboard.v1;
           
           /**
          + *
          + *
            * 
            * Describes how to combine multiple time series to provide a different view of
            * the data.  Aggregation of time series is done in two steps. First, each time
          @@ -36,43 +53,46 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.Aggregation}
            */
          -public final class Aggregation extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class Aggregation extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Aggregation)
               AggregationOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use Aggregation.newBuilder() to construct.
             private Aggregation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private Aggregation() {
               perSeriesAligner_ = 0;
               crossSeriesReducer_ = 0;
          -    groupByFields_ =
          -        com.google.protobuf.LazyStringArrayList.emptyList();
          +    groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList();
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new Aggregation();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.CommonProto
          +        .internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_Aggregation_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.CommonProto
          +        .internal_static_google_monitoring_dashboard_v1_Aggregation_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.Aggregation.class, com.google.monitoring.dashboard.v1.Aggregation.Builder.class);
          +            com.google.monitoring.dashboard.v1.Aggregation.class,
          +            com.google.monitoring.dashboard.v1.Aggregation.Builder.class);
             }
           
             /**
          +   *
          +   *
              * 
              * The `Aligner` specifies the operation that will be applied to the data
              * points in each alignment period in a time series. Except for
          @@ -90,9 +110,10 @@ protected java.lang.Object newInstance(
              *
              * Protobuf enum {@code google.monitoring.dashboard.v1.Aggregation.Aligner}
              */
          -  public enum Aligner
          -      implements com.google.protobuf.ProtocolMessageEnum {
          +  public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
               /**
          +     *
          +     *
                * 
                * No alignment. Raw data is returned. Not valid if cross-series reduction
                * is requested. The `value_type` of the result is the same as the
          @@ -103,6 +124,8 @@ public enum Aligner
                */
               ALIGN_NONE(0),
               /**
          +     *
          +     *
                * 
                * Align and convert to
                * [DELTA][google.api.MetricDescriptor.MetricKind.DELTA].
          @@ -120,6 +143,8 @@ public enum Aligner
                */
               ALIGN_DELTA(1),
               /**
          +     *
          +     *
                * 
                * Align and convert to a rate. The result is computed as
                * `rate = (y1 - y0)/(t1 - t0)`, or "delta over time".
          @@ -140,6 +165,8 @@ public enum Aligner
                */
               ALIGN_RATE(2),
               /**
          +     *
          +     *
                * 
                * Align by interpolating between adjacent points around the alignment
                * period boundary. This aligner is valid for `GAUGE` metrics with
          @@ -151,6 +178,8 @@ public enum Aligner
                */
               ALIGN_INTERPOLATE(3),
               /**
          +     *
          +     *
                * 
                * Align by moving the most recent data point before the end of the
                * alignment period to the boundary at the end of the alignment
          @@ -162,6 +191,8 @@ public enum Aligner
                */
               ALIGN_NEXT_OLDER(4),
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the minimum value in each alignment
                * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
          @@ -173,6 +204,8 @@ public enum Aligner
                */
               ALIGN_MIN(10),
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the maximum value in each alignment
                * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
          @@ -184,6 +217,8 @@ public enum Aligner
                */
               ALIGN_MAX(11),
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the mean value in each alignment
                * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
          @@ -194,6 +229,8 @@ public enum Aligner
                */
               ALIGN_MEAN(12),
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the number of values in each alignment
                * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
          @@ -205,6 +242,8 @@ public enum Aligner
                */
               ALIGN_COUNT(13),
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the sum of the values in each
                * alignment period. This aligner is valid for `GAUGE` and `DELTA`
          @@ -216,6 +255,8 @@ public enum Aligner
                */
               ALIGN_SUM(14),
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the standard deviation of the values
                * in each alignment period. This aligner is valid for `GAUGE` and
          @@ -227,6 +268,8 @@ public enum Aligner
                */
               ALIGN_STDDEV(15),
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the number of `True` values in
                * each alignment period. This aligner is valid for `GAUGE` metrics with
          @@ -237,6 +280,8 @@ public enum Aligner
                */
               ALIGN_COUNT_TRUE(16),
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the number of `False` values in
                * each alignment period. This aligner is valid for `GAUGE` metrics with
          @@ -247,6 +292,8 @@ public enum Aligner
                */
               ALIGN_COUNT_FALSE(24),
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the ratio of the number of `True`
                * values to the total number of values in each alignment period. This
          @@ -258,6 +305,8 @@ public enum Aligner
                */
               ALIGN_FRACTION_TRUE(17),
               /**
          +     *
          +     *
                * 
                * Align the time series by using [percentile
                * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
          @@ -271,6 +320,8 @@ public enum Aligner
                */
               ALIGN_PERCENTILE_99(18),
               /**
          +     *
          +     *
                * 
                * Align the time series by using [percentile
                * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
          @@ -284,6 +335,8 @@ public enum Aligner
                */
               ALIGN_PERCENTILE_95(19),
               /**
          +     *
          +     *
                * 
                * Align the time series by using [percentile
                * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
          @@ -297,6 +350,8 @@ public enum Aligner
                */
               ALIGN_PERCENTILE_50(20),
               /**
          +     *
          +     *
                * 
                * Align the time series by using [percentile
                * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
          @@ -310,6 +365,8 @@ public enum Aligner
                */
               ALIGN_PERCENTILE_05(21),
               /**
          +     *
          +     *
                * 
                * Align and convert to a percentage change. This aligner is valid for
                * `GAUGE` and `DELTA` metrics with numeric values. This alignment returns
          @@ -336,6 +393,8 @@ public enum Aligner
               ;
           
               /**
          +     *
          +     *
                * 
                * No alignment. Raw data is returned. Not valid if cross-series reduction
                * is requested. The `value_type` of the result is the same as the
          @@ -346,6 +405,8 @@ public enum Aligner
                */
               public static final int ALIGN_NONE_VALUE = 0;
               /**
          +     *
          +     *
                * 
                * Align and convert to
                * [DELTA][google.api.MetricDescriptor.MetricKind.DELTA].
          @@ -363,6 +424,8 @@ public enum Aligner
                */
               public static final int ALIGN_DELTA_VALUE = 1;
               /**
          +     *
          +     *
                * 
                * Align and convert to a rate. The result is computed as
                * `rate = (y1 - y0)/(t1 - t0)`, or "delta over time".
          @@ -383,6 +446,8 @@ public enum Aligner
                */
               public static final int ALIGN_RATE_VALUE = 2;
               /**
          +     *
          +     *
                * 
                * Align by interpolating between adjacent points around the alignment
                * period boundary. This aligner is valid for `GAUGE` metrics with
          @@ -394,6 +459,8 @@ public enum Aligner
                */
               public static final int ALIGN_INTERPOLATE_VALUE = 3;
               /**
          +     *
          +     *
                * 
                * Align by moving the most recent data point before the end of the
                * alignment period to the boundary at the end of the alignment
          @@ -405,6 +472,8 @@ public enum Aligner
                */
               public static final int ALIGN_NEXT_OLDER_VALUE = 4;
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the minimum value in each alignment
                * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
          @@ -416,6 +485,8 @@ public enum Aligner
                */
               public static final int ALIGN_MIN_VALUE = 10;
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the maximum value in each alignment
                * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
          @@ -427,6 +498,8 @@ public enum Aligner
                */
               public static final int ALIGN_MAX_VALUE = 11;
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the mean value in each alignment
                * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
          @@ -437,6 +510,8 @@ public enum Aligner
                */
               public static final int ALIGN_MEAN_VALUE = 12;
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the number of values in each alignment
                * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
          @@ -448,6 +523,8 @@ public enum Aligner
                */
               public static final int ALIGN_COUNT_VALUE = 13;
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the sum of the values in each
                * alignment period. This aligner is valid for `GAUGE` and `DELTA`
          @@ -459,6 +536,8 @@ public enum Aligner
                */
               public static final int ALIGN_SUM_VALUE = 14;
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the standard deviation of the values
                * in each alignment period. This aligner is valid for `GAUGE` and
          @@ -470,6 +549,8 @@ public enum Aligner
                */
               public static final int ALIGN_STDDEV_VALUE = 15;
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the number of `True` values in
                * each alignment period. This aligner is valid for `GAUGE` metrics with
          @@ -480,6 +561,8 @@ public enum Aligner
                */
               public static final int ALIGN_COUNT_TRUE_VALUE = 16;
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the number of `False` values in
                * each alignment period. This aligner is valid for `GAUGE` metrics with
          @@ -490,6 +573,8 @@ public enum Aligner
                */
               public static final int ALIGN_COUNT_FALSE_VALUE = 24;
               /**
          +     *
          +     *
                * 
                * Align the time series by returning the ratio of the number of `True`
                * values to the total number of values in each alignment period. This
          @@ -501,6 +586,8 @@ public enum Aligner
                */
               public static final int ALIGN_FRACTION_TRUE_VALUE = 17;
               /**
          +     *
          +     *
                * 
                * Align the time series by using [percentile
                * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
          @@ -514,6 +601,8 @@ public enum Aligner
                */
               public static final int ALIGN_PERCENTILE_99_VALUE = 18;
               /**
          +     *
          +     *
                * 
                * Align the time series by using [percentile
                * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
          @@ -527,6 +616,8 @@ public enum Aligner
                */
               public static final int ALIGN_PERCENTILE_95_VALUE = 19;
               /**
          +     *
          +     *
                * 
                * Align the time series by using [percentile
                * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
          @@ -540,6 +631,8 @@ public enum Aligner
                */
               public static final int ALIGN_PERCENTILE_50_VALUE = 20;
               /**
          +     *
          +     *
                * 
                * Align the time series by using [percentile
                * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
          @@ -553,6 +646,8 @@ public enum Aligner
                */
               public static final int ALIGN_PERCENTILE_05_VALUE = 21;
               /**
          +     *
          +     *
                * 
                * Align and convert to a percentage change. This aligner is valid for
                * `GAUGE` and `DELTA` metrics with numeric values. This alignment returns
          @@ -576,7 +671,6 @@ public enum Aligner
                */
               public static final int ALIGN_PERCENT_CHANGE_VALUE = 23;
           
          -
               public final int getNumber() {
                 if (this == UNRECOGNIZED) {
                   throw new java.lang.IllegalArgumentException(
          @@ -601,65 +695,81 @@ public static Aligner valueOf(int value) {
                */
               public static Aligner forNumber(int value) {
                 switch (value) {
          -        case 0: return ALIGN_NONE;
          -        case 1: return ALIGN_DELTA;
          -        case 2: return ALIGN_RATE;
          -        case 3: return ALIGN_INTERPOLATE;
          -        case 4: return ALIGN_NEXT_OLDER;
          -        case 10: return ALIGN_MIN;
          -        case 11: return ALIGN_MAX;
          -        case 12: return ALIGN_MEAN;
          -        case 13: return ALIGN_COUNT;
          -        case 14: return ALIGN_SUM;
          -        case 15: return ALIGN_STDDEV;
          -        case 16: return ALIGN_COUNT_TRUE;
          -        case 24: return ALIGN_COUNT_FALSE;
          -        case 17: return ALIGN_FRACTION_TRUE;
          -        case 18: return ALIGN_PERCENTILE_99;
          -        case 19: return ALIGN_PERCENTILE_95;
          -        case 20: return ALIGN_PERCENTILE_50;
          -        case 21: return ALIGN_PERCENTILE_05;
          -        case 23: return ALIGN_PERCENT_CHANGE;
          -        default: return null;
          +        case 0:
          +          return ALIGN_NONE;
          +        case 1:
          +          return ALIGN_DELTA;
          +        case 2:
          +          return ALIGN_RATE;
          +        case 3:
          +          return ALIGN_INTERPOLATE;
          +        case 4:
          +          return ALIGN_NEXT_OLDER;
          +        case 10:
          +          return ALIGN_MIN;
          +        case 11:
          +          return ALIGN_MAX;
          +        case 12:
          +          return ALIGN_MEAN;
          +        case 13:
          +          return ALIGN_COUNT;
          +        case 14:
          +          return ALIGN_SUM;
          +        case 15:
          +          return ALIGN_STDDEV;
          +        case 16:
          +          return ALIGN_COUNT_TRUE;
          +        case 24:
          +          return ALIGN_COUNT_FALSE;
          +        case 17:
          +          return ALIGN_FRACTION_TRUE;
          +        case 18:
          +          return ALIGN_PERCENTILE_99;
          +        case 19:
          +          return ALIGN_PERCENTILE_95;
          +        case 20:
          +          return ALIGN_PERCENTILE_50;
          +        case 21:
          +          return ALIGN_PERCENTILE_05;
          +        case 23:
          +          return ALIGN_PERCENT_CHANGE;
          +        default:
          +          return null;
                 }
               }
           
          -    public static com.google.protobuf.Internal.EnumLiteMap
          -        internalGetValueMap() {
          +    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
                 return internalValueMap;
               }
          -    private static final com.google.protobuf.Internal.EnumLiteMap<
          -        Aligner> internalValueMap =
          -          new com.google.protobuf.Internal.EnumLiteMap() {
          -            public Aligner findValueByNumber(int number) {
          -              return Aligner.forNumber(number);
          -            }
          -          };
           
          -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
          -        getValueDescriptor() {
          +    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
          +        new com.google.protobuf.Internal.EnumLiteMap() {
          +          public Aligner findValueByNumber(int number) {
          +            return Aligner.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() {
          +
          +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
                 return getDescriptor();
               }
          -    public static final com.google.protobuf.Descriptors.EnumDescriptor
          -        getDescriptor() {
          +
          +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
                 return com.google.monitoring.dashboard.v1.Aggregation.getDescriptor().getEnumTypes().get(0);
               }
           
               private static final Aligner[] VALUES = values();
           
          -    public static Aligner valueOf(
          -        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          +    public static Aligner valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                 if (desc.getType() != getDescriptor()) {
          -        throw new java.lang.IllegalArgumentException(
          -          "EnumValueDescriptor is not for this type.");
          +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                 }
                 if (desc.getIndex() == -1) {
                   return UNRECOGNIZED;
          @@ -677,6 +787,8 @@ private Aligner(int value) {
             }
           
             /**
          +   *
          +   *
              * 
              * A Reducer operation describes how to aggregate data points from multiple
              * time series into a single time series, where the value of each data point
          @@ -686,9 +798,10 @@ private Aligner(int value) {
              *
              * Protobuf enum {@code google.monitoring.dashboard.v1.Aggregation.Reducer}
              */
          -  public enum Reducer
          -      implements com.google.protobuf.ProtocolMessageEnum {
          +  public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
               /**
          +     *
          +     *
                * 
                * No cross-time series reduction. The output of the `Aligner` is
                * returned.
          @@ -698,6 +811,8 @@ public enum Reducer
                */
               REDUCE_NONE(0),
               /**
          +     *
          +     *
                * 
                * Reduce by computing the mean value across time series for each
                * alignment period. This reducer is valid for
          @@ -711,6 +826,8 @@ public enum Reducer
                */
               REDUCE_MEAN(1),
               /**
          +     *
          +     *
                * 
                * Reduce by computing the minimum value across time series for each
                * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
          @@ -722,6 +839,8 @@ public enum Reducer
                */
               REDUCE_MIN(2),
               /**
          +     *
          +     *
                * 
                * Reduce by computing the maximum value across time series for each
                * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
          @@ -733,6 +852,8 @@ public enum Reducer
                */
               REDUCE_MAX(3),
               /**
          +     *
          +     *
                * 
                * Reduce by computing the sum across time series for each
                * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
          @@ -744,6 +865,8 @@ public enum Reducer
                */
               REDUCE_SUM(4),
               /**
          +     *
          +     *
                * 
                * Reduce by computing the standard deviation across time series
                * for each alignment period. This reducer is valid for `DELTA` and
          @@ -755,6 +878,8 @@ public enum Reducer
                */
               REDUCE_STDDEV(5),
               /**
          +     *
          +     *
                * 
                * Reduce by computing the number of data points across time series
                * for each alignment period. This reducer is valid for `DELTA` and
          @@ -766,6 +891,8 @@ public enum Reducer
                */
               REDUCE_COUNT(6),
               /**
          +     *
          +     *
                * 
                * Reduce by computing the number of `True`-valued data points across time
                * series for each alignment period. This reducer is valid for `DELTA` and
          @@ -777,6 +904,8 @@ public enum Reducer
                */
               REDUCE_COUNT_TRUE(7),
               /**
          +     *
          +     *
                * 
                * Reduce by computing the number of `False`-valued data points across time
                * series for each alignment period. This reducer is valid for `DELTA` and
          @@ -788,6 +917,8 @@ public enum Reducer
                */
               REDUCE_COUNT_FALSE(15),
               /**
          +     *
          +     *
                * 
                * Reduce by computing the ratio of the number of `True`-valued data points
                * to the total number of data points for each alignment period. This
          @@ -800,6 +931,8 @@ public enum Reducer
                */
               REDUCE_FRACTION_TRUE(8),
               /**
          +     *
          +     *
                * 
                * Reduce by computing the [99th
                * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
          @@ -812,6 +945,8 @@ public enum Reducer
                */
               REDUCE_PERCENTILE_99(9),
               /**
          +     *
          +     *
                * 
                * Reduce by computing the [95th
                * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
          @@ -824,6 +959,8 @@ public enum Reducer
                */
               REDUCE_PERCENTILE_95(10),
               /**
          +     *
          +     *
                * 
                * Reduce by computing the [50th
                * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
          @@ -836,6 +973,8 @@ public enum Reducer
                */
               REDUCE_PERCENTILE_50(11),
               /**
          +     *
          +     *
                * 
                * Reduce by computing the [5th
                * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
          @@ -851,6 +990,8 @@ public enum Reducer
               ;
           
               /**
          +     *
          +     *
                * 
                * No cross-time series reduction. The output of the `Aligner` is
                * returned.
          @@ -860,6 +1001,8 @@ public enum Reducer
                */
               public static final int REDUCE_NONE_VALUE = 0;
               /**
          +     *
          +     *
                * 
                * Reduce by computing the mean value across time series for each
                * alignment period. This reducer is valid for
          @@ -873,6 +1016,8 @@ public enum Reducer
                */
               public static final int REDUCE_MEAN_VALUE = 1;
               /**
          +     *
          +     *
                * 
                * Reduce by computing the minimum value across time series for each
                * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
          @@ -884,6 +1029,8 @@ public enum Reducer
                */
               public static final int REDUCE_MIN_VALUE = 2;
               /**
          +     *
          +     *
                * 
                * Reduce by computing the maximum value across time series for each
                * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
          @@ -895,6 +1042,8 @@ public enum Reducer
                */
               public static final int REDUCE_MAX_VALUE = 3;
               /**
          +     *
          +     *
                * 
                * Reduce by computing the sum across time series for each
                * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
          @@ -906,6 +1055,8 @@ public enum Reducer
                */
               public static final int REDUCE_SUM_VALUE = 4;
               /**
          +     *
          +     *
                * 
                * Reduce by computing the standard deviation across time series
                * for each alignment period. This reducer is valid for `DELTA` and
          @@ -917,6 +1068,8 @@ public enum Reducer
                */
               public static final int REDUCE_STDDEV_VALUE = 5;
               /**
          +     *
          +     *
                * 
                * Reduce by computing the number of data points across time series
                * for each alignment period. This reducer is valid for `DELTA` and
          @@ -928,6 +1081,8 @@ public enum Reducer
                */
               public static final int REDUCE_COUNT_VALUE = 6;
               /**
          +     *
          +     *
                * 
                * Reduce by computing the number of `True`-valued data points across time
                * series for each alignment period. This reducer is valid for `DELTA` and
          @@ -939,6 +1094,8 @@ public enum Reducer
                */
               public static final int REDUCE_COUNT_TRUE_VALUE = 7;
               /**
          +     *
          +     *
                * 
                * Reduce by computing the number of `False`-valued data points across time
                * series for each alignment period. This reducer is valid for `DELTA` and
          @@ -950,6 +1107,8 @@ public enum Reducer
                */
               public static final int REDUCE_COUNT_FALSE_VALUE = 15;
               /**
          +     *
          +     *
                * 
                * Reduce by computing the ratio of the number of `True`-valued data points
                * to the total number of data points for each alignment period. This
          @@ -962,6 +1121,8 @@ public enum Reducer
                */
               public static final int REDUCE_FRACTION_TRUE_VALUE = 8;
               /**
          +     *
          +     *
                * 
                * Reduce by computing the [99th
                * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
          @@ -974,6 +1135,8 @@ public enum Reducer
                */
               public static final int REDUCE_PERCENTILE_99_VALUE = 9;
               /**
          +     *
          +     *
                * 
                * Reduce by computing the [95th
                * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
          @@ -986,6 +1149,8 @@ public enum Reducer
                */
               public static final int REDUCE_PERCENTILE_95_VALUE = 10;
               /**
          +     *
          +     *
                * 
                * Reduce by computing the [50th
                * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
          @@ -998,6 +1163,8 @@ public enum Reducer
                */
               public static final int REDUCE_PERCENTILE_50_VALUE = 11;
               /**
          +     *
          +     *
                * 
                * Reduce by computing the [5th
                * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
          @@ -1010,7 +1177,6 @@ public enum Reducer
                */
               public static final int REDUCE_PERCENTILE_05_VALUE = 12;
           
          -
               public final int getNumber() {
                 if (this == UNRECOGNIZED) {
                   throw new java.lang.IllegalArgumentException(
          @@ -1035,60 +1201,71 @@ public static Reducer valueOf(int value) {
                */
               public static Reducer forNumber(int value) {
                 switch (value) {
          -        case 0: return REDUCE_NONE;
          -        case 1: return REDUCE_MEAN;
          -        case 2: return REDUCE_MIN;
          -        case 3: return REDUCE_MAX;
          -        case 4: return REDUCE_SUM;
          -        case 5: return REDUCE_STDDEV;
          -        case 6: return REDUCE_COUNT;
          -        case 7: return REDUCE_COUNT_TRUE;
          -        case 15: return REDUCE_COUNT_FALSE;
          -        case 8: return REDUCE_FRACTION_TRUE;
          -        case 9: return REDUCE_PERCENTILE_99;
          -        case 10: return REDUCE_PERCENTILE_95;
          -        case 11: return REDUCE_PERCENTILE_50;
          -        case 12: return REDUCE_PERCENTILE_05;
          -        default: return null;
          +        case 0:
          +          return REDUCE_NONE;
          +        case 1:
          +          return REDUCE_MEAN;
          +        case 2:
          +          return REDUCE_MIN;
          +        case 3:
          +          return REDUCE_MAX;
          +        case 4:
          +          return REDUCE_SUM;
          +        case 5:
          +          return REDUCE_STDDEV;
          +        case 6:
          +          return REDUCE_COUNT;
          +        case 7:
          +          return REDUCE_COUNT_TRUE;
          +        case 15:
          +          return REDUCE_COUNT_FALSE;
          +        case 8:
          +          return REDUCE_FRACTION_TRUE;
          +        case 9:
          +          return REDUCE_PERCENTILE_99;
          +        case 10:
          +          return REDUCE_PERCENTILE_95;
          +        case 11:
          +          return REDUCE_PERCENTILE_50;
          +        case 12:
          +          return REDUCE_PERCENTILE_05;
          +        default:
          +          return null;
                 }
               }
           
          -    public static com.google.protobuf.Internal.EnumLiteMap
          -        internalGetValueMap() {
          +    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
                 return internalValueMap;
               }
          -    private static final com.google.protobuf.Internal.EnumLiteMap<
          -        Reducer> internalValueMap =
          -          new com.google.protobuf.Internal.EnumLiteMap() {
          -            public Reducer findValueByNumber(int number) {
          -              return Reducer.forNumber(number);
          -            }
          -          };
           
          -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
          -        getValueDescriptor() {
          +    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
          +        new com.google.protobuf.Internal.EnumLiteMap() {
          +          public Reducer findValueByNumber(int number) {
          +            return Reducer.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() {
          +
          +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
                 return getDescriptor();
               }
          -    public static final com.google.protobuf.Descriptors.EnumDescriptor
          -        getDescriptor() {
          +
          +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
                 return com.google.monitoring.dashboard.v1.Aggregation.getDescriptor().getEnumTypes().get(1);
               }
           
               private static final Reducer[] VALUES = values();
           
          -    public static Reducer valueOf(
          -        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          +    public static Reducer valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                 if (desc.getType() != getDescriptor()) {
          -        throw new java.lang.IllegalArgumentException(
          -          "EnumValueDescriptor is not for this type.");
          +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                 }
                 if (desc.getIndex() == -1) {
                   return UNRECOGNIZED;
          @@ -1109,6 +1286,8 @@ private Reducer(int value) {
             public static final int ALIGNMENT_PERIOD_FIELD_NUMBER = 1;
             private com.google.protobuf.Duration alignmentPeriod_;
             /**
          +   *
          +   *
              * 
              * The `alignment_period` specifies a time interval, in seconds, that is used
              * to divide the data in all the
          @@ -1125,6 +1304,7 @@ private Reducer(int value) {
              * 
          * * .google.protobuf.Duration alignment_period = 1; + * * @return Whether the alignmentPeriod field is set. */ @java.lang.Override @@ -1132,6 +1312,8 @@ public boolean hasAlignmentPeriod() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
              * The `alignment_period` specifies a time interval, in seconds, that is used
              * to divide the data in all the
          @@ -1148,13 +1330,18 @@ public boolean hasAlignmentPeriod() {
              * 
          * * .google.protobuf.Duration alignment_period = 1; + * * @return The alignmentPeriod. */ @java.lang.Override public com.google.protobuf.Duration getAlignmentPeriod() { - return alignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : alignmentPeriod_; + return alignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : alignmentPeriod_; } /** + * + * *
              * The `alignment_period` specifies a time interval, in seconds, that is used
              * to divide the data in all the
          @@ -1174,12 +1361,16 @@ public com.google.protobuf.Duration getAlignmentPeriod() {
              */
             @java.lang.Override
             public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
          -    return alignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : alignmentPeriod_;
          +    return alignmentPeriod_ == null
          +        ? com.google.protobuf.Duration.getDefaultInstance()
          +        : alignmentPeriod_;
             }
           
             public static final int PER_SERIES_ALIGNER_FIELD_NUMBER = 2;
             private int perSeriesAligner_ = 0;
             /**
          +   *
          +   *
              * 
              * An `Aligner` describes how to bring the data points in a single
              * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -1200,12 +1391,16 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
              * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; + * * @return The enum numeric value on the wire for perSeriesAligner. */ - @java.lang.Override public int getPerSeriesAlignerValue() { + @java.lang.Override + public int getPerSeriesAlignerValue() { return perSeriesAligner_; } /** + * + * *
              * An `Aligner` describes how to bring the data points in a single
              * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -1226,16 +1421,23 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
              * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; + * * @return The perSeriesAligner. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.Aggregation.Aligner getPerSeriesAligner() { - com.google.monitoring.dashboard.v1.Aggregation.Aligner result = com.google.monitoring.dashboard.v1.Aggregation.Aligner.forNumber(perSeriesAligner_); - return result == null ? com.google.monitoring.dashboard.v1.Aggregation.Aligner.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.Aggregation.Aligner getPerSeriesAligner() { + com.google.monitoring.dashboard.v1.Aggregation.Aligner result = + com.google.monitoring.dashboard.v1.Aggregation.Aligner.forNumber(perSeriesAligner_); + return result == null + ? com.google.monitoring.dashboard.v1.Aggregation.Aligner.UNRECOGNIZED + : result; } public static final int CROSS_SERIES_REDUCER_FIELD_NUMBER = 4; private int crossSeriesReducer_ = 0; /** + * + * *
              * The reduction operation to be used to combine time series into a single
              * time series, where the value of each data point in the resulting series is
          @@ -1254,12 +1456,16 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
              * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; + * * @return The enum numeric value on the wire for crossSeriesReducer. */ - @java.lang.Override public int getCrossSeriesReducerValue() { + @java.lang.Override + public int getCrossSeriesReducerValue() { return crossSeriesReducer_; } /** + * + * *
              * The reduction operation to be used to combine time series into a single
              * time series, where the value of each data point in the resulting series is
          @@ -1278,18 +1484,26 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
              * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; + * * @return The crossSeriesReducer. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.Aggregation.Reducer getCrossSeriesReducer() { - com.google.monitoring.dashboard.v1.Aggregation.Reducer result = com.google.monitoring.dashboard.v1.Aggregation.Reducer.forNumber(crossSeriesReducer_); - return result == null ? com.google.monitoring.dashboard.v1.Aggregation.Reducer.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.Aggregation.Reducer getCrossSeriesReducer() { + com.google.monitoring.dashboard.v1.Aggregation.Reducer result = + com.google.monitoring.dashboard.v1.Aggregation.Reducer.forNumber(crossSeriesReducer_); + return result == null + ? com.google.monitoring.dashboard.v1.Aggregation.Reducer.UNRECOGNIZED + : result; } public static final int GROUP_BY_FIELDS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
              * The set of fields to preserve when `cross_series_reducer` is
              * specified. The `group_by_fields` determine how the time series are
          @@ -1308,13 +1522,15 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
              * 
          * * repeated string group_by_fields = 5; + * * @return A list containing the groupByFields. */ - public com.google.protobuf.ProtocolStringList - getGroupByFieldsList() { + public com.google.protobuf.ProtocolStringList getGroupByFieldsList() { return groupByFields_; } /** + * + * *
              * The set of fields to preserve when `cross_series_reducer` is
              * specified. The `group_by_fields` determine how the time series are
          @@ -1333,12 +1549,15 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
              * 
          * * repeated string group_by_fields = 5; + * * @return The count of groupByFields. */ public int getGroupByFieldsCount() { return groupByFields_.size(); } /** + * + * *
              * The set of fields to preserve when `cross_series_reducer` is
              * specified. The `group_by_fields` determine how the time series are
          @@ -1357,6 +1576,7 @@ public int getGroupByFieldsCount() {
              * 
          * * repeated string group_by_fields = 5; + * * @param index The index of the element to return. * @return The groupByFields at the given index. */ @@ -1364,6 +1584,8 @@ public java.lang.String getGroupByFields(int index) { return groupByFields_.get(index); } /** + * + * *
              * The set of fields to preserve when `cross_series_reducer` is
              * specified. The `group_by_fields` determine how the time series are
          @@ -1382,15 +1604,16 @@ public java.lang.String getGroupByFields(int index) {
              * 
          * * repeated string group_by_fields = 5; + * * @param index The index of the value to return. * @return The bytes of the groupByFields at the given index. */ - public com.google.protobuf.ByteString - getGroupByFieldsBytes(int index) { + public com.google.protobuf.ByteString getGroupByFieldsBytes(int index) { return groupByFields_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1402,15 +1625,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getAlignmentPeriod()); } - if (perSeriesAligner_ != com.google.monitoring.dashboard.v1.Aggregation.Aligner.ALIGN_NONE.getNumber()) { + if (perSeriesAligner_ + != com.google.monitoring.dashboard.v1.Aggregation.Aligner.ALIGN_NONE.getNumber()) { output.writeEnum(2, perSeriesAligner_); } - if (crossSeriesReducer_ != com.google.monitoring.dashboard.v1.Aggregation.Reducer.REDUCE_NONE.getNumber()) { + if (crossSeriesReducer_ + != com.google.monitoring.dashboard.v1.Aggregation.Reducer.REDUCE_NONE.getNumber()) { output.writeEnum(4, crossSeriesReducer_); } for (int i = 0; i < groupByFields_.size(); i++) { @@ -1426,16 +1650,15 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAlignmentPeriod()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAlignmentPeriod()); } - if (perSeriesAligner_ != com.google.monitoring.dashboard.v1.Aggregation.Aligner.ALIGN_NONE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, perSeriesAligner_); + if (perSeriesAligner_ + != com.google.monitoring.dashboard.v1.Aggregation.Aligner.ALIGN_NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, perSeriesAligner_); } - if (crossSeriesReducer_ != com.google.monitoring.dashboard.v1.Aggregation.Reducer.REDUCE_NONE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, crossSeriesReducer_); + if (crossSeriesReducer_ + != com.google.monitoring.dashboard.v1.Aggregation.Reducer.REDUCE_NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, crossSeriesReducer_); } { int dataSize = 0; @@ -1453,22 +1676,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.Aggregation)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.Aggregation other = (com.google.monitoring.dashboard.v1.Aggregation) obj; + com.google.monitoring.dashboard.v1.Aggregation other = + (com.google.monitoring.dashboard.v1.Aggregation) obj; if (hasAlignmentPeriod() != other.hasAlignmentPeriod()) return false; if (hasAlignmentPeriod()) { - if (!getAlignmentPeriod() - .equals(other.getAlignmentPeriod())) return false; + if (!getAlignmentPeriod().equals(other.getAlignmentPeriod())) return false; } if (perSeriesAligner_ != other.perSeriesAligner_) return false; if (crossSeriesReducer_ != other.crossSeriesReducer_) return false; - if (!getGroupByFieldsList() - .equals(other.getGroupByFieldsList())) return false; + if (!getGroupByFieldsList().equals(other.getGroupByFieldsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1497,99 +1719,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.Aggregation parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.Aggregation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Aggregation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Aggregation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Aggregation 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.Aggregation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Aggregation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.Aggregation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.Aggregation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Aggregation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.Aggregation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.Aggregation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.Aggregation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.Aggregation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.Aggregation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Describes how to combine multiple time series to provide a different view of
              * the data.  Aggregation of time series is done in two steps. First, each time
          @@ -1621,21 +1848,23 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.Aggregation}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Aggregation)
                 com.google.monitoring.dashboard.v1.AggregationOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.CommonProto
          +          .internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_Aggregation_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.CommonProto
          +          .internal_static_google_monitoring_dashboard_v1_Aggregation_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.Aggregation.class, com.google.monitoring.dashboard.v1.Aggregation.Builder.class);
          +              com.google.monitoring.dashboard.v1.Aggregation.class,
          +              com.google.monitoring.dashboard.v1.Aggregation.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.Aggregation.newBuilder()
          @@ -1643,17 +1872,17 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          +
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3
          -              .alwaysUseFieldBuilders) {
          +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                   getAlignmentPeriodFieldBuilder();
                 }
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -1665,15 +1894,14 @@ public Builder clear() {
                 }
                 perSeriesAligner_ = 0;
                 crossSeriesReducer_ = 0;
          -      groupByFields_ =
          -          com.google.protobuf.LazyStringArrayList.emptyList();
          +      groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList();
                 return this;
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.CommonProto
          +          .internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor;
               }
           
               @java.lang.Override
          @@ -1692,8 +1920,11 @@ public com.google.monitoring.dashboard.v1.Aggregation build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.Aggregation buildPartial() {
          -      com.google.monitoring.dashboard.v1.Aggregation result = new com.google.monitoring.dashboard.v1.Aggregation(this);
          -      if (bitField0_ != 0) { buildPartial0(result); }
          +      com.google.monitoring.dashboard.v1.Aggregation result =
          +          new com.google.monitoring.dashboard.v1.Aggregation(this);
          +      if (bitField0_ != 0) {
          +        buildPartial0(result);
          +      }
                 onBuilt();
                 return result;
               }
          @@ -1702,9 +1933,8 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Aggregation result
                 int from_bitField0_ = bitField0_;
                 int to_bitField0_ = 0;
                 if (((from_bitField0_ & 0x00000001) != 0)) {
          -        result.alignmentPeriod_ = alignmentPeriodBuilder_ == null
          -            ? alignmentPeriod_
          -            : alignmentPeriodBuilder_.build();
          +        result.alignmentPeriod_ =
          +            alignmentPeriodBuilder_ == null ? alignmentPeriod_ : alignmentPeriodBuilder_.build();
                   to_bitField0_ |= 0x00000001;
                 }
                 if (((from_bitField0_ & 0x00000002) != 0)) {
          @@ -1724,38 +1954,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Aggregation result
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.Aggregation) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.Aggregation)other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.Aggregation) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1809,35 +2040,38 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10: {
          -              input.readMessage(
          -                  getAlignmentPeriodFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              bitField0_ |= 0x00000001;
          -              break;
          -            } // case 10
          -            case 16: {
          -              perSeriesAligner_ = input.readEnum();
          -              bitField0_ |= 0x00000002;
          -              break;
          -            } // case 16
          -            case 32: {
          -              crossSeriesReducer_ = input.readEnum();
          -              bitField0_ |= 0x00000004;
          -              break;
          -            } // case 32
          -            case 42: {
          -              java.lang.String s = input.readStringRequireUtf8();
          -              ensureGroupByFieldsIsMutable();
          -              groupByFields_.add(s);
          -              break;
          -            } // case 42
          -            default: {
          -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                done = true; // was an endgroup tag
          -              }
          -              break;
          -            } // default:
          +            case 10:
          +              {
          +                input.readMessage(getAlignmentPeriodFieldBuilder().getBuilder(), extensionRegistry);
          +                bitField0_ |= 0x00000001;
          +                break;
          +              } // case 10
          +            case 16:
          +              {
          +                perSeriesAligner_ = input.readEnum();
          +                bitField0_ |= 0x00000002;
          +                break;
          +              } // case 16
          +            case 32:
          +              {
          +                crossSeriesReducer_ = input.readEnum();
          +                bitField0_ |= 0x00000004;
          +                break;
          +              } // case 32
          +            case 42:
          +              {
          +                java.lang.String s = input.readStringRequireUtf8();
          +                ensureGroupByFieldsIsMutable();
          +                groupByFields_.add(s);
          +                break;
          +              } // case 42
          +            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) {
          @@ -1847,12 +2081,18 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          +
               private int bitField0_;
           
               private com.google.protobuf.Duration alignmentPeriod_;
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> alignmentPeriodBuilder_;
          +            com.google.protobuf.Duration,
          +            com.google.protobuf.Duration.Builder,
          +            com.google.protobuf.DurationOrBuilder>
          +        alignmentPeriodBuilder_;
               /**
          +     *
          +     *
                * 
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -1869,12 +2109,15 @@ public Builder mergeFrom(
                * 
          * * .google.protobuf.Duration alignment_period = 1; + * * @return Whether the alignmentPeriod field is set. */ public boolean hasAlignmentPeriod() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -1891,16 +2134,21 @@ public boolean hasAlignmentPeriod() {
                * 
          * * .google.protobuf.Duration alignment_period = 1; + * * @return The alignmentPeriod. */ public com.google.protobuf.Duration getAlignmentPeriod() { if (alignmentPeriodBuilder_ == null) { - return alignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : alignmentPeriod_; + return alignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : alignmentPeriod_; } else { return alignmentPeriodBuilder_.getMessage(); } } /** + * + * *
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -1932,6 +2180,8 @@ public Builder setAlignmentPeriod(com.google.protobuf.Duration value) {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -1949,8 +2199,7 @@ public Builder setAlignmentPeriod(com.google.protobuf.Duration value) {
                *
                * .google.protobuf.Duration alignment_period = 1;
                */
          -    public Builder setAlignmentPeriod(
          -        com.google.protobuf.Duration.Builder builderForValue) {
          +    public Builder setAlignmentPeriod(com.google.protobuf.Duration.Builder builderForValue) {
                 if (alignmentPeriodBuilder_ == null) {
                   alignmentPeriod_ = builderForValue.build();
                 } else {
          @@ -1961,6 +2210,8 @@ public Builder setAlignmentPeriod(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -1980,9 +2231,9 @@ public Builder setAlignmentPeriod(
                */
               public Builder mergeAlignmentPeriod(com.google.protobuf.Duration value) {
                 if (alignmentPeriodBuilder_ == null) {
          -        if (((bitField0_ & 0x00000001) != 0) &&
          -          alignmentPeriod_ != null &&
          -          alignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
          +        if (((bitField0_ & 0x00000001) != 0)
          +            && alignmentPeriod_ != null
          +            && alignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
                     getAlignmentPeriodBuilder().mergeFrom(value);
                   } else {
                     alignmentPeriod_ = value;
          @@ -1997,6 +2248,8 @@ public Builder mergeAlignmentPeriod(com.google.protobuf.Duration value) {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -2025,6 +2278,8 @@ public Builder clearAlignmentPeriod() {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -2048,6 +2303,8 @@ public com.google.protobuf.Duration.Builder getAlignmentPeriodBuilder() {
                 return getAlignmentPeriodFieldBuilder().getBuilder();
               }
               /**
          +     *
          +     *
                * 
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -2069,11 +2326,14 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
                 if (alignmentPeriodBuilder_ != null) {
                   return alignmentPeriodBuilder_.getMessageOrBuilder();
                 } else {
          -        return alignmentPeriod_ == null ?
          -            com.google.protobuf.Duration.getDefaultInstance() : alignmentPeriod_;
          +        return alignmentPeriod_ == null
          +            ? com.google.protobuf.Duration.getDefaultInstance()
          +            : alignmentPeriod_;
                 }
               }
               /**
          +     *
          +     *
                * 
                * The `alignment_period` specifies a time interval, in seconds, that is used
                * to divide the data in all the
          @@ -2092,14 +2352,17 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
                * .google.protobuf.Duration alignment_period = 1;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
          +            com.google.protobuf.Duration,
          +            com.google.protobuf.Duration.Builder,
          +            com.google.protobuf.DurationOrBuilder>
                   getAlignmentPeriodFieldBuilder() {
                 if (alignmentPeriodBuilder_ == null) {
          -        alignmentPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
          -                getAlignmentPeriod(),
          -                getParentForChildren(),
          -                isClean());
          +        alignmentPeriodBuilder_ =
          +            new com.google.protobuf.SingleFieldBuilderV3<
          +                com.google.protobuf.Duration,
          +                com.google.protobuf.Duration.Builder,
          +                com.google.protobuf.DurationOrBuilder>(
          +                getAlignmentPeriod(), getParentForChildren(), isClean());
                   alignmentPeriod_ = null;
                 }
                 return alignmentPeriodBuilder_;
          @@ -2107,6 +2370,8 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
           
               private int perSeriesAligner_ = 0;
               /**
          +     *
          +     *
                * 
                * An `Aligner` describes how to bring the data points in a single
                * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -2127,12 +2392,16 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; + * * @return The enum numeric value on the wire for perSeriesAligner. */ - @java.lang.Override public int getPerSeriesAlignerValue() { + @java.lang.Override + public int getPerSeriesAlignerValue() { return perSeriesAligner_; } /** + * + * *
                * An `Aligner` describes how to bring the data points in a single
                * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -2153,6 +2422,7 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; + * * @param value The enum numeric value on the wire for perSeriesAligner to set. * @return This builder for chaining. */ @@ -2163,6 +2433,8 @@ public Builder setPerSeriesAlignerValue(int value) { return this; } /** + * + * *
                * An `Aligner` describes how to bring the data points in a single
                * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -2183,14 +2455,20 @@ public Builder setPerSeriesAlignerValue(int value) {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; + * * @return The perSeriesAligner. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Aggregation.Aligner getPerSeriesAligner() { - com.google.monitoring.dashboard.v1.Aggregation.Aligner result = com.google.monitoring.dashboard.v1.Aggregation.Aligner.forNumber(perSeriesAligner_); - return result == null ? com.google.monitoring.dashboard.v1.Aggregation.Aligner.UNRECOGNIZED : result; + com.google.monitoring.dashboard.v1.Aggregation.Aligner result = + com.google.monitoring.dashboard.v1.Aggregation.Aligner.forNumber(perSeriesAligner_); + return result == null + ? com.google.monitoring.dashboard.v1.Aggregation.Aligner.UNRECOGNIZED + : result; } /** + * + * *
                * An `Aligner` describes how to bring the data points in a single
                * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -2211,10 +2489,12 @@ public com.google.monitoring.dashboard.v1.Aggregation.Aligner getPerSeriesAligne
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; + * * @param value The perSeriesAligner to set. * @return This builder for chaining. */ - public Builder setPerSeriesAligner(com.google.monitoring.dashboard.v1.Aggregation.Aligner value) { + public Builder setPerSeriesAligner( + com.google.monitoring.dashboard.v1.Aggregation.Aligner value) { if (value == null) { throw new NullPointerException(); } @@ -2224,6 +2504,8 @@ public Builder setPerSeriesAligner(com.google.monitoring.dashboard.v1.Aggregatio return this; } /** + * + * *
                * An `Aligner` describes how to bring the data points in a single
                * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -2244,6 +2526,7 @@ public Builder setPerSeriesAligner(com.google.monitoring.dashboard.v1.Aggregatio
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; + * * @return This builder for chaining. */ public Builder clearPerSeriesAligner() { @@ -2255,6 +2538,8 @@ public Builder clearPerSeriesAligner() { private int crossSeriesReducer_ = 0; /** + * + * *
                * The reduction operation to be used to combine time series into a single
                * time series, where the value of each data point in the resulting series is
          @@ -2273,12 +2558,16 @@ public Builder clearPerSeriesAligner() {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; + * * @return The enum numeric value on the wire for crossSeriesReducer. */ - @java.lang.Override public int getCrossSeriesReducerValue() { + @java.lang.Override + public int getCrossSeriesReducerValue() { return crossSeriesReducer_; } /** + * + * *
                * The reduction operation to be used to combine time series into a single
                * time series, where the value of each data point in the resulting series is
          @@ -2297,6 +2586,7 @@ public Builder clearPerSeriesAligner() {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; + * * @param value The enum numeric value on the wire for crossSeriesReducer to set. * @return This builder for chaining. */ @@ -2307,6 +2597,8 @@ public Builder setCrossSeriesReducerValue(int value) { return this; } /** + * + * *
                * The reduction operation to be used to combine time series into a single
                * time series, where the value of each data point in the resulting series is
          @@ -2325,14 +2617,20 @@ public Builder setCrossSeriesReducerValue(int value) {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; + * * @return The crossSeriesReducer. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Aggregation.Reducer getCrossSeriesReducer() { - com.google.monitoring.dashboard.v1.Aggregation.Reducer result = com.google.monitoring.dashboard.v1.Aggregation.Reducer.forNumber(crossSeriesReducer_); - return result == null ? com.google.monitoring.dashboard.v1.Aggregation.Reducer.UNRECOGNIZED : result; + com.google.monitoring.dashboard.v1.Aggregation.Reducer result = + com.google.monitoring.dashboard.v1.Aggregation.Reducer.forNumber(crossSeriesReducer_); + return result == null + ? com.google.monitoring.dashboard.v1.Aggregation.Reducer.UNRECOGNIZED + : result; } /** + * + * *
                * The reduction operation to be used to combine time series into a single
                * time series, where the value of each data point in the resulting series is
          @@ -2351,10 +2649,12 @@ public com.google.monitoring.dashboard.v1.Aggregation.Reducer getCrossSeriesRedu
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; + * * @param value The crossSeriesReducer to set. * @return This builder for chaining. */ - public Builder setCrossSeriesReducer(com.google.monitoring.dashboard.v1.Aggregation.Reducer value) { + public Builder setCrossSeriesReducer( + com.google.monitoring.dashboard.v1.Aggregation.Reducer value) { if (value == null) { throw new NullPointerException(); } @@ -2364,6 +2664,8 @@ public Builder setCrossSeriesReducer(com.google.monitoring.dashboard.v1.Aggregat return this; } /** + * + * *
                * The reduction operation to be used to combine time series into a single
                * time series, where the value of each data point in the resulting series is
          @@ -2382,6 +2684,7 @@ public Builder setCrossSeriesReducer(com.google.monitoring.dashboard.v1.Aggregat
                * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; + * * @return This builder for chaining. */ public Builder clearCrossSeriesReducer() { @@ -2393,6 +2696,7 @@ public Builder clearCrossSeriesReducer() { private com.google.protobuf.LazyStringArrayList groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureGroupByFieldsIsMutable() { if (!groupByFields_.isModifiable()) { groupByFields_ = new com.google.protobuf.LazyStringArrayList(groupByFields_); @@ -2400,6 +2704,8 @@ private void ensureGroupByFieldsIsMutable() { bitField0_ |= 0x00000008; } /** + * + * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2418,14 +2724,16 @@ private void ensureGroupByFieldsIsMutable() {
                * 
          * * repeated string group_by_fields = 5; + * * @return A list containing the groupByFields. */ - public com.google.protobuf.ProtocolStringList - getGroupByFieldsList() { + public com.google.protobuf.ProtocolStringList getGroupByFieldsList() { groupByFields_.makeImmutable(); return groupByFields_; } /** + * + * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2444,12 +2752,15 @@ private void ensureGroupByFieldsIsMutable() {
                * 
          * * repeated string group_by_fields = 5; + * * @return The count of groupByFields. */ public int getGroupByFieldsCount() { return groupByFields_.size(); } /** + * + * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2468,6 +2779,7 @@ public int getGroupByFieldsCount() {
                * 
          * * repeated string group_by_fields = 5; + * * @param index The index of the element to return. * @return The groupByFields at the given index. */ @@ -2475,6 +2787,8 @@ public java.lang.String getGroupByFields(int index) { return groupByFields_.get(index); } /** + * + * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2493,14 +2807,16 @@ public java.lang.String getGroupByFields(int index) {
                * 
          * * repeated string group_by_fields = 5; + * * @param index The index of the value to return. * @return The bytes of the groupByFields at the given index. */ - public com.google.protobuf.ByteString - getGroupByFieldsBytes(int index) { + public com.google.protobuf.ByteString getGroupByFieldsBytes(int index) { return groupByFields_.getByteString(index); } /** + * + * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2519,13 +2835,15 @@ public java.lang.String getGroupByFields(int index) {
                * 
          * * repeated string group_by_fields = 5; + * * @param index The index to set the value at. * @param value The groupByFields to set. * @return This builder for chaining. */ - public Builder setGroupByFields( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGroupByFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureGroupByFieldsIsMutable(); groupByFields_.set(index, value); bitField0_ |= 0x00000008; @@ -2533,6 +2851,8 @@ public Builder setGroupByFields( return this; } /** + * + * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2551,12 +2871,14 @@ public Builder setGroupByFields(
                * 
          * * repeated string group_by_fields = 5; + * * @param value The groupByFields to add. * @return This builder for chaining. */ - public Builder addGroupByFields( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addGroupByFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureGroupByFieldsIsMutable(); groupByFields_.add(value); bitField0_ |= 0x00000008; @@ -2564,6 +2886,8 @@ public Builder addGroupByFields( return this; } /** + * + * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2582,19 +2906,20 @@ public Builder addGroupByFields(
                * 
          * * repeated string group_by_fields = 5; + * * @param values The groupByFields to add. * @return This builder for chaining. */ - public Builder addAllGroupByFields( - java.lang.Iterable values) { + public Builder addAllGroupByFields(java.lang.Iterable values) { ensureGroupByFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, groupByFields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByFields_); bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2613,16 +2938,19 @@ public Builder addAllGroupByFields(
                * 
          * * repeated string group_by_fields = 5; + * * @return This builder for chaining. */ public Builder clearGroupByFields() { - groupByFields_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; + groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); return this; } /** + * + * *
                * The set of fields to preserve when `cross_series_reducer` is
                * specified. The `group_by_fields` determine how the time series are
          @@ -2641,12 +2969,14 @@ public Builder clearGroupByFields() {
                * 
          * * repeated string group_by_fields = 5; + * * @param value The bytes of the groupByFields to add. * @return This builder for chaining. */ - public Builder addGroupByFieldsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addGroupByFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureGroupByFieldsIsMutable(); groupByFields_.add(value); @@ -2654,9 +2984,9 @@ public Builder addGroupByFieldsBytes( onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2666,12 +2996,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.Aggregation) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Aggregation) private static final com.google.monitoring.dashboard.v1.Aggregation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Aggregation(); } @@ -2680,27 +3010,27 @@ public static com.google.monitoring.dashboard.v1.Aggregation getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Aggregation 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Aggregation 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; @@ -2715,6 +3045,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.Aggregation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java similarity index 92% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java index 69dc4210f6b6..d0a51174d250 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/common.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface AggregationOrBuilder extends +public interface AggregationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Aggregation) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * The `alignment_period` specifies a time interval, in seconds, that is used
              * to divide the data in all the
          @@ -25,10 +43,13 @@ public interface AggregationOrBuilder extends
              * 
          * * .google.protobuf.Duration alignment_period = 1; + * * @return Whether the alignmentPeriod field is set. */ boolean hasAlignmentPeriod(); /** + * + * *
              * The `alignment_period` specifies a time interval, in seconds, that is used
              * to divide the data in all the
          @@ -45,10 +66,13 @@ public interface AggregationOrBuilder extends
              * 
          * * .google.protobuf.Duration alignment_period = 1; + * * @return The alignmentPeriod. */ com.google.protobuf.Duration getAlignmentPeriod(); /** + * + * *
              * The `alignment_period` specifies a time interval, in seconds, that is used
              * to divide the data in all the
          @@ -69,6 +93,8 @@ public interface AggregationOrBuilder extends
             com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder();
           
             /**
          +   *
          +   *
              * 
              * An `Aligner` describes how to bring the data points in a single
              * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -89,10 +115,13 @@ public interface AggregationOrBuilder extends
              * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; + * * @return The enum numeric value on the wire for perSeriesAligner. */ int getPerSeriesAlignerValue(); /** + * + * *
              * An `Aligner` describes how to bring the data points in a single
              * time series into temporal alignment. Except for `ALIGN_NONE`, all
          @@ -113,11 +142,14 @@ public interface AggregationOrBuilder extends
              * 
          * * .google.monitoring.dashboard.v1.Aggregation.Aligner per_series_aligner = 2; + * * @return The perSeriesAligner. */ com.google.monitoring.dashboard.v1.Aggregation.Aligner getPerSeriesAligner(); /** + * + * *
              * The reduction operation to be used to combine time series into a single
              * time series, where the value of each data point in the resulting series is
          @@ -136,10 +168,13 @@ public interface AggregationOrBuilder extends
              * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; + * * @return The enum numeric value on the wire for crossSeriesReducer. */ int getCrossSeriesReducerValue(); /** + * + * *
              * The reduction operation to be used to combine time series into a single
              * time series, where the value of each data point in the resulting series is
          @@ -158,11 +193,14 @@ public interface AggregationOrBuilder extends
              * 
          * * .google.monitoring.dashboard.v1.Aggregation.Reducer cross_series_reducer = 4; + * * @return The crossSeriesReducer. */ com.google.monitoring.dashboard.v1.Aggregation.Reducer getCrossSeriesReducer(); /** + * + * *
              * The set of fields to preserve when `cross_series_reducer` is
              * specified. The `group_by_fields` determine how the time series are
          @@ -181,11 +219,13 @@ public interface AggregationOrBuilder extends
              * 
          * * repeated string group_by_fields = 5; + * * @return A list containing the groupByFields. */ - java.util.List - getGroupByFieldsList(); + java.util.List getGroupByFieldsList(); /** + * + * *
              * The set of fields to preserve when `cross_series_reducer` is
              * specified. The `group_by_fields` determine how the time series are
          @@ -204,10 +244,13 @@ public interface AggregationOrBuilder extends
              * 
          * * repeated string group_by_fields = 5; + * * @return The count of groupByFields. */ int getGroupByFieldsCount(); /** + * + * *
              * The set of fields to preserve when `cross_series_reducer` is
              * specified. The `group_by_fields` determine how the time series are
          @@ -226,11 +269,14 @@ public interface AggregationOrBuilder extends
              * 
          * * repeated string group_by_fields = 5; + * * @param index The index of the element to return. * @return The groupByFields at the given index. */ java.lang.String getGroupByFields(int index); /** + * + * *
              * The set of fields to preserve when `cross_series_reducer` is
              * specified. The `group_by_fields` determine how the time series are
          @@ -249,9 +295,9 @@ public interface AggregationOrBuilder extends
              * 
          * * repeated string group_by_fields = 5; + * * @param index The index of the value to return. * @return The bytes of the groupByFields at the given index. */ - com.google.protobuf.ByteString - getGroupByFieldsBytes(int index); + com.google.protobuf.ByteString getGroupByFieldsBytes(int index); } diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java similarity index 66% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java index 4430e854d994..6fd6c3f911cb 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/alertchart.proto @@ -5,49 +20,56 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A chart that displays alert policy data.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.AlertChart} */ -public final class AlertChart extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AlertChart extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.AlertChart) AlertChartOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AlertChart.newBuilder() to construct. private AlertChart(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AlertChart() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AlertChart(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.AlertChartProto.internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.AlertChartProto + .internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.AlertChartProto.internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable + return com.google.monitoring.dashboard.v1.AlertChartProto + .internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.AlertChart.class, com.google.monitoring.dashboard.v1.AlertChart.Builder.class); + com.google.monitoring.dashboard.v1.AlertChart.class, + com.google.monitoring.dashboard.v1.AlertChart.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
              * Required. The resource name of the alert policy. The format is:
              *
          @@ -55,6 +77,7 @@ protected java.lang.Object newInstance(
              * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -63,14 +86,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
              * Required. The resource name of the alert policy. The format is:
              *
          @@ -78,16 +102,15 @@ public java.lang.String getName() {
              * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +131,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -132,15 +155,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.AlertChart)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.AlertChart other = (com.google.monitoring.dashboard.v1.AlertChart) obj; + com.google.monitoring.dashboard.v1.AlertChart other = + (com.google.monitoring.dashboard.v1.AlertChart) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,132 +182,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.AlertChart parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.AlertChart parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.AlertChart parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.AlertChart parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.AlertChart 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.AlertChart parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.AlertChart parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.AlertChart parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.AlertChart parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.AlertChart parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.AlertChart parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.AlertChart parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.AlertChart parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.AlertChart parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.AlertChart prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A chart that displays alert policy data.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.AlertChart} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.AlertChart) com.google.monitoring.dashboard.v1.AlertChartOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.AlertChartProto.internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.AlertChartProto + .internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.AlertChartProto.internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable + return com.google.monitoring.dashboard.v1.AlertChartProto + .internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.AlertChart.class, com.google.monitoring.dashboard.v1.AlertChart.Builder.class); + com.google.monitoring.dashboard.v1.AlertChart.class, + com.google.monitoring.dashboard.v1.AlertChart.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.AlertChart.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.AlertChartProto.internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.AlertChartProto + .internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor; } @java.lang.Override @@ -315,8 +342,11 @@ public com.google.monitoring.dashboard.v1.AlertChart build() { @java.lang.Override public com.google.monitoring.dashboard.v1.AlertChart buildPartial() { - com.google.monitoring.dashboard.v1.AlertChart result = new com.google.monitoring.dashboard.v1.AlertChart(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.AlertChart result = + new com.google.monitoring.dashboard.v1.AlertChart(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -332,38 +362,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.AlertChart result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.AlertChart) { - return mergeFrom((com.google.monitoring.dashboard.v1.AlertChart)other); + return mergeFrom((com.google.monitoring.dashboard.v1.AlertChart) other); } else { super.mergeFrom(other); return this; @@ -403,17 +434,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -423,10 +456,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
                * Required. The resource name of the alert policy. The format is:
                *
          @@ -434,13 +470,13 @@ public Builder mergeFrom(
                * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -449,6 +485,8 @@ public java.lang.String getName() { } } /** + * + * *
                * Required. The resource name of the alert policy. The format is:
                *
          @@ -456,15 +494,14 @@ public java.lang.String getName() {
                * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -472,6 +509,8 @@ public java.lang.String getName() { } } /** + * + * *
                * Required. The resource name of the alert policy. The format is:
                *
          @@ -479,18 +518,22 @@ public java.lang.String getName() {
                * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                * Required. The resource name of the alert policy. The format is:
                *
          @@ -498,6 +541,7 @@ public Builder setName(
                * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -507,6 +551,8 @@ public Builder clearName() { return this; } /** + * + * *
                * Required. The resource name of the alert policy. The format is:
                *
          @@ -514,21 +560,23 @@ public Builder clearName() {
                * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -538,12 +586,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.AlertChart) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.AlertChart) private static final com.google.monitoring.dashboard.v1.AlertChart DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.AlertChart(); } @@ -552,27 +600,27 @@ public static com.google.monitoring.dashboard.v1.AlertChart getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AlertChart 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlertChart 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; @@ -587,6 +635,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.AlertChart getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartOrBuilder.java similarity index 56% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartOrBuilder.java index 2cabcd3e0e22..9d2c860ccda3 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/alertchart.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface AlertChartOrBuilder extends +public interface AlertChartOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.AlertChart) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. The resource name of the alert policy. The format is:
              *
          @@ -16,10 +34,13 @@ public interface AlertChartOrBuilder extends
              * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
              * Required. The resource name of the alert policy. The format is:
              *
          @@ -27,8 +48,8 @@ public interface AlertChartOrBuilder extends
              * 
          * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java new file mode 100644 index 000000000000..081455aa1cf3 --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java @@ -0,0 +1,85 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/alertchart.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class AlertChartProto { + private AlertChartProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n/google/monitoring/dashboard/v1/alertch" + + "art.proto\022\036google.monitoring.dashboard.v" + + "1\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\"|\n\nAlertChart\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\002:[\352AX\n%monitoring.googleap" + + "is.com/AlertPolicy\022/projects/{project}/a" + + "lertPolicies/{alert_policy}B\370\001\n\"com.goog" + + "le.monitoring.dashboard.v1B\017AlertChartPr" + + "otoP\001ZFcloud.google.com/go/monitoring/da" + + "shboard/apiv1/dashboardpb;dashboardpb\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" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptions.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptions.java similarity index 67% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptions.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptions.java index dd03b78d9883..d6d675ccbfe5 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptions.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptions.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/xychart.proto @@ -5,55 +20,62 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * Options to control visual rendering of a chart.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ChartOptions} */ -public final class ChartOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ChartOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.ChartOptions) ChartOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ChartOptions.newBuilder() to construct. private ChartOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ChartOptions() { mode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ChartOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_ChartOptions_fieldAccessorTable + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_ChartOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ChartOptions.class, com.google.monitoring.dashboard.v1.ChartOptions.Builder.class); + com.google.monitoring.dashboard.v1.ChartOptions.class, + com.google.monitoring.dashboard.v1.ChartOptions.Builder.class); } /** + * + * *
              * Chart mode options.
              * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.ChartOptions.Mode} */ - public enum Mode - implements com.google.protobuf.ProtocolMessageEnum { + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                * Mode is unspecified. The view will default to `COLOR`.
                * 
          @@ -62,6 +84,8 @@ public enum Mode */ MODE_UNSPECIFIED(0), /** + * + * *
                * The chart distinguishes data series using different color. Line
                * colors may get reused when there are many lines in the chart.
          @@ -71,6 +95,8 @@ public enum Mode
                */
               COLOR(1),
               /**
          +     *
          +     *
                * 
                * The chart uses the Stackdriver x-ray mode, in which each
                * data set is plotted using the same semi-transparent color.
          @@ -80,6 +106,8 @@ public enum Mode
                */
               X_RAY(2),
               /**
          +     *
          +     *
                * 
                * The chart displays statistics such as average, median, 95th percentile,
                * and more.
          @@ -92,6 +120,8 @@ public enum Mode
               ;
           
               /**
          +     *
          +     *
                * 
                * Mode is unspecified. The view will default to `COLOR`.
                * 
          @@ -100,6 +130,8 @@ public enum Mode */ public static final int MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
                * The chart distinguishes data series using different color. Line
                * colors may get reused when there are many lines in the chart.
          @@ -109,6 +141,8 @@ public enum Mode
                */
               public static final int COLOR_VALUE = 1;
               /**
          +     *
          +     *
                * 
                * The chart uses the Stackdriver x-ray mode, in which each
                * data set is plotted using the same semi-transparent color.
          @@ -118,6 +152,8 @@ public enum Mode
                */
               public static final int X_RAY_VALUE = 2;
               /**
          +     *
          +     *
                * 
                * The chart displays statistics such as average, median, 95th percentile,
                * and more.
          @@ -127,7 +163,6 @@ public enum Mode
                */
               public static final int STATS_VALUE = 3;
           
          -
               public final int getNumber() {
                 if (this == UNRECOGNIZED) {
                   throw new java.lang.IllegalArgumentException(
          @@ -152,50 +187,51 @@ public static Mode valueOf(int value) {
                */
               public static Mode forNumber(int value) {
                 switch (value) {
          -        case 0: return MODE_UNSPECIFIED;
          -        case 1: return COLOR;
          -        case 2: return X_RAY;
          -        case 3: return STATS;
          -        default: return null;
          +        case 0:
          +          return MODE_UNSPECIFIED;
          +        case 1:
          +          return COLOR;
          +        case 2:
          +          return X_RAY;
          +        case 3:
          +          return STATS;
          +        default:
          +          return null;
                 }
               }
           
          -    public static com.google.protobuf.Internal.EnumLiteMap
          -        internalGetValueMap() {
          +    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
                 return internalValueMap;
               }
          -    private static final com.google.protobuf.Internal.EnumLiteMap<
          -        Mode> internalValueMap =
          -          new com.google.protobuf.Internal.EnumLiteMap() {
          -            public Mode findValueByNumber(int number) {
          -              return Mode.forNumber(number);
          -            }
          -          };
           
          -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
          -        getValueDescriptor() {
          +    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
          +        new com.google.protobuf.Internal.EnumLiteMap() {
          +          public Mode findValueByNumber(int number) {
          +            return Mode.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() {
          +
          +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
                 return getDescriptor();
               }
          -    public static final com.google.protobuf.Descriptors.EnumDescriptor
          -        getDescriptor() {
          +
          +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
                 return com.google.monitoring.dashboard.v1.ChartOptions.getDescriptor().getEnumTypes().get(0);
               }
           
               private static final Mode[] VALUES = values();
           
          -    public static Mode valueOf(
          -        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          +    public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                 if (desc.getType() != getDescriptor()) {
          -        throw new java.lang.IllegalArgumentException(
          -          "EnumValueDescriptor is not for this type.");
          +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                 }
                 if (desc.getIndex() == -1) {
                   return UNRECOGNIZED;
          @@ -215,30 +251,42 @@ private Mode(int value) {
             public static final int MODE_FIELD_NUMBER = 1;
             private int mode_ = 0;
             /**
          +   *
          +   *
              * 
              * The chart mode.
              * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; + * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override public int getModeValue() { + @java.lang.Override + public int getModeValue() { return mode_; } /** + * + * *
              * The chart mode.
              * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; + * * @return The mode. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.ChartOptions.Mode getMode() { - com.google.monitoring.dashboard.v1.ChartOptions.Mode result = com.google.monitoring.dashboard.v1.ChartOptions.Mode.forNumber(mode_); - return result == null ? com.google.monitoring.dashboard.v1.ChartOptions.Mode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.ChartOptions.Mode getMode() { + com.google.monitoring.dashboard.v1.ChartOptions.Mode result = + com.google.monitoring.dashboard.v1.ChartOptions.Mode.forNumber(mode_); + return result == null + ? com.google.monitoring.dashboard.v1.ChartOptions.Mode.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,9 +298,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (mode_ != com.google.monitoring.dashboard.v1.ChartOptions.Mode.MODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (mode_ + != com.google.monitoring.dashboard.v1.ChartOptions.Mode.MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, mode_); } getUnknownFields().writeTo(output); @@ -264,9 +312,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (mode_ != com.google.monitoring.dashboard.v1.ChartOptions.Mode.MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, mode_); + if (mode_ + != com.google.monitoring.dashboard.v1.ChartOptions.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -276,12 +324,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.ChartOptions)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.ChartOptions other = (com.google.monitoring.dashboard.v1.ChartOptions) obj; + com.google.monitoring.dashboard.v1.ChartOptions other = + (com.google.monitoring.dashboard.v1.ChartOptions) obj; if (mode_ != other.mode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -302,132 +351,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.ChartOptions parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.ChartOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ChartOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ChartOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ChartOptions 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.ChartOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ChartOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.ChartOptions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.ChartOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ChartOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.ChartOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.ChartOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.ChartOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.ChartOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.ChartOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Options to control visual rendering of a chart.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ChartOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.ChartOptions) com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_ChartOptions_fieldAccessorTable + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_ChartOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ChartOptions.class, com.google.monitoring.dashboard.v1.ChartOptions.Builder.class); + com.google.monitoring.dashboard.v1.ChartOptions.class, + com.google.monitoring.dashboard.v1.ChartOptions.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.ChartOptions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor; } @java.lang.Override @@ -458,8 +511,11 @@ public com.google.monitoring.dashboard.v1.ChartOptions build() { @java.lang.Override public com.google.monitoring.dashboard.v1.ChartOptions buildPartial() { - com.google.monitoring.dashboard.v1.ChartOptions result = new com.google.monitoring.dashboard.v1.ChartOptions(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.ChartOptions result = + new com.google.monitoring.dashboard.v1.ChartOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -475,38 +531,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.ChartOptions resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ChartOptions) { - return mergeFrom((com.google.monitoring.dashboard.v1.ChartOptions)other); + return mergeFrom((com.google.monitoring.dashboard.v1.ChartOptions) other); } else { super.mergeFrom(other); return this; @@ -514,7 +571,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.ChartOptions other) { - if (other == com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance()) return this; + if (other == com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance()) + return this; if (other.mode_ != 0) { setModeValue(other.getModeValue()); } @@ -544,17 +602,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - mode_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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) { @@ -564,26 +624,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int mode_ = 0; /** + * + * *
                * The chart mode.
                * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; + * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override public int getModeValue() { + @java.lang.Override + public int getModeValue() { return mode_; } /** + * + * *
                * The chart mode.
                * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; + * * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ @@ -594,24 +662,33 @@ public Builder setModeValue(int value) { return this; } /** + * + * *
                * The chart mode.
                * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; + * * @return The mode. */ @java.lang.Override public com.google.monitoring.dashboard.v1.ChartOptions.Mode getMode() { - com.google.monitoring.dashboard.v1.ChartOptions.Mode result = com.google.monitoring.dashboard.v1.ChartOptions.Mode.forNumber(mode_); - return result == null ? com.google.monitoring.dashboard.v1.ChartOptions.Mode.UNRECOGNIZED : result; + com.google.monitoring.dashboard.v1.ChartOptions.Mode result = + com.google.monitoring.dashboard.v1.ChartOptions.Mode.forNumber(mode_); + return result == null + ? com.google.monitoring.dashboard.v1.ChartOptions.Mode.UNRECOGNIZED + : result; } /** + * + * *
                * The chart mode.
                * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; + * * @param value The mode to set. * @return This builder for chaining. */ @@ -625,11 +702,14 @@ public Builder setMode(com.google.monitoring.dashboard.v1.ChartOptions.Mode valu return this; } /** + * + * *
                * The chart mode.
                * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; + * * @return This builder for chaining. */ public Builder clearMode() { @@ -638,9 +718,9 @@ public Builder clearMode() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -650,12 +730,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.ChartOptions) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.ChartOptions) private static final com.google.monitoring.dashboard.v1.ChartOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.ChartOptions(); } @@ -664,27 +744,27 @@ public static com.google.monitoring.dashboard.v1.ChartOptions getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChartOptions 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChartOptions 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; @@ -699,6 +779,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.ChartOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptionsOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptionsOrBuilder.java similarity index 53% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptionsOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptionsOrBuilder.java index 5dc0be6c5746..74a5f5df01a6 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptionsOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptionsOrBuilder.java @@ -1,28 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/xychart.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface ChartOptionsOrBuilder extends +public interface ChartOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.ChartOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * The chart mode.
              * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; + * * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** + * + * *
              * The chart mode.
              * 
          * * .google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1; + * * @return The mode. */ com.google.monitoring.dashboard.v1.ChartOptions.Mode getMode(); diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java similarity index 66% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java index 4d9fddfb05b2..3c571270622f 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/collapsible_group.proto @@ -5,6 +20,8 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A widget that groups the other widgets. All widgets that are within
            * the area spanned by the grouping widget are considered member widgets.
          @@ -12,46 +29,50 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.CollapsibleGroup}
            */
          -public final class CollapsibleGroup extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class CollapsibleGroup extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.CollapsibleGroup)
               CollapsibleGroupOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use CollapsibleGroup.newBuilder() to construct.
             private CollapsibleGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -  private CollapsibleGroup() {
          -  }
          +
          +  private CollapsibleGroup() {}
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new CollapsibleGroup();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.CollapsibleGroupProto.internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.CollapsibleGroupProto
          +        .internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.CollapsibleGroupProto.internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.CollapsibleGroupProto
          +        .internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.CollapsibleGroup.class, com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder.class);
          +            com.google.monitoring.dashboard.v1.CollapsibleGroup.class,
          +            com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder.class);
             }
           
             public static final int COLLAPSED_FIELD_NUMBER = 1;
             private boolean collapsed_ = false;
             /**
          +   *
          +   *
              * 
              * The collapsed state of the widget on first page load.
              * 
          * * bool collapsed = 1; + * * @return The collapsed. */ @java.lang.Override @@ -60,6 +81,7 @@ public boolean getCollapsed() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -71,8 +93,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (collapsed_ != false) { output.writeBool(1, collapsed_); } @@ -86,8 +107,7 @@ public int getSerializedSize() { size = 0; if (collapsed_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, collapsed_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, collapsed_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -97,15 +117,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.CollapsibleGroup)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.CollapsibleGroup other = (com.google.monitoring.dashboard.v1.CollapsibleGroup) obj; + com.google.monitoring.dashboard.v1.CollapsibleGroup other = + (com.google.monitoring.dashboard.v1.CollapsibleGroup) obj; - if (getCollapsed() - != other.getCollapsed()) return false; + if (getCollapsed() != other.getCollapsed()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -118,106 +138,110 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COLLAPSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCollapsed()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCollapsed()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CollapsibleGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.CollapsibleGroup 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.CollapsibleGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.CollapsibleGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A widget that groups the other widgets. All widgets that are within
              * the area spanned by the grouping widget are considered member widgets.
          @@ -225,33 +249,32 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.CollapsibleGroup}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.CollapsibleGroup)
                 com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.CollapsibleGroupProto.internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.CollapsibleGroupProto
          +          .internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.CollapsibleGroupProto.internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.CollapsibleGroupProto
          +          .internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.CollapsibleGroup.class, com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder.class);
          +              com.google.monitoring.dashboard.v1.CollapsibleGroup.class,
          +              com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.CollapsibleGroup.newBuilder()
          -    private Builder() {
          +    private Builder() {}
           
          -    }
          -
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
          -
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -261,9 +284,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.CollapsibleGroupProto.internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.CollapsibleGroupProto
          +          .internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor;
               }
           
               @java.lang.Override
          @@ -282,8 +305,11 @@ public com.google.monitoring.dashboard.v1.CollapsibleGroup build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.CollapsibleGroup buildPartial() {
          -      com.google.monitoring.dashboard.v1.CollapsibleGroup result = new com.google.monitoring.dashboard.v1.CollapsibleGroup(this);
          -      if (bitField0_ != 0) { buildPartial0(result); }
          +      com.google.monitoring.dashboard.v1.CollapsibleGroup result =
          +          new com.google.monitoring.dashboard.v1.CollapsibleGroup(this);
          +      if (bitField0_ != 0) {
          +        buildPartial0(result);
          +      }
                 onBuilt();
                 return result;
               }
          @@ -299,38 +325,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.CollapsibleGroup r
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.CollapsibleGroup) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.CollapsibleGroup)other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.CollapsibleGroup) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -338,7 +365,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.CollapsibleGroup other) {
          -      if (other == com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance()) return this;
          +      if (other == com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance())
          +        return this;
                 if (other.getCollapsed() != false) {
                   setCollapsed(other.getCollapsed());
                 }
          @@ -368,17 +396,19 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 8: {
          -              collapsed_ = input.readBool();
          -              bitField0_ |= 0x00000001;
          -              break;
          -            } // case 8
          -            default: {
          -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                done = true; // was an endgroup tag
          -              }
          -              break;
          -            } // default:
          +            case 8:
          +              {
          +                collapsed_ = input.readBool();
          +                bitField0_ |= 0x00000001;
          +                break;
          +              } // case 8
          +            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) {
          @@ -388,15 +418,19 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          +
               private int bitField0_;
           
          -    private boolean collapsed_ ;
          +    private boolean collapsed_;
               /**
          +     *
          +     *
                * 
                * The collapsed state of the widget on first page load.
                * 
          * * bool collapsed = 1; + * * @return The collapsed. */ @java.lang.Override @@ -404,11 +438,14 @@ public boolean getCollapsed() { return collapsed_; } /** + * + * *
                * The collapsed state of the widget on first page load.
                * 
          * * bool collapsed = 1; + * * @param value The collapsed to set. * @return This builder for chaining. */ @@ -420,11 +457,14 @@ public Builder setCollapsed(boolean value) { return this; } /** + * + * *
                * The collapsed state of the widget on first page load.
                * 
          * * bool collapsed = 1; + * * @return This builder for chaining. */ public Builder clearCollapsed() { @@ -433,9 +473,9 @@ public Builder clearCollapsed() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -445,12 +485,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.CollapsibleGroup) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.CollapsibleGroup) private static final com.google.monitoring.dashboard.v1.CollapsibleGroup DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.CollapsibleGroup(); } @@ -459,27 +499,27 @@ public static com.google.monitoring.dashboard.v1.CollapsibleGroup getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CollapsibleGroup 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CollapsibleGroup 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; @@ -494,6 +534,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.CollapsibleGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java new file mode 100644 index 000000000000..76237b53d029 --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/collapsible_group.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public interface CollapsibleGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.CollapsibleGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The collapsed state of the widget on first page load.
          +   * 
          + * + * bool collapsed = 1; + * + * @return The collapsed. + */ + boolean getCollapsed(); +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java new file mode 100644 index 000000000000..c2d021af1944 --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java @@ -0,0 +1,69 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/collapsible_group.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class CollapsibleGroupProto { + private CollapsibleGroupProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/monitoring/dashboard/v1/collaps" + + "ible_group.proto\022\036google.monitoring.dash" + + "board.v1\"%\n\020CollapsibleGroup\022\021\n\tcollapse" + + "d\030\001 \001(\010B\376\001\n\"com.google.monitoring.dashbo" + + "ard.v1B\025CollapsibleGroupProtoP\001ZFcloud.g" + + "oogle.com/go/monitoring/dashboard/apiv1/" + + "dashboardpb;dashboardpb\252\002$Google.Cloud.M" + + "onitoring.Dashboard.V1\312\002$Google\\Cloud\\Mo" + + "nitoring\\Dashboard\\V1\352\002(Google::Cloud::M" + + "onitoring::Dashboard::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor, + new java.lang.String[] { + "Collapsed", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayout.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayout.java similarity index 74% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayout.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayout.java index 75d34c3141e6..76e793951f70 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayout.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayout.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/layouts.proto @@ -5,6 +20,8 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A simplified layout that divides the available space into vertical columns
            * and arranges a set of widgets vertically in each column.
          @@ -12,44 +29,49 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.ColumnLayout}
            */
          -public final class ColumnLayout extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class ColumnLayout extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.ColumnLayout)
               ColumnLayoutOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use ColumnLayout.newBuilder() to construct.
             private ColumnLayout(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private ColumnLayout() {
               columns_ = java.util.Collections.emptyList();
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new ColumnLayout();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.LayoutsProto
          +        .internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.LayoutsProto
          +        .internal_static_google_monitoring_dashboard_v1_ColumnLayout_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.ColumnLayout.class, com.google.monitoring.dashboard.v1.ColumnLayout.Builder.class);
          +            com.google.monitoring.dashboard.v1.ColumnLayout.class,
          +            com.google.monitoring.dashboard.v1.ColumnLayout.Builder.class);
             }
           
          -  public interface ColumnOrBuilder extends
          +  public interface ColumnOrBuilder
          +      extends
                 // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.ColumnLayout.Column)
                 com.google.protobuf.MessageOrBuilder {
           
               /**
          +     *
          +     *
                * 
                * The relative weight of this column. The column weight is used to adjust
                * the width of columns on the screen (relative to peers).
          @@ -58,20 +80,24 @@ public interface ColumnOrBuilder extends
                * 
          * * int64 weight = 1; + * * @return The weight. */ long getWeight(); /** + * + * *
                * The display widgets arranged vertically in this column.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - java.util.List - getWidgetsList(); + java.util.List getWidgetsList(); /** + * + * *
                * The display widgets arranged vertically in this column.
                * 
          @@ -80,6 +106,8 @@ public interface ColumnOrBuilder extends */ com.google.monitoring.dashboard.v1.Widget getWidgets(int index); /** + * + * *
                * The display widgets arranged vertically in this column.
                * 
          @@ -88,67 +116,76 @@ public interface ColumnOrBuilder extends */ int getWidgetsCount(); /** + * + * *
                * The display widgets arranged vertically in this column.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - java.util.List + java.util.List getWidgetsOrBuilderList(); /** + * + * *
                * The display widgets arranged vertically in this column.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( - int index); + com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index); } /** + * + * *
              * Defines the layout properties and content for a column.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ColumnLayout.Column} */ - public static final class Column extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Column extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.ColumnLayout.Column) ColumnOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Column.newBuilder() to construct. private Column(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Column() { widgets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Column(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_fieldAccessorTable + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ColumnLayout.Column.class, com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder.class); + com.google.monitoring.dashboard.v1.ColumnLayout.Column.class, + com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder.class); } public static final int WEIGHT_FIELD_NUMBER = 1; private long weight_ = 0L; /** + * + * *
                * The relative weight of this column. The column weight is used to adjust
                * the width of columns on the screen (relative to peers).
          @@ -157,6 +194,7 @@ protected java.lang.Object newInstance(
                * 
          * * int64 weight = 1; + * * @return The weight. */ @java.lang.Override @@ -165,9 +203,12 @@ public long getWeight() { } public static final int WIDGETS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List widgets_; /** + * + * *
                * The display widgets arranged vertically in this column.
                * 
          @@ -179,6 +220,8 @@ public java.util.List getWidgetsList( return widgets_; } /** + * + * *
                * The display widgets arranged vertically in this column.
                * 
          @@ -186,11 +229,13 @@ public java.util.List getWidgetsList( * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ @java.lang.Override - public java.util.List + public java.util.List getWidgetsOrBuilderList() { return widgets_; } /** + * + * *
                * The display widgets arranged vertically in this column.
                * 
          @@ -202,6 +247,8 @@ public int getWidgetsCount() { return widgets_.size(); } /** + * + * *
                * The display widgets arranged vertically in this column.
                * 
          @@ -213,6 +260,8 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { return widgets_.get(index); } /** + * + * *
                * The display widgets arranged vertically in this column.
                * 
          @@ -220,12 +269,12 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( - int index) { + public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index) { return widgets_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,8 +286,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (weight_ != 0L) { output.writeInt64(1, weight_); } @@ -255,12 +303,10 @@ public int getSerializedSize() { size = 0; if (weight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, weight_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, weight_); } for (int i = 0; i < widgets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, widgets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, widgets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -270,17 +316,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.ColumnLayout.Column)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.ColumnLayout.Column other = (com.google.monitoring.dashboard.v1.ColumnLayout.Column) obj; + com.google.monitoring.dashboard.v1.ColumnLayout.Column other = + (com.google.monitoring.dashboard.v1.ColumnLayout.Column) obj; - if (getWeight() - != other.getWeight()) return false; - if (!getWidgetsList() - .equals(other.getWidgetsList())) return false; + if (getWeight() != other.getWeight()) return false; + if (!getWidgetsList().equals(other.getWidgetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -293,8 +338,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getWeight()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWeight()); if (getWidgetsCount() > 0) { hash = (37 * hash) + WIDGETS_FIELD_NUMBER; hash = (53 * hash) + getWidgetsList().hashCode(); @@ -305,89 +349,94 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ColumnLayout.Column parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ColumnLayout.Column 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.ColumnLayout.Column parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.ColumnLayout.Column parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.ColumnLayout.Column prototype) { + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.ColumnLayout.Column prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -397,39 +446,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                * Defines the layout properties and content for a column.
                * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ColumnLayout.Column} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.ColumnLayout.Column) com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_fieldAccessorTable + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ColumnLayout.Column.class, com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder.class); + com.google.monitoring.dashboard.v1.ColumnLayout.Column.class, + com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.ColumnLayout.Column.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor; } @java.lang.Override @@ -467,14 +518,18 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.Column build() { @java.lang.Override public com.google.monitoring.dashboard.v1.ColumnLayout.Column buildPartial() { - com.google.monitoring.dashboard.v1.ColumnLayout.Column result = new com.google.monitoring.dashboard.v1.ColumnLayout.Column(this); + com.google.monitoring.dashboard.v1.ColumnLayout.Column result = + new com.google.monitoring.dashboard.v1.ColumnLayout.Column(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.dashboard.v1.ColumnLayout.Column result) { + private void buildPartialRepeatedFields( + com.google.monitoring.dashboard.v1.ColumnLayout.Column result) { if (widgetsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { widgets_ = java.util.Collections.unmodifiableList(widgets_); @@ -497,38 +552,41 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.ColumnLayout.Colum public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ColumnLayout.Column) { - return mergeFrom((com.google.monitoring.dashboard.v1.ColumnLayout.Column)other); + return mergeFrom((com.google.monitoring.dashboard.v1.ColumnLayout.Column) other); } else { super.mergeFrom(other); return this; @@ -536,7 +594,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.ColumnLayout.Column other) { - if (other == com.google.monitoring.dashboard.v1.ColumnLayout.Column.getDefaultInstance()) return this; + if (other == com.google.monitoring.dashboard.v1.ColumnLayout.Column.getDefaultInstance()) + return this; if (other.getWeight() != 0L) { setWeight(other.getWeight()); } @@ -558,9 +617,10 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.ColumnLayout.Column widgetsBuilder_ = null; widgets_ = other.widgets_; bitField0_ = (bitField0_ & ~0x00000002); - widgetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWidgetsFieldBuilder() : null; + widgetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWidgetsFieldBuilder() + : null; } else { widgetsBuilder_.addAllMessages(other.widgets_); } @@ -592,30 +652,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - weight_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - com.google.monitoring.dashboard.v1.Widget m = - input.readMessage( - com.google.monitoring.dashboard.v1.Widget.parser(), - extensionRegistry); - if (widgetsBuilder_ == null) { - ensureWidgetsIsMutable(); - widgets_.add(m); - } else { - widgetsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + weight_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.monitoring.dashboard.v1.Widget m = + input.readMessage( + com.google.monitoring.dashboard.v1.Widget.parser(), extensionRegistry); + if (widgetsBuilder_ == null) { + ensureWidgetsIsMutable(); + widgets_.add(m); + } else { + widgetsBuilder_.addMessage(m); + } + break; + } // case 18 + 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) { @@ -625,10 +687,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long weight_ ; + private long weight_; /** + * + * *
                  * The relative weight of this column. The column weight is used to adjust
                  * the width of columns on the screen (relative to peers).
          @@ -637,6 +702,7 @@ public Builder mergeFrom(
                  * 
          * * int64 weight = 1; + * * @return The weight. */ @java.lang.Override @@ -644,6 +710,8 @@ public long getWeight() { return weight_; } /** + * + * *
                  * The relative weight of this column. The column weight is used to adjust
                  * the width of columns on the screen (relative to peers).
          @@ -652,6 +720,7 @@ public long getWeight() {
                  * 
          * * int64 weight = 1; + * * @param value The weight to set. * @return This builder for chaining. */ @@ -663,6 +732,8 @@ public Builder setWeight(long value) { return this; } /** + * + * *
                  * The relative weight of this column. The column weight is used to adjust
                  * the width of columns on the screen (relative to peers).
          @@ -671,6 +742,7 @@ public Builder setWeight(long value) {
                  * 
          * * int64 weight = 1; + * * @return This builder for chaining. */ public Builder clearWeight() { @@ -681,18 +753,24 @@ public Builder clearWeight() { } private java.util.List widgets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWidgetsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { widgets_ = new java.util.ArrayList(widgets_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder> widgetsBuilder_; + com.google.monitoring.dashboard.v1.Widget, + com.google.monitoring.dashboard.v1.Widget.Builder, + com.google.monitoring.dashboard.v1.WidgetOrBuilder> + widgetsBuilder_; /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -707,6 +785,8 @@ public java.util.List getWidgetsList( } } /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -721,6 +801,8 @@ public int getWidgetsCount() { } } /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -735,14 +817,15 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { } } /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder setWidgets( - int index, com.google.monitoring.dashboard.v1.Widget value) { + public Builder setWidgets(int index, com.google.monitoring.dashboard.v1.Widget value) { if (widgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -756,6 +839,8 @@ public Builder setWidgets( return this; } /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -774,6 +859,8 @@ public Builder setWidgets( return this; } /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -794,14 +881,15 @@ public Builder addWidgets(com.google.monitoring.dashboard.v1.Widget value) { return this; } /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder addWidgets( - int index, com.google.monitoring.dashboard.v1.Widget value) { + public Builder addWidgets(int index, com.google.monitoring.dashboard.v1.Widget value) { if (widgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -815,14 +903,15 @@ public Builder addWidgets( return this; } /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder addWidgets( - com.google.monitoring.dashboard.v1.Widget.Builder builderForValue) { + public Builder addWidgets(com.google.monitoring.dashboard.v1.Widget.Builder builderForValue) { if (widgetsBuilder_ == null) { ensureWidgetsIsMutable(); widgets_.add(builderForValue.build()); @@ -833,6 +922,8 @@ public Builder addWidgets( return this; } /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -851,6 +942,8 @@ public Builder addWidgets( return this; } /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -861,8 +954,7 @@ public Builder addAllWidgets( java.lang.Iterable values) { if (widgetsBuilder_ == null) { ensureWidgetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, widgets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, widgets_); onChanged(); } else { widgetsBuilder_.addAllMessages(values); @@ -870,6 +962,8 @@ public Builder addAllWidgets( return this; } /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -887,6 +981,8 @@ public Builder clearWidgets() { return this; } /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -904,39 +1000,44 @@ public Builder removeWidgets(int index) { return this; } /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.Widget.Builder getWidgetsBuilder( - int index) { + public com.google.monitoring.dashboard.v1.Widget.Builder getWidgetsBuilder(int index) { return getWidgetsFieldBuilder().getBuilder(index); } /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( - int index) { + public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index) { if (widgetsBuilder_ == null) { - return widgets_.get(index); } else { + return widgets_.get(index); + } else { return widgetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public java.util.List - getWidgetsOrBuilderList() { + public java.util.List + getWidgetsOrBuilderList() { if (widgetsBuilder_ != null) { return widgetsBuilder_.getMessageOrBuilderList(); } else { @@ -944,6 +1045,8 @@ public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( } } /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          @@ -951,46 +1054,53 @@ public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder() { - return getWidgetsFieldBuilder().addBuilder( - com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); + return getWidgetsFieldBuilder() + .addBuilder(com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); } /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder( - int index) { - return getWidgetsFieldBuilder().addBuilder( - index, com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); + public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder(int index) { + return getWidgetsFieldBuilder() + .addBuilder(index, com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); } /** + * + * *
                  * The display widgets arranged vertically in this column.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public java.util.List - getWidgetsBuilderList() { + public java.util.List + getWidgetsBuilderList() { return getWidgetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder> + com.google.monitoring.dashboard.v1.Widget, + com.google.monitoring.dashboard.v1.Widget.Builder, + com.google.monitoring.dashboard.v1.WidgetOrBuilder> getWidgetsFieldBuilder() { if (widgetsBuilder_ == null) { - widgetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder>( - widgets_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + widgetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.Widget, + com.google.monitoring.dashboard.v1.Widget.Builder, + com.google.monitoring.dashboard.v1.WidgetOrBuilder>( + widgets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); widgets_ = null; } return widgetsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1003,12 +1113,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.ColumnLayout.Column) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.ColumnLayout.Column) private static final com.google.monitoring.dashboard.v1.ColumnLayout.Column DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.ColumnLayout.Column(); } @@ -1017,27 +1127,28 @@ public static com.google.monitoring.dashboard.v1.ColumnLayout.Column getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Column 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Column 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; @@ -1052,13 +1163,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.ColumnLayout.Column getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int COLUMNS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List columns_; /** + * + * *
              * The columns of content to display.
              * 
          @@ -1070,6 +1183,8 @@ public java.util.List ge return columns_; } /** + * + * *
              * The columns of content to display.
              * 
          @@ -1077,11 +1192,13 @@ public java.util.List ge * repeated .google.monitoring.dashboard.v1.ColumnLayout.Column columns = 1; */ @java.lang.Override - public java.util.List + public java.util.List getColumnsOrBuilderList() { return columns_; } /** + * + * *
              * The columns of content to display.
              * 
          @@ -1093,6 +1210,8 @@ public int getColumnsCount() { return columns_.size(); } /** + * + * *
              * The columns of content to display.
              * 
          @@ -1104,6 +1223,8 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.Column getColumns(int ind return columns_.get(index); } /** + * + * *
              * The columns of content to display.
              * 
          @@ -1117,6 +1238,7 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder getColumn } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1128,8 +1250,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < columns_.size(); i++) { output.writeMessage(1, columns_.get(i)); } @@ -1143,8 +1264,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < columns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, columns_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, columns_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1154,15 +1274,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.ColumnLayout)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.ColumnLayout other = (com.google.monitoring.dashboard.v1.ColumnLayout) obj; + com.google.monitoring.dashboard.v1.ColumnLayout other = + (com.google.monitoring.dashboard.v1.ColumnLayout) obj; - if (!getColumnsList() - .equals(other.getColumnsList())) return false; + if (!getColumnsList().equals(other.getColumnsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1183,99 +1303,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.ColumnLayout parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.ColumnLayout parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ColumnLayout parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ColumnLayout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ColumnLayout 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.ColumnLayout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ColumnLayout parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.ColumnLayout parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.ColumnLayout parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ColumnLayout parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.ColumnLayout parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.ColumnLayout parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.ColumnLayout parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.ColumnLayout parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.ColumnLayout prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A simplified layout that divides the available space into vertical columns
              * and arranges a set of widgets vertically in each column.
          @@ -1283,33 +1408,32 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.ColumnLayout}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.ColumnLayout)
                 com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto
          +          .internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.LayoutsProto
          +          .internal_static_google_monitoring_dashboard_v1_ColumnLayout_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.ColumnLayout.class, com.google.monitoring.dashboard.v1.ColumnLayout.Builder.class);
          +              com.google.monitoring.dashboard.v1.ColumnLayout.class,
          +              com.google.monitoring.dashboard.v1.ColumnLayout.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.ColumnLayout.newBuilder()
          -    private Builder() {
          -
          -    }
          +    private Builder() {}
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
          -
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -1325,9 +1449,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto
          +          .internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor;
               }
           
               @java.lang.Override
          @@ -1346,14 +1470,18 @@ public com.google.monitoring.dashboard.v1.ColumnLayout build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.ColumnLayout buildPartial() {
          -      com.google.monitoring.dashboard.v1.ColumnLayout result = new com.google.monitoring.dashboard.v1.ColumnLayout(this);
          +      com.google.monitoring.dashboard.v1.ColumnLayout result =
          +          new com.google.monitoring.dashboard.v1.ColumnLayout(this);
                 buildPartialRepeatedFields(result);
          -      if (bitField0_ != 0) { buildPartial0(result); }
          +      if (bitField0_ != 0) {
          +        buildPartial0(result);
          +      }
                 onBuilt();
                 return result;
               }
           
          -    private void buildPartialRepeatedFields(com.google.monitoring.dashboard.v1.ColumnLayout result) {
          +    private void buildPartialRepeatedFields(
          +        com.google.monitoring.dashboard.v1.ColumnLayout result) {
                 if (columnsBuilder_ == null) {
                   if (((bitField0_ & 0x00000001) != 0)) {
                     columns_ = java.util.Collections.unmodifiableList(columns_);
          @@ -1373,38 +1501,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.ColumnLayout resul
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.ColumnLayout) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.ColumnLayout)other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.ColumnLayout) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1412,7 +1541,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.ColumnLayout other) {
          -      if (other == com.google.monitoring.dashboard.v1.ColumnLayout.getDefaultInstance()) return this;
          +      if (other == com.google.monitoring.dashboard.v1.ColumnLayout.getDefaultInstance())
          +        return this;
                 if (columnsBuilder_ == null) {
                   if (!other.columns_.isEmpty()) {
                     if (columns_.isEmpty()) {
          @@ -1431,9 +1561,10 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.ColumnLayout other)
                       columnsBuilder_ = null;
                       columns_ = other.columns_;
                       bitField0_ = (bitField0_ & ~0x00000001);
          -            columnsBuilder_ = 
          -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          -                 getColumnsFieldBuilder() : null;
          +            columnsBuilder_ =
          +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          +                    ? getColumnsFieldBuilder()
          +                    : null;
                     } else {
                       columnsBuilder_.addAllMessages(other.columns_);
                     }
          @@ -1465,25 +1596,27 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10: {
          -              com.google.monitoring.dashboard.v1.ColumnLayout.Column m =
          -                  input.readMessage(
          -                      com.google.monitoring.dashboard.v1.ColumnLayout.Column.parser(),
          -                      extensionRegistry);
          -              if (columnsBuilder_ == null) {
          -                ensureColumnsIsMutable();
          -                columns_.add(m);
          -              } else {
          -                columnsBuilder_.addMessage(m);
          -              }
          -              break;
          -            } // case 10
          -            default: {
          -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                done = true; // was an endgroup tag
          -              }
          -              break;
          -            } // default:
          +            case 10:
          +              {
          +                com.google.monitoring.dashboard.v1.ColumnLayout.Column m =
          +                    input.readMessage(
          +                        com.google.monitoring.dashboard.v1.ColumnLayout.Column.parser(),
          +                        extensionRegistry);
          +                if (columnsBuilder_ == null) {
          +                  ensureColumnsIsMutable();
          +                  columns_.add(m);
          +                } else {
          +                  columnsBuilder_.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) {
          @@ -1493,21 +1626,30 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          +
               private int bitField0_;
           
               private java.util.List columns_ =
          -      java.util.Collections.emptyList();
          +        java.util.Collections.emptyList();
          +
               private void ensureColumnsIsMutable() {
                 if (!((bitField0_ & 0x00000001) != 0)) {
          -        columns_ = new java.util.ArrayList(columns_);
          +        columns_ =
          +            new java.util.ArrayList(
          +                columns_);
                   bitField0_ |= 0x00000001;
          -       }
          +      }
               }
           
               private com.google.protobuf.RepeatedFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.ColumnLayout.Column, com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder, com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder> columnsBuilder_;
          +            com.google.monitoring.dashboard.v1.ColumnLayout.Column,
          +            com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder,
          +            com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder>
          +        columnsBuilder_;
           
               /**
          +     *
          +     *
                * 
                * The columns of content to display.
                * 
          @@ -1522,6 +1664,8 @@ public java.util.List ge } } /** + * + * *
                * The columns of content to display.
                * 
          @@ -1536,6 +1680,8 @@ public int getColumnsCount() { } } /** + * + * *
                * The columns of content to display.
                * 
          @@ -1550,6 +1696,8 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.Column getColumns(int ind } } /** + * + * *
                * The columns of content to display.
                * 
          @@ -1571,6 +1719,8 @@ public Builder setColumns( return this; } /** + * + * *
                * The columns of content to display.
                * 
          @@ -1589,6 +1739,8 @@ public Builder setColumns( return this; } /** + * + * *
                * The columns of content to display.
                * 
          @@ -1609,6 +1761,8 @@ public Builder addColumns(com.google.monitoring.dashboard.v1.ColumnLayout.Column return this; } /** + * + * *
                * The columns of content to display.
                * 
          @@ -1630,6 +1784,8 @@ public Builder addColumns( return this; } /** + * + * *
                * The columns of content to display.
                * 
          @@ -1648,6 +1804,8 @@ public Builder addColumns( return this; } /** + * + * *
                * The columns of content to display.
                * 
          @@ -1666,6 +1824,8 @@ public Builder addColumns( return this; } /** + * + * *
                * The columns of content to display.
                * 
          @@ -1673,11 +1833,11 @@ public Builder addColumns( * repeated .google.monitoring.dashboard.v1.ColumnLayout.Column columns = 1; */ public Builder addAllColumns( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, columns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columns_); onChanged(); } else { columnsBuilder_.addAllMessages(values); @@ -1685,6 +1845,8 @@ public Builder addAllColumns( return this; } /** + * + * *
                * The columns of content to display.
                * 
          @@ -1702,6 +1864,8 @@ public Builder clearColumns() { return this; } /** + * + * *
                * The columns of content to display.
                * 
          @@ -1719,6 +1883,8 @@ public Builder removeColumns(int index) { return this; } /** + * + * *
                * The columns of content to display.
                * 
          @@ -1730,6 +1896,8 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder getColumns return getColumnsFieldBuilder().getBuilder(index); } /** + * + * *
                * The columns of content to display.
                * 
          @@ -1739,19 +1907,22 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder getColumns public com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder getColumnsOrBuilder( int index) { if (columnsBuilder_ == null) { - return columns_.get(index); } else { + return columns_.get(index); + } else { return columnsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * The columns of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.ColumnLayout.Column columns = 1; */ - public java.util.List - getColumnsOrBuilderList() { + public java.util.List + getColumnsOrBuilderList() { if (columnsBuilder_ != null) { return columnsBuilder_.getMessageOrBuilderList(); } else { @@ -1759,6 +1930,8 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder getColumn } } /** + * + * *
                * The columns of content to display.
                * 
          @@ -1766,10 +1939,12 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder getColumn * repeated .google.monitoring.dashboard.v1.ColumnLayout.Column columns = 1; */ public com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder addColumnsBuilder() { - return getColumnsFieldBuilder().addBuilder( - com.google.monitoring.dashboard.v1.ColumnLayout.Column.getDefaultInstance()); + return getColumnsFieldBuilder() + .addBuilder(com.google.monitoring.dashboard.v1.ColumnLayout.Column.getDefaultInstance()); } /** + * + * *
                * The columns of content to display.
                * 
          @@ -1778,37 +1953,43 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder addColumns */ public com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder addColumnsBuilder( int index) { - return getColumnsFieldBuilder().addBuilder( - index, com.google.monitoring.dashboard.v1.ColumnLayout.Column.getDefaultInstance()); + return getColumnsFieldBuilder() + .addBuilder( + index, com.google.monitoring.dashboard.v1.ColumnLayout.Column.getDefaultInstance()); } /** + * + * *
                * The columns of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.ColumnLayout.Column columns = 1; */ - public java.util.List - getColumnsBuilderList() { + public java.util.List + getColumnsBuilderList() { return getColumnsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.ColumnLayout.Column, com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder, com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder> + com.google.monitoring.dashboard.v1.ColumnLayout.Column, + com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder, + com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder> getColumnsFieldBuilder() { if (columnsBuilder_ == null) { - columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.ColumnLayout.Column, com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder, com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder>( - columns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + columnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.ColumnLayout.Column, + com.google.monitoring.dashboard.v1.ColumnLayout.Column.Builder, + com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder>( + columns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); columns_ = null; } return columnsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1818,12 +1999,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.ColumnLayout) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.ColumnLayout) private static final com.google.monitoring.dashboard.v1.ColumnLayout DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.ColumnLayout(); } @@ -1832,27 +2013,27 @@ public static com.google.monitoring.dashboard.v1.ColumnLayout getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColumnLayout 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColumnLayout 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; @@ -1867,6 +2048,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.ColumnLayout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayoutOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayoutOrBuilder.java similarity index 66% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayoutOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayoutOrBuilder.java index a1d5222e3d78..7f3de53c6d6b 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayoutOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayoutOrBuilder.java @@ -1,23 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/layouts.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface ColumnLayoutOrBuilder extends +public interface ColumnLayoutOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.ColumnLayout) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * The columns of content to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.ColumnLayout.Column columns = 1; */ - java.util.List - getColumnsList(); + java.util.List getColumnsList(); /** + * + * *
              * The columns of content to display.
              * 
          @@ -26,6 +45,8 @@ public interface ColumnLayoutOrBuilder extends */ com.google.monitoring.dashboard.v1.ColumnLayout.Column getColumns(int index); /** + * + * *
              * The columns of content to display.
              * 
          @@ -34,21 +55,24 @@ public interface ColumnLayoutOrBuilder extends */ int getColumnsCount(); /** + * + * *
              * The columns of content to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.ColumnLayout.Column columns = 1; */ - java.util.List + java.util.List getColumnsOrBuilderList(); /** + * + * *
              * The columns of content to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.ColumnLayout.Column columns = 1; */ - com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder getColumnsOrBuilder( - int index); + com.google.monitoring.dashboard.v1.ColumnLayout.ColumnOrBuilder getColumnsOrBuilder(int index); } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CommonProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CommonProto.java new file mode 100644 index 000000000000..1433df11cb98 --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CommonProto.java @@ -0,0 +1,140 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/common.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class CommonProto { + private CommonProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_Aggregation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/monitoring/dashboard/v1/common." + + "proto\022\036google.monitoring.dashboard.v1\032\036g" + + "oogle/protobuf/duration.proto\032\032google/ty" + + "pe/interval.proto\"\301\007\n\013Aggregation\0223\n\020ali" + + "gnment_period\030\001 \001(\0132\031.google.protobuf.Du" + + "ration\022O\n\022per_series_aligner\030\002 \001(\01623.goo" + + "gle.monitoring.dashboard.v1.Aggregation." + + "Aligner\022Q\n\024cross_series_reducer\030\004 \001(\01623." + + "google.monitoring.dashboard.v1.Aggregati" + + "on.Reducer\022\027\n\017group_by_fields\030\005 \003(\t\"\213\003\n\007" + + "Aligner\022\016\n\nALIGN_NONE\020\000\022\017\n\013ALIGN_DELTA\020\001" + + "\022\016\n\nALIGN_RATE\020\002\022\025\n\021ALIGN_INTERPOLATE\020\003\022" + + "\024\n\020ALIGN_NEXT_OLDER\020\004\022\r\n\tALIGN_MIN\020\n\022\r\n\t" + + "ALIGN_MAX\020\013\022\016\n\nALIGN_MEAN\020\014\022\017\n\013ALIGN_COU" + + "NT\020\r\022\r\n\tALIGN_SUM\020\016\022\020\n\014ALIGN_STDDEV\020\017\022\024\n" + + "\020ALIGN_COUNT_TRUE\020\020\022\025\n\021ALIGN_COUNT_FALSE" + + "\020\030\022\027\n\023ALIGN_FRACTION_TRUE\020\021\022\027\n\023ALIGN_PER" + + "CENTILE_99\020\022\022\027\n\023ALIGN_PERCENTILE_95\020\023\022\027\n" + + "\023ALIGN_PERCENTILE_50\020\024\022\027\n\023ALIGN_PERCENTI" + + "LE_05\020\025\022\030\n\024ALIGN_PERCENT_CHANGE\020\027\"\261\002\n\007Re" + + "ducer\022\017\n\013REDUCE_NONE\020\000\022\017\n\013REDUCE_MEAN\020\001\022" + + "\016\n\nREDUCE_MIN\020\002\022\016\n\nREDUCE_MAX\020\003\022\016\n\nREDUC" + + "E_SUM\020\004\022\021\n\rREDUCE_STDDEV\020\005\022\020\n\014REDUCE_COU" + + "NT\020\006\022\025\n\021REDUCE_COUNT_TRUE\020\007\022\026\n\022REDUCE_CO" + + "UNT_FALSE\020\017\022\030\n\024REDUCE_FRACTION_TRUE\020\010\022\030\n" + + "\024REDUCE_PERCENTILE_99\020\t\022\030\n\024REDUCE_PERCEN" + + "TILE_95\020\n\022\030\n\024REDUCE_PERCENTILE_50\020\013\022\030\n\024R" + + "EDUCE_PERCENTILE_05\020\014\"\263\003\n\024PickTimeSeries" + + "Filter\022S\n\016ranking_method\030\001 \001(\0162;.google." + + "monitoring.dashboard.v1.PickTimeSeriesFi" + + "lter.Method\022\027\n\017num_time_series\030\002 \001(\005\022Q\n\t" + + "direction\030\003 \001(\0162>.google.monitoring.dash" + + "board.v1.PickTimeSeriesFilter.Direction\022" + + "\'\n\010interval\030\004 \001(\0132\025.google.type.Interval" + + "\"t\n\006Method\022\026\n\022METHOD_UNSPECIFIED\020\000\022\017\n\013ME" + + "THOD_MEAN\020\001\022\016\n\nMETHOD_MAX\020\002\022\016\n\nMETHOD_MI" + + "N\020\003\022\016\n\nMETHOD_SUM\020\004\022\021\n\rMETHOD_LATEST\020\005\";" + + "\n\tDirection\022\031\n\025DIRECTION_UNSPECIFIED\020\000\022\007" + + "\n\003TOP\020\001\022\n\n\006BOTTOM\020\002\"\320\001\n\033StatisticalTimeS" + + "eriesFilter\022Z\n\016ranking_method\030\001 \001(\0162B.go" + + "ogle.monitoring.dashboard.v1.Statistical" + + "TimeSeriesFilter.Method\022\027\n\017num_time_seri" + + "es\030\002 \001(\005\"<\n\006Method\022\026\n\022METHOD_UNSPECIFIED" + + "\020\000\022\032\n\026METHOD_CLUSTER_OUTLIER\020\001B\364\001\n\"com.g" + + "oogle.monitoring.dashboard.v1B\013CommonPro" + + "toP\001ZFcloud.google.com/go/monitoring/das" + + "hboard/apiv1/dashboardpb;dashboardpb\252\002$G" + + "oogle.Cloud.Monitoring.Dashboard.V1\312\002$Go" + + "ogle\\Cloud\\Monitoring\\Dashboard\\V1\352\002(Goo" + + "gle::Cloud::Monitoring::Dashboard::V1b\006p" + + "roto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + com.google.type.IntervalProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_Aggregation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor, + new java.lang.String[] { + "AlignmentPeriod", "PerSeriesAligner", "CrossSeriesReducer", "GroupByFields", + }); + internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor, + new java.lang.String[] { + "RankingMethod", "NumTimeSeries", "Direction", "Interval", + }); + internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor, + new java.lang.String[] { + "RankingMethod", "NumTimeSeries", + }); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.type.IntervalProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequest.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequest.java similarity index 64% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequest.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequest.java index 5c3039675d4a..60968e25cd93 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequest.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto @@ -5,50 +20,57 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * The `CreateDashboard` request.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.CreateDashboardRequest} */ -public final class CreateDashboardRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateDashboardRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.CreateDashboardRequest) CreateDashboardRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateDashboardRequest.newBuilder() to construct. private CreateDashboardRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateDashboardRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateDashboardRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.CreateDashboardRequest.class, com.google.monitoring.dashboard.v1.CreateDashboardRequest.Builder.class); + com.google.monitoring.dashboard.v1.CreateDashboardRequest.class, + com.google.monitoring.dashboard.v1.CreateDashboardRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
              * Required. The project on which to execute the request. The format is:
              *
          @@ -57,7 +79,10 @@ protected java.lang.Object newInstance(
              * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,14 +91,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
              * Required. The project on which to execute the request. The format is:
              *
          @@ -82,17 +108,18 @@ public java.lang.String getParent() {
              * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -103,11 +130,16 @@ public java.lang.String getParent() { public static final int DASHBOARD_FIELD_NUMBER = 2; private com.google.monitoring.dashboard.v1.Dashboard dashboard_; /** + * + * *
              * Required. The initial dashboard specification.
              * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dashboard field is set. */ @java.lang.Override @@ -115,38 +147,54 @@ public boolean hasDashboard() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
              * Required. The initial dashboard specification.
              * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dashboard. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Dashboard getDashboard() { - return dashboard_ == null ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() : dashboard_; + return dashboard_ == null + ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() + : dashboard_; } /** + * + * *
              * Required. The initial dashboard specification.
              * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardOrBuilder() { - return dashboard_ == null ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() : dashboard_; + return dashboard_ == null + ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() + : dashboard_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
              * If set, validate the request and preview the review, but do not actually
              * save it.
              * 
          * * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -155,6 +203,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -190,12 +238,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDashboard()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDashboard()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -205,22 +251,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.CreateDashboardRequest)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.CreateDashboardRequest other = (com.google.monitoring.dashboard.v1.CreateDashboardRequest) obj; + com.google.monitoring.dashboard.v1.CreateDashboardRequest other = + (com.google.monitoring.dashboard.v1.CreateDashboardRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasDashboard() != other.hasDashboard()) return false; if (hasDashboard()) { - if (!getDashboard() - .equals(other.getDashboard())) return false; + if (!getDashboard().equals(other.getDashboard())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,127 +283,134 @@ public int hashCode() { hash = (53 * hash) + getDashboard().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CreateDashboardRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.CreateDashboardRequest 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.CreateDashboardRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.CreateDashboardRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.CreateDashboardRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.CreateDashboardRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * The `CreateDashboard` request.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.CreateDashboardRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.CreateDashboardRequest) com.google.monitoring.dashboard.v1.CreateDashboardRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.CreateDashboardRequest.class, com.google.monitoring.dashboard.v1.CreateDashboardRequest.Builder.class); + com.google.monitoring.dashboard.v1.CreateDashboardRequest.class, + com.google.monitoring.dashboard.v1.CreateDashboardRequest.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.CreateDashboardRequest.newBuilder() @@ -367,17 +418,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDashboardFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -393,9 +444,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor; } @java.lang.Override @@ -414,8 +465,11 @@ public com.google.monitoring.dashboard.v1.CreateDashboardRequest build() { @java.lang.Override public com.google.monitoring.dashboard.v1.CreateDashboardRequest buildPartial() { - com.google.monitoring.dashboard.v1.CreateDashboardRequest result = new com.google.monitoring.dashboard.v1.CreateDashboardRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.CreateDashboardRequest result = + new com.google.monitoring.dashboard.v1.CreateDashboardRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -427,9 +481,7 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.CreateDashboardReq } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.dashboard_ = dashboardBuilder_ == null - ? dashboard_ - : dashboardBuilder_.build(); + result.dashboard_ = dashboardBuilder_ == null ? dashboard_ : dashboardBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -442,38 +494,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.CreateDashboardReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.CreateDashboardRequest) { - return mergeFrom((com.google.monitoring.dashboard.v1.CreateDashboardRequest)other); + return mergeFrom((com.google.monitoring.dashboard.v1.CreateDashboardRequest) other); } else { super.mergeFrom(other); return this; @@ -481,7 +534,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.CreateDashboardRequest other) { - if (other == com.google.monitoring.dashboard.v1.CreateDashboardRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.dashboard.v1.CreateDashboardRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -519,29 +573,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDashboardFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDashboardFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + 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) { @@ -551,10 +607,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
                * Required. The project on which to execute the request. The format is:
                *
          @@ -563,14 +622,16 @@ public Builder mergeFrom(
                * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -579,6 +640,8 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The project on which to execute the request. The format is:
                *
          @@ -587,16 +650,17 @@ public java.lang.String getParent() {
                * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -604,6 +668,8 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The project on which to execute the request. The format is:
                *
          @@ -612,19 +678,25 @@ public java.lang.String getParent() {
                * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                * Required. The project on which to execute the request. The format is:
                *
          @@ -633,7 +705,10 @@ public Builder setParent(
                * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -643,6 +718,8 @@ public Builder clearParent() { return this; } /** + * + * *
                * Required. The project on which to execute the request. The format is:
                *
          @@ -651,13 +728,17 @@ public Builder clearParent() {
                * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -667,39 +748,58 @@ public Builder setParentBytes( private com.google.monitoring.dashboard.v1.Dashboard dashboard_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder> dashboardBuilder_; + com.google.monitoring.dashboard.v1.Dashboard, + com.google.monitoring.dashboard.v1.Dashboard.Builder, + com.google.monitoring.dashboard.v1.DashboardOrBuilder> + dashboardBuilder_; /** + * + * *
                * Required. The initial dashboard specification.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dashboard field is set. */ public boolean hasDashboard() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * Required. The initial dashboard specification.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dashboard. */ public com.google.monitoring.dashboard.v1.Dashboard getDashboard() { if (dashboardBuilder_ == null) { - return dashboard_ == null ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() : dashboard_; + return dashboard_ == null + ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() + : dashboard_; } else { return dashboardBuilder_.getMessage(); } } /** + * + * *
                * Required. The initial dashboard specification.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDashboard(com.google.monitoring.dashboard.v1.Dashboard value) { if (dashboardBuilder_ == null) { @@ -715,11 +815,15 @@ public Builder setDashboard(com.google.monitoring.dashboard.v1.Dashboard value) return this; } /** + * + * *
                * Required. The initial dashboard specification.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDashboard( com.google.monitoring.dashboard.v1.Dashboard.Builder builderForValue) { @@ -733,17 +837,21 @@ public Builder setDashboard( return this; } /** + * + * *
                * Required. The initial dashboard specification.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDashboard(com.google.monitoring.dashboard.v1.Dashboard value) { if (dashboardBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - dashboard_ != null && - dashboard_ != com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && dashboard_ != null + && dashboard_ != com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()) { getDashboardBuilder().mergeFrom(value); } else { dashboard_ = value; @@ -758,11 +866,15 @@ public Builder mergeDashboard(com.google.monitoring.dashboard.v1.Dashboard value return this; } /** + * + * *
                * Required. The initial dashboard specification.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDashboard() { bitField0_ = (bitField0_ & ~0x00000002); @@ -775,11 +887,15 @@ public Builder clearDashboard() { return this; } /** + * + * *
                * Required. The initial dashboard specification.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.dashboard.v1.Dashboard.Builder getDashboardBuilder() { bitField0_ |= 0x00000002; @@ -787,49 +903,64 @@ public com.google.monitoring.dashboard.v1.Dashboard.Builder getDashboardBuilder( return getDashboardFieldBuilder().getBuilder(); } /** + * + * *
                * Required. The initial dashboard specification.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardOrBuilder() { if (dashboardBuilder_ != null) { return dashboardBuilder_.getMessageOrBuilder(); } else { - return dashboard_ == null ? - com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() : dashboard_; + return dashboard_ == null + ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() + : dashboard_; } } /** + * + * *
                * Required. The initial dashboard specification.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder> + com.google.monitoring.dashboard.v1.Dashboard, + com.google.monitoring.dashboard.v1.Dashboard.Builder, + com.google.monitoring.dashboard.v1.DashboardOrBuilder> getDashboardFieldBuilder() { if (dashboardBuilder_ == null) { - dashboardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder>( - getDashboard(), - getParentForChildren(), - isClean()); + dashboardBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Dashboard, + com.google.monitoring.dashboard.v1.Dashboard.Builder, + com.google.monitoring.dashboard.v1.DashboardOrBuilder>( + getDashboard(), getParentForChildren(), isClean()); dashboard_ = null; } return dashboardBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
                * If set, validate the request and preview the review, but do not actually
                * save it.
                * 
          * * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -837,12 +968,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
                * If set, validate the request and preview the review, but do not actually
                * save it.
                * 
          * * bool validate_only = 3; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -854,12 +988,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
                * If set, validate the request and preview the review, but do not actually
                * save it.
                * 
          * * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -868,9 +1005,9 @@ public Builder clearValidateOnly() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -880,12 +1017,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.CreateDashboardRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.CreateDashboardRequest) private static final com.google.monitoring.dashboard.v1.CreateDashboardRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.CreateDashboardRequest(); } @@ -894,27 +1031,27 @@ public static com.google.monitoring.dashboard.v1.CreateDashboardRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDashboardRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDashboardRequest 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; @@ -929,6 +1066,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.CreateDashboardRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequestOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequestOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequestOrBuilder.java index cc724fce57d5..ecf8f90c9f5d 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequestOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequestOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface CreateDashboardRequestOrBuilder extends +public interface CreateDashboardRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.CreateDashboardRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. The project on which to execute the request. The format is:
              *
          @@ -17,11 +35,16 @@ public interface CreateDashboardRequestOrBuilder extends
              * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
              * Required. The project on which to execute the request. The format is:
              *
          @@ -30,46 +53,65 @@ public interface CreateDashboardRequestOrBuilder extends
              * The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
              * Required. The initial dashboard specification.
              * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dashboard field is set. */ boolean hasDashboard(); /** + * + * *
              * Required. The initial dashboard specification.
              * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dashboard. */ com.google.monitoring.dashboard.v1.Dashboard getDashboard(); /** + * + * *
              * Required. The initial dashboard specification.
              * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardOrBuilder(); /** + * + * *
              * If set, validate the request and preview the review, but do not actually
              * save it.
              * 
          * * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java similarity index 74% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java index 61cb0a86b7e7..4bf8826fc49a 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboard.proto @@ -5,6 +20,8 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A Google Stackdriver dashboard. Dashboards define the content and layout
            * of pages in the Stackdriver web application.
          @@ -12,15 +29,16 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.Dashboard}
            */
          -public final class Dashboard extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class Dashboard extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Dashboard)
               DashboardOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use Dashboard.newBuilder() to construct.
             private Dashboard(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private Dashboard() {
               name_ = "";
               displayName_ = "";
          @@ -30,14 +48,13 @@ private Dashboard() {
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new Dashboard();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.DashboardsProto.internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.DashboardsProto
          +        .internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor;
             }
           
             @SuppressWarnings({"rawtypes"})
          @@ -48,23 +65,28 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
                 case 12:
                   return internalGetLabels();
                 default:
          -        throw new RuntimeException(
          -            "Invalid map field number: " + number);
          +        throw new RuntimeException("Invalid map field number: " + number);
               }
             }
          +
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.DashboardsProto.internal_static_google_monitoring_dashboard_v1_Dashboard_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.DashboardsProto
          +        .internal_static_google_monitoring_dashboard_v1_Dashboard_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.Dashboard.class, com.google.monitoring.dashboard.v1.Dashboard.Builder.class);
          +            com.google.monitoring.dashboard.v1.Dashboard.class,
          +            com.google.monitoring.dashboard.v1.Dashboard.Builder.class);
             }
           
             private int layoutCase_ = 0;
          +
             @SuppressWarnings("serial")
             private java.lang.Object layout_;
          +
             public enum LayoutCase
          -      implements com.google.protobuf.Internal.EnumLite,
          +      implements
          +          com.google.protobuf.Internal.EnumLite,
                     com.google.protobuf.AbstractMessage.InternalOneOfEnum {
               GRID_LAYOUT(5),
               MOSAIC_LAYOUT(6),
          @@ -72,6 +94,7 @@ public enum LayoutCase
               COLUMN_LAYOUT(9),
               LAYOUT_NOT_SET(0);
               private final int value;
          +
               private LayoutCase(int value) {
                 this.value = value;
               }
          @@ -87,34 +110,43 @@ public static LayoutCase valueOf(int value) {
           
               public static LayoutCase forNumber(int value) {
                 switch (value) {
          -        case 5: return GRID_LAYOUT;
          -        case 6: return MOSAIC_LAYOUT;
          -        case 8: return ROW_LAYOUT;
          -        case 9: return COLUMN_LAYOUT;
          -        case 0: return LAYOUT_NOT_SET;
          -        default: return null;
          +        case 5:
          +          return GRID_LAYOUT;
          +        case 6:
          +          return MOSAIC_LAYOUT;
          +        case 8:
          +          return ROW_LAYOUT;
          +        case 9:
          +          return COLUMN_LAYOUT;
          +        case 0:
          +          return LAYOUT_NOT_SET;
          +        default:
          +          return null;
                 }
               }
          +
               public int getNumber() {
                 return this.value;
               }
             };
           
          -  public LayoutCase
          -  getLayoutCase() {
          -    return LayoutCase.forNumber(
          -        layoutCase_);
          +  public LayoutCase getLayoutCase() {
          +    return LayoutCase.forNumber(layoutCase_);
             }
           
             public static final int NAME_FIELD_NUMBER = 1;
          +
             @SuppressWarnings("serial")
             private volatile java.lang.Object name_ = "";
             /**
          +   *
          +   *
              * 
              * Identifier. The resource name of the dashboard.
              * 
          * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The name. */ @java.lang.Override @@ -123,29 +155,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
              * Identifier. The resource name of the dashboard.
              * 
          * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -154,14 +186,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
              * Required. The mutable, human-readable name.
              * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -170,29 +206,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
              * Required. The mutable, human-readable name.
              * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -201,9 +237,12 @@ public java.lang.String getDisplayName() { } public static final int ETAG_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
              * `etag` is used for optimistic concurrency control as a way to help
              * prevent simultaneous updates of a policy from overwriting each other.
          @@ -215,6 +254,7 @@ public java.lang.String getDisplayName() {
              * 
          * * string etag = 4; + * * @return The etag. */ @java.lang.Override @@ -223,14 +263,15 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
              * `etag` is used for optimistic concurrency control as a way to help
              * prevent simultaneous updates of a policy from overwriting each other.
          @@ -242,16 +283,15 @@ public java.lang.String getEtag() {
              * 
          * * string etag = 4; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -261,12 +301,15 @@ public java.lang.String getEtag() { public static final int GRID_LAYOUT_FIELD_NUMBER = 5; /** + * + * *
              * Content is arranged with a basic layout that re-flows a simple list of
              * informational elements like widgets or tiles.
              * 
          * * .google.monitoring.dashboard.v1.GridLayout grid_layout = 5; + * * @return Whether the gridLayout field is set. */ @java.lang.Override @@ -274,22 +317,27 @@ public boolean hasGridLayout() { return layoutCase_ == 5; } /** + * + * *
              * Content is arranged with a basic layout that re-flows a simple list of
              * informational elements like widgets or tiles.
              * 
          * * .google.monitoring.dashboard.v1.GridLayout grid_layout = 5; + * * @return The gridLayout. */ @java.lang.Override public com.google.monitoring.dashboard.v1.GridLayout getGridLayout() { if (layoutCase_ == 5) { - return (com.google.monitoring.dashboard.v1.GridLayout) layout_; + return (com.google.monitoring.dashboard.v1.GridLayout) layout_; } return com.google.monitoring.dashboard.v1.GridLayout.getDefaultInstance(); } /** + * + * *
              * Content is arranged with a basic layout that re-flows a simple list of
              * informational elements like widgets or tiles.
          @@ -300,19 +348,22 @@ public com.google.monitoring.dashboard.v1.GridLayout getGridLayout() {
             @java.lang.Override
             public com.google.monitoring.dashboard.v1.GridLayoutOrBuilder getGridLayoutOrBuilder() {
               if (layoutCase_ == 5) {
          -       return (com.google.monitoring.dashboard.v1.GridLayout) layout_;
          +      return (com.google.monitoring.dashboard.v1.GridLayout) layout_;
               }
               return com.google.monitoring.dashboard.v1.GridLayout.getDefaultInstance();
             }
           
             public static final int MOSAIC_LAYOUT_FIELD_NUMBER = 6;
             /**
          +   *
          +   *
              * 
              * The content is arranged as a grid of tiles, with each content widget
              * occupying one or more grid blocks.
              * 
          * * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + * * @return Whether the mosaicLayout field is set. */ @java.lang.Override @@ -320,22 +371,27 @@ public boolean hasMosaicLayout() { return layoutCase_ == 6; } /** + * + * *
              * The content is arranged as a grid of tiles, with each content widget
              * occupying one or more grid blocks.
              * 
          * * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + * * @return The mosaicLayout. */ @java.lang.Override public com.google.monitoring.dashboard.v1.MosaicLayout getMosaicLayout() { if (layoutCase_ == 6) { - return (com.google.monitoring.dashboard.v1.MosaicLayout) layout_; + return (com.google.monitoring.dashboard.v1.MosaicLayout) layout_; } return com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance(); } /** + * + * *
              * The content is arranged as a grid of tiles, with each content widget
              * occupying one or more grid blocks.
          @@ -346,19 +402,22 @@ public com.google.monitoring.dashboard.v1.MosaicLayout getMosaicLayout() {
             @java.lang.Override
             public com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder getMosaicLayoutOrBuilder() {
               if (layoutCase_ == 6) {
          -       return (com.google.monitoring.dashboard.v1.MosaicLayout) layout_;
          +      return (com.google.monitoring.dashboard.v1.MosaicLayout) layout_;
               }
               return com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance();
             }
           
             public static final int ROW_LAYOUT_FIELD_NUMBER = 8;
             /**
          +   *
          +   *
              * 
              * The content is divided into equally spaced rows and the widgets are
              * arranged horizontally.
              * 
          * * .google.monitoring.dashboard.v1.RowLayout row_layout = 8; + * * @return Whether the rowLayout field is set. */ @java.lang.Override @@ -366,22 +425,27 @@ public boolean hasRowLayout() { return layoutCase_ == 8; } /** + * + * *
              * The content is divided into equally spaced rows and the widgets are
              * arranged horizontally.
              * 
          * * .google.monitoring.dashboard.v1.RowLayout row_layout = 8; + * * @return The rowLayout. */ @java.lang.Override public com.google.monitoring.dashboard.v1.RowLayout getRowLayout() { if (layoutCase_ == 8) { - return (com.google.monitoring.dashboard.v1.RowLayout) layout_; + return (com.google.monitoring.dashboard.v1.RowLayout) layout_; } return com.google.monitoring.dashboard.v1.RowLayout.getDefaultInstance(); } /** + * + * *
              * The content is divided into equally spaced rows and the widgets are
              * arranged horizontally.
          @@ -392,19 +456,22 @@ public com.google.monitoring.dashboard.v1.RowLayout getRowLayout() {
             @java.lang.Override
             public com.google.monitoring.dashboard.v1.RowLayoutOrBuilder getRowLayoutOrBuilder() {
               if (layoutCase_ == 8) {
          -       return (com.google.monitoring.dashboard.v1.RowLayout) layout_;
          +      return (com.google.monitoring.dashboard.v1.RowLayout) layout_;
               }
               return com.google.monitoring.dashboard.v1.RowLayout.getDefaultInstance();
             }
           
             public static final int COLUMN_LAYOUT_FIELD_NUMBER = 9;
             /**
          +   *
          +   *
              * 
              * The content is divided into equally spaced columns and the widgets are
              * arranged vertically.
              * 
          * * .google.monitoring.dashboard.v1.ColumnLayout column_layout = 9; + * * @return Whether the columnLayout field is set. */ @java.lang.Override @@ -412,22 +479,27 @@ public boolean hasColumnLayout() { return layoutCase_ == 9; } /** + * + * *
              * The content is divided into equally spaced columns and the widgets are
              * arranged vertically.
              * 
          * * .google.monitoring.dashboard.v1.ColumnLayout column_layout = 9; + * * @return The columnLayout. */ @java.lang.Override public com.google.monitoring.dashboard.v1.ColumnLayout getColumnLayout() { if (layoutCase_ == 9) { - return (com.google.monitoring.dashboard.v1.ColumnLayout) layout_; + return (com.google.monitoring.dashboard.v1.ColumnLayout) layout_; } return com.google.monitoring.dashboard.v1.ColumnLayout.getDefaultInstance(); } /** + * + * *
              * The content is divided into equally spaced columns and the widgets are
              * arranged vertically.
          @@ -438,15 +510,18 @@ public com.google.monitoring.dashboard.v1.ColumnLayout getColumnLayout() {
             @java.lang.Override
             public com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder getColumnLayoutOrBuilder() {
               if (layoutCase_ == 9) {
          -       return (com.google.monitoring.dashboard.v1.ColumnLayout) layout_;
          +      return (com.google.monitoring.dashboard.v1.ColumnLayout) layout_;
               }
               return com.google.monitoring.dashboard.v1.ColumnLayout.getDefaultInstance();
             }
           
             public static final int DASHBOARD_FILTERS_FIELD_NUMBER = 11;
          +
             @SuppressWarnings("serial")
             private java.util.List dashboardFilters_;
             /**
          +   *
          +   *
              * 
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          @@ -454,10 +529,13 @@ public com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder getColumnLayoutO * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; */ @java.lang.Override - public java.util.List getDashboardFiltersList() { + public java.util.List + getDashboardFiltersList() { return dashboardFilters_; } /** + * + * *
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          @@ -465,11 +543,13 @@ public java.util.List getDas * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; */ @java.lang.Override - public java.util.List + public java.util.List getDashboardFiltersOrBuilderList() { return dashboardFilters_; } /** + * + * *
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          @@ -481,6 +561,8 @@ public int getDashboardFiltersCount() { return dashboardFilters_.size(); } /** + * + * *
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          @@ -492,6 +574,8 @@ public com.google.monitoring.dashboard.v1.DashboardFilter getDashboardFilters(in return dashboardFilters_.get(index); } /** + * + * *
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          @@ -505,32 +589,34 @@ public com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder getDashboardF } public static final int LABELS_FIELD_NUMBER = 12; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.monitoring.dashboard.v1.DashboardsProto.internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.monitoring.dashboard.v1.DashboardsProto + .internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
              * Labels applied to the dashboard
              * 
          @@ -538,20 +624,21 @@ public int getLabelsCount() { * map<string, string> labels = 12; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
              * Labels applied to the dashboard
              * 
          @@ -563,6 +650,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
              * Labels applied to the dashboard
              * 
          @@ -570,17 +659,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 12; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
              * Labels applied to the dashboard
              * 
          @@ -588,11 +679,11 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 12; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -600,6 +691,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -611,8 +703,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -637,12 +728,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < dashboardFilters_.size(); i++) { output.writeMessage(11, dashboardFilters_.get(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 12); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 12); getUnknownFields().writeTo(output); } @@ -662,34 +749,38 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); } if (layoutCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.monitoring.dashboard.v1.GridLayout) layout_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.monitoring.dashboard.v1.GridLayout) layout_); } if (layoutCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.monitoring.dashboard.v1.MosaicLayout) layout_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.monitoring.dashboard.v1.MosaicLayout) layout_); } if (layoutCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.monitoring.dashboard.v1.RowLayout) layout_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.monitoring.dashboard.v1.RowLayout) layout_); } if (layoutCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.monitoring.dashboard.v1.ColumnLayout) layout_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.monitoring.dashboard.v1.ColumnLayout) layout_); } for (int i = 0; i < dashboardFilters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, dashboardFilters_.get(i)); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, labels__); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(11, dashboardFilters_.get(i)); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, labels__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -699,40 +790,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.Dashboard)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.Dashboard other = (com.google.monitoring.dashboard.v1.Dashboard) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (!getDashboardFiltersList() - .equals(other.getDashboardFiltersList())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + com.google.monitoring.dashboard.v1.Dashboard other = + (com.google.monitoring.dashboard.v1.Dashboard) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getDashboardFiltersList().equals(other.getDashboardFiltersList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getLayoutCase().equals(other.getLayoutCase())) return false; switch (layoutCase_) { case 5: - if (!getGridLayout() - .equals(other.getGridLayout())) return false; + if (!getGridLayout().equals(other.getGridLayout())) return false; break; case 6: - if (!getMosaicLayout() - .equals(other.getMosaicLayout())) return false; + if (!getMosaicLayout().equals(other.getMosaicLayout())) return false; break; case 8: - if (!getRowLayout() - .equals(other.getRowLayout())) return false; + if (!getRowLayout().equals(other.getRowLayout())) return false; break; case 9: - if (!getColumnLayout() - .equals(other.getColumnLayout())) return false; + if (!getColumnLayout().equals(other.getColumnLayout())) return false; break; case 0: default: @@ -787,99 +870,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.Dashboard parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.Dashboard parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Dashboard parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Dashboard parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Dashboard 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.Dashboard parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Dashboard parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.Dashboard parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.Dashboard parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Dashboard parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.Dashboard parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.Dashboard parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.Dashboard parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.Dashboard parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.Dashboard prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A Google Stackdriver dashboard. Dashboards define the content and layout
              * of pages in the Stackdriver web application.
          @@ -887,13 +975,13 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.Dashboard}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Dashboard)
                 com.google.monitoring.dashboard.v1.DashboardOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.DashboardsProto.internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.DashboardsProto
          +          .internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor;
               }
           
               @SuppressWarnings({"rawtypes"})
          @@ -903,10 +991,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
                   case 12:
                     return internalGetLabels();
                   default:
          -          throw new RuntimeException(
          -              "Invalid map field number: " + number);
          +          throw new RuntimeException("Invalid map field number: " + number);
                 }
               }
          +
               @SuppressWarnings({"rawtypes"})
               protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
                   int number) {
          @@ -914,28 +1002,27 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi
                   case 12:
                     return internalGetMutableLabels();
                   default:
          -          throw new RuntimeException(
          -              "Invalid map field number: " + number);
          +          throw new RuntimeException("Invalid map field number: " + number);
                 }
               }
          +
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.DashboardsProto.internal_static_google_monitoring_dashboard_v1_Dashboard_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.DashboardsProto
          +          .internal_static_google_monitoring_dashboard_v1_Dashboard_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.Dashboard.class, com.google.monitoring.dashboard.v1.Dashboard.Builder.class);
          +              com.google.monitoring.dashboard.v1.Dashboard.class,
          +              com.google.monitoring.dashboard.v1.Dashboard.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.Dashboard.newBuilder()
          -    private Builder() {
          -
          -    }
          +    private Builder() {}
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
          -
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -969,9 +1056,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.DashboardsProto.internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.DashboardsProto
          +          .internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor;
               }
           
               @java.lang.Override
          @@ -990,9 +1077,12 @@ public com.google.monitoring.dashboard.v1.Dashboard build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.Dashboard buildPartial() {
          -      com.google.monitoring.dashboard.v1.Dashboard result = new com.google.monitoring.dashboard.v1.Dashboard(this);
          +      com.google.monitoring.dashboard.v1.Dashboard result =
          +          new com.google.monitoring.dashboard.v1.Dashboard(this);
                 buildPartialRepeatedFields(result);
          -      if (bitField0_ != 0) { buildPartial0(result); }
          +      if (bitField0_ != 0) {
          +        buildPartial0(result);
          +      }
                 buildPartialOneofs(result);
                 onBuilt();
                 return result;
          @@ -1030,20 +1120,16 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Dashboard result)
               private void buildPartialOneofs(com.google.monitoring.dashboard.v1.Dashboard result) {
                 result.layoutCase_ = layoutCase_;
                 result.layout_ = this.layout_;
          -      if (layoutCase_ == 5 &&
          -          gridLayoutBuilder_ != null) {
          +      if (layoutCase_ == 5 && gridLayoutBuilder_ != null) {
                   result.layout_ = gridLayoutBuilder_.build();
                 }
          -      if (layoutCase_ == 6 &&
          -          mosaicLayoutBuilder_ != null) {
          +      if (layoutCase_ == 6 && mosaicLayoutBuilder_ != null) {
                   result.layout_ = mosaicLayoutBuilder_.build();
                 }
          -      if (layoutCase_ == 8 &&
          -          rowLayoutBuilder_ != null) {
          +      if (layoutCase_ == 8 && rowLayoutBuilder_ != null) {
                   result.layout_ = rowLayoutBuilder_.build();
                 }
          -      if (layoutCase_ == 9 &&
          -          columnLayoutBuilder_ != null) {
          +      if (layoutCase_ == 9 && columnLayoutBuilder_ != null) {
                   result.layout_ = columnLayoutBuilder_.build();
                 }
               }
          @@ -1052,38 +1138,39 @@ private void buildPartialOneofs(com.google.monitoring.dashboard.v1.Dashboard res
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.Dashboard) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.Dashboard)other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.Dashboard) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1125,37 +1212,42 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.Dashboard other) {
                       dashboardFiltersBuilder_ = null;
                       dashboardFilters_ = other.dashboardFilters_;
                       bitField0_ = (bitField0_ & ~0x00000080);
          -            dashboardFiltersBuilder_ = 
          -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          -                 getDashboardFiltersFieldBuilder() : null;
          +            dashboardFiltersBuilder_ =
          +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          +                    ? getDashboardFiltersFieldBuilder()
          +                    : null;
                     } else {
                       dashboardFiltersBuilder_.addAllMessages(other.dashboardFilters_);
                     }
                   }
                 }
          -      internalGetMutableLabels().mergeFrom(
          -          other.internalGetLabels());
          +      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
                 bitField0_ |= 0x00000100;
                 switch (other.getLayoutCase()) {
          -        case GRID_LAYOUT: {
          -          mergeGridLayout(other.getGridLayout());
          -          break;
          -        }
          -        case MOSAIC_LAYOUT: {
          -          mergeMosaicLayout(other.getMosaicLayout());
          -          break;
          -        }
          -        case ROW_LAYOUT: {
          -          mergeRowLayout(other.getRowLayout());
          -          break;
          -        }
          -        case COLUMN_LAYOUT: {
          -          mergeColumnLayout(other.getColumnLayout());
          -          break;
          -        }
          -        case LAYOUT_NOT_SET: {
          -          break;
          -        }
          +        case GRID_LAYOUT:
          +          {
          +            mergeGridLayout(other.getGridLayout());
          +            break;
          +          }
          +        case MOSAIC_LAYOUT:
          +          {
          +            mergeMosaicLayout(other.getMosaicLayout());
          +            break;
          +          }
          +        case ROW_LAYOUT:
          +          {
          +            mergeRowLayout(other.getRowLayout());
          +            break;
          +          }
          +        case COLUMN_LAYOUT:
          +          {
          +            mergeColumnLayout(other.getColumnLayout());
          +            break;
          +          }
          +        case LAYOUT_NOT_SET:
          +          {
          +            break;
          +          }
                 }
                 this.mergeUnknownFields(other.getUnknownFields());
                 onChanged();
          @@ -1183,77 +1275,81 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10: {
          -              name_ = input.readStringRequireUtf8();
          -              bitField0_ |= 0x00000001;
          -              break;
          -            } // case 10
          -            case 18: {
          -              displayName_ = input.readStringRequireUtf8();
          -              bitField0_ |= 0x00000002;
          -              break;
          -            } // case 18
          -            case 34: {
          -              etag_ = input.readStringRequireUtf8();
          -              bitField0_ |= 0x00000004;
          -              break;
          -            } // case 34
          -            case 42: {
          -              input.readMessage(
          -                  getGridLayoutFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              layoutCase_ = 5;
          -              break;
          -            } // case 42
          -            case 50: {
          -              input.readMessage(
          -                  getMosaicLayoutFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              layoutCase_ = 6;
          -              break;
          -            } // case 50
          -            case 66: {
          -              input.readMessage(
          -                  getRowLayoutFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              layoutCase_ = 8;
          -              break;
          -            } // case 66
          -            case 74: {
          -              input.readMessage(
          -                  getColumnLayoutFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              layoutCase_ = 9;
          -              break;
          -            } // case 74
          -            case 90: {
          -              com.google.monitoring.dashboard.v1.DashboardFilter m =
          -                  input.readMessage(
          -                      com.google.monitoring.dashboard.v1.DashboardFilter.parser(),
          -                      extensionRegistry);
          -              if (dashboardFiltersBuilder_ == null) {
          -                ensureDashboardFiltersIsMutable();
          -                dashboardFilters_.add(m);
          -              } else {
          -                dashboardFiltersBuilder_.addMessage(m);
          -              }
          -              break;
          -            } // case 90
          -            case 98: {
          -              com.google.protobuf.MapEntry
          -              labels__ = input.readMessage(
          -                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
          -              internalGetMutableLabels().getMutableMap().put(
          -                  labels__.getKey(), labels__.getValue());
          -              bitField0_ |= 0x00000100;
          -              break;
          -            } // case 98
          -            default: {
          -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                done = true; // was an endgroup tag
          -              }
          -              break;
          -            } // default:
          +            case 10:
          +              {
          +                name_ = input.readStringRequireUtf8();
          +                bitField0_ |= 0x00000001;
          +                break;
          +              } // case 10
          +            case 18:
          +              {
          +                displayName_ = input.readStringRequireUtf8();
          +                bitField0_ |= 0x00000002;
          +                break;
          +              } // case 18
          +            case 34:
          +              {
          +                etag_ = input.readStringRequireUtf8();
          +                bitField0_ |= 0x00000004;
          +                break;
          +              } // case 34
          +            case 42:
          +              {
          +                input.readMessage(getGridLayoutFieldBuilder().getBuilder(), extensionRegistry);
          +                layoutCase_ = 5;
          +                break;
          +              } // case 42
          +            case 50:
          +              {
          +                input.readMessage(getMosaicLayoutFieldBuilder().getBuilder(), extensionRegistry);
          +                layoutCase_ = 6;
          +                break;
          +              } // case 50
          +            case 66:
          +              {
          +                input.readMessage(getRowLayoutFieldBuilder().getBuilder(), extensionRegistry);
          +                layoutCase_ = 8;
          +                break;
          +              } // case 66
          +            case 74:
          +              {
          +                input.readMessage(getColumnLayoutFieldBuilder().getBuilder(), extensionRegistry);
          +                layoutCase_ = 9;
          +                break;
          +              } // case 74
          +            case 90:
          +              {
          +                com.google.monitoring.dashboard.v1.DashboardFilter m =
          +                    input.readMessage(
          +                        com.google.monitoring.dashboard.v1.DashboardFilter.parser(),
          +                        extensionRegistry);
          +                if (dashboardFiltersBuilder_ == null) {
          +                  ensureDashboardFiltersIsMutable();
          +                  dashboardFilters_.add(m);
          +                } else {
          +                  dashboardFiltersBuilder_.addMessage(m);
          +                }
          +                break;
          +              } // case 90
          +            case 98:
          +              {
          +                com.google.protobuf.MapEntry labels__ =
          +                    input.readMessage(
          +                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
          +                        extensionRegistry);
          +                internalGetMutableLabels()
          +                    .getMutableMap()
          +                    .put(labels__.getKey(), labels__.getValue());
          +                bitField0_ |= 0x00000100;
          +                break;
          +              } // case 98
          +            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) {
          @@ -1263,12 +1359,12 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          +
               private int layoutCase_ = 0;
               private java.lang.Object layout_;
          -    public LayoutCase
          -        getLayoutCase() {
          -      return LayoutCase.forNumber(
          -          layoutCase_);
          +
          +    public LayoutCase getLayoutCase() {
          +      return LayoutCase.forNumber(layoutCase_);
               }
           
               public Builder clearLayout() {
          @@ -1282,18 +1378,20 @@ public Builder clearLayout() {
           
               private java.lang.Object name_ = "";
               /**
          +     *
          +     *
                * 
                * Identifier. The resource name of the dashboard.
                * 
          * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1302,20 +1400,21 @@ public java.lang.String getName() { } } /** + * + * *
                * Identifier. The resource name of the dashboard.
                * 
          * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1323,28 +1422,35 @@ public java.lang.String getName() { } } /** + * + * *
                * Identifier. The resource name of the dashboard.
                * 
          * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                * Identifier. The resource name of the dashboard.
                * 
          * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1354,17 +1460,21 @@ public Builder clearName() { return this; } /** + * + * *
                * Identifier. The resource name of the dashboard.
                * 
          * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1374,18 +1484,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
                * Required. The mutable, human-readable name.
                * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1394,20 +1506,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
                * Required. The mutable, human-readable name.
                * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1415,28 +1528,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
                * Required. The mutable, human-readable name.
                * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
                * Required. The mutable, human-readable name.
                * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1446,17 +1566,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
                * Required. The mutable, human-readable name.
                * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1466,6 +1590,8 @@ public Builder setDisplayNameBytes( private java.lang.Object etag_ = ""; /** + * + * *
                * `etag` is used for optimistic concurrency control as a way to help
                * prevent simultaneous updates of a policy from overwriting each other.
          @@ -1477,13 +1603,13 @@ public Builder setDisplayNameBytes(
                * 
          * * string etag = 4; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -1492,6 +1618,8 @@ public java.lang.String getEtag() { } } /** + * + * *
                * `etag` is used for optimistic concurrency control as a way to help
                * prevent simultaneous updates of a policy from overwriting each other.
          @@ -1503,15 +1631,14 @@ public java.lang.String getEtag() {
                * 
          * * string etag = 4; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -1519,6 +1646,8 @@ public java.lang.String getEtag() { } } /** + * + * *
                * `etag` is used for optimistic concurrency control as a way to help
                * prevent simultaneous updates of a policy from overwriting each other.
          @@ -1530,18 +1659,22 @@ public java.lang.String getEtag() {
                * 
          * * string etag = 4; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
                * `etag` is used for optimistic concurrency control as a way to help
                * prevent simultaneous updates of a policy from overwriting each other.
          @@ -1553,6 +1686,7 @@ public Builder setEtag(
                * 
          * * string etag = 4; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1562,6 +1696,8 @@ public Builder clearEtag() { return this; } /** + * + * *
                * `etag` is used for optimistic concurrency control as a way to help
                * prevent simultaneous updates of a policy from overwriting each other.
          @@ -1573,12 +1709,14 @@ public Builder clearEtag() {
                * 
          * * string etag = 4; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -1587,14 +1725,20 @@ public Builder setEtagBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.GridLayout, com.google.monitoring.dashboard.v1.GridLayout.Builder, com.google.monitoring.dashboard.v1.GridLayoutOrBuilder> gridLayoutBuilder_; + com.google.monitoring.dashboard.v1.GridLayout, + com.google.monitoring.dashboard.v1.GridLayout.Builder, + com.google.monitoring.dashboard.v1.GridLayoutOrBuilder> + gridLayoutBuilder_; /** + * + * *
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
                * 
          * * .google.monitoring.dashboard.v1.GridLayout grid_layout = 5; + * * @return Whether the gridLayout field is set. */ @java.lang.Override @@ -1602,12 +1746,15 @@ public boolean hasGridLayout() { return layoutCase_ == 5; } /** + * + * *
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
                * 
          * * .google.monitoring.dashboard.v1.GridLayout grid_layout = 5; + * * @return The gridLayout. */ @java.lang.Override @@ -1625,6 +1772,8 @@ public com.google.monitoring.dashboard.v1.GridLayout getGridLayout() { } } /** + * + * *
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
          @@ -1646,6 +1795,8 @@ public Builder setGridLayout(com.google.monitoring.dashboard.v1.GridLayout value
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
          @@ -1665,6 +1816,8 @@ public Builder setGridLayout(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
          @@ -1674,10 +1827,13 @@ public Builder setGridLayout(
                */
               public Builder mergeGridLayout(com.google.monitoring.dashboard.v1.GridLayout value) {
                 if (gridLayoutBuilder_ == null) {
          -        if (layoutCase_ == 5 &&
          -            layout_ != com.google.monitoring.dashboard.v1.GridLayout.getDefaultInstance()) {
          -          layout_ = com.google.monitoring.dashboard.v1.GridLayout.newBuilder((com.google.monitoring.dashboard.v1.GridLayout) layout_)
          -              .mergeFrom(value).buildPartial();
          +        if (layoutCase_ == 5
          +            && layout_ != com.google.monitoring.dashboard.v1.GridLayout.getDefaultInstance()) {
          +          layout_ =
          +              com.google.monitoring.dashboard.v1.GridLayout.newBuilder(
          +                      (com.google.monitoring.dashboard.v1.GridLayout) layout_)
          +                  .mergeFrom(value)
          +                  .buildPartial();
                   } else {
                     layout_ = value;
                   }
          @@ -1693,6 +1849,8 @@ public Builder mergeGridLayout(com.google.monitoring.dashboard.v1.GridLayout val
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
          @@ -1717,6 +1875,8 @@ public Builder clearGridLayout() {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
          @@ -1728,6 +1888,8 @@ public com.google.monitoring.dashboard.v1.GridLayout.Builder getGridLayoutBuilde
                 return getGridLayoutFieldBuilder().getBuilder();
               }
               /**
          +     *
          +     *
                * 
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
          @@ -1747,6 +1909,8 @@ public com.google.monitoring.dashboard.v1.GridLayoutOrBuilder getGridLayoutOrBui
                 }
               }
               /**
          +     *
          +     *
                * 
                * Content is arranged with a basic layout that re-flows a simple list of
                * informational elements like widgets or tiles.
          @@ -1755,14 +1919,19 @@ public com.google.monitoring.dashboard.v1.GridLayoutOrBuilder getGridLayoutOrBui
                * .google.monitoring.dashboard.v1.GridLayout grid_layout = 5;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.GridLayout, com.google.monitoring.dashboard.v1.GridLayout.Builder, com.google.monitoring.dashboard.v1.GridLayoutOrBuilder> 
          +            com.google.monitoring.dashboard.v1.GridLayout,
          +            com.google.monitoring.dashboard.v1.GridLayout.Builder,
          +            com.google.monitoring.dashboard.v1.GridLayoutOrBuilder>
                   getGridLayoutFieldBuilder() {
                 if (gridLayoutBuilder_ == null) {
                   if (!(layoutCase_ == 5)) {
                     layout_ = com.google.monitoring.dashboard.v1.GridLayout.getDefaultInstance();
                   }
          -        gridLayoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.GridLayout, com.google.monitoring.dashboard.v1.GridLayout.Builder, com.google.monitoring.dashboard.v1.GridLayoutOrBuilder>(
          +        gridLayoutBuilder_ =
          +            new com.google.protobuf.SingleFieldBuilderV3<
          +                com.google.monitoring.dashboard.v1.GridLayout,
          +                com.google.monitoring.dashboard.v1.GridLayout.Builder,
          +                com.google.monitoring.dashboard.v1.GridLayoutOrBuilder>(
                           (com.google.monitoring.dashboard.v1.GridLayout) layout_,
                           getParentForChildren(),
                           isClean());
          @@ -1774,14 +1943,20 @@ public com.google.monitoring.dashboard.v1.GridLayoutOrBuilder getGridLayoutOrBui
               }
           
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.MosaicLayout, com.google.monitoring.dashboard.v1.MosaicLayout.Builder, com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder> mosaicLayoutBuilder_;
          +            com.google.monitoring.dashboard.v1.MosaicLayout,
          +            com.google.monitoring.dashboard.v1.MosaicLayout.Builder,
          +            com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder>
          +        mosaicLayoutBuilder_;
               /**
          +     *
          +     *
                * 
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
                * 
          * * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + * * @return Whether the mosaicLayout field is set. */ @java.lang.Override @@ -1789,12 +1964,15 @@ public boolean hasMosaicLayout() { return layoutCase_ == 6; } /** + * + * *
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
                * 
          * * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + * * @return The mosaicLayout. */ @java.lang.Override @@ -1812,6 +1990,8 @@ public com.google.monitoring.dashboard.v1.MosaicLayout getMosaicLayout() { } } /** + * + * *
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
          @@ -1833,6 +2013,8 @@ public Builder setMosaicLayout(com.google.monitoring.dashboard.v1.MosaicLayout v
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
          @@ -1852,6 +2034,8 @@ public Builder setMosaicLayout(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
          @@ -1861,10 +2045,13 @@ public Builder setMosaicLayout(
                */
               public Builder mergeMosaicLayout(com.google.monitoring.dashboard.v1.MosaicLayout value) {
                 if (mosaicLayoutBuilder_ == null) {
          -        if (layoutCase_ == 6 &&
          -            layout_ != com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance()) {
          -          layout_ = com.google.monitoring.dashboard.v1.MosaicLayout.newBuilder((com.google.monitoring.dashboard.v1.MosaicLayout) layout_)
          -              .mergeFrom(value).buildPartial();
          +        if (layoutCase_ == 6
          +            && layout_ != com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance()) {
          +          layout_ =
          +              com.google.monitoring.dashboard.v1.MosaicLayout.newBuilder(
          +                      (com.google.monitoring.dashboard.v1.MosaicLayout) layout_)
          +                  .mergeFrom(value)
          +                  .buildPartial();
                   } else {
                     layout_ = value;
                   }
          @@ -1880,6 +2067,8 @@ public Builder mergeMosaicLayout(com.google.monitoring.dashboard.v1.MosaicLayout
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
          @@ -1904,6 +2093,8 @@ public Builder clearMosaicLayout() {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
          @@ -1915,6 +2106,8 @@ public com.google.monitoring.dashboard.v1.MosaicLayout.Builder getMosaicLayoutBu
                 return getMosaicLayoutFieldBuilder().getBuilder();
               }
               /**
          +     *
          +     *
                * 
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
          @@ -1934,6 +2127,8 @@ public com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder getMosaicLayoutO
                 }
               }
               /**
          +     *
          +     *
                * 
                * The content is arranged as a grid of tiles, with each content widget
                * occupying one or more grid blocks.
          @@ -1942,14 +2137,19 @@ public com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder getMosaicLayoutO
                * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.MosaicLayout, com.google.monitoring.dashboard.v1.MosaicLayout.Builder, com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder> 
          +            com.google.monitoring.dashboard.v1.MosaicLayout,
          +            com.google.monitoring.dashboard.v1.MosaicLayout.Builder,
          +            com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder>
                   getMosaicLayoutFieldBuilder() {
                 if (mosaicLayoutBuilder_ == null) {
                   if (!(layoutCase_ == 6)) {
                     layout_ = com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance();
                   }
          -        mosaicLayoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.MosaicLayout, com.google.monitoring.dashboard.v1.MosaicLayout.Builder, com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder>(
          +        mosaicLayoutBuilder_ =
          +            new com.google.protobuf.SingleFieldBuilderV3<
          +                com.google.monitoring.dashboard.v1.MosaicLayout,
          +                com.google.monitoring.dashboard.v1.MosaicLayout.Builder,
          +                com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder>(
                           (com.google.monitoring.dashboard.v1.MosaicLayout) layout_,
                           getParentForChildren(),
                           isClean());
          @@ -1961,14 +2161,20 @@ public com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder getMosaicLayoutO
               }
           
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.RowLayout, com.google.monitoring.dashboard.v1.RowLayout.Builder, com.google.monitoring.dashboard.v1.RowLayoutOrBuilder> rowLayoutBuilder_;
          +            com.google.monitoring.dashboard.v1.RowLayout,
          +            com.google.monitoring.dashboard.v1.RowLayout.Builder,
          +            com.google.monitoring.dashboard.v1.RowLayoutOrBuilder>
          +        rowLayoutBuilder_;
               /**
          +     *
          +     *
                * 
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
                * 
          * * .google.monitoring.dashboard.v1.RowLayout row_layout = 8; + * * @return Whether the rowLayout field is set. */ @java.lang.Override @@ -1976,12 +2182,15 @@ public boolean hasRowLayout() { return layoutCase_ == 8; } /** + * + * *
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
                * 
          * * .google.monitoring.dashboard.v1.RowLayout row_layout = 8; + * * @return The rowLayout. */ @java.lang.Override @@ -1999,6 +2208,8 @@ public com.google.monitoring.dashboard.v1.RowLayout getRowLayout() { } } /** + * + * *
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
          @@ -2020,6 +2231,8 @@ public Builder setRowLayout(com.google.monitoring.dashboard.v1.RowLayout value)
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
          @@ -2039,6 +2252,8 @@ public Builder setRowLayout(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
          @@ -2048,10 +2263,13 @@ public Builder setRowLayout(
                */
               public Builder mergeRowLayout(com.google.monitoring.dashboard.v1.RowLayout value) {
                 if (rowLayoutBuilder_ == null) {
          -        if (layoutCase_ == 8 &&
          -            layout_ != com.google.monitoring.dashboard.v1.RowLayout.getDefaultInstance()) {
          -          layout_ = com.google.monitoring.dashboard.v1.RowLayout.newBuilder((com.google.monitoring.dashboard.v1.RowLayout) layout_)
          -              .mergeFrom(value).buildPartial();
          +        if (layoutCase_ == 8
          +            && layout_ != com.google.monitoring.dashboard.v1.RowLayout.getDefaultInstance()) {
          +          layout_ =
          +              com.google.monitoring.dashboard.v1.RowLayout.newBuilder(
          +                      (com.google.monitoring.dashboard.v1.RowLayout) layout_)
          +                  .mergeFrom(value)
          +                  .buildPartial();
                   } else {
                     layout_ = value;
                   }
          @@ -2067,6 +2285,8 @@ public Builder mergeRowLayout(com.google.monitoring.dashboard.v1.RowLayout value
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
          @@ -2091,6 +2311,8 @@ public Builder clearRowLayout() {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
          @@ -2102,6 +2324,8 @@ public com.google.monitoring.dashboard.v1.RowLayout.Builder getRowLayoutBuilder(
                 return getRowLayoutFieldBuilder().getBuilder();
               }
               /**
          +     *
          +     *
                * 
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
          @@ -2121,6 +2345,8 @@ public com.google.monitoring.dashboard.v1.RowLayoutOrBuilder getRowLayoutOrBuild
                 }
               }
               /**
          +     *
          +     *
                * 
                * The content is divided into equally spaced rows and the widgets are
                * arranged horizontally.
          @@ -2129,14 +2355,19 @@ public com.google.monitoring.dashboard.v1.RowLayoutOrBuilder getRowLayoutOrBuild
                * .google.monitoring.dashboard.v1.RowLayout row_layout = 8;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.RowLayout, com.google.monitoring.dashboard.v1.RowLayout.Builder, com.google.monitoring.dashboard.v1.RowLayoutOrBuilder> 
          +            com.google.monitoring.dashboard.v1.RowLayout,
          +            com.google.monitoring.dashboard.v1.RowLayout.Builder,
          +            com.google.monitoring.dashboard.v1.RowLayoutOrBuilder>
                   getRowLayoutFieldBuilder() {
                 if (rowLayoutBuilder_ == null) {
                   if (!(layoutCase_ == 8)) {
                     layout_ = com.google.monitoring.dashboard.v1.RowLayout.getDefaultInstance();
                   }
          -        rowLayoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.RowLayout, com.google.monitoring.dashboard.v1.RowLayout.Builder, com.google.monitoring.dashboard.v1.RowLayoutOrBuilder>(
          +        rowLayoutBuilder_ =
          +            new com.google.protobuf.SingleFieldBuilderV3<
          +                com.google.monitoring.dashboard.v1.RowLayout,
          +                com.google.monitoring.dashboard.v1.RowLayout.Builder,
          +                com.google.monitoring.dashboard.v1.RowLayoutOrBuilder>(
                           (com.google.monitoring.dashboard.v1.RowLayout) layout_,
                           getParentForChildren(),
                           isClean());
          @@ -2148,14 +2379,20 @@ public com.google.monitoring.dashboard.v1.RowLayoutOrBuilder getRowLayoutOrBuild
               }
           
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.ColumnLayout, com.google.monitoring.dashboard.v1.ColumnLayout.Builder, com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder> columnLayoutBuilder_;
          +            com.google.monitoring.dashboard.v1.ColumnLayout,
          +            com.google.monitoring.dashboard.v1.ColumnLayout.Builder,
          +            com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder>
          +        columnLayoutBuilder_;
               /**
          +     *
          +     *
                * 
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
                * 
          * * .google.monitoring.dashboard.v1.ColumnLayout column_layout = 9; + * * @return Whether the columnLayout field is set. */ @java.lang.Override @@ -2163,12 +2400,15 @@ public boolean hasColumnLayout() { return layoutCase_ == 9; } /** + * + * *
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
                * 
          * * .google.monitoring.dashboard.v1.ColumnLayout column_layout = 9; + * * @return The columnLayout. */ @java.lang.Override @@ -2186,6 +2426,8 @@ public com.google.monitoring.dashboard.v1.ColumnLayout getColumnLayout() { } } /** + * + * *
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
          @@ -2207,6 +2449,8 @@ public Builder setColumnLayout(com.google.monitoring.dashboard.v1.ColumnLayout v
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
          @@ -2226,6 +2470,8 @@ public Builder setColumnLayout(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
          @@ -2235,10 +2481,13 @@ public Builder setColumnLayout(
                */
               public Builder mergeColumnLayout(com.google.monitoring.dashboard.v1.ColumnLayout value) {
                 if (columnLayoutBuilder_ == null) {
          -        if (layoutCase_ == 9 &&
          -            layout_ != com.google.monitoring.dashboard.v1.ColumnLayout.getDefaultInstance()) {
          -          layout_ = com.google.monitoring.dashboard.v1.ColumnLayout.newBuilder((com.google.monitoring.dashboard.v1.ColumnLayout) layout_)
          -              .mergeFrom(value).buildPartial();
          +        if (layoutCase_ == 9
          +            && layout_ != com.google.monitoring.dashboard.v1.ColumnLayout.getDefaultInstance()) {
          +          layout_ =
          +              com.google.monitoring.dashboard.v1.ColumnLayout.newBuilder(
          +                      (com.google.monitoring.dashboard.v1.ColumnLayout) layout_)
          +                  .mergeFrom(value)
          +                  .buildPartial();
                   } else {
                     layout_ = value;
                   }
          @@ -2254,6 +2503,8 @@ public Builder mergeColumnLayout(com.google.monitoring.dashboard.v1.ColumnLayout
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
          @@ -2278,6 +2529,8 @@ public Builder clearColumnLayout() {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
          @@ -2289,6 +2542,8 @@ public com.google.monitoring.dashboard.v1.ColumnLayout.Builder getColumnLayoutBu
                 return getColumnLayoutFieldBuilder().getBuilder();
               }
               /**
          +     *
          +     *
                * 
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
          @@ -2308,6 +2563,8 @@ public com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder getColumnLayoutO
                 }
               }
               /**
          +     *
          +     *
                * 
                * The content is divided into equally spaced columns and the widgets are
                * arranged vertically.
          @@ -2316,14 +2573,19 @@ public com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder getColumnLayoutO
                * .google.monitoring.dashboard.v1.ColumnLayout column_layout = 9;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.ColumnLayout, com.google.monitoring.dashboard.v1.ColumnLayout.Builder, com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder> 
          +            com.google.monitoring.dashboard.v1.ColumnLayout,
          +            com.google.monitoring.dashboard.v1.ColumnLayout.Builder,
          +            com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder>
                   getColumnLayoutFieldBuilder() {
                 if (columnLayoutBuilder_ == null) {
                   if (!(layoutCase_ == 9)) {
                     layout_ = com.google.monitoring.dashboard.v1.ColumnLayout.getDefaultInstance();
                   }
          -        columnLayoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.ColumnLayout, com.google.monitoring.dashboard.v1.ColumnLayout.Builder, com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder>(
          +        columnLayoutBuilder_ =
          +            new com.google.protobuf.SingleFieldBuilderV3<
          +                com.google.monitoring.dashboard.v1.ColumnLayout,
          +                com.google.monitoring.dashboard.v1.ColumnLayout.Builder,
          +                com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder>(
                           (com.google.monitoring.dashboard.v1.ColumnLayout) layout_,
                           getParentForChildren(),
                           isClean());
          @@ -2335,25 +2597,34 @@ public com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder getColumnLayoutO
               }
           
               private java.util.List dashboardFilters_ =
          -      java.util.Collections.emptyList();
          +        java.util.Collections.emptyList();
          +
               private void ensureDashboardFiltersIsMutable() {
                 if (!((bitField0_ & 0x00000080) != 0)) {
          -        dashboardFilters_ = new java.util.ArrayList(dashboardFilters_);
          +        dashboardFilters_ =
          +            new java.util.ArrayList(
          +                dashboardFilters_);
                   bitField0_ |= 0x00000080;
          -       }
          +      }
               }
           
               private com.google.protobuf.RepeatedFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.DashboardFilter, com.google.monitoring.dashboard.v1.DashboardFilter.Builder, com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder> dashboardFiltersBuilder_;
          +            com.google.monitoring.dashboard.v1.DashboardFilter,
          +            com.google.monitoring.dashboard.v1.DashboardFilter.Builder,
          +            com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder>
          +        dashboardFiltersBuilder_;
           
               /**
          +     *
          +     *
                * 
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          * * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; */ - public java.util.List getDashboardFiltersList() { + public java.util.List + getDashboardFiltersList() { if (dashboardFiltersBuilder_ == null) { return java.util.Collections.unmodifiableList(dashboardFilters_); } else { @@ -2361,6 +2632,8 @@ public java.util.List getDas } } /** + * + * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2375,6 +2648,8 @@ public int getDashboardFiltersCount() { } } /** + * + * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2389,6 +2664,8 @@ public com.google.monitoring.dashboard.v1.DashboardFilter getDashboardFilters(in } } /** + * + * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2410,6 +2687,8 @@ public Builder setDashboardFilters( return this; } /** + * + * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2428,6 +2707,8 @@ public Builder setDashboardFilters( return this; } /** + * + * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2448,6 +2729,8 @@ public Builder addDashboardFilters(com.google.monitoring.dashboard.v1.DashboardF return this; } /** + * + * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2469,6 +2752,8 @@ public Builder addDashboardFilters( return this; } /** + * + * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2487,6 +2772,8 @@ public Builder addDashboardFilters( return this; } /** + * + * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2505,6 +2792,8 @@ public Builder addDashboardFilters( return this; } /** + * + * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2515,8 +2804,7 @@ public Builder addAllDashboardFilters( java.lang.Iterable values) { if (dashboardFiltersBuilder_ == null) { ensureDashboardFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dashboardFilters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dashboardFilters_); onChanged(); } else { dashboardFiltersBuilder_.addAllMessages(values); @@ -2524,6 +2812,8 @@ public Builder addAllDashboardFilters( return this; } /** + * + * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2541,6 +2831,8 @@ public Builder clearDashboardFilters() { return this; } /** + * + * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2558,6 +2850,8 @@ public Builder removeDashboardFilters(int index) { return this; } /** + * + * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2569,6 +2863,8 @@ public com.google.monitoring.dashboard.v1.DashboardFilter.Builder getDashboardFi return getDashboardFiltersFieldBuilder().getBuilder(index); } /** + * + * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2578,19 +2874,22 @@ public com.google.monitoring.dashboard.v1.DashboardFilter.Builder getDashboardFi public com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder getDashboardFiltersOrBuilder( int index) { if (dashboardFiltersBuilder_ == null) { - return dashboardFilters_.get(index); } else { + return dashboardFilters_.get(index); + } else { return dashboardFiltersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          * * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; */ - public java.util.List - getDashboardFiltersOrBuilderList() { + public java.util.List + getDashboardFiltersOrBuilderList() { if (dashboardFiltersBuilder_ != null) { return dashboardFiltersBuilder_.getMessageOrBuilderList(); } else { @@ -2598,6 +2897,8 @@ public com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder getDashboardF } } /** + * + * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2605,10 +2906,12 @@ public com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder getDashboardF * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; */ public com.google.monitoring.dashboard.v1.DashboardFilter.Builder addDashboardFiltersBuilder() { - return getDashboardFiltersFieldBuilder().addBuilder( - com.google.monitoring.dashboard.v1.DashboardFilter.getDefaultInstance()); + return getDashboardFiltersFieldBuilder() + .addBuilder(com.google.monitoring.dashboard.v1.DashboardFilter.getDefaultInstance()); } /** + * + * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          @@ -2617,26 +2920,35 @@ public com.google.monitoring.dashboard.v1.DashboardFilter.Builder addDashboardFi */ public com.google.monitoring.dashboard.v1.DashboardFilter.Builder addDashboardFiltersBuilder( int index) { - return getDashboardFiltersFieldBuilder().addBuilder( - index, com.google.monitoring.dashboard.v1.DashboardFilter.getDefaultInstance()); + return getDashboardFiltersFieldBuilder() + .addBuilder( + index, com.google.monitoring.dashboard.v1.DashboardFilter.getDefaultInstance()); } /** + * + * *
                * Filters to reduce the amount of data charted based on the filter criteria.
                * 
          * * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; */ - public java.util.List - getDashboardFiltersBuilderList() { + public java.util.List + getDashboardFiltersBuilderList() { return getDashboardFiltersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.DashboardFilter, com.google.monitoring.dashboard.v1.DashboardFilter.Builder, com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder> + com.google.monitoring.dashboard.v1.DashboardFilter, + com.google.monitoring.dashboard.v1.DashboardFilter.Builder, + com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder> getDashboardFiltersFieldBuilder() { if (dashboardFiltersBuilder_ == null) { - dashboardFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.DashboardFilter, com.google.monitoring.dashboard.v1.DashboardFilter.Builder, com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder>( + dashboardFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.DashboardFilter, + com.google.monitoring.dashboard.v1.DashboardFilter.Builder, + com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder>( dashboardFilters_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), @@ -2646,21 +2958,19 @@ public com.google.monitoring.dashboard.v1.DashboardFilter.Builder addDashboardFi return dashboardFiltersBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2669,10 +2979,13 @@ public com.google.monitoring.dashboard.v1.DashboardFilter.Builder addDashboardFi onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
                * Labels applied to the dashboard
                * 
          @@ -2680,20 +2993,21 @@ public int getLabelsCount() { * map<string, string> labels = 12; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
                * Labels applied to the dashboard
                * 
          @@ -2705,6 +3019,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
                * Labels applied to the dashboard
                * 
          @@ -2712,17 +3028,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 12; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                * Labels applied to the dashboard
                * 
          @@ -2730,79 +3048,81 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 12; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000100); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
                * Labels applied to the dashboard
                * 
          * * map<string, string> labels = 12; */ - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { bitField0_ |= 0x00000100; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
                * Labels applied to the dashboard
                * 
          * * map<string, string> labels = 12; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000100; return this; } /** + * + * *
                * Labels applied to the dashboard
                * 
          * * map<string, string> labels = 12; */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000100; return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2812,12 +3132,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.Dashboard) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Dashboard) private static final com.google.monitoring.dashboard.v1.Dashboard DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Dashboard(); } @@ -2826,27 +3146,27 @@ public static com.google.monitoring.dashboard.v1.Dashboard getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Dashboard 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Dashboard 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; @@ -2861,6 +3181,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.Dashboard getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java similarity index 71% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java index bd27fa784bb7..c99702810f0c 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboard_filter.proto @@ -5,21 +20,24 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A filter to reduce the amount of data charted in relevant widgets.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.DashboardFilter} */ -public final class DashboardFilter extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DashboardFilter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.DashboardFilter) DashboardFilterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DashboardFilter.newBuilder() to construct. private DashboardFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DashboardFilter() { labelKey_ = ""; templateVariable_ = ""; @@ -28,34 +46,38 @@ private DashboardFilter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DashboardFilter(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardFilterProto.internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardFilterProto + .internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardFilterProto.internal_static_google_monitoring_dashboard_v1_DashboardFilter_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardFilterProto + .internal_static_google_monitoring_dashboard_v1_DashboardFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.DashboardFilter.class, com.google.monitoring.dashboard.v1.DashboardFilter.Builder.class); + com.google.monitoring.dashboard.v1.DashboardFilter.class, + com.google.monitoring.dashboard.v1.DashboardFilter.Builder.class); } /** + * + * *
              * The type for the dashboard filter
              * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.DashboardFilter.FilterType} */ - public enum FilterType - implements com.google.protobuf.ProtocolMessageEnum { + public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                * Filter type is unspecified. This is not valid in a well-formed request.
                * 
          @@ -64,6 +86,8 @@ public enum FilterType */ FILTER_TYPE_UNSPECIFIED(0), /** + * + * *
                * Filter on a resource label value
                * 
          @@ -72,6 +96,8 @@ public enum FilterType */ RESOURCE_LABEL(1), /** + * + * *
                * Filter on a metrics label value
                * 
          @@ -80,6 +106,8 @@ public enum FilterType */ METRIC_LABEL(2), /** + * + * *
                * Filter on a user metadata label value
                * 
          @@ -88,6 +116,8 @@ public enum FilterType */ USER_METADATA_LABEL(3), /** + * + * *
                * Filter on a system metadata label value
                * 
          @@ -96,6 +126,8 @@ public enum FilterType */ SYSTEM_METADATA_LABEL(4), /** + * + * *
                * Filter on a group id
                * 
          @@ -107,6 +139,8 @@ public enum FilterType ; /** + * + * *
                * Filter type is unspecified. This is not valid in a well-formed request.
                * 
          @@ -115,6 +149,8 @@ public enum FilterType */ public static final int FILTER_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
                * Filter on a resource label value
                * 
          @@ -123,6 +159,8 @@ public enum FilterType */ public static final int RESOURCE_LABEL_VALUE = 1; /** + * + * *
                * Filter on a metrics label value
                * 
          @@ -131,6 +169,8 @@ public enum FilterType */ public static final int METRIC_LABEL_VALUE = 2; /** + * + * *
                * Filter on a user metadata label value
                * 
          @@ -139,6 +179,8 @@ public enum FilterType */ public static final int USER_METADATA_LABEL_VALUE = 3; /** + * + * *
                * Filter on a system metadata label value
                * 
          @@ -147,6 +189,8 @@ public enum FilterType */ public static final int SYSTEM_METADATA_LABEL_VALUE = 4; /** + * + * *
                * Filter on a group id
                * 
          @@ -155,7 +199,6 @@ public enum FilterType */ public static final int GROUP_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -180,52 +223,57 @@ public static FilterType valueOf(int value) { */ public static FilterType forNumber(int value) { switch (value) { - case 0: return FILTER_TYPE_UNSPECIFIED; - case 1: return RESOURCE_LABEL; - case 2: return METRIC_LABEL; - case 3: return USER_METADATA_LABEL; - case 4: return SYSTEM_METADATA_LABEL; - case 5: return GROUP; - default: return null; + case 0: + return FILTER_TYPE_UNSPECIFIED; + case 1: + return RESOURCE_LABEL; + case 2: + return METRIC_LABEL; + case 3: + return USER_METADATA_LABEL; + case 4: + return SYSTEM_METADATA_LABEL; + case 5: + return GROUP; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - FilterType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FilterType findValueByNumber(int number) { - return FilterType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FilterType findValueByNumber(int number) { + return FilterType.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() { + + 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.DashboardFilter.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardFilter.getDescriptor() + .getEnumTypes() + .get(0); } private static final FilterType[] VALUES = values(); - public static FilterType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static FilterType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -243,14 +291,18 @@ private FilterType(int value) { } private int defaultValueCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object defaultValue_; + public enum DefaultValueCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STRING_VALUE(4), DEFAULTVALUE_NOT_SET(0); private final int value; + private DefaultValueCase(int value) { this.value = value; } @@ -266,31 +318,37 @@ public static DefaultValueCase valueOf(int value) { public static DefaultValueCase forNumber(int value) { switch (value) { - case 4: return STRING_VALUE; - case 0: return DEFAULTVALUE_NOT_SET; - default: return null; + case 4: + return STRING_VALUE; + case 0: + return DEFAULTVALUE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DefaultValueCase - getDefaultValueCase() { - return DefaultValueCase.forNumber( - defaultValueCase_); + public DefaultValueCase getDefaultValueCase() { + return DefaultValueCase.forNumber(defaultValueCase_); } public static final int LABEL_KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object labelKey_ = ""; /** + * + * *
              * Required. The key for the label
              * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The labelKey. */ @java.lang.Override @@ -299,29 +357,29 @@ public java.lang.String getLabelKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); labelKey_ = s; return s; } } /** + * + * *
              * Required. The key for the label
              * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for labelKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getLabelKeyBytes() { + public com.google.protobuf.ByteString getLabelKeyBytes() { java.lang.Object ref = labelKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); labelKey_ = b; return b; } else { @@ -330,9 +388,12 @@ public java.lang.String getLabelKey() { } public static final int TEMPLATE_VARIABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object templateVariable_ = ""; /** + * + * *
              * The placeholder text that can be referenced in a filter string or MQL
              * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -340,6 +401,7 @@ public java.lang.String getLabelKey() {
              * 
          * * string template_variable = 3; + * * @return The templateVariable. */ @java.lang.Override @@ -348,14 +410,15 @@ public java.lang.String getTemplateVariable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); templateVariable_ = s; return s; } } /** + * + * *
              * The placeholder text that can be referenced in a filter string or MQL
              * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -363,16 +426,15 @@ public java.lang.String getTemplateVariable() {
              * 
          * * string template_variable = 3; + * * @return The bytes for templateVariable. */ @java.lang.Override - public com.google.protobuf.ByteString - getTemplateVariableBytes() { + public com.google.protobuf.ByteString getTemplateVariableBytes() { java.lang.Object ref = templateVariable_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); templateVariable_ = b; return b; } else { @@ -382,22 +444,28 @@ public java.lang.String getTemplateVariable() { public static final int STRING_VALUE_FIELD_NUMBER = 4; /** + * + * *
              * A variable-length string value.
              * 
          * * string string_value = 4; + * * @return Whether the stringValue field is set. */ public boolean hasStringValue() { return defaultValueCase_ == 4; } /** + * + * *
              * A variable-length string value.
              * 
          * * string string_value = 4; + * * @return The stringValue. */ public java.lang.String getStringValue() { @@ -408,8 +476,7 @@ public java.lang.String getStringValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (defaultValueCase_ == 4) { defaultValue_ = s; @@ -418,23 +485,24 @@ public java.lang.String getStringValue() { } } /** + * + * *
              * A variable-length string value.
              * 
          * * string string_value = 4; + * * @return The bytes for stringValue. */ - public com.google.protobuf.ByteString - getStringValueBytes() { + public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (defaultValueCase_ == 4) { ref = defaultValue_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (defaultValueCase_ == 4) { defaultValue_ = b; } @@ -447,30 +515,42 @@ public java.lang.String getStringValue() { public static final int FILTER_TYPE_FIELD_NUMBER = 5; private int filterType_ = 0; /** + * + * *
              * The specified filter type
              * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; + * * @return The enum numeric value on the wire for filterType. */ - @java.lang.Override public int getFilterTypeValue() { + @java.lang.Override + public int getFilterTypeValue() { return filterType_; } /** + * + * *
              * The specified filter type
              * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; + * * @return The filterType. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.DashboardFilter.FilterType getFilterType() { - com.google.monitoring.dashboard.v1.DashboardFilter.FilterType result = com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.forNumber(filterType_); - return result == null ? com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.DashboardFilter.FilterType getFilterType() { + com.google.monitoring.dashboard.v1.DashboardFilter.FilterType result = + com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.forNumber(filterType_); + return result == null + ? com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -482,8 +562,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, labelKey_); } @@ -493,7 +572,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (defaultValueCase_ == 4) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, defaultValue_); } - if (filterType_ != com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.FILTER_TYPE_UNSPECIFIED.getNumber()) { + if (filterType_ + != com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.FILTER_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, filterType_); } getUnknownFields().writeTo(output); @@ -514,9 +595,10 @@ public int getSerializedSize() { if (defaultValueCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, defaultValue_); } - if (filterType_ != com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.FILTER_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, filterType_); + if (filterType_ + != com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.FILTER_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, filterType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -526,23 +608,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.DashboardFilter)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.DashboardFilter other = (com.google.monitoring.dashboard.v1.DashboardFilter) obj; + com.google.monitoring.dashboard.v1.DashboardFilter other = + (com.google.monitoring.dashboard.v1.DashboardFilter) obj; - if (!getLabelKey() - .equals(other.getLabelKey())) return false; - if (!getTemplateVariable() - .equals(other.getTemplateVariable())) return false; + if (!getLabelKey().equals(other.getLabelKey())) return false; + if (!getTemplateVariable().equals(other.getTemplateVariable())) return false; if (filterType_ != other.filterType_) return false; if (!getDefaultValueCase().equals(other.getDefaultValueCase())) return false; switch (defaultValueCase_) { case 4: - if (!getStringValue() - .equals(other.getStringValue())) return false; + if (!getStringValue().equals(other.getStringValue())) return false; break; case 0: default: @@ -578,131 +658,135 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.DashboardFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.DashboardFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DashboardFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.DashboardFilter 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.DashboardFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.DashboardFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.DashboardFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.DashboardFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.DashboardFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.DashboardFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.DashboardFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.DashboardFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.DashboardFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.DashboardFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.DashboardFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A filter to reduce the amount of data charted in relevant widgets.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.DashboardFilter} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.DashboardFilter) com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardFilterProto.internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardFilterProto + .internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardFilterProto.internal_static_google_monitoring_dashboard_v1_DashboardFilter_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardFilterProto + .internal_static_google_monitoring_dashboard_v1_DashboardFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.DashboardFilter.class, com.google.monitoring.dashboard.v1.DashboardFilter.Builder.class); + com.google.monitoring.dashboard.v1.DashboardFilter.class, + com.google.monitoring.dashboard.v1.DashboardFilter.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.DashboardFilter.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -716,9 +800,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.DashboardFilterProto.internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.DashboardFilterProto + .internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor; } @java.lang.Override @@ -737,8 +821,11 @@ public com.google.monitoring.dashboard.v1.DashboardFilter build() { @java.lang.Override public com.google.monitoring.dashboard.v1.DashboardFilter buildPartial() { - com.google.monitoring.dashboard.v1.DashboardFilter result = new com.google.monitoring.dashboard.v1.DashboardFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.DashboardFilter result = + new com.google.monitoring.dashboard.v1.DashboardFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -766,38 +853,39 @@ private void buildPartialOneofs(com.google.monitoring.dashboard.v1.DashboardFilt public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DashboardFilter) { - return mergeFrom((com.google.monitoring.dashboard.v1.DashboardFilter)other); + return mergeFrom((com.google.monitoring.dashboard.v1.DashboardFilter) other); } else { super.mergeFrom(other); return this; @@ -805,7 +893,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.DashboardFilter other) { - if (other == com.google.monitoring.dashboard.v1.DashboardFilter.getDefaultInstance()) return this; + if (other == com.google.monitoring.dashboard.v1.DashboardFilter.getDefaultInstance()) + return this; if (!other.getLabelKey().isEmpty()) { labelKey_ = other.labelKey_; bitField0_ |= 0x00000001; @@ -820,15 +909,17 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.DashboardFilter othe setFilterTypeValue(other.getFilterTypeValue()); } switch (other.getDefaultValueCase()) { - case STRING_VALUE: { - defaultValueCase_ = 4; - defaultValue_ = other.defaultValue_; - onChanged(); - break; - } - case DEFAULTVALUE_NOT_SET: { - break; - } + case STRING_VALUE: + { + defaultValueCase_ = 4; + defaultValue_ = other.defaultValue_; + onChanged(); + break; + } + case DEFAULTVALUE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -856,33 +947,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - labelKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: { - templateVariable_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - defaultValueCase_ = 4; - defaultValue_ = s; - break; - } // case 34 - case 40: { - filterType_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + labelKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + templateVariable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + defaultValueCase_ = 4; + defaultValue_ = s; + break; + } // case 34 + case 40: + { + filterType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + 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) { @@ -892,12 +988,12 @@ public Builder mergeFrom( } // finally return this; } + private int defaultValueCase_ = 0; private java.lang.Object defaultValue_; - public DefaultValueCase - getDefaultValueCase() { - return DefaultValueCase.forNumber( - defaultValueCase_); + + public DefaultValueCase getDefaultValueCase() { + return DefaultValueCase.forNumber(defaultValueCase_); } public Builder clearDefaultValue() { @@ -911,18 +1007,20 @@ public Builder clearDefaultValue() { private java.lang.Object labelKey_ = ""; /** + * + * *
                * Required. The key for the label
                * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The labelKey. */ public java.lang.String getLabelKey() { java.lang.Object ref = labelKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); labelKey_ = s; return s; @@ -931,20 +1029,21 @@ public java.lang.String getLabelKey() { } } /** + * + * *
                * Required. The key for the label
                * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for labelKey. */ - public com.google.protobuf.ByteString - getLabelKeyBytes() { + public com.google.protobuf.ByteString getLabelKeyBytes() { java.lang.Object ref = labelKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); labelKey_ = b; return b; } else { @@ -952,28 +1051,35 @@ public java.lang.String getLabelKey() { } } /** + * + * *
                * Required. The key for the label
                * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The labelKey to set. * @return This builder for chaining. */ - public Builder setLabelKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLabelKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } labelKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                * Required. The key for the label
                * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLabelKey() { @@ -983,17 +1089,21 @@ public Builder clearLabelKey() { return this; } /** + * + * *
                * Required. The key for the label
                * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for labelKey to set. * @return This builder for chaining. */ - public Builder setLabelKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLabelKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); labelKey_ = value; bitField0_ |= 0x00000001; @@ -1003,6 +1113,8 @@ public Builder setLabelKeyBytes( private java.lang.Object templateVariable_ = ""; /** + * + * *
                * The placeholder text that can be referenced in a filter string or MQL
                * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -1010,13 +1122,13 @@ public Builder setLabelKeyBytes(
                * 
          * * string template_variable = 3; + * * @return The templateVariable. */ public java.lang.String getTemplateVariable() { java.lang.Object ref = templateVariable_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); templateVariable_ = s; return s; @@ -1025,6 +1137,8 @@ public java.lang.String getTemplateVariable() { } } /** + * + * *
                * The placeholder text that can be referenced in a filter string or MQL
                * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -1032,15 +1146,14 @@ public java.lang.String getTemplateVariable() {
                * 
          * * string template_variable = 3; + * * @return The bytes for templateVariable. */ - public com.google.protobuf.ByteString - getTemplateVariableBytes() { + public com.google.protobuf.ByteString getTemplateVariableBytes() { java.lang.Object ref = templateVariable_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); templateVariable_ = b; return b; } else { @@ -1048,6 +1161,8 @@ public java.lang.String getTemplateVariable() { } } /** + * + * *
                * The placeholder text that can be referenced in a filter string or MQL
                * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -1055,18 +1170,22 @@ public java.lang.String getTemplateVariable() {
                * 
          * * string template_variable = 3; + * * @param value The templateVariable to set. * @return This builder for chaining. */ - public Builder setTemplateVariable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTemplateVariable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } templateVariable_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
                * The placeholder text that can be referenced in a filter string or MQL
                * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -1074,6 +1193,7 @@ public Builder setTemplateVariable(
                * 
          * * string template_variable = 3; + * * @return This builder for chaining. */ public Builder clearTemplateVariable() { @@ -1083,6 +1203,8 @@ public Builder clearTemplateVariable() { return this; } /** + * + * *
                * The placeholder text that can be referenced in a filter string or MQL
                * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -1090,12 +1212,14 @@ public Builder clearTemplateVariable() {
                * 
          * * string template_variable = 3; + * * @param value The bytes for templateVariable to set. * @return This builder for chaining. */ - public Builder setTemplateVariableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTemplateVariableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); templateVariable_ = value; bitField0_ |= 0x00000002; @@ -1104,11 +1228,14 @@ public Builder setTemplateVariableBytes( } /** + * + * *
                * A variable-length string value.
                * 
          * * string string_value = 4; + * * @return Whether the stringValue field is set. */ @java.lang.Override @@ -1116,11 +1243,14 @@ public boolean hasStringValue() { return defaultValueCase_ == 4; } /** + * + * *
                * A variable-length string value.
                * 
          * * string string_value = 4; + * * @return The stringValue. */ @java.lang.Override @@ -1130,8 +1260,7 @@ public java.lang.String getStringValue() { ref = defaultValue_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (defaultValueCase_ == 4) { defaultValue_ = s; @@ -1142,24 +1271,25 @@ public java.lang.String getStringValue() { } } /** + * + * *
                * A variable-length string value.
                * 
          * * string string_value = 4; + * * @return The bytes for stringValue. */ @java.lang.Override - public com.google.protobuf.ByteString - getStringValueBytes() { + public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (defaultValueCase_ == 4) { ref = defaultValue_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (defaultValueCase_ == 4) { defaultValue_ = b; } @@ -1169,28 +1299,35 @@ public java.lang.String getStringValue() { } } /** + * + * *
                * A variable-length string value.
                * 
          * * string string_value = 4; + * * @param value The stringValue to set. * @return This builder for chaining. */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStringValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } defaultValueCase_ = 4; defaultValue_ = value; onChanged(); return this; } /** + * + * *
                * A variable-length string value.
                * 
          * * string string_value = 4; + * * @return This builder for chaining. */ public Builder clearStringValue() { @@ -1202,17 +1339,21 @@ public Builder clearStringValue() { return this; } /** + * + * *
                * A variable-length string value.
                * 
          * * string string_value = 4; + * * @param value The bytes for stringValue to set. * @return This builder for chaining. */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStringValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); defaultValueCase_ = 4; defaultValue_ = value; @@ -1222,22 +1363,29 @@ public Builder setStringValueBytes( private int filterType_ = 0; /** + * + * *
                * The specified filter type
                * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; + * * @return The enum numeric value on the wire for filterType. */ - @java.lang.Override public int getFilterTypeValue() { + @java.lang.Override + public int getFilterTypeValue() { return filterType_; } /** + * + * *
                * The specified filter type
                * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; + * * @param value The enum numeric value on the wire for filterType to set. * @return This builder for chaining. */ @@ -1248,28 +1396,38 @@ public Builder setFilterTypeValue(int value) { return this; } /** + * + * *
                * The specified filter type
                * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; + * * @return The filterType. */ @java.lang.Override public com.google.monitoring.dashboard.v1.DashboardFilter.FilterType getFilterType() { - com.google.monitoring.dashboard.v1.DashboardFilter.FilterType result = com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.forNumber(filterType_); - return result == null ? com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.UNRECOGNIZED : result; + com.google.monitoring.dashboard.v1.DashboardFilter.FilterType result = + com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.forNumber(filterType_); + return result == null + ? com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.UNRECOGNIZED + : result; } /** + * + * *
                * The specified filter type
                * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; + * * @param value The filterType to set. * @return This builder for chaining. */ - public Builder setFilterType(com.google.monitoring.dashboard.v1.DashboardFilter.FilterType value) { + public Builder setFilterType( + com.google.monitoring.dashboard.v1.DashboardFilter.FilterType value) { if (value == null) { throw new NullPointerException(); } @@ -1279,11 +1437,14 @@ public Builder setFilterType(com.google.monitoring.dashboard.v1.DashboardFilter. return this; } /** + * + * *
                * The specified filter type
                * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; + * * @return This builder for chaining. */ public Builder clearFilterType() { @@ -1292,9 +1453,9 @@ public Builder clearFilterType() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1304,12 +1465,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.DashboardFilter) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.DashboardFilter) private static final com.google.monitoring.dashboard.v1.DashboardFilter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.DashboardFilter(); } @@ -1318,27 +1479,27 @@ public static com.google.monitoring.dashboard.v1.DashboardFilter getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DashboardFilter 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DashboardFilter 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; @@ -1353,6 +1514,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.DashboardFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java similarity index 73% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java index 9629556463d0..ee280145ca7f 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java @@ -1,34 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboard_filter.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface DashboardFilterOrBuilder extends +public interface DashboardFilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.DashboardFilter) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. The key for the label
              * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The labelKey. */ java.lang.String getLabelKey(); /** + * + * *
              * Required. The key for the label
              * 
          * * string label_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for labelKey. */ - com.google.protobuf.ByteString - getLabelKeyBytes(); + com.google.protobuf.ByteString getLabelKeyBytes(); /** + * + * *
              * The placeholder text that can be referenced in a filter string or MQL
              * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -36,10 +59,13 @@ public interface DashboardFilterOrBuilder extends
              * 
          * * string template_variable = 3; + * * @return The templateVariable. */ java.lang.String getTemplateVariable(); /** + * + * *
              * The placeholder text that can be referenced in a filter string or MQL
              * query. If omitted, the dashboard filter will be applied to all relevant
          @@ -47,55 +73,69 @@ public interface DashboardFilterOrBuilder extends
              * 
          * * string template_variable = 3; + * * @return The bytes for templateVariable. */ - com.google.protobuf.ByteString - getTemplateVariableBytes(); + com.google.protobuf.ByteString getTemplateVariableBytes(); /** + * + * *
              * A variable-length string value.
              * 
          * * string string_value = 4; + * * @return Whether the stringValue field is set. */ boolean hasStringValue(); /** + * + * *
              * A variable-length string value.
              * 
          * * string string_value = 4; + * * @return The stringValue. */ java.lang.String getStringValue(); /** + * + * *
              * A variable-length string value.
              * 
          * * string string_value = 4; + * * @return The bytes for stringValue. */ - com.google.protobuf.ByteString - getStringValueBytes(); + com.google.protobuf.ByteString getStringValueBytes(); /** + * + * *
              * The specified filter type
              * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; + * * @return The enum numeric value on the wire for filterType. */ int getFilterTypeValue(); /** + * + * *
              * The specified filter type
              * 
          * * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; + * * @return The filterType. */ com.google.monitoring.dashboard.v1.DashboardFilter.FilterType getFilterType(); diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java new file mode 100644 index 000000000000..c807290dc14c --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java @@ -0,0 +1,87 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/dashboard_filter.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class DashboardFilterProto { + private DashboardFilterProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_DashboardFilter_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/monitoring/dashboard/v1/dashboa" + + "rd_filter.proto\022\036google.monitoring.dashb" + + "oard.v1\032\037google/api/field_behavior.proto" + + "\"\317\002\n\017DashboardFilter\022\026\n\tlabel_key\030\001 \001(\tB" + + "\003\340A\002\022\031\n\021template_variable\030\003 \001(\t\022\026\n\014strin" + + "g_value\030\004 \001(\tH\000\022O\n\013filter_type\030\005 \001(\0162:.g" + + "oogle.monitoring.dashboard.v1.DashboardF" + + "ilter.FilterType\"\216\001\n\nFilterType\022\033\n\027FILTE" + + "R_TYPE_UNSPECIFIED\020\000\022\022\n\016RESOURCE_LABEL\020\001" + + "\022\020\n\014METRIC_LABEL\020\002\022\027\n\023USER_METADATA_LABE" + + "L\020\003\022\031\n\025SYSTEM_METADATA_LABEL\020\004\022\t\n\005GROUP\020" + + "\005B\017\n\rdefault_valueB\375\001\n\"com.google.monito" + + "ring.dashboard.v1B\024DashboardFilterProtoP" + + "\001ZFcloud.google.com/go/monitoring/dashbo" + + "ard/apiv1/dashboardpb;dashboardpb\252\002$Goog" + + "le.Cloud.Monitoring.Dashboard.V1\312\002$Googl" + + "e\\Cloud\\Monitoring\\Dashboard\\V1\352\002(Google" + + "::Cloud::Monitoring::Dashboard::V1b\006prot" + + "o3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_DashboardFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor, + new java.lang.String[] { + "LabelKey", "TemplateVariable", "StringValue", "FilterType", "DefaultValue", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardName.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardName.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardName.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardName.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java similarity index 84% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java index b60bc8652e1f..e4d8b24b97ed 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java @@ -1,54 +1,82 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboard.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface DashboardOrBuilder extends +public interface DashboardOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Dashboard) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Identifier. The resource name of the dashboard.
              * 
          * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
              * Identifier. The resource name of the dashboard.
              * 
          * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
              * Required. The mutable, human-readable name.
              * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
              * Required. The mutable, human-readable name.
              * 
          * * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
              * `etag` is used for optimistic concurrency control as a way to help
              * prevent simultaneous updates of a policy from overwriting each other.
          @@ -60,10 +88,13 @@ public interface DashboardOrBuilder extends
              * 
          * * string etag = 4; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
              * `etag` is used for optimistic concurrency control as a way to help
              * prevent simultaneous updates of a policy from overwriting each other.
          @@ -75,32 +106,40 @@ public interface DashboardOrBuilder extends
              * 
          * * string etag = 4; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
              * Content is arranged with a basic layout that re-flows a simple list of
              * informational elements like widgets or tiles.
              * 
          * * .google.monitoring.dashboard.v1.GridLayout grid_layout = 5; + * * @return Whether the gridLayout field is set. */ boolean hasGridLayout(); /** + * + * *
              * Content is arranged with a basic layout that re-flows a simple list of
              * informational elements like widgets or tiles.
              * 
          * * .google.monitoring.dashboard.v1.GridLayout grid_layout = 5; + * * @return The gridLayout. */ com.google.monitoring.dashboard.v1.GridLayout getGridLayout(); /** + * + * *
              * Content is arranged with a basic layout that re-flows a simple list of
              * informational elements like widgets or tiles.
          @@ -111,26 +150,34 @@ public interface DashboardOrBuilder extends
             com.google.monitoring.dashboard.v1.GridLayoutOrBuilder getGridLayoutOrBuilder();
           
             /**
          +   *
          +   *
              * 
              * The content is arranged as a grid of tiles, with each content widget
              * occupying one or more grid blocks.
              * 
          * * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + * * @return Whether the mosaicLayout field is set. */ boolean hasMosaicLayout(); /** + * + * *
              * The content is arranged as a grid of tiles, with each content widget
              * occupying one or more grid blocks.
              * 
          * * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + * * @return The mosaicLayout. */ com.google.monitoring.dashboard.v1.MosaicLayout getMosaicLayout(); /** + * + * *
              * The content is arranged as a grid of tiles, with each content widget
              * occupying one or more grid blocks.
          @@ -141,26 +188,34 @@ public interface DashboardOrBuilder extends
             com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder getMosaicLayoutOrBuilder();
           
             /**
          +   *
          +   *
              * 
              * The content is divided into equally spaced rows and the widgets are
              * arranged horizontally.
              * 
          * * .google.monitoring.dashboard.v1.RowLayout row_layout = 8; + * * @return Whether the rowLayout field is set. */ boolean hasRowLayout(); /** + * + * *
              * The content is divided into equally spaced rows and the widgets are
              * arranged horizontally.
              * 
          * * .google.monitoring.dashboard.v1.RowLayout row_layout = 8; + * * @return The rowLayout. */ com.google.monitoring.dashboard.v1.RowLayout getRowLayout(); /** + * + * *
              * The content is divided into equally spaced rows and the widgets are
              * arranged horizontally.
          @@ -171,26 +226,34 @@ public interface DashboardOrBuilder extends
             com.google.monitoring.dashboard.v1.RowLayoutOrBuilder getRowLayoutOrBuilder();
           
             /**
          +   *
          +   *
              * 
              * The content is divided into equally spaced columns and the widgets are
              * arranged vertically.
              * 
          * * .google.monitoring.dashboard.v1.ColumnLayout column_layout = 9; + * * @return Whether the columnLayout field is set. */ boolean hasColumnLayout(); /** + * + * *
              * The content is divided into equally spaced columns and the widgets are
              * arranged vertically.
              * 
          * * .google.monitoring.dashboard.v1.ColumnLayout column_layout = 9; + * * @return The columnLayout. */ com.google.monitoring.dashboard.v1.ColumnLayout getColumnLayout(); /** + * + * *
              * The content is divided into equally spaced columns and the widgets are
              * arranged vertically.
          @@ -201,15 +264,18 @@ public interface DashboardOrBuilder extends
             com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder getColumnLayoutOrBuilder();
           
             /**
          +   *
          +   *
              * 
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          * * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; */ - java.util.List - getDashboardFiltersList(); + java.util.List getDashboardFiltersList(); /** + * + * *
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          @@ -218,6 +284,8 @@ public interface DashboardOrBuilder extends */ com.google.monitoring.dashboard.v1.DashboardFilter getDashboardFilters(int index); /** + * + * *
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          @@ -226,15 +294,19 @@ public interface DashboardOrBuilder extends */ int getDashboardFiltersCount(); /** + * + * *
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          * * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; */ - java.util.List + java.util.List getDashboardFiltersOrBuilderList(); /** + * + * *
              * Filters to reduce the amount of data charted based on the filter criteria.
              * 
          @@ -245,6 +317,8 @@ com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder getDashboardFiltersO int index); /** + * + * *
              * Labels applied to the dashboard
              * 
          @@ -253,30 +327,31 @@ com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder getDashboardFiltersO */ int getLabelsCount(); /** + * + * *
              * Labels applied to the dashboard
              * 
          * * map<string, string> labels = 12; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
              * Labels applied to the dashboard
              * 
          * * map<string, string> labels = 12; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
              * Labels applied to the dashboard
              * 
          @@ -284,19 +359,20 @@ boolean containsLabels( * map<string, string> labels = 12; */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
              * Labels applied to the dashboard
              * 
          * * map<string, string> labels = 12; */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); com.google.monitoring.dashboard.v1.Dashboard.LayoutCase getLayoutCase(); } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java new file mode 100644 index 000000000000..4ca387c6444e --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java @@ -0,0 +1,125 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/dashboard.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class DashboardsProto { + private DashboardsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_Dashboard_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n.google/monitoring/dashboard/v1/dashboa" + + "rd.proto\022\036google.monitoring.dashboard.v1" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\0325google/monitoring/" + + "dashboard/v1/dashboard_filter.proto\032,goo" + + "gle/monitoring/dashboard/v1/layouts.prot" + + "o\"\372\004\n\tDashboard\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\031\n\014di" + + "splay_name\030\002 \001(\tB\003\340A\002\022\014\n\004etag\030\004 \001(\t\022A\n\013g" + + "rid_layout\030\005 \001(\0132*.google.monitoring.das" + + "hboard.v1.GridLayoutH\000\022E\n\rmosaic_layout\030" + + "\006 \001(\0132,.google.monitoring.dashboard.v1.M" + + "osaicLayoutH\000\022?\n\nrow_layout\030\010 \001(\0132).goog" + + "le.monitoring.dashboard.v1.RowLayoutH\000\022E" + + "\n\rcolumn_layout\030\t \001(\0132,.google.monitorin" + + "g.dashboard.v1.ColumnLayoutH\000\022J\n\021dashboa" + + "rd_filters\030\013 \003(\0132/.google.monitoring.das" + + "hboard.v1.DashboardFilter\022E\n\006labels\030\014 \003(" + + "\01325.google.monitoring.dashboard.v1.Dashb" + + "oard.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:S\352AP\n#monitoring" + + ".googleapis.com/Dashboard\022)projects/{pro" + + "ject}/dashboards/{dashboard}B\010\n\006layoutB\370" + + "\001\n\"com.google.monitoring.dashboard.v1B\017D" + + "ashboardsProtoP\001ZFcloud.google.com/go/mo" + + "nitoring/dashboard/apiv1/dashboardpb;das" + + "hboardpb\252\002$Google.Cloud.Monitoring.Dashb" + + "oard.V1\312\002$Google\\Cloud\\Monitoring\\Dashbo" + + "ard\\V1\352\002(Google::Cloud::Monitoring::Dash" + + "board::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.monitoring.dashboard.v1.DashboardFilterProto.getDescriptor(), + com.google.monitoring.dashboard.v1.LayoutsProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_Dashboard_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Etag", + "GridLayout", + "MosaicLayout", + "RowLayout", + "ColumnLayout", + "DashboardFilters", + "Labels", + "Layout", + }); + internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_descriptor = + internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.monitoring.dashboard.v1.DashboardFilterProto.getDescriptor(); + com.google.monitoring.dashboard.v1.LayoutsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java new file mode 100644 index 000000000000..037e175f663c --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java @@ -0,0 +1,203 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/dashboards_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class DashboardsServiceProto { + private DashboardsServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n7google/monitoring/dashboard/v1/dashboa" + + "rds_service.proto\022\036google.monitoring.das" + + "hboard.v1\032\034google/api/annotations.proto\032" + + "\027google/api/client.proto\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\032.google/monitoring/dashboard/v1/das" + + "hboard.proto\032\033google/protobuf/empty.prot" + + "o\"\267\001\n\026CreateDashboardRequest\022C\n\006parent\030\001" + + " \001(\tB3\340A\002\372A-\n+cloudresourcemanager.googl" + + "eapis.com/Project\022A\n\tdashboard\030\002 \001(\0132).g" + + "oogle.monitoring.dashboard.v1.DashboardB" + + "\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\"\210\001\n\025ListDash" + + "boardsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+c" + + "loudresourcemanager.googleapis.com/Proje" + + "ct\022\021\n\tpage_size\030\002 \001(\005\022\027\n\npage_token\030\003 \001(" + + "\tB\003\340A\001\"p\n\026ListDashboardsResponse\022=\n\ndash" + + "boards\030\001 \003(\0132).google.monitoring.dashboa" + + "rd.v1.Dashboard\022\027\n\017next_page_token\030\002 \001(\t" + + "\"P\n\023GetDashboardRequest\0229\n\004name\030\001 \001(\tB+\340" + + "A\002\372A%\n#monitoring.googleapis.com/Dashboa" + + "rd\"S\n\026DeleteDashboardRequest\0229\n\004name\030\001 \001" + + "(\tB+\340A\002\372A%\n#monitoring.googleapis.com/Da" + + "shboard\"r\n\026UpdateDashboardRequest\022A\n\tdas" + + "hboard\030\001 \001(\0132).google.monitoring.dashboa" + + "rd.v1.DashboardB\003\340A\002\022\025\n\rvalidate_only\030\003 " + + "\001(\0102\333\010\n\021DashboardsService\022\276\001\n\017CreateDash" + + "board\0226.google.monitoring.dashboard.v1.C" + + "reateDashboardRequest\032).google.monitorin" + + "g.dashboard.v1.Dashboard\"H\332A\020parent,dash" + + "board\202\323\344\223\002/\"\"/v1/{parent=projects/*}/das" + + "hboards:\tdashboard\022\264\001\n\016ListDashboards\0225." + + "google.monitoring.dashboard.v1.ListDashb" + + "oardsRequest\0326.google.monitoring.dashboa" + + "rd.v1.ListDashboardsResponse\"3\332A\006parent\202" + + "\323\344\223\002$\022\"/v1/{parent=projects/*}/dashboard" + + "s\022\241\001\n\014GetDashboard\0223.google.monitoring.d" + + "ashboard.v1.GetDashboardRequest\032).google" + + ".monitoring.dashboard.v1.Dashboard\"1\332A\004n" + + "ame\202\323\344\223\002$\022\"/v1/{name=projects/*/dashboar" + + "ds/*}\022\224\001\n\017DeleteDashboard\0226.google.monit" + + "oring.dashboard.v1.DeleteDashboardReques" + + "t\032\026.google.protobuf.Empty\"1\332A\004name\202\323\344\223\002$" + + "*\"/v1/{name=projects/*/dashboards/*}\022\265\001\n" + + "\017UpdateDashboard\0226.google.monitoring.das" + + "hboard.v1.UpdateDashboardRequest\032).googl" + + "e.monitoring.dashboard.v1.Dashboard\"?\202\323\344" + + "\223\00292,/v1/{dashboard.name=projects/*/dash" + + "boards/*}:\tdashboard\032\332\001\312A\031monitoring.goo" + + "gleapis.com\322A\272\001https://www.googleapis.co" + + "m/auth/cloud-platform,https://www.google" + + "apis.com/auth/monitoring,https://www.goo" + + "gleapis.com/auth/monitoring.read,https:/" + + "/www.googleapis.com/auth/monitoring.writ" + + "eB\377\001\n\"com.google.monitoring.dashboard.v1" + + "B\026DashboardsServiceProtoP\001ZFcloud.google" + + ".com/go/monitoring/dashboard/apiv1/dashb" + + "oardpb;dashboardpb\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( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.monitoring.dashboard.v1.DashboardsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor, + new java.lang.String[] { + "Parent", "Dashboard", "ValidateOnly", + }); + internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor, + new java.lang.String[] { + "Dashboards", "NextPageToken", + }); + internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor, + new java.lang.String[] { + "Dashboard", "ValidateOnly", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.monitoring.dashboard.v1.DashboardsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequest.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequest.java similarity index 63% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequest.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequest.java index 658bce480698..547bc5b55735 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequest.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto @@ -5,56 +20,66 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * The `DeleteDashboard` request.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.DeleteDashboardRequest} */ -public final class DeleteDashboardRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteDashboardRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.DeleteDashboardRequest) DeleteDashboardRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteDashboardRequest.newBuilder() to construct. private DeleteDashboardRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteDashboardRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteDashboardRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.DeleteDashboardRequest.class, com.google.monitoring.dashboard.v1.DeleteDashboardRequest.Builder.class); + com.google.monitoring.dashboard.v1.DeleteDashboardRequest.class, + com.google.monitoring.dashboard.v1.DeleteDashboardRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
              * Required. The resource name of the Dashboard. The format is:
              *
              *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -63,31 +88,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
              * Required. The resource name of the Dashboard. The format is:
              *
              *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -132,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.DeleteDashboardRequest)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.DeleteDashboardRequest other = (com.google.monitoring.dashboard.v1.DeleteDashboardRequest) obj; + com.google.monitoring.dashboard.v1.DeleteDashboardRequest other = + (com.google.monitoring.dashboard.v1.DeleteDashboardRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,131 +187,136 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeleteDashboardRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest 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.DeleteDashboardRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.DeleteDashboardRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.DeleteDashboardRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * The `DeleteDashboard` request.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.DeleteDashboardRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.DeleteDashboardRequest) com.google.monitoring.dashboard.v1.DeleteDashboardRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.DeleteDashboardRequest.class, com.google.monitoring.dashboard.v1.DeleteDashboardRequest.Builder.class); + com.google.monitoring.dashboard.v1.DeleteDashboardRequest.class, + com.google.monitoring.dashboard.v1.DeleteDashboardRequest.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.DeleteDashboardRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor; } @java.lang.Override @@ -315,8 +347,11 @@ public com.google.monitoring.dashboard.v1.DeleteDashboardRequest build() { @java.lang.Override public com.google.monitoring.dashboard.v1.DeleteDashboardRequest buildPartial() { - com.google.monitoring.dashboard.v1.DeleteDashboardRequest result = new com.google.monitoring.dashboard.v1.DeleteDashboardRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.DeleteDashboardRequest result = + new com.google.monitoring.dashboard.v1.DeleteDashboardRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -332,38 +367,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.DeleteDashboardReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DeleteDashboardRequest) { - return mergeFrom((com.google.monitoring.dashboard.v1.DeleteDashboardRequest)other); + return mergeFrom((com.google.monitoring.dashboard.v1.DeleteDashboardRequest) other); } else { super.mergeFrom(other); return this; @@ -371,7 +407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.DeleteDashboardRequest other) { - if (other == com.google.monitoring.dashboard.v1.DeleteDashboardRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.dashboard.v1.DeleteDashboardRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -403,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -423,24 +462,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
                * Required. The resource name of the Dashboard. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -449,22 +493,25 @@ public java.lang.String getName() { } } /** + * + * *
                * Required. The resource name of the Dashboard. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -472,32 +519,43 @@ public java.lang.String getName() { } } /** + * + * *
                * Required. The resource name of the Dashboard. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                * Required. The resource name of the Dashboard. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -507,28 +565,34 @@ public Builder clearName() { return this; } /** + * + * *
                * Required. The resource name of the Dashboard. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -538,12 +602,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.DeleteDashboardRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.DeleteDashboardRequest) private static final com.google.monitoring.dashboard.v1.DeleteDashboardRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.DeleteDashboardRequest(); } @@ -552,27 +616,27 @@ public static com.google.monitoring.dashboard.v1.DeleteDashboardRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDashboardRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDashboardRequest 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; @@ -587,6 +651,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.DeleteDashboardRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequestOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequestOrBuilder.java new file mode 100644 index 000000000000..c27bdad2f7a8 --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/dashboards_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public interface DeleteDashboardRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.DeleteDashboardRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The resource name of the Dashboard. The format is:
          +   *
          +   *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. The resource name of the Dashboard. The format is:
          +   *
          +   *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanel.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanel.java similarity index 78% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanel.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanel.java index a26bfeacea64..ec7570445668 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanel.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanel.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/error_reporting_panel.proto @@ -5,55 +20,59 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A widget that displays a list of error groups.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ErrorReportingPanel} */ -public final class ErrorReportingPanel extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ErrorReportingPanel extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.ErrorReportingPanel) ErrorReportingPanelOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ErrorReportingPanel.newBuilder() to construct. private ErrorReportingPanel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ErrorReportingPanel() { - projectNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - services_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - versions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + projectNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + versions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ErrorReportingPanel(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.ErrorReportingPanelProto.internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.ErrorReportingPanelProto + .internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.ErrorReportingPanelProto.internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_fieldAccessorTable + return com.google.monitoring.dashboard.v1.ErrorReportingPanelProto + .internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ErrorReportingPanel.class, com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder.class); + com.google.monitoring.dashboard.v1.ErrorReportingPanel.class, + com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder.class); } public static final int PROJECT_NAMES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList projectNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
              * The resource name of the Google Cloud Platform project. Written
              * as `projects/{projectID}` or `projects/{projectNumber}`, where
          @@ -64,13 +83,15 @@ protected java.lang.Object newInstance(
              * 
          * * repeated string project_names = 1; + * * @return A list containing the projectNames. */ - public com.google.protobuf.ProtocolStringList - getProjectNamesList() { + public com.google.protobuf.ProtocolStringList getProjectNamesList() { return projectNames_; } /** + * + * *
              * The resource name of the Google Cloud Platform project. Written
              * as `projects/{projectID}` or `projects/{projectNumber}`, where
          @@ -81,12 +102,15 @@ protected java.lang.Object newInstance(
              * 
          * * repeated string project_names = 1; + * * @return The count of projectNames. */ public int getProjectNamesCount() { return projectNames_.size(); } /** + * + * *
              * The resource name of the Google Cloud Platform project. Written
              * as `projects/{projectID}` or `projects/{projectNumber}`, where
          @@ -97,6 +121,7 @@ public int getProjectNamesCount() {
              * 
          * * repeated string project_names = 1; + * * @param index The index of the element to return. * @return The projectNames at the given index. */ @@ -104,6 +129,8 @@ public java.lang.String getProjectNames(int index) { return projectNames_.get(index); } /** + * + * *
              * The resource name of the Google Cloud Platform project. Written
              * as `projects/{projectID}` or `projects/{projectNumber}`, where
          @@ -114,19 +141,22 @@ public java.lang.String getProjectNames(int index) {
              * 
          * * repeated string project_names = 1; + * * @param index The index of the value to return. * @return The bytes of the projectNames at the given index. */ - public com.google.protobuf.ByteString - getProjectNamesBytes(int index) { + public com.google.protobuf.ByteString getProjectNamesBytes(int index) { return projectNames_.getByteString(index); } public static final int SERVICES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
              * An identifier of the service, such as the name of the
              * executable, job, or Google App Engine service name. This field is expected
          @@ -138,13 +168,15 @@ public java.lang.String getProjectNames(int index) {
              * 
          * * repeated string services = 2; + * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList - getServicesList() { + public com.google.protobuf.ProtocolStringList getServicesList() { return services_; } /** + * + * *
              * An identifier of the service, such as the name of the
              * executable, job, or Google App Engine service name. This field is expected
          @@ -156,12 +188,15 @@ public java.lang.String getProjectNames(int index) {
              * 
          * * repeated string services = 2; + * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** + * + * *
              * An identifier of the service, such as the name of the
              * executable, job, or Google App Engine service name. This field is expected
          @@ -173,6 +208,7 @@ public int getServicesCount() {
              * 
          * * repeated string services = 2; + * * @param index The index of the element to return. * @return The services at the given index. */ @@ -180,6 +216,8 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** + * + * *
              * An identifier of the service, such as the name of the
              * executable, job, or Google App Engine service name. This field is expected
          @@ -191,19 +229,22 @@ public java.lang.String getServices(int index) {
              * 
          * * repeated string services = 2; + * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString - getServicesBytes(int index) { + public com.google.protobuf.ByteString getServicesBytes(int index) { return services_.getByteString(index); } public static final int VERSIONS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList versions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
              * Represents the source code version that the developer provided,
              * which could represent a version label or a Git SHA-1 hash, for example.
          @@ -212,13 +253,15 @@ public java.lang.String getServices(int index) {
              * 
          * * repeated string versions = 3; + * * @return A list containing the versions. */ - public com.google.protobuf.ProtocolStringList - getVersionsList() { + public com.google.protobuf.ProtocolStringList getVersionsList() { return versions_; } /** + * + * *
              * Represents the source code version that the developer provided,
              * which could represent a version label or a Git SHA-1 hash, for example.
          @@ -227,12 +270,15 @@ public java.lang.String getServices(int index) {
              * 
          * * repeated string versions = 3; + * * @return The count of versions. */ public int getVersionsCount() { return versions_.size(); } /** + * + * *
              * Represents the source code version that the developer provided,
              * which could represent a version label or a Git SHA-1 hash, for example.
          @@ -241,6 +287,7 @@ public int getVersionsCount() {
              * 
          * * repeated string versions = 3; + * * @param index The index of the element to return. * @return The versions at the given index. */ @@ -248,6 +295,8 @@ public java.lang.String getVersions(int index) { return versions_.get(index); } /** + * + * *
              * Represents the source code version that the developer provided,
              * which could represent a version label or a Git SHA-1 hash, for example.
          @@ -256,15 +305,16 @@ public java.lang.String getVersions(int index) {
              * 
          * * repeated string versions = 3; + * * @param index The index of the value to return. * @return The bytes of the versions at the given index. */ - public com.google.protobuf.ByteString - getVersionsBytes(int index) { + public com.google.protobuf.ByteString getVersionsBytes(int index) { return versions_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,8 +326,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < projectNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectNames_.getRaw(i)); } @@ -328,19 +377,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.ErrorReportingPanel)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.ErrorReportingPanel other = (com.google.monitoring.dashboard.v1.ErrorReportingPanel) obj; - - if (!getProjectNamesList() - .equals(other.getProjectNamesList())) return false; - if (!getServicesList() - .equals(other.getServicesList())) return false; - if (!getVersionsList() - .equals(other.getVersionsList())) return false; + com.google.monitoring.dashboard.v1.ErrorReportingPanel other = + (com.google.monitoring.dashboard.v1.ErrorReportingPanel) obj; + + if (!getProjectNamesList().equals(other.getProjectNamesList())) return false; + if (!getServicesList().equals(other.getServicesList())) return false; + if (!getVersionsList().equals(other.getVersionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -370,148 +417,150 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.ErrorReportingPanel parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ErrorReportingPanel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ErrorReportingPanel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ErrorReportingPanel 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.ErrorReportingPanel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ErrorReportingPanel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ErrorReportingPanel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.ErrorReportingPanel parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.ErrorReportingPanel parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ErrorReportingPanel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.ErrorReportingPanel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.ErrorReportingPanel parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.ErrorReportingPanel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.ErrorReportingPanel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.ErrorReportingPanel prototype) { + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.ErrorReportingPanel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A widget that displays a list of error groups.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ErrorReportingPanel} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.ErrorReportingPanel) com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.ErrorReportingPanelProto.internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.ErrorReportingPanelProto + .internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.ErrorReportingPanelProto.internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_fieldAccessorTable + return com.google.monitoring.dashboard.v1.ErrorReportingPanelProto + .internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ErrorReportingPanel.class, com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder.class); + com.google.monitoring.dashboard.v1.ErrorReportingPanel.class, + com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.ErrorReportingPanel.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - projectNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - services_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - versions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + projectNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + versions_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.ErrorReportingPanelProto.internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.ErrorReportingPanelProto + .internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor; } @java.lang.Override @@ -530,8 +579,11 @@ public com.google.monitoring.dashboard.v1.ErrorReportingPanel build() { @java.lang.Override public com.google.monitoring.dashboard.v1.ErrorReportingPanel buildPartial() { - com.google.monitoring.dashboard.v1.ErrorReportingPanel result = new com.google.monitoring.dashboard.v1.ErrorReportingPanel(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.ErrorReportingPanel result = + new com.google.monitoring.dashboard.v1.ErrorReportingPanel(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -556,38 +608,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.ErrorReportingPane public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ErrorReportingPanel) { - return mergeFrom((com.google.monitoring.dashboard.v1.ErrorReportingPanel)other); + return mergeFrom((com.google.monitoring.dashboard.v1.ErrorReportingPanel) other); } else { super.mergeFrom(other); return this; @@ -595,7 +648,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.ErrorReportingPanel other) { - if (other == com.google.monitoring.dashboard.v1.ErrorReportingPanel.getDefaultInstance()) return this; + if (other == com.google.monitoring.dashboard.v1.ErrorReportingPanel.getDefaultInstance()) + return this; if (!other.projectNames_.isEmpty()) { if (projectNames_.isEmpty()) { projectNames_ = other.projectNames_; @@ -652,30 +706,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureProjectNamesIsMutable(); - projectNames_.add(s); - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureServicesIsMutable(); - services_.add(s); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureVersionsIsMutable(); - versions_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProjectNamesIsMutable(); + projectNames_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureServicesIsMutable(); + services_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureVersionsIsMutable(); + versions_.add(s); + break; + } // case 26 + 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) { @@ -685,10 +743,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList projectNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureProjectNamesIsMutable() { if (!projectNames_.isModifiable()) { projectNames_ = new com.google.protobuf.LazyStringArrayList(projectNames_); @@ -696,6 +756,8 @@ private void ensureProjectNamesIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
                * The resource name of the Google Cloud Platform project. Written
                * as `projects/{projectID}` or `projects/{projectNumber}`, where
          @@ -706,14 +768,16 @@ private void ensureProjectNamesIsMutable() {
                * 
          * * repeated string project_names = 1; + * * @return A list containing the projectNames. */ - public com.google.protobuf.ProtocolStringList - getProjectNamesList() { + public com.google.protobuf.ProtocolStringList getProjectNamesList() { projectNames_.makeImmutable(); return projectNames_; } /** + * + * *
                * The resource name of the Google Cloud Platform project. Written
                * as `projects/{projectID}` or `projects/{projectNumber}`, where
          @@ -724,12 +788,15 @@ private void ensureProjectNamesIsMutable() {
                * 
          * * repeated string project_names = 1; + * * @return The count of projectNames. */ public int getProjectNamesCount() { return projectNames_.size(); } /** + * + * *
                * The resource name of the Google Cloud Platform project. Written
                * as `projects/{projectID}` or `projects/{projectNumber}`, where
          @@ -740,6 +807,7 @@ public int getProjectNamesCount() {
                * 
          * * repeated string project_names = 1; + * * @param index The index of the element to return. * @return The projectNames at the given index. */ @@ -747,6 +815,8 @@ public java.lang.String getProjectNames(int index) { return projectNames_.get(index); } /** + * + * *
                * The resource name of the Google Cloud Platform project. Written
                * as `projects/{projectID}` or `projects/{projectNumber}`, where
          @@ -757,14 +827,16 @@ public java.lang.String getProjectNames(int index) {
                * 
          * * repeated string project_names = 1; + * * @param index The index of the value to return. * @return The bytes of the projectNames at the given index. */ - public com.google.protobuf.ByteString - getProjectNamesBytes(int index) { + public com.google.protobuf.ByteString getProjectNamesBytes(int index) { return projectNames_.getByteString(index); } /** + * + * *
                * The resource name of the Google Cloud Platform project. Written
                * as `projects/{projectID}` or `projects/{projectNumber}`, where
          @@ -775,13 +847,15 @@ public java.lang.String getProjectNames(int index) {
                * 
          * * repeated string project_names = 1; + * * @param index The index to set the value at. * @param value The projectNames to set. * @return This builder for chaining. */ - public Builder setProjectNames( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjectNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureProjectNamesIsMutable(); projectNames_.set(index, value); bitField0_ |= 0x00000001; @@ -789,6 +863,8 @@ public Builder setProjectNames( return this; } /** + * + * *
                * The resource name of the Google Cloud Platform project. Written
                * as `projects/{projectID}` or `projects/{projectNumber}`, where
          @@ -799,12 +875,14 @@ public Builder setProjectNames(
                * 
          * * repeated string project_names = 1; + * * @param value The projectNames to add. * @return This builder for chaining. */ - public Builder addProjectNames( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addProjectNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureProjectNamesIsMutable(); projectNames_.add(value); bitField0_ |= 0x00000001; @@ -812,6 +890,8 @@ public Builder addProjectNames( return this; } /** + * + * *
                * The resource name of the Google Cloud Platform project. Written
                * as `projects/{projectID}` or `projects/{projectNumber}`, where
          @@ -822,19 +902,20 @@ public Builder addProjectNames(
                * 
          * * repeated string project_names = 1; + * * @param values The projectNames to add. * @return This builder for chaining. */ - public Builder addAllProjectNames( - java.lang.Iterable values) { + public Builder addAllProjectNames(java.lang.Iterable values) { ensureProjectNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, projectNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectNames_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                * The resource name of the Google Cloud Platform project. Written
                * as `projects/{projectID}` or `projects/{projectNumber}`, where
          @@ -845,16 +926,19 @@ public Builder addAllProjectNames(
                * 
          * * repeated string project_names = 1; + * * @return This builder for chaining. */ public Builder clearProjectNames() { - projectNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + projectNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
                * The resource name of the Google Cloud Platform project. Written
                * as `projects/{projectID}` or `projects/{projectNumber}`, where
          @@ -865,12 +949,14 @@ public Builder clearProjectNames() {
                * 
          * * repeated string project_names = 1; + * * @param value The bytes of the projectNames to add. * @return This builder for chaining. */ - public Builder addProjectNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addProjectNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureProjectNamesIsMutable(); projectNames_.add(value); @@ -881,6 +967,7 @@ public Builder addProjectNamesBytes( private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureServicesIsMutable() { if (!services_.isModifiable()) { services_ = new com.google.protobuf.LazyStringArrayList(services_); @@ -888,6 +975,8 @@ private void ensureServicesIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
                * An identifier of the service, such as the name of the
                * executable, job, or Google App Engine service name. This field is expected
          @@ -899,14 +988,16 @@ private void ensureServicesIsMutable() {
                * 
          * * repeated string services = 2; + * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList - getServicesList() { + public com.google.protobuf.ProtocolStringList getServicesList() { services_.makeImmutable(); return services_; } /** + * + * *
                * An identifier of the service, such as the name of the
                * executable, job, or Google App Engine service name. This field is expected
          @@ -918,12 +1009,15 @@ private void ensureServicesIsMutable() {
                * 
          * * repeated string services = 2; + * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** + * + * *
                * An identifier of the service, such as the name of the
                * executable, job, or Google App Engine service name. This field is expected
          @@ -935,6 +1029,7 @@ public int getServicesCount() {
                * 
          * * repeated string services = 2; + * * @param index The index of the element to return. * @return The services at the given index. */ @@ -942,6 +1037,8 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** + * + * *
                * An identifier of the service, such as the name of the
                * executable, job, or Google App Engine service name. This field is expected
          @@ -953,14 +1050,16 @@ public java.lang.String getServices(int index) {
                * 
          * * repeated string services = 2; + * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString - getServicesBytes(int index) { + public com.google.protobuf.ByteString getServicesBytes(int index) { return services_.getByteString(index); } /** + * + * *
                * An identifier of the service, such as the name of the
                * executable, job, or Google App Engine service name. This field is expected
          @@ -972,13 +1071,15 @@ public java.lang.String getServices(int index) {
                * 
          * * repeated string services = 2; + * * @param index The index to set the value at. * @param value The services to set. * @return This builder for chaining. */ - public Builder setServices( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServices(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServicesIsMutable(); services_.set(index, value); bitField0_ |= 0x00000002; @@ -986,6 +1087,8 @@ public Builder setServices( return this; } /** + * + * *
                * An identifier of the service, such as the name of the
                * executable, job, or Google App Engine service name. This field is expected
          @@ -997,12 +1100,14 @@ public Builder setServices(
                * 
          * * repeated string services = 2; + * * @param value The services to add. * @return This builder for chaining. */ - public Builder addServices( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServices(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServicesIsMutable(); services_.add(value); bitField0_ |= 0x00000002; @@ -1010,6 +1115,8 @@ public Builder addServices( return this; } /** + * + * *
                * An identifier of the service, such as the name of the
                * executable, job, or Google App Engine service name. This field is expected
          @@ -1021,19 +1128,20 @@ public Builder addServices(
                * 
          * * repeated string services = 2; + * * @param values The services to add. * @return This builder for chaining. */ - public Builder addAllServices( - java.lang.Iterable values) { + public Builder addAllServices(java.lang.Iterable values) { ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, services_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, services_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
                * An identifier of the service, such as the name of the
                * executable, job, or Google App Engine service name. This field is expected
          @@ -1045,16 +1153,19 @@ public Builder addAllServices(
                * 
          * * repeated string services = 2; + * * @return This builder for chaining. */ public Builder clearServices() { - services_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
                * An identifier of the service, such as the name of the
                * executable, job, or Google App Engine service name. This field is expected
          @@ -1066,12 +1177,14 @@ public Builder clearServices() {
                * 
          * * repeated string services = 2; + * * @param value The bytes of the services to add. * @return This builder for chaining. */ - public Builder addServicesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServicesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureServicesIsMutable(); services_.add(value); @@ -1082,6 +1195,7 @@ public Builder addServicesBytes( private com.google.protobuf.LazyStringArrayList versions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureVersionsIsMutable() { if (!versions_.isModifiable()) { versions_ = new com.google.protobuf.LazyStringArrayList(versions_); @@ -1089,6 +1203,8 @@ private void ensureVersionsIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
                * Represents the source code version that the developer provided,
                * which could represent a version label or a Git SHA-1 hash, for example.
          @@ -1097,14 +1213,16 @@ private void ensureVersionsIsMutable() {
                * 
          * * repeated string versions = 3; + * * @return A list containing the versions. */ - public com.google.protobuf.ProtocolStringList - getVersionsList() { + public com.google.protobuf.ProtocolStringList getVersionsList() { versions_.makeImmutable(); return versions_; } /** + * + * *
                * Represents the source code version that the developer provided,
                * which could represent a version label or a Git SHA-1 hash, for example.
          @@ -1113,12 +1231,15 @@ private void ensureVersionsIsMutable() {
                * 
          * * repeated string versions = 3; + * * @return The count of versions. */ public int getVersionsCount() { return versions_.size(); } /** + * + * *
                * Represents the source code version that the developer provided,
                * which could represent a version label or a Git SHA-1 hash, for example.
          @@ -1127,6 +1248,7 @@ public int getVersionsCount() {
                * 
          * * repeated string versions = 3; + * * @param index The index of the element to return. * @return The versions at the given index. */ @@ -1134,6 +1256,8 @@ public java.lang.String getVersions(int index) { return versions_.get(index); } /** + * + * *
                * Represents the source code version that the developer provided,
                * which could represent a version label or a Git SHA-1 hash, for example.
          @@ -1142,14 +1266,16 @@ public java.lang.String getVersions(int index) {
                * 
          * * repeated string versions = 3; + * * @param index The index of the value to return. * @return The bytes of the versions at the given index. */ - public com.google.protobuf.ByteString - getVersionsBytes(int index) { + public com.google.protobuf.ByteString getVersionsBytes(int index) { return versions_.getByteString(index); } /** + * + * *
                * Represents the source code version that the developer provided,
                * which could represent a version label or a Git SHA-1 hash, for example.
          @@ -1158,13 +1284,15 @@ public java.lang.String getVersions(int index) {
                * 
          * * repeated string versions = 3; + * * @param index The index to set the value at. * @param value The versions to set. * @return This builder for chaining. */ - public Builder setVersions( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureVersionsIsMutable(); versions_.set(index, value); bitField0_ |= 0x00000004; @@ -1172,6 +1300,8 @@ public Builder setVersions( return this; } /** + * + * *
                * Represents the source code version that the developer provided,
                * which could represent a version label or a Git SHA-1 hash, for example.
          @@ -1180,12 +1310,14 @@ public Builder setVersions(
                * 
          * * repeated string versions = 3; + * * @param value The versions to add. * @return This builder for chaining. */ - public Builder addVersions( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureVersionsIsMutable(); versions_.add(value); bitField0_ |= 0x00000004; @@ -1193,6 +1325,8 @@ public Builder addVersions( return this; } /** + * + * *
                * Represents the source code version that the developer provided,
                * which could represent a version label or a Git SHA-1 hash, for example.
          @@ -1201,19 +1335,20 @@ public Builder addVersions(
                * 
          * * repeated string versions = 3; + * * @param values The versions to add. * @return This builder for chaining. */ - public Builder addAllVersions( - java.lang.Iterable values) { + public Builder addAllVersions(java.lang.Iterable values) { ensureVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, versions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versions_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
                * Represents the source code version that the developer provided,
                * which could represent a version label or a Git SHA-1 hash, for example.
          @@ -1222,16 +1357,19 @@ public Builder addAllVersions(
                * 
          * * repeated string versions = 3; + * * @return This builder for chaining. */ public Builder clearVersions() { - versions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + versions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
                * Represents the source code version that the developer provided,
                * which could represent a version label or a Git SHA-1 hash, for example.
          @@ -1240,12 +1378,14 @@ public Builder clearVersions() {
                * 
          * * repeated string versions = 3; + * * @param value The bytes of the versions to add. * @return This builder for chaining. */ - public Builder addVersionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureVersionsIsMutable(); versions_.add(value); @@ -1253,9 +1393,9 @@ public Builder addVersionsBytes( onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1265,12 +1405,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.ErrorReportingPanel) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.ErrorReportingPanel) private static final com.google.monitoring.dashboard.v1.ErrorReportingPanel DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.ErrorReportingPanel(); } @@ -1279,27 +1419,27 @@ public static com.google.monitoring.dashboard.v1.ErrorReportingPanel getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorReportingPanel 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorReportingPanel 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; @@ -1314,6 +1454,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.ErrorReportingPanel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelOrBuilder.java similarity index 84% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelOrBuilder.java index f7774555bd45..f8fb7fb3a0ba 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/error_reporting_panel.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface ErrorReportingPanelOrBuilder extends +public interface ErrorReportingPanelOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.ErrorReportingPanel) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * The resource name of the Google Cloud Platform project. Written
              * as `projects/{projectID}` or `projects/{projectNumber}`, where
          @@ -19,11 +37,13 @@ public interface ErrorReportingPanelOrBuilder extends
              * 
          * * repeated string project_names = 1; + * * @return A list containing the projectNames. */ - java.util.List - getProjectNamesList(); + java.util.List getProjectNamesList(); /** + * + * *
              * The resource name of the Google Cloud Platform project. Written
              * as `projects/{projectID}` or `projects/{projectNumber}`, where
          @@ -34,10 +54,13 @@ public interface ErrorReportingPanelOrBuilder extends
              * 
          * * repeated string project_names = 1; + * * @return The count of projectNames. */ int getProjectNamesCount(); /** + * + * *
              * The resource name of the Google Cloud Platform project. Written
              * as `projects/{projectID}` or `projects/{projectNumber}`, where
          @@ -48,11 +71,14 @@ public interface ErrorReportingPanelOrBuilder extends
              * 
          * * repeated string project_names = 1; + * * @param index The index of the element to return. * @return The projectNames at the given index. */ java.lang.String getProjectNames(int index); /** + * + * *
              * The resource name of the Google Cloud Platform project. Written
              * as `projects/{projectID}` or `projects/{projectNumber}`, where
          @@ -63,13 +89,15 @@ public interface ErrorReportingPanelOrBuilder extends
              * 
          * * repeated string project_names = 1; + * * @param index The index of the value to return. * @return The bytes of the projectNames at the given index. */ - com.google.protobuf.ByteString - getProjectNamesBytes(int index); + com.google.protobuf.ByteString getProjectNamesBytes(int index); /** + * + * *
              * An identifier of the service, such as the name of the
              * executable, job, or Google App Engine service name. This field is expected
          @@ -81,11 +109,13 @@ public interface ErrorReportingPanelOrBuilder extends
              * 
          * * repeated string services = 2; + * * @return A list containing the services. */ - java.util.List - getServicesList(); + java.util.List getServicesList(); /** + * + * *
              * An identifier of the service, such as the name of the
              * executable, job, or Google App Engine service name. This field is expected
          @@ -97,10 +127,13 @@ public interface ErrorReportingPanelOrBuilder extends
              * 
          * * repeated string services = 2; + * * @return The count of services. */ int getServicesCount(); /** + * + * *
              * An identifier of the service, such as the name of the
              * executable, job, or Google App Engine service name. This field is expected
          @@ -112,11 +145,14 @@ public interface ErrorReportingPanelOrBuilder extends
              * 
          * * repeated string services = 2; + * * @param index The index of the element to return. * @return The services at the given index. */ java.lang.String getServices(int index); /** + * + * *
              * An identifier of the service, such as the name of the
              * executable, job, or Google App Engine service name. This field is expected
          @@ -128,13 +164,15 @@ public interface ErrorReportingPanelOrBuilder extends
              * 
          * * repeated string services = 2; + * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - com.google.protobuf.ByteString - getServicesBytes(int index); + com.google.protobuf.ByteString getServicesBytes(int index); /** + * + * *
              * Represents the source code version that the developer provided,
              * which could represent a version label or a Git SHA-1 hash, for example.
          @@ -143,11 +181,13 @@ public interface ErrorReportingPanelOrBuilder extends
              * 
          * * repeated string versions = 3; + * * @return A list containing the versions. */ - java.util.List - getVersionsList(); + java.util.List getVersionsList(); /** + * + * *
              * Represents the source code version that the developer provided,
              * which could represent a version label or a Git SHA-1 hash, for example.
          @@ -156,10 +196,13 @@ public interface ErrorReportingPanelOrBuilder extends
              * 
          * * repeated string versions = 3; + * * @return The count of versions. */ int getVersionsCount(); /** + * + * *
              * Represents the source code version that the developer provided,
              * which could represent a version label or a Git SHA-1 hash, for example.
          @@ -168,11 +211,14 @@ public interface ErrorReportingPanelOrBuilder extends
              * 
          * * repeated string versions = 3; + * * @param index The index of the element to return. * @return The versions at the given index. */ java.lang.String getVersions(int index); /** + * + * *
              * Represents the source code version that the developer provided,
              * which could represent a version label or a Git SHA-1 hash, for example.
          @@ -181,9 +227,9 @@ public interface ErrorReportingPanelOrBuilder extends
              * 
          * * repeated string versions = 3; + * * @param index The index of the value to return. * @return The bytes of the versions at the given index. */ - com.google.protobuf.ByteString - getVersionsBytes(int index); + com.google.protobuf.ByteString getVersionsBytes(int index); } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelProto.java new file mode 100644 index 000000000000..d2e7d01f2bc4 --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelProto.java @@ -0,0 +1,69 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/error_reporting_panel.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class ErrorReportingPanelProto { + private ErrorReportingPanelProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n:google/monitoring/dashboard/v1/error_r" + + "eporting_panel.proto\022\036google.monitoring." + + "dashboard.v1\"P\n\023ErrorReportingPanel\022\025\n\rp" + + "roject_names\030\001 \003(\t\022\020\n\010services\030\002 \003(\t\022\020\n\010" + + "versions\030\003 \003(\tB\326\001\n\"com.google.monitoring" + + ".dashboard.v1B\030ErrorReportingPanelProtoP" + + "\001ZFcloud.google.com/go/monitoring/dashbo" + + "ard/apiv1/dashboardpb;dashboardpb\252\002$Goog" + + "le.Cloud.Monitoring.Dashboard.V1\312\002$Googl" + + "e\\Cloud\\Monitoring\\Dashboard\\V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor, + new java.lang.String[] { + "ProjectNames", "Services", "Versions", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequest.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequest.java similarity index 65% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequest.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequest.java index 39559cedbef4..1f421cf716b7 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequest.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto @@ -5,49 +20,56 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * The `GetDashboard` request.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.GetDashboardRequest} */ -public final class GetDashboardRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetDashboardRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.GetDashboardRequest) GetDashboardRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetDashboardRequest.newBuilder() to construct. private GetDashboardRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetDashboardRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetDashboardRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.GetDashboardRequest.class, com.google.monitoring.dashboard.v1.GetDashboardRequest.Builder.class); + com.google.monitoring.dashboard.v1.GetDashboardRequest.class, + com.google.monitoring.dashboard.v1.GetDashboardRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
              * Required. The resource name of the Dashboard. The format is one of:
              *
          @@ -56,7 +78,10 @@ protected java.lang.Object newInstance(
              *       (for custom dashboards).
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,14 +90,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
              * Required. The resource name of the Dashboard. The format is one of:
              *
          @@ -81,17 +107,18 @@ public java.lang.String getName() {
              *       (for custom dashboards).
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -100,6 +127,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -111,8 +139,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -136,15 +163,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.GetDashboardRequest)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.GetDashboardRequest other = (com.google.monitoring.dashboard.v1.GetDashboardRequest) obj; + com.google.monitoring.dashboard.v1.GetDashboardRequest other = + (com.google.monitoring.dashboard.v1.GetDashboardRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -164,131 +191,136 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetDashboardRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.GetDashboardRequest 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.GetDashboardRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.GetDashboardRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.GetDashboardRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.GetDashboardRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * The `GetDashboard` request.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.GetDashboardRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.GetDashboardRequest) com.google.monitoring.dashboard.v1.GetDashboardRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.GetDashboardRequest.class, com.google.monitoring.dashboard.v1.GetDashboardRequest.Builder.class); + com.google.monitoring.dashboard.v1.GetDashboardRequest.class, + com.google.monitoring.dashboard.v1.GetDashboardRequest.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.GetDashboardRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -298,9 +330,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor; } @java.lang.Override @@ -319,8 +351,11 @@ public com.google.monitoring.dashboard.v1.GetDashboardRequest build() { @java.lang.Override public com.google.monitoring.dashboard.v1.GetDashboardRequest buildPartial() { - com.google.monitoring.dashboard.v1.GetDashboardRequest result = new com.google.monitoring.dashboard.v1.GetDashboardRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.GetDashboardRequest result = + new com.google.monitoring.dashboard.v1.GetDashboardRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -336,38 +371,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.GetDashboardReques public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GetDashboardRequest) { - return mergeFrom((com.google.monitoring.dashboard.v1.GetDashboardRequest)other); + return mergeFrom((com.google.monitoring.dashboard.v1.GetDashboardRequest) other); } else { super.mergeFrom(other); return this; @@ -375,7 +411,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.GetDashboardRequest other) { - if (other == com.google.monitoring.dashboard.v1.GetDashboardRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.dashboard.v1.GetDashboardRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -407,17 +444,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -427,10 +466,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
                * Required. The resource name of the Dashboard. The format is one of:
                *
          @@ -439,14 +481,16 @@ public Builder mergeFrom(
                *       (for custom dashboards).
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -455,6 +499,8 @@ public java.lang.String getName() { } } /** + * + * *
                * Required. The resource name of the Dashboard. The format is one of:
                *
          @@ -463,16 +509,17 @@ public java.lang.String getName() {
                *       (for custom dashboards).
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -480,6 +527,8 @@ public java.lang.String getName() { } } /** + * + * *
                * Required. The resource name of the Dashboard. The format is one of:
                *
          @@ -488,19 +537,25 @@ public java.lang.String getName() {
                *       (for custom dashboards).
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                * Required. The resource name of the Dashboard. The format is one of:
                *
          @@ -509,7 +564,10 @@ public Builder setName(
                *       (for custom dashboards).
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -519,6 +577,8 @@ public Builder clearName() { return this; } /** + * + * *
                * Required. The resource name of the Dashboard. The format is one of:
                *
          @@ -527,22 +587,26 @@ public Builder clearName() {
                *       (for custom dashboards).
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +616,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.GetDashboardRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.GetDashboardRequest) private static final com.google.monitoring.dashboard.v1.GetDashboardRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.GetDashboardRequest(); } @@ -566,27 +630,27 @@ public static com.google.monitoring.dashboard.v1.GetDashboardRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDashboardRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDashboardRequest 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; @@ -601,6 +665,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.GetDashboardRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequestOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequestOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequestOrBuilder.java index 46bea49588e9..7bc4eafd15a3 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequestOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GetDashboardRequestOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface GetDashboardRequestOrBuilder extends +public interface GetDashboardRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.GetDashboardRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. The resource name of the Dashboard. The format is one of:
              *
          @@ -17,11 +35,16 @@ public interface GetDashboardRequestOrBuilder extends
              *       (for custom dashboards).
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
              * Required. The resource name of the Dashboard. The format is one of:
              *
          @@ -30,9 +53,11 @@ public interface GetDashboardRequestOrBuilder extends
              *       (for custom dashboards).
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayout.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayout.java similarity index 72% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayout.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayout.java index 09993b73f2bf..42320e267e31 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayout.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayout.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/layouts.proto @@ -5,6 +20,8 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A basic layout divides the available space into vertical columns of equal
            * width and arranges a list of widgets using a row-first strategy.
          @@ -12,48 +29,53 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.GridLayout}
            */
          -public final class GridLayout extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class GridLayout extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.GridLayout)
               GridLayoutOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use GridLayout.newBuilder() to construct.
             private GridLayout(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private GridLayout() {
               widgets_ = java.util.Collections.emptyList();
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new GridLayout();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.LayoutsProto
          +        .internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_GridLayout_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.LayoutsProto
          +        .internal_static_google_monitoring_dashboard_v1_GridLayout_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.GridLayout.class, com.google.monitoring.dashboard.v1.GridLayout.Builder.class);
          +            com.google.monitoring.dashboard.v1.GridLayout.class,
          +            com.google.monitoring.dashboard.v1.GridLayout.Builder.class);
             }
           
             public static final int COLUMNS_FIELD_NUMBER = 1;
             private long columns_ = 0L;
             /**
          +   *
          +   *
              * 
              * The number of columns into which the view's width is divided. If omitted
              * or set to zero, a system default will be used while rendering.
              * 
          * * int64 columns = 1; + * * @return The columns. */ @java.lang.Override @@ -62,9 +84,12 @@ public long getColumns() { } public static final int WIDGETS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List widgets_; /** + * + * *
              * The informational elements that are arranged into the columns row-first.
              * 
          @@ -76,6 +101,8 @@ public java.util.List getWidgetsList( return widgets_; } /** + * + * *
              * The informational elements that are arranged into the columns row-first.
              * 
          @@ -83,11 +110,13 @@ public java.util.List getWidgetsList( * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ @java.lang.Override - public java.util.List + public java.util.List getWidgetsOrBuilderList() { return widgets_; } /** + * + * *
              * The informational elements that are arranged into the columns row-first.
              * 
          @@ -99,6 +128,8 @@ public int getWidgetsCount() { return widgets_.size(); } /** + * + * *
              * The informational elements that are arranged into the columns row-first.
              * 
          @@ -110,6 +141,8 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { return widgets_.get(index); } /** + * + * *
              * The informational elements that are arranged into the columns row-first.
              * 
          @@ -117,12 +150,12 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( - int index) { + public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index) { return widgets_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,8 +167,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (columns_ != 0L) { output.writeInt64(1, columns_); } @@ -152,12 +184,10 @@ public int getSerializedSize() { size = 0; if (columns_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, columns_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, columns_); } for (int i = 0; i < widgets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, widgets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, widgets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -167,17 +197,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.GridLayout)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.GridLayout other = (com.google.monitoring.dashboard.v1.GridLayout) obj; + com.google.monitoring.dashboard.v1.GridLayout other = + (com.google.monitoring.dashboard.v1.GridLayout) obj; - if (getColumns() - != other.getColumns()) return false; - if (!getWidgetsList() - .equals(other.getWidgetsList())) return false; + if (getColumns() != other.getColumns()) return false; + if (!getWidgetsList().equals(other.getWidgetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -190,8 +219,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getColumns()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getColumns()); if (getWidgetsCount() > 0) { hash = (37 * hash) + WIDGETS_FIELD_NUMBER; hash = (53 * hash) + getWidgetsList().hashCode(); @@ -201,99 +229,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.GridLayout parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.GridLayout parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.GridLayout parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GridLayout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.GridLayout 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.GridLayout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.GridLayout parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.GridLayout parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.GridLayout parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.GridLayout parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.GridLayout parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.GridLayout parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.GridLayout parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.GridLayout parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.GridLayout prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A basic layout divides the available space into vertical columns of equal
              * width and arranges a list of widgets using a row-first strategy.
          @@ -301,33 +334,32 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.GridLayout}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.GridLayout)
                 com.google.monitoring.dashboard.v1.GridLayoutOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto
          +          .internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_GridLayout_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.LayoutsProto
          +          .internal_static_google_monitoring_dashboard_v1_GridLayout_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.GridLayout.class, com.google.monitoring.dashboard.v1.GridLayout.Builder.class);
          +              com.google.monitoring.dashboard.v1.GridLayout.class,
          +              com.google.monitoring.dashboard.v1.GridLayout.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.GridLayout.newBuilder()
          -    private Builder() {
          -
          -    }
          +    private Builder() {}
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
          -
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -344,9 +376,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto
          +          .internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor;
               }
           
               @java.lang.Override
          @@ -365,9 +397,12 @@ public com.google.monitoring.dashboard.v1.GridLayout build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.GridLayout buildPartial() {
          -      com.google.monitoring.dashboard.v1.GridLayout result = new com.google.monitoring.dashboard.v1.GridLayout(this);
          +      com.google.monitoring.dashboard.v1.GridLayout result =
          +          new com.google.monitoring.dashboard.v1.GridLayout(this);
                 buildPartialRepeatedFields(result);
          -      if (bitField0_ != 0) { buildPartial0(result); }
          +      if (bitField0_ != 0) {
          +        buildPartial0(result);
          +      }
                 onBuilt();
                 return result;
               }
          @@ -395,38 +430,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.GridLayout result)
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.GridLayout) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.GridLayout)other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.GridLayout) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -456,9 +492,10 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.GridLayout other) {
                       widgetsBuilder_ = null;
                       widgets_ = other.widgets_;
                       bitField0_ = (bitField0_ & ~0x00000002);
          -            widgetsBuilder_ = 
          -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          -                 getWidgetsFieldBuilder() : null;
          +            widgetsBuilder_ =
          +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          +                    ? getWidgetsFieldBuilder()
          +                    : null;
                     } else {
                       widgetsBuilder_.addAllMessages(other.widgets_);
                     }
          @@ -490,30 +527,32 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 8: {
          -              columns_ = input.readInt64();
          -              bitField0_ |= 0x00000001;
          -              break;
          -            } // case 8
          -            case 18: {
          -              com.google.monitoring.dashboard.v1.Widget m =
          -                  input.readMessage(
          -                      com.google.monitoring.dashboard.v1.Widget.parser(),
          -                      extensionRegistry);
          -              if (widgetsBuilder_ == null) {
          -                ensureWidgetsIsMutable();
          -                widgets_.add(m);
          -              } else {
          -                widgetsBuilder_.addMessage(m);
          -              }
          -              break;
          -            } // case 18
          -            default: {
          -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                done = true; // was an endgroup tag
          -              }
          -              break;
          -            } // default:
          +            case 8:
          +              {
          +                columns_ = input.readInt64();
          +                bitField0_ |= 0x00000001;
          +                break;
          +              } // case 8
          +            case 18:
          +              {
          +                com.google.monitoring.dashboard.v1.Widget m =
          +                    input.readMessage(
          +                        com.google.monitoring.dashboard.v1.Widget.parser(), extensionRegistry);
          +                if (widgetsBuilder_ == null) {
          +                  ensureWidgetsIsMutable();
          +                  widgets_.add(m);
          +                } else {
          +                  widgetsBuilder_.addMessage(m);
          +                }
          +                break;
          +              } // case 18
          +            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) {
          @@ -523,16 +562,20 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          +
               private int bitField0_;
           
          -    private long columns_ ;
          +    private long columns_;
               /**
          +     *
          +     *
                * 
                * The number of columns into which the view's width is divided. If omitted
                * or set to zero, a system default will be used while rendering.
                * 
          * * int64 columns = 1; + * * @return The columns. */ @java.lang.Override @@ -540,12 +583,15 @@ public long getColumns() { return columns_; } /** + * + * *
                * The number of columns into which the view's width is divided. If omitted
                * or set to zero, a system default will be used while rendering.
                * 
          * * int64 columns = 1; + * * @param value The columns to set. * @return This builder for chaining. */ @@ -557,12 +603,15 @@ public Builder setColumns(long value) { return this; } /** + * + * *
                * The number of columns into which the view's width is divided. If omitted
                * or set to zero, a system default will be used while rendering.
                * 
          * * int64 columns = 1; + * * @return This builder for chaining. */ public Builder clearColumns() { @@ -573,18 +622,24 @@ public Builder clearColumns() { } private java.util.List widgets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWidgetsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { widgets_ = new java.util.ArrayList(widgets_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder> widgetsBuilder_; + com.google.monitoring.dashboard.v1.Widget, + com.google.monitoring.dashboard.v1.Widget.Builder, + com.google.monitoring.dashboard.v1.WidgetOrBuilder> + widgetsBuilder_; /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -599,6 +654,8 @@ public java.util.List getWidgetsList( } } /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -613,6 +670,8 @@ public int getWidgetsCount() { } } /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -627,14 +686,15 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { } } /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder setWidgets( - int index, com.google.monitoring.dashboard.v1.Widget value) { + public Builder setWidgets(int index, com.google.monitoring.dashboard.v1.Widget value) { if (widgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -648,6 +708,8 @@ public Builder setWidgets( return this; } /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -666,6 +728,8 @@ public Builder setWidgets( return this; } /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -686,14 +750,15 @@ public Builder addWidgets(com.google.monitoring.dashboard.v1.Widget value) { return this; } /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder addWidgets( - int index, com.google.monitoring.dashboard.v1.Widget value) { + public Builder addWidgets(int index, com.google.monitoring.dashboard.v1.Widget value) { if (widgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -707,14 +772,15 @@ public Builder addWidgets( return this; } /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder addWidgets( - com.google.monitoring.dashboard.v1.Widget.Builder builderForValue) { + public Builder addWidgets(com.google.monitoring.dashboard.v1.Widget.Builder builderForValue) { if (widgetsBuilder_ == null) { ensureWidgetsIsMutable(); widgets_.add(builderForValue.build()); @@ -725,6 +791,8 @@ public Builder addWidgets( return this; } /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -743,6 +811,8 @@ public Builder addWidgets( return this; } /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -753,8 +823,7 @@ public Builder addAllWidgets( java.lang.Iterable values) { if (widgetsBuilder_ == null) { ensureWidgetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, widgets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, widgets_); onChanged(); } else { widgetsBuilder_.addAllMessages(values); @@ -762,6 +831,8 @@ public Builder addAllWidgets( return this; } /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -779,6 +850,8 @@ public Builder clearWidgets() { return this; } /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -796,39 +869,44 @@ public Builder removeWidgets(int index) { return this; } /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.Widget.Builder getWidgetsBuilder( - int index) { + public com.google.monitoring.dashboard.v1.Widget.Builder getWidgetsBuilder(int index) { return getWidgetsFieldBuilder().getBuilder(index); } /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( - int index) { + public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index) { if (widgetsBuilder_ == null) { - return widgets_.get(index); } else { + return widgets_.get(index); + } else { return widgetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public java.util.List - getWidgetsOrBuilderList() { + public java.util.List + getWidgetsOrBuilderList() { if (widgetsBuilder_ != null) { return widgetsBuilder_.getMessageOrBuilderList(); } else { @@ -836,6 +914,8 @@ public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( } } /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          @@ -843,49 +923,55 @@ public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder() { - return getWidgetsFieldBuilder().addBuilder( - com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); + return getWidgetsFieldBuilder() + .addBuilder(com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); } /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder( - int index) { - return getWidgetsFieldBuilder().addBuilder( - index, com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); + public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder(int index) { + return getWidgetsFieldBuilder() + .addBuilder(index, com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); } /** + * + * *
                * The informational elements that are arranged into the columns row-first.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public java.util.List - getWidgetsBuilderList() { + public java.util.List + getWidgetsBuilderList() { return getWidgetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder> + com.google.monitoring.dashboard.v1.Widget, + com.google.monitoring.dashboard.v1.Widget.Builder, + com.google.monitoring.dashboard.v1.WidgetOrBuilder> getWidgetsFieldBuilder() { if (widgetsBuilder_ == null) { - widgetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder>( - widgets_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + widgetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.Widget, + com.google.monitoring.dashboard.v1.Widget.Builder, + com.google.monitoring.dashboard.v1.WidgetOrBuilder>( + widgets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); widgets_ = null; } return widgetsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -895,12 +981,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.GridLayout) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.GridLayout) private static final com.google.monitoring.dashboard.v1.GridLayout DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.GridLayout(); } @@ -909,27 +995,27 @@ public static com.google.monitoring.dashboard.v1.GridLayout getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GridLayout 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GridLayout 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; @@ -944,6 +1030,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.GridLayout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayoutOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayoutOrBuilder.java similarity index 69% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayoutOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayoutOrBuilder.java index bd960df12cdc..afe261de914c 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayoutOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/GridLayoutOrBuilder.java @@ -1,34 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/layouts.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface GridLayoutOrBuilder extends +public interface GridLayoutOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.GridLayout) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * The number of columns into which the view's width is divided. If omitted
              * or set to zero, a system default will be used while rendering.
              * 
          * * int64 columns = 1; + * * @return The columns. */ long getColumns(); /** + * + * *
              * The informational elements that are arranged into the columns row-first.
              * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - java.util.List - getWidgetsList(); + java.util.List getWidgetsList(); /** + * + * *
              * The informational elements that are arranged into the columns row-first.
              * 
          @@ -37,6 +59,8 @@ public interface GridLayoutOrBuilder extends */ com.google.monitoring.dashboard.v1.Widget getWidgets(int index); /** + * + * *
              * The informational elements that are arranged into the columns row-first.
              * 
          @@ -45,21 +69,24 @@ public interface GridLayoutOrBuilder extends */ int getWidgetsCount(); /** + * + * *
              * The informational elements that are arranged into the columns row-first.
              * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - java.util.List + java.util.List getWidgetsOrBuilderList(); /** + * + * *
              * The informational elements that are arranged into the columns row-first.
              * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( - int index); + com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index); } diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentList.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentList.java similarity index 71% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentList.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentList.java index c3963ef434e8..540d6095db8e 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentList.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentList.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/incident_list.proto @@ -5,51 +20,57 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A widget that displays a list of incidents
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.IncidentList} */ -public final class IncidentList extends - com.google.protobuf.GeneratedMessageV3 implements +public final class IncidentList extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.IncidentList) IncidentListOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IncidentList.newBuilder() to construct. private IncidentList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IncidentList() { monitoredResources_ = java.util.Collections.emptyList(); - policyNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + policyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IncidentList(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.IncidentListProto.internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.IncidentListProto + .internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.IncidentListProto.internal_static_google_monitoring_dashboard_v1_IncidentList_fieldAccessorTable + return com.google.monitoring.dashboard.v1.IncidentListProto + .internal_static_google_monitoring_dashboard_v1_IncidentList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.IncidentList.class, com.google.monitoring.dashboard.v1.IncidentList.Builder.class); + com.google.monitoring.dashboard.v1.IncidentList.class, + com.google.monitoring.dashboard.v1.IncidentList.Builder.class); } public static final int MONITORED_RESOURCES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List monitoredResources_; /** + * + * *
              * Optional. The monitored resource for which incidents are listed.
              * The resource doesn't need to be fully specified. That is, you can specify
          @@ -57,13 +78,17 @@ protected java.lang.Object newInstance(
              * The resource type and labels are used for filtering.
              * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getMonitoredResourcesList() { return monitoredResources_; } /** + * + * *
              * Optional. The monitored resource for which incidents are listed.
              * The resource doesn't need to be fully specified. That is, you can specify
          @@ -71,14 +96,18 @@ public java.util.List getMonitoredResourcesLis
              * The resource type and labels are used for filtering.
              * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getMonitoredResourcesOrBuilderList() { return monitoredResources_; } /** + * + * *
              * Optional. The monitored resource for which incidents are listed.
              * The resource doesn't need to be fully specified. That is, you can specify
          @@ -86,13 +115,17 @@ public java.util.List getMonitoredResourcesLis
              * The resource type and labels are used for filtering.
              * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getMonitoredResourcesCount() { return monitoredResources_.size(); } /** + * + * *
              * Optional. The monitored resource for which incidents are listed.
              * The resource doesn't need to be fully specified. That is, you can specify
          @@ -100,13 +133,17 @@ public int getMonitoredResourcesCount() {
              * The resource type and labels are used for filtering.
              * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.api.MonitoredResource getMonitoredResources(int index) { return monitoredResources_.get(index); } /** + * + * *
              * Optional. The monitored resource for which incidents are listed.
              * The resource doesn't need to be fully specified. That is, you can specify
          @@ -114,19 +151,23 @@ public com.google.api.MonitoredResource getMonitoredResources(int index) {
              * The resource type and labels are used for filtering.
              * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder( - int index) { + public com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder(int index) { return monitoredResources_.get(index); } public static final int POLICY_NAMES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList policyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
              * Optional. A list of alert policy names to filter the incident list by.
              * Don't include the project ID prefix in the policy name. For
          @@ -134,13 +175,15 @@ public com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder(
              * 
          * * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the policyNames. */ - public com.google.protobuf.ProtocolStringList - getPolicyNamesList() { + public com.google.protobuf.ProtocolStringList getPolicyNamesList() { return policyNames_; } /** + * + * *
              * Optional. A list of alert policy names to filter the incident list by.
              * Don't include the project ID prefix in the policy name. For
          @@ -148,12 +191,15 @@ public com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder(
              * 
          * * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of policyNames. */ public int getPolicyNamesCount() { return policyNames_.size(); } /** + * + * *
              * Optional. A list of alert policy names to filter the incident list by.
              * Don't include the project ID prefix in the policy name. For
          @@ -161,6 +207,7 @@ public int getPolicyNamesCount() {
              * 
          * * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The policyNames at the given index. */ @@ -168,6 +215,8 @@ public java.lang.String getPolicyNames(int index) { return policyNames_.get(index); } /** + * + * *
              * Optional. A list of alert policy names to filter the incident list by.
              * Don't include the project ID prefix in the policy name. For
          @@ -175,15 +224,16 @@ public java.lang.String getPolicyNames(int index) {
              * 
          * * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the policyNames at the given index. */ - public com.google.protobuf.ByteString - getPolicyNamesBytes(int index) { + public com.google.protobuf.ByteString getPolicyNamesBytes(int index) { return policyNames_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -195,8 +245,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < monitoredResources_.size(); i++) { output.writeMessage(1, monitoredResources_.get(i)); } @@ -213,8 +262,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < monitoredResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, monitoredResources_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, monitoredResources_.get(i)); } { int dataSize = 0; @@ -232,17 +281,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.IncidentList)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.IncidentList other = (com.google.monitoring.dashboard.v1.IncidentList) obj; + com.google.monitoring.dashboard.v1.IncidentList other = + (com.google.monitoring.dashboard.v1.IncidentList) obj; - if (!getMonitoredResourcesList() - .equals(other.getMonitoredResourcesList())) return false; - if (!getPolicyNamesList() - .equals(other.getPolicyNamesList())) return false; + if (!getMonitoredResourcesList().equals(other.getMonitoredResourcesList())) return false; + if (!getPolicyNamesList().equals(other.getPolicyNamesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -267,132 +315,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.IncidentList parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.IncidentList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.IncidentList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.IncidentList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.IncidentList 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.IncidentList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.IncidentList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.IncidentList parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.IncidentList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.IncidentList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.IncidentList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.IncidentList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.IncidentList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.IncidentList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.IncidentList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A widget that displays a list of incidents
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.IncidentList} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.IncidentList) com.google.monitoring.dashboard.v1.IncidentListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.IncidentListProto.internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.IncidentListProto + .internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.IncidentListProto.internal_static_google_monitoring_dashboard_v1_IncidentList_fieldAccessorTable + return com.google.monitoring.dashboard.v1.IncidentListProto + .internal_static_google_monitoring_dashboard_v1_IncidentList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.IncidentList.class, com.google.monitoring.dashboard.v1.IncidentList.Builder.class); + com.google.monitoring.dashboard.v1.IncidentList.class, + com.google.monitoring.dashboard.v1.IncidentList.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.IncidentList.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -404,15 +456,14 @@ public Builder clear() { monitoredResourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); - policyNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + policyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.IncidentListProto.internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.IncidentListProto + .internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor; } @java.lang.Override @@ -431,14 +482,18 @@ public com.google.monitoring.dashboard.v1.IncidentList build() { @java.lang.Override public com.google.monitoring.dashboard.v1.IncidentList buildPartial() { - com.google.monitoring.dashboard.v1.IncidentList result = new com.google.monitoring.dashboard.v1.IncidentList(this); + com.google.monitoring.dashboard.v1.IncidentList result = + new com.google.monitoring.dashboard.v1.IncidentList(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.dashboard.v1.IncidentList result) { + private void buildPartialRepeatedFields( + com.google.monitoring.dashboard.v1.IncidentList result) { if (monitoredResourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { monitoredResources_ = java.util.Collections.unmodifiableList(monitoredResources_); @@ -462,38 +517,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.IncidentList resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.IncidentList) { - return mergeFrom((com.google.monitoring.dashboard.v1.IncidentList)other); + return mergeFrom((com.google.monitoring.dashboard.v1.IncidentList) other); } else { super.mergeFrom(other); return this; @@ -501,7 +557,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.IncidentList other) { - if (other == com.google.monitoring.dashboard.v1.IncidentList.getDefaultInstance()) return this; + if (other == com.google.monitoring.dashboard.v1.IncidentList.getDefaultInstance()) + return this; if (monitoredResourcesBuilder_ == null) { if (!other.monitoredResources_.isEmpty()) { if (monitoredResources_.isEmpty()) { @@ -520,9 +577,10 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.IncidentList other) monitoredResourcesBuilder_ = null; monitoredResources_ = other.monitoredResources_; bitField0_ = (bitField0_ & ~0x00000001); - monitoredResourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMonitoredResourcesFieldBuilder() : null; + monitoredResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMonitoredResourcesFieldBuilder() + : null; } else { monitoredResourcesBuilder_.addAllMessages(other.monitoredResources_); } @@ -564,31 +622,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.api.MonitoredResource m = - input.readMessage( - com.google.api.MonitoredResource.parser(), - extensionRegistry); - if (monitoredResourcesBuilder_ == null) { - ensureMonitoredResourcesIsMutable(); - monitoredResources_.add(m); - } else { - monitoredResourcesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePolicyNamesIsMutable(); - policyNames_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.api.MonitoredResource m = + input.readMessage(com.google.api.MonitoredResource.parser(), extensionRegistry); + if (monitoredResourcesBuilder_ == null) { + ensureMonitoredResourcesIsMutable(); + monitoredResources_.add(m); + } else { + monitoredResourcesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePolicyNamesIsMutable(); + policyNames_.add(s); + break; + } // case 18 + 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) { @@ -598,21 +657,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List monitoredResources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMonitoredResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - monitoredResources_ = new java.util.ArrayList(monitoredResources_); + monitoredResources_ = + new java.util.ArrayList(monitoredResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> monitoredResourcesBuilder_; + com.google.api.MonitoredResource, + com.google.api.MonitoredResource.Builder, + com.google.api.MonitoredResourceOrBuilder> + monitoredResourcesBuilder_; /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -620,7 +687,9 @@ private void ensureMonitoredResourcesIsMutable() {
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getMonitoredResourcesList() { if (monitoredResourcesBuilder_ == null) { @@ -630,6 +699,8 @@ public java.util.List getMonitoredResourcesLis } } /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -637,7 +708,9 @@ public java.util.List getMonitoredResourcesLis
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getMonitoredResourcesCount() { if (monitoredResourcesBuilder_ == null) { @@ -647,6 +720,8 @@ public int getMonitoredResourcesCount() { } } /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -654,7 +729,9 @@ public int getMonitoredResourcesCount() {
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.api.MonitoredResource getMonitoredResources(int index) { if (monitoredResourcesBuilder_ == null) { @@ -664,6 +741,8 @@ public com.google.api.MonitoredResource getMonitoredResources(int index) { } } /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -671,10 +750,11 @@ public com.google.api.MonitoredResource getMonitoredResources(int index) {
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setMonitoredResources( - int index, com.google.api.MonitoredResource value) { + public Builder setMonitoredResources(int index, com.google.api.MonitoredResource value) { if (monitoredResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -688,6 +768,8 @@ public Builder setMonitoredResources( return this; } /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -695,7 +777,9 @@ public Builder setMonitoredResources(
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMonitoredResources( int index, com.google.api.MonitoredResource.Builder builderForValue) { @@ -709,6 +793,8 @@ public Builder setMonitoredResources( return this; } /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -716,7 +802,9 @@ public Builder setMonitoredResources(
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addMonitoredResources(com.google.api.MonitoredResource value) { if (monitoredResourcesBuilder_ == null) { @@ -732,6 +820,8 @@ public Builder addMonitoredResources(com.google.api.MonitoredResource value) { return this; } /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -739,10 +829,11 @@ public Builder addMonitoredResources(com.google.api.MonitoredResource value) {
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addMonitoredResources( - int index, com.google.api.MonitoredResource value) { + public Builder addMonitoredResources(int index, com.google.api.MonitoredResource value) { if (monitoredResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -756,6 +847,8 @@ public Builder addMonitoredResources( return this; } /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -763,10 +856,11 @@ public Builder addMonitoredResources(
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addMonitoredResources( - com.google.api.MonitoredResource.Builder builderForValue) { + public Builder addMonitoredResources(com.google.api.MonitoredResource.Builder builderForValue) { if (monitoredResourcesBuilder_ == null) { ensureMonitoredResourcesIsMutable(); monitoredResources_.add(builderForValue.build()); @@ -777,6 +871,8 @@ public Builder addMonitoredResources( return this; } /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -784,7 +880,9 @@ public Builder addMonitoredResources(
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addMonitoredResources( int index, com.google.api.MonitoredResource.Builder builderForValue) { @@ -798,6 +896,8 @@ public Builder addMonitoredResources( return this; } /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -805,14 +905,15 @@ public Builder addMonitoredResources(
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllMonitoredResources( java.lang.Iterable values) { if (monitoredResourcesBuilder_ == null) { ensureMonitoredResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, monitoredResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, monitoredResources_); onChanged(); } else { monitoredResourcesBuilder_.addAllMessages(values); @@ -820,6 +921,8 @@ public Builder addAllMonitoredResources( return this; } /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -827,7 +930,9 @@ public Builder addAllMonitoredResources(
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMonitoredResources() { if (monitoredResourcesBuilder_ == null) { @@ -840,6 +945,8 @@ public Builder clearMonitoredResources() { return this; } /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -847,7 +954,9 @@ public Builder clearMonitoredResources() {
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeMonitoredResources(int index) { if (monitoredResourcesBuilder_ == null) { @@ -860,6 +969,8 @@ public Builder removeMonitoredResources(int index) { return this; } /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -867,13 +978,16 @@ public Builder removeMonitoredResources(int index) {
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.api.MonitoredResource.Builder getMonitoredResourcesBuilder( - int index) { + public com.google.api.MonitoredResource.Builder getMonitoredResourcesBuilder(int index) { return getMonitoredResourcesFieldBuilder().getBuilder(index); } /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -881,16 +995,20 @@ public com.google.api.MonitoredResource.Builder getMonitoredResourcesBuilder(
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder( - int index) { + public com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder(int index) { if (monitoredResourcesBuilder_ == null) { - return monitoredResources_.get(index); } else { + return monitoredResources_.get(index); + } else { return monitoredResourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -898,10 +1016,12 @@ public com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder(
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getMonitoredResourcesOrBuilderList() { + public java.util.List + getMonitoredResourcesOrBuilderList() { if (monitoredResourcesBuilder_ != null) { return monitoredResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -909,6 +1029,8 @@ public com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder( } } /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -916,13 +1038,17 @@ public com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder(
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.api.MonitoredResource.Builder addMonitoredResourcesBuilder() { - return getMonitoredResourcesFieldBuilder().addBuilder( - com.google.api.MonitoredResource.getDefaultInstance()); + return getMonitoredResourcesFieldBuilder() + .addBuilder(com.google.api.MonitoredResource.getDefaultInstance()); } /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -930,14 +1056,17 @@ public com.google.api.MonitoredResource.Builder addMonitoredResourcesBuilder() {
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.api.MonitoredResource.Builder addMonitoredResourcesBuilder( - int index) { - return getMonitoredResourcesFieldBuilder().addBuilder( - index, com.google.api.MonitoredResource.getDefaultInstance()); + public com.google.api.MonitoredResource.Builder addMonitoredResourcesBuilder(int index) { + return getMonitoredResourcesFieldBuilder() + .addBuilder(index, com.google.api.MonitoredResource.getDefaultInstance()); } /** + * + * *
                * Optional. The monitored resource for which incidents are listed.
                * The resource doesn't need to be fully specified. That is, you can specify
          @@ -945,18 +1074,26 @@ public com.google.api.MonitoredResource.Builder addMonitoredResourcesBuilder(
                * The resource type and labels are used for filtering.
                * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getMonitoredResourcesBuilderList() { + public java.util.List + getMonitoredResourcesBuilderList() { return getMonitoredResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> + com.google.api.MonitoredResource, + com.google.api.MonitoredResource.Builder, + com.google.api.MonitoredResourceOrBuilder> getMonitoredResourcesFieldBuilder() { if (monitoredResourcesBuilder_ == null) { - monitoredResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder>( + monitoredResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.MonitoredResource, + com.google.api.MonitoredResource.Builder, + com.google.api.MonitoredResourceOrBuilder>( monitoredResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -968,6 +1105,7 @@ public com.google.api.MonitoredResource.Builder addMonitoredResourcesBuilder( private com.google.protobuf.LazyStringArrayList policyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePolicyNamesIsMutable() { if (!policyNames_.isModifiable()) { policyNames_ = new com.google.protobuf.LazyStringArrayList(policyNames_); @@ -975,6 +1113,8 @@ private void ensurePolicyNamesIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
                * Optional. A list of alert policy names to filter the incident list by.
                * Don't include the project ID prefix in the policy name. For
          @@ -982,14 +1122,16 @@ private void ensurePolicyNamesIsMutable() {
                * 
          * * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the policyNames. */ - public com.google.protobuf.ProtocolStringList - getPolicyNamesList() { + public com.google.protobuf.ProtocolStringList getPolicyNamesList() { policyNames_.makeImmutable(); return policyNames_; } /** + * + * *
                * Optional. A list of alert policy names to filter the incident list by.
                * Don't include the project ID prefix in the policy name. For
          @@ -997,12 +1139,15 @@ private void ensurePolicyNamesIsMutable() {
                * 
          * * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of policyNames. */ public int getPolicyNamesCount() { return policyNames_.size(); } /** + * + * *
                * Optional. A list of alert policy names to filter the incident list by.
                * Don't include the project ID prefix in the policy name. For
          @@ -1010,6 +1155,7 @@ public int getPolicyNamesCount() {
                * 
          * * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The policyNames at the given index. */ @@ -1017,6 +1163,8 @@ public java.lang.String getPolicyNames(int index) { return policyNames_.get(index); } /** + * + * *
                * Optional. A list of alert policy names to filter the incident list by.
                * Don't include the project ID prefix in the policy name. For
          @@ -1024,14 +1172,16 @@ public java.lang.String getPolicyNames(int index) {
                * 
          * * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the policyNames at the given index. */ - public com.google.protobuf.ByteString - getPolicyNamesBytes(int index) { + public com.google.protobuf.ByteString getPolicyNamesBytes(int index) { return policyNames_.getByteString(index); } /** + * + * *
                * Optional. A list of alert policy names to filter the incident list by.
                * Don't include the project ID prefix in the policy name. For
          @@ -1039,13 +1189,15 @@ public java.lang.String getPolicyNames(int index) {
                * 
          * * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The policyNames to set. * @return This builder for chaining. */ - public Builder setPolicyNames( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPolicyNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensurePolicyNamesIsMutable(); policyNames_.set(index, value); bitField0_ |= 0x00000002; @@ -1053,6 +1205,8 @@ public Builder setPolicyNames( return this; } /** + * + * *
                * Optional. A list of alert policy names to filter the incident list by.
                * Don't include the project ID prefix in the policy name. For
          @@ -1060,12 +1214,14 @@ public Builder setPolicyNames(
                * 
          * * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The policyNames to add. * @return This builder for chaining. */ - public Builder addPolicyNames( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addPolicyNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensurePolicyNamesIsMutable(); policyNames_.add(value); bitField0_ |= 0x00000002; @@ -1073,6 +1229,8 @@ public Builder addPolicyNames( return this; } /** + * + * *
                * Optional. A list of alert policy names to filter the incident list by.
                * Don't include the project ID prefix in the policy name. For
          @@ -1080,19 +1238,20 @@ public Builder addPolicyNames(
                * 
          * * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The policyNames to add. * @return This builder for chaining. */ - public Builder addAllPolicyNames( - java.lang.Iterable values) { + public Builder addAllPolicyNames(java.lang.Iterable values) { ensurePolicyNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, policyNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyNames_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
                * Optional. A list of alert policy names to filter the incident list by.
                * Don't include the project ID prefix in the policy name. For
          @@ -1100,16 +1259,19 @@ public Builder addAllPolicyNames(
                * 
          * * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPolicyNames() { - policyNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + policyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
                * Optional. A list of alert policy names to filter the incident list by.
                * Don't include the project ID prefix in the policy name. For
          @@ -1117,12 +1279,14 @@ public Builder clearPolicyNames() {
                * 
          * * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the policyNames to add. * @return This builder for chaining. */ - public Builder addPolicyNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addPolicyNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensurePolicyNamesIsMutable(); policyNames_.add(value); @@ -1130,9 +1294,9 @@ public Builder addPolicyNamesBytes( onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1142,12 +1306,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.IncidentList) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.IncidentList) private static final com.google.monitoring.dashboard.v1.IncidentList DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.IncidentList(); } @@ -1156,27 +1320,27 @@ public static com.google.monitoring.dashboard.v1.IncidentList getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IncidentList 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IncidentList 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; @@ -1191,6 +1355,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.IncidentList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListOrBuilder.java similarity index 69% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListOrBuilder.java index f61f1206b049..f6a2deee3cbe 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/incident_list.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface IncidentListOrBuilder extends +public interface IncidentListOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.IncidentList) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Optional. The monitored resource for which incidents are listed.
              * The resource doesn't need to be fully specified. That is, you can specify
          @@ -16,11 +34,14 @@ public interface IncidentListOrBuilder extends
              * The resource type and labels are used for filtering.
              * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getMonitoredResourcesList(); + java.util.List getMonitoredResourcesList(); /** + * + * *
              * Optional. The monitored resource for which incidents are listed.
              * The resource doesn't need to be fully specified. That is, you can specify
          @@ -28,10 +49,14 @@ public interface IncidentListOrBuilder extends
              * The resource type and labels are used for filtering.
              * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.api.MonitoredResource getMonitoredResources(int index); /** + * + * *
              * Optional. The monitored resource for which incidents are listed.
              * The resource doesn't need to be fully specified. That is, you can specify
          @@ -39,10 +64,14 @@ public interface IncidentListOrBuilder extends
              * The resource type and labels are used for filtering.
              * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getMonitoredResourcesCount(); /** + * + * *
              * Optional. The monitored resource for which incidents are listed.
              * The resource doesn't need to be fully specified. That is, you can specify
          @@ -50,11 +79,15 @@ public interface IncidentListOrBuilder extends
              * The resource type and labels are used for filtering.
              * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getMonitoredResourcesOrBuilderList(); /** + * + * *
              * Optional. The monitored resource for which incidents are listed.
              * The resource doesn't need to be fully specified. That is, you can specify
          @@ -62,12 +95,15 @@ public interface IncidentListOrBuilder extends
              * The resource type and labels are used for filtering.
              * 
          * - * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder( - int index); + com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder(int index); /** + * + * *
              * Optional. A list of alert policy names to filter the incident list by.
              * Don't include the project ID prefix in the policy name. For
          @@ -75,11 +111,13 @@ com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder(
              * 
          * * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the policyNames. */ - java.util.List - getPolicyNamesList(); + java.util.List getPolicyNamesList(); /** + * + * *
              * Optional. A list of alert policy names to filter the incident list by.
              * Don't include the project ID prefix in the policy name. For
          @@ -87,10 +125,13 @@ com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder(
              * 
          * * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of policyNames. */ int getPolicyNamesCount(); /** + * + * *
              * Optional. A list of alert policy names to filter the incident list by.
              * Don't include the project ID prefix in the policy name. For
          @@ -98,11 +139,14 @@ com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder(
              * 
          * * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The policyNames at the given index. */ java.lang.String getPolicyNames(int index); /** + * + * *
              * Optional. A list of alert policy names to filter the incident list by.
              * Don't include the project ID prefix in the policy name. For
          @@ -110,9 +154,9 @@ com.google.api.MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder(
              * 
          * * repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the policyNames at the given index. */ - com.google.protobuf.ByteString - getPolicyNamesBytes(int index); + com.google.protobuf.ByteString getPolicyNamesBytes(int index); } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListProto.java new file mode 100644 index 000000000000..7b8a094234dd --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListProto.java @@ -0,0 +1,84 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/incident_list.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class IncidentListProto { + private IncidentListProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_IncidentList_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/monitoring/dashboard/v1/inciden" + + "t_list.proto\022\036google.monitoring.dashboar" + + "d.v1\032\037google/api/field_behavior.proto\032#g" + + "oogle/api/monitored_resource.proto\"j\n\014In" + + "cidentList\022?\n\023monitored_resources\030\001 \003(\0132" + + "\035.google.api.MonitoredResourceB\003\340A\001\022\031\n\014p" + + "olicy_names\030\002 \003(\tB\003\340A\001B\372\001\n\"com.google.mo" + + "nitoring.dashboard.v1B\021IncidentListProto" + + "P\001ZFcloud.google.com/go/monitoring/dashb" + + "oard/apiv1/dashboardpb;dashboardpb\252\002$Goo" + + "gle.Cloud.Monitoring.Dashboard.V1\312\002$Goog" + + "le\\Cloud\\Monitoring\\Dashboard\\V1\352\002(Googl" + + "e::Cloud::Monitoring::Dashboard::V1b\006pro" + + "to3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.MonitoredResourceProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_IncidentList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor, + new java.lang.String[] { + "MonitoredResources", "PolicyNames", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.MonitoredResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java new file mode 100644 index 000000000000..24fd2af8da5e --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java @@ -0,0 +1,165 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/layouts.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class LayoutsProto { + private LayoutsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_GridLayout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_RowLayout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_RowLayout_Row_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_ColumnLayout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/monitoring/dashboard/v1/layouts" + + ".proto\022\036google.monitoring.dashboard.v1\032+" + + "google/monitoring/dashboard/v1/widget.pr" + + "oto\"V\n\nGridLayout\022\017\n\007columns\030\001 \001(\003\0227\n\007wi" + + "dgets\030\002 \003(\0132&.google.monitoring.dashboar" + + "d.v1.Widget\"\336\001\n\014MosaicLayout\022\017\n\007columns\030" + + "\001 \001(\005\022@\n\005tiles\030\003 \003(\01321.google.monitoring" + + ".dashboard.v1.MosaicLayout.Tile\032{\n\004Tile\022" + + "\r\n\005x_pos\030\001 \001(\005\022\r\n\005y_pos\030\002 \001(\005\022\r\n\005width\030\003" + + " \001(\005\022\016\n\006height\030\004 \001(\005\0226\n\006widget\030\005 \001(\0132&.g" + + "oogle.monitoring.dashboard.v1.Widget\"\230\001\n" + + "\tRowLayout\022;\n\004rows\030\001 \003(\0132-.google.monito" + + "ring.dashboard.v1.RowLayout.Row\032N\n\003Row\022\016" + + "\n\006weight\030\001 \001(\003\0227\n\007widgets\030\002 \003(\0132&.google" + + ".monitoring.dashboard.v1.Widget\"\247\001\n\014Colu" + + "mnLayout\022D\n\007columns\030\001 \003(\01323.google.monit" + + "oring.dashboard.v1.ColumnLayout.Column\032Q" + + "\n\006Column\022\016\n\006weight\030\001 \001(\003\0227\n\007widgets\030\002 \003(" + + "\0132&.google.monitoring.dashboard.v1.Widge" + + "tB\365\001\n\"com.google.monitoring.dashboard.v1" + + "B\014LayoutsProtoP\001ZFcloud.google.com/go/mo" + + "nitoring/dashboard/apiv1/dashboardpb;das" + + "hboardpb\252\002$Google.Cloud.Monitoring.Dashb" + + "oard.V1\312\002$Google\\Cloud\\Monitoring\\Dashbo" + + "ard\\V1\352\002(Google::Cloud::Monitoring::Dash" + + "board::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.monitoring.dashboard.v1.WidgetProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_GridLayout_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor, + new java.lang.String[] { + "Columns", "Widgets", + }); + internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor, + new java.lang.String[] { + "Columns", "Tiles", + }); + internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor = + internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor + .getNestedTypes() + .get(0); + internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor, + new java.lang.String[] { + "XPos", "YPos", "Width", "Height", "Widget", + }); + internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_dashboard_v1_RowLayout_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor, + new java.lang.String[] { + "Rows", + }); + internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor = + internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_dashboard_v1_RowLayout_Row_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor, + new java.lang.String[] { + "Weight", "Widgets", + }); + internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_monitoring_dashboard_v1_ColumnLayout_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor, + new java.lang.String[] { + "Columns", + }); + internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor = + internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor + .getNestedTypes() + .get(0); + internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor, + new java.lang.String[] { + "Weight", "Widgets", + }); + com.google.monitoring.dashboard.v1.WidgetProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequest.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequest.java similarity index 69% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequest.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequest.java index ddd2a02ba49e..2fca87f63ebd 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequest.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto @@ -5,21 +20,24 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * The `ListDashboards` request.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ListDashboardsRequest} */ -public final class ListDashboardsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDashboardsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.ListDashboardsRequest) ListDashboardsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDashboardsRequest.newBuilder() to construct. private ListDashboardsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDashboardsRequest() { parent_ = ""; pageToken_ = ""; @@ -27,35 +45,42 @@ private ListDashboardsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDashboardsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ListDashboardsRequest.class, com.google.monitoring.dashboard.v1.ListDashboardsRequest.Builder.class); + com.google.monitoring.dashboard.v1.ListDashboardsRequest.class, + com.google.monitoring.dashboard.v1.ListDashboardsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
              * Required. The scope of the dashboards to list. The format is:
              *
              *     projects/[PROJECT_ID_OR_NUMBER]
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -64,31 +89,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
              * Required. The scope of the dashboards to list. The format is:
              *
              *     projects/[PROJECT_ID_OR_NUMBER]
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -99,12 +126,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
              * A positive number that is the maximum number of results to return.
              * If unspecified, a default of 1000 is used.
              * 
          * * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -113,9 +143,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
              * Optional. If this field is not empty then it must contain the
              * `nextPageToken` value returned by a previous call to this method.  Using
          @@ -124,6 +157,7 @@ public int getPageSize() {
              * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -132,14 +166,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
              * Optional. If this field is not empty then it must contain the
              * `nextPageToken` value returned by a previous call to this method.  Using
          @@ -148,16 +183,15 @@ public java.lang.String getPageToken() {
              * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -166,6 +200,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +212,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -201,8 +235,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -215,19 +248,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.ListDashboardsRequest)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.ListDashboardsRequest other = (com.google.monitoring.dashboard.v1.ListDashboardsRequest) obj; + com.google.monitoring.dashboard.v1.ListDashboardsRequest other = + (com.google.monitoring.dashboard.v1.ListDashboardsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -251,131 +282,136 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListDashboardsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ListDashboardsRequest 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.ListDashboardsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.ListDashboardsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.ListDashboardsRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.ListDashboardsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * The `ListDashboards` request.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ListDashboardsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.ListDashboardsRequest) com.google.monitoring.dashboard.v1.ListDashboardsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ListDashboardsRequest.class, com.google.monitoring.dashboard.v1.ListDashboardsRequest.Builder.class); + com.google.monitoring.dashboard.v1.ListDashboardsRequest.class, + com.google.monitoring.dashboard.v1.ListDashboardsRequest.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.ListDashboardsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -387,9 +423,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor; } @java.lang.Override @@ -408,8 +444,11 @@ public com.google.monitoring.dashboard.v1.ListDashboardsRequest build() { @java.lang.Override public com.google.monitoring.dashboard.v1.ListDashboardsRequest buildPartial() { - com.google.monitoring.dashboard.v1.ListDashboardsRequest result = new com.google.monitoring.dashboard.v1.ListDashboardsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.ListDashboardsRequest result = + new com.google.monitoring.dashboard.v1.ListDashboardsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -431,38 +470,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.ListDashboardsRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListDashboardsRequest) { - return mergeFrom((com.google.monitoring.dashboard.v1.ListDashboardsRequest)other); + return mergeFrom((com.google.monitoring.dashboard.v1.ListDashboardsRequest) other); } else { super.mergeFrom(other); return this; @@ -470,7 +510,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.ListDashboardsRequest other) { - if (other == com.google.monitoring.dashboard.v1.ListDashboardsRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.dashboard.v1.ListDashboardsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -510,27 +551,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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) { @@ -540,24 +585,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
                * Required. The scope of the dashboards to list. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -566,22 +616,25 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The scope of the dashboards to list. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -589,32 +642,43 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The scope of the dashboards to list. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                * Required. The scope of the dashboards to list. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -624,19 +688,25 @@ public Builder clearParent() { return this; } /** + * + * *
                * Required. The scope of the dashboards to list. The format is:
                *
                *     projects/[PROJECT_ID_OR_NUMBER]
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -644,14 +714,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
                * A positive number that is the maximum number of results to return.
                * If unspecified, a default of 1000 is used.
                * 
          * * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -659,12 +732,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
                * A positive number that is the maximum number of results to return.
                * If unspecified, a default of 1000 is used.
                * 
          * * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -676,12 +752,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
                * A positive number that is the maximum number of results to return.
                * If unspecified, a default of 1000 is used.
                * 
          * * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -693,6 +772,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
                * Optional. If this field is not empty then it must contain the
                * `nextPageToken` value returned by a previous call to this method.  Using
          @@ -701,13 +782,13 @@ public Builder clearPageSize() {
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -716,6 +797,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
                * Optional. If this field is not empty then it must contain the
                * `nextPageToken` value returned by a previous call to this method.  Using
          @@ -724,15 +807,14 @@ public java.lang.String getPageToken() {
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -740,6 +822,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
                * Optional. If this field is not empty then it must contain the
                * `nextPageToken` value returned by a previous call to this method.  Using
          @@ -748,18 +832,22 @@ public java.lang.String getPageToken() {
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
                * Optional. If this field is not empty then it must contain the
                * `nextPageToken` value returned by a previous call to this method.  Using
          @@ -768,6 +856,7 @@ public Builder setPageToken(
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -777,6 +866,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
                * Optional. If this field is not empty then it must contain the
                * `nextPageToken` value returned by a previous call to this method.  Using
          @@ -785,21 +876,23 @@ public Builder clearPageToken() {
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -809,12 +902,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.ListDashboardsRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.ListDashboardsRequest) private static final com.google.monitoring.dashboard.v1.ListDashboardsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.ListDashboardsRequest(); } @@ -823,27 +916,27 @@ public static com.google.monitoring.dashboard.v1.ListDashboardsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDashboardsRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDashboardsRequest 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; @@ -858,6 +951,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.ListDashboardsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequestOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequestOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequestOrBuilder.java index b5126af5d5b2..b1fa1e704c93 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequestOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsRequestOrBuilder.java @@ -1,49 +1,79 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface ListDashboardsRequestOrBuilder extends +public interface ListDashboardsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.ListDashboardsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. The scope of the dashboards to list. The format is:
              *
              *     projects/[PROJECT_ID_OR_NUMBER]
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
              * Required. The scope of the dashboards to list. The format is:
              *
              *     projects/[PROJECT_ID_OR_NUMBER]
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
              * A positive number that is the maximum number of results to return.
              * If unspecified, a default of 1000 is used.
              * 
          * * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
              * Optional. If this field is not empty then it must contain the
              * `nextPageToken` value returned by a previous call to this method.  Using
          @@ -52,10 +82,13 @@ public interface ListDashboardsRequestOrBuilder extends
              * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
              * Optional. If this field is not empty then it must contain the
              * `nextPageToken` value returned by a previous call to this method.  Using
          @@ -64,8 +97,8 @@ public interface ListDashboardsRequestOrBuilder extends
              * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponse.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponse.java similarity index 72% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponse.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponse.java index 2e81aa8c56ea..e2676ed022b6 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponse.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto @@ -5,21 +20,24 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * The `ListDashboards` request.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ListDashboardsResponse} */ -public final class ListDashboardsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDashboardsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.ListDashboardsResponse) ListDashboardsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDashboardsResponse.newBuilder() to construct. private ListDashboardsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDashboardsResponse() { dashboards_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +45,32 @@ private ListDashboardsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDashboardsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ListDashboardsResponse.class, com.google.monitoring.dashboard.v1.ListDashboardsResponse.Builder.class); + com.google.monitoring.dashboard.v1.ListDashboardsResponse.class, + com.google.monitoring.dashboard.v1.ListDashboardsResponse.Builder.class); } public static final int DASHBOARDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List dashboards_; /** + * + * *
              * The list of requested dashboards.
              * 
          @@ -60,6 +82,8 @@ public java.util.List getDashboard return dashboards_; } /** + * + * *
              * The list of requested dashboards.
              * 
          @@ -67,11 +91,13 @@ public java.util.List getDashboard * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDashboardsOrBuilderList() { return dashboards_; } /** + * + * *
              * The list of requested dashboards.
              * 
          @@ -83,6 +109,8 @@ public int getDashboardsCount() { return dashboards_.size(); } /** + * + * *
              * The list of requested dashboards.
              * 
          @@ -94,6 +122,8 @@ public com.google.monitoring.dashboard.v1.Dashboard getDashboards(int index) { return dashboards_.get(index); } /** + * + * *
              * The list of requested dashboards.
              * 
          @@ -101,15 +131,17 @@ public com.google.monitoring.dashboard.v1.Dashboard getDashboards(int index) { * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuilder( - int index) { + public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuilder(int index) { return dashboards_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
              * If there are more results than have been returned, then this field is set
              * to a non-empty value.  To see the additional results,
          @@ -117,6 +149,7 @@ public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuil
              * 
          * * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,14 +158,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
              * If there are more results than have been returned, then this field is set
              * to a non-empty value.  To see the additional results,
          @@ -140,16 +174,15 @@ public java.lang.String getNextPageToken() {
              * 
          * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -158,6 +191,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < dashboards_.size(); i++) { output.writeMessage(1, dashboards_.get(i)); } @@ -187,8 +220,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < dashboards_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, dashboards_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dashboards_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +233,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.ListDashboardsResponse)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.ListDashboardsResponse other = (com.google.monitoring.dashboard.v1.ListDashboardsResponse) obj; + com.google.monitoring.dashboard.v1.ListDashboardsResponse other = + (com.google.monitoring.dashboard.v1.ListDashboardsResponse) obj; - if (!getDashboardsList() - .equals(other.getDashboardsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getDashboardsList().equals(other.getDashboardsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -235,131 +266,136 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListDashboardsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ListDashboardsResponse 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.ListDashboardsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.ListDashboardsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.ListDashboardsResponse prototype) { + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.ListDashboardsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * The `ListDashboards` request.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.ListDashboardsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.ListDashboardsResponse) com.google.monitoring.dashboard.v1.ListDashboardsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.ListDashboardsResponse.class, com.google.monitoring.dashboard.v1.ListDashboardsResponse.Builder.class); + com.google.monitoring.dashboard.v1.ListDashboardsResponse.class, + com.google.monitoring.dashboard.v1.ListDashboardsResponse.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.ListDashboardsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor; } @java.lang.Override @@ -397,14 +433,18 @@ public com.google.monitoring.dashboard.v1.ListDashboardsResponse build() { @java.lang.Override public com.google.monitoring.dashboard.v1.ListDashboardsResponse buildPartial() { - com.google.monitoring.dashboard.v1.ListDashboardsResponse result = new com.google.monitoring.dashboard.v1.ListDashboardsResponse(this); + com.google.monitoring.dashboard.v1.ListDashboardsResponse result = + new com.google.monitoring.dashboard.v1.ListDashboardsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.dashboard.v1.ListDashboardsResponse result) { + private void buildPartialRepeatedFields( + com.google.monitoring.dashboard.v1.ListDashboardsResponse result) { if (dashboardsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dashboards_ = java.util.Collections.unmodifiableList(dashboards_); @@ -427,38 +467,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.ListDashboardsResp public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListDashboardsResponse) { - return mergeFrom((com.google.monitoring.dashboard.v1.ListDashboardsResponse)other); + return mergeFrom((com.google.monitoring.dashboard.v1.ListDashboardsResponse) other); } else { super.mergeFrom(other); return this; @@ -466,7 +507,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.ListDashboardsResponse other) { - if (other == com.google.monitoring.dashboard.v1.ListDashboardsResponse.getDefaultInstance()) return this; + if (other == com.google.monitoring.dashboard.v1.ListDashboardsResponse.getDefaultInstance()) + return this; if (dashboardsBuilder_ == null) { if (!other.dashboards_.isEmpty()) { if (dashboards_.isEmpty()) { @@ -485,9 +527,10 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.ListDashboardsRespon dashboardsBuilder_ = null; dashboards_ = other.dashboards_; bitField0_ = (bitField0_ & ~0x00000001); - dashboardsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDashboardsFieldBuilder() : null; + dashboardsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDashboardsFieldBuilder() + : null; } else { dashboardsBuilder_.addAllMessages(other.dashboards_); } @@ -524,30 +567,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.monitoring.dashboard.v1.Dashboard m = - input.readMessage( - com.google.monitoring.dashboard.v1.Dashboard.parser(), - extensionRegistry); - if (dashboardsBuilder_ == null) { - ensureDashboardsIsMutable(); - dashboards_.add(m); - } else { - dashboardsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.monitoring.dashboard.v1.Dashboard m = + input.readMessage( + com.google.monitoring.dashboard.v1.Dashboard.parser(), extensionRegistry); + if (dashboardsBuilder_ == null) { + ensureDashboardsIsMutable(); + dashboards_.add(m); + } else { + dashboardsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { @@ -557,21 +602,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List dashboards_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDashboardsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - dashboards_ = new java.util.ArrayList(dashboards_); + dashboards_ = + new java.util.ArrayList(dashboards_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder> dashboardsBuilder_; + com.google.monitoring.dashboard.v1.Dashboard, + com.google.monitoring.dashboard.v1.Dashboard.Builder, + com.google.monitoring.dashboard.v1.DashboardOrBuilder> + dashboardsBuilder_; /** + * + * *
                * The list of requested dashboards.
                * 
          @@ -586,6 +639,8 @@ public java.util.List getDashboard } } /** + * + * *
                * The list of requested dashboards.
                * 
          @@ -600,6 +655,8 @@ public int getDashboardsCount() { } } /** + * + * *
                * The list of requested dashboards.
                * 
          @@ -614,14 +671,15 @@ public com.google.monitoring.dashboard.v1.Dashboard getDashboards(int index) { } } /** + * + * *
                * The list of requested dashboards.
                * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - public Builder setDashboards( - int index, com.google.monitoring.dashboard.v1.Dashboard value) { + public Builder setDashboards(int index, com.google.monitoring.dashboard.v1.Dashboard value) { if (dashboardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -635,6 +693,8 @@ public Builder setDashboards( return this; } /** + * + * *
                * The list of requested dashboards.
                * 
          @@ -653,6 +713,8 @@ public Builder setDashboards( return this; } /** + * + * *
                * The list of requested dashboards.
                * 
          @@ -673,14 +735,15 @@ public Builder addDashboards(com.google.monitoring.dashboard.v1.Dashboard value) return this; } /** + * + * *
                * The list of requested dashboards.
                * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - public Builder addDashboards( - int index, com.google.monitoring.dashboard.v1.Dashboard value) { + public Builder addDashboards(int index, com.google.monitoring.dashboard.v1.Dashboard value) { if (dashboardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -694,6 +757,8 @@ public Builder addDashboards( return this; } /** + * + * *
                * The list of requested dashboards.
                * 
          @@ -712,6 +777,8 @@ public Builder addDashboards( return this; } /** + * + * *
                * The list of requested dashboards.
                * 
          @@ -730,6 +797,8 @@ public Builder addDashboards( return this; } /** + * + * *
                * The list of requested dashboards.
                * 
          @@ -740,8 +809,7 @@ public Builder addAllDashboards( java.lang.Iterable values) { if (dashboardsBuilder_ == null) { ensureDashboardsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dashboards_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dashboards_); onChanged(); } else { dashboardsBuilder_.addAllMessages(values); @@ -749,6 +817,8 @@ public Builder addAllDashboards( return this; } /** + * + * *
                * The list of requested dashboards.
                * 
          @@ -766,6 +836,8 @@ public Builder clearDashboards() { return this; } /** + * + * *
                * The list of requested dashboards.
                * 
          @@ -783,39 +855,44 @@ public Builder removeDashboards(int index) { return this; } /** + * + * *
                * The list of requested dashboards.
                * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - public com.google.monitoring.dashboard.v1.Dashboard.Builder getDashboardsBuilder( - int index) { + public com.google.monitoring.dashboard.v1.Dashboard.Builder getDashboardsBuilder(int index) { return getDashboardsFieldBuilder().getBuilder(index); } /** + * + * *
                * The list of requested dashboards.
                * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuilder( - int index) { + public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuilder(int index) { if (dashboardsBuilder_ == null) { - return dashboards_.get(index); } else { + return dashboards_.get(index); + } else { return dashboardsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * The list of requested dashboards.
                * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - public java.util.List - getDashboardsOrBuilderList() { + public java.util.List + getDashboardsOrBuilderList() { if (dashboardsBuilder_ != null) { return dashboardsBuilder_.getMessageOrBuilderList(); } else { @@ -823,6 +900,8 @@ public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuil } } /** + * + * *
                * The list of requested dashboards.
                * 
          @@ -830,42 +909,48 @@ public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuil * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ public com.google.monitoring.dashboard.v1.Dashboard.Builder addDashboardsBuilder() { - return getDashboardsFieldBuilder().addBuilder( - com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()); + return getDashboardsFieldBuilder() + .addBuilder(com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()); } /** + * + * *
                * The list of requested dashboards.
                * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - public com.google.monitoring.dashboard.v1.Dashboard.Builder addDashboardsBuilder( - int index) { - return getDashboardsFieldBuilder().addBuilder( - index, com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()); + public com.google.monitoring.dashboard.v1.Dashboard.Builder addDashboardsBuilder(int index) { + return getDashboardsFieldBuilder() + .addBuilder(index, com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()); } /** + * + * *
                * The list of requested dashboards.
                * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - public java.util.List - getDashboardsBuilderList() { + public java.util.List + getDashboardsBuilderList() { return getDashboardsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder> + com.google.monitoring.dashboard.v1.Dashboard, + com.google.monitoring.dashboard.v1.Dashboard.Builder, + com.google.monitoring.dashboard.v1.DashboardOrBuilder> getDashboardsFieldBuilder() { if (dashboardsBuilder_ == null) { - dashboardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder>( - dashboards_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + dashboardsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.Dashboard, + com.google.monitoring.dashboard.v1.Dashboard.Builder, + com.google.monitoring.dashboard.v1.DashboardOrBuilder>( + dashboards_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); dashboards_ = null; } return dashboardsBuilder_; @@ -873,6 +958,8 @@ public com.google.monitoring.dashboard.v1.Dashboard.Builder addDashboardsBuilder private java.lang.Object nextPageToken_ = ""; /** + * + * *
                * If there are more results than have been returned, then this field is set
                * to a non-empty value.  To see the additional results,
          @@ -880,13 +967,13 @@ public com.google.monitoring.dashboard.v1.Dashboard.Builder addDashboardsBuilder
                * 
          * * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -895,6 +982,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                * If there are more results than have been returned, then this field is set
                * to a non-empty value.  To see the additional results,
          @@ -902,15 +991,14 @@ public java.lang.String getNextPageToken() {
                * 
          * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -918,6 +1006,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                * If there are more results than have been returned, then this field is set
                * to a non-empty value.  To see the additional results,
          @@ -925,18 +1015,22 @@ public java.lang.String getNextPageToken() {
                * 
          * * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
                * If there are more results than have been returned, then this field is set
                * to a non-empty value.  To see the additional results,
          @@ -944,6 +1038,7 @@ public Builder setNextPageToken(
                * 
          * * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -953,6 +1048,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
                * If there are more results than have been returned, then this field is set
                * to a non-empty value.  To see the additional results,
          @@ -960,21 +1057,23 @@ public Builder clearNextPageToken() {
                * 
          * * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,12 +1083,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.ListDashboardsResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.ListDashboardsResponse) private static final com.google.monitoring.dashboard.v1.ListDashboardsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.ListDashboardsResponse(); } @@ -998,27 +1097,27 @@ public static com.google.monitoring.dashboard.v1.ListDashboardsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDashboardsResponse 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDashboardsResponse 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; @@ -1033,6 +1132,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.ListDashboardsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponseOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponseOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponseOrBuilder.java index 426c88060b67..dc22580d72f5 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponseOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface ListDashboardsResponseOrBuilder extends +public interface ListDashboardsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.ListDashboardsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * The list of requested dashboards.
              * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - java.util.List - getDashboardsList(); + java.util.List getDashboardsList(); /** + * + * *
              * The list of requested dashboards.
              * 
          @@ -26,6 +45,8 @@ public interface ListDashboardsResponseOrBuilder extends */ com.google.monitoring.dashboard.v1.Dashboard getDashboards(int index); /** + * + * *
              * The list of requested dashboards.
              * 
          @@ -34,25 +55,30 @@ public interface ListDashboardsResponseOrBuilder extends */ int getDashboardsCount(); /** + * + * *
              * The list of requested dashboards.
              * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - java.util.List + java.util.List getDashboardsOrBuilderList(); /** + * + * *
              * The list of requested dashboards.
              * 
          * * repeated .google.monitoring.dashboard.v1.Dashboard dashboards = 1; */ - com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuilder( - int index); + com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuilder(int index); /** + * + * *
              * If there are more results than have been returned, then this field is set
              * to a non-empty value.  To see the additional results,
          @@ -60,10 +86,13 @@ com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuilder(
              * 
          * * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
              * If there are more results than have been returned, then this field is set
              * to a non-empty value.  To see the additional results,
          @@ -71,8 +100,8 @@ com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardsOrBuilder(
              * 
          * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java similarity index 71% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java index 2ea206a4e422..7de31ac7e2b3 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/logs_panel.proto @@ -5,51 +20,57 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A widget that displays a stream of log.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.LogsPanel} */ -public final class LogsPanel extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LogsPanel extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.LogsPanel) LogsPanelOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LogsPanel.newBuilder() to construct. private LogsPanel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LogsPanel() { filter_ = ""; - resourceNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LogsPanel(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.LogsPanelProto.internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.LogsPanelProto + .internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.LogsPanelProto.internal_static_google_monitoring_dashboard_v1_LogsPanel_fieldAccessorTable + return com.google.monitoring.dashboard.v1.LogsPanelProto + .internal_static_google_monitoring_dashboard_v1_LogsPanel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.LogsPanel.class, com.google.monitoring.dashboard.v1.LogsPanel.Builder.class); + com.google.monitoring.dashboard.v1.LogsPanel.class, + com.google.monitoring.dashboard.v1.LogsPanel.Builder.class); } public static final int FILTER_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
              * A filter that chooses which log entries to return.  See [Advanced Logs
              * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -58,6 +79,7 @@ protected java.lang.Object newInstance(
              * 
          * * string filter = 1; + * * @return The filter. */ @java.lang.Override @@ -66,14 +88,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
              * A filter that chooses which log entries to return.  See [Advanced Logs
              * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -82,16 +105,15 @@ public java.lang.String getFilter() {
              * 
          * * string filter = 1; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -100,41 +122,50 @@ public java.lang.String getFilter() { } public static final int RESOURCE_NAMES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
              * The names of logging resources to collect logs for. Currently only projects
              * are supported. If empty, the widget will default to the host project.
              * 
          * * repeated string resource_names = 2; + * * @return A list containing the resourceNames. */ - public com.google.protobuf.ProtocolStringList - getResourceNamesList() { + public com.google.protobuf.ProtocolStringList getResourceNamesList() { return resourceNames_; } /** + * + * *
              * The names of logging resources to collect logs for. Currently only projects
              * are supported. If empty, the widget will default to the host project.
              * 
          * * repeated string resource_names = 2; + * * @return The count of resourceNames. */ public int getResourceNamesCount() { return resourceNames_.size(); } /** + * + * *
              * The names of logging resources to collect logs for. Currently only projects
              * are supported. If empty, the widget will default to the host project.
              * 
          * * repeated string resource_names = 2; + * * @param index The index of the element to return. * @return The resourceNames at the given index. */ @@ -142,21 +173,24 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** + * + * *
              * The names of logging resources to collect logs for. Currently only projects
              * are supported. If empty, the widget will default to the host project.
              * 
          * * repeated string resource_names = 2; + * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - public com.google.protobuf.ByteString - getResourceNamesBytes(int index) { + public com.google.protobuf.ByteString getResourceNamesBytes(int index) { return resourceNames_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); } @@ -204,17 +237,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.LogsPanel)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.LogsPanel other = (com.google.monitoring.dashboard.v1.LogsPanel) obj; + com.google.monitoring.dashboard.v1.LogsPanel other = + (com.google.monitoring.dashboard.v1.LogsPanel) obj; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getResourceNamesList() - .equals(other.getResourceNamesList())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getResourceNamesList().equals(other.getResourceNamesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,146 +269,149 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.LogsPanel parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.LogsPanel parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.LogsPanel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.LogsPanel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.LogsPanel 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.LogsPanel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.LogsPanel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.LogsPanel parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.LogsPanel parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.LogsPanel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.LogsPanel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.LogsPanel parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.LogsPanel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.LogsPanel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.LogsPanel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A widget that displays a stream of log.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.LogsPanel} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.LogsPanel) com.google.monitoring.dashboard.v1.LogsPanelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.LogsPanelProto.internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.LogsPanelProto + .internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.LogsPanelProto.internal_static_google_monitoring_dashboard_v1_LogsPanel_fieldAccessorTable + return com.google.monitoring.dashboard.v1.LogsPanelProto + .internal_static_google_monitoring_dashboard_v1_LogsPanel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.LogsPanel.class, com.google.monitoring.dashboard.v1.LogsPanel.Builder.class); + com.google.monitoring.dashboard.v1.LogsPanel.class, + com.google.monitoring.dashboard.v1.LogsPanel.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.LogsPanel.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; filter_ = ""; - resourceNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.LogsPanelProto.internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.LogsPanelProto + .internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor; } @java.lang.Override @@ -395,8 +430,11 @@ public com.google.monitoring.dashboard.v1.LogsPanel build() { @java.lang.Override public com.google.monitoring.dashboard.v1.LogsPanel buildPartial() { - com.google.monitoring.dashboard.v1.LogsPanel result = new com.google.monitoring.dashboard.v1.LogsPanel(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.LogsPanel result = + new com.google.monitoring.dashboard.v1.LogsPanel(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -416,38 +454,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.LogsPanel result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.LogsPanel) { - return mergeFrom((com.google.monitoring.dashboard.v1.LogsPanel)other); + return mergeFrom((com.google.monitoring.dashboard.v1.LogsPanel) other); } else { super.mergeFrom(other); return this; @@ -497,23 +536,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceNamesIsMutable(); - resourceNames_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceNamesIsMutable(); + resourceNames_.add(s); + break; + } // case 18 + 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) { @@ -523,10 +565,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object filter_ = ""; /** + * + * *
                * A filter that chooses which log entries to return.  See [Advanced Logs
                * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -535,13 +580,13 @@ public Builder mergeFrom(
                * 
          * * string filter = 1; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -550,6 +595,8 @@ public java.lang.String getFilter() { } } /** + * + * *
                * A filter that chooses which log entries to return.  See [Advanced Logs
                * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -558,15 +605,14 @@ public java.lang.String getFilter() {
                * 
          * * string filter = 1; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -574,6 +620,8 @@ public java.lang.String getFilter() { } } /** + * + * *
                * A filter that chooses which log entries to return.  See [Advanced Logs
                * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -582,18 +630,22 @@ public java.lang.String getFilter() {
                * 
          * * string filter = 1; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                * A filter that chooses which log entries to return.  See [Advanced Logs
                * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -602,6 +654,7 @@ public Builder setFilter(
                * 
          * * string filter = 1; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -611,6 +664,8 @@ public Builder clearFilter() { return this; } /** + * + * *
                * A filter that chooses which log entries to return.  See [Advanced Logs
                * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -619,12 +674,14 @@ public Builder clearFilter() {
                * 
          * * string filter = 1; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000001; @@ -634,6 +691,7 @@ public Builder setFilterBytes( private com.google.protobuf.LazyStringArrayList resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureResourceNamesIsMutable() { if (!resourceNames_.isModifiable()) { resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_); @@ -641,38 +699,46 @@ private void ensureResourceNamesIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; + * * @return A list containing the resourceNames. */ - public com.google.protobuf.ProtocolStringList - getResourceNamesList() { + public com.google.protobuf.ProtocolStringList getResourceNamesList() { resourceNames_.makeImmutable(); return resourceNames_; } /** + * + * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; + * * @return The count of resourceNames. */ public int getResourceNamesCount() { return resourceNames_.size(); } /** + * + * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; + * * @param index The index of the element to return. * @return The resourceNames at the given index. */ @@ -680,33 +746,39 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** + * + * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; + * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - public com.google.protobuf.ByteString - getResourceNamesBytes(int index) { + public com.google.protobuf.ByteString getResourceNamesBytes(int index) { return resourceNames_.getByteString(index); } /** + * + * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; + * * @param index The index to set the value at. * @param value The resourceNames to set. * @return This builder for chaining. */ - public Builder setResourceNames( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceNamesIsMutable(); resourceNames_.set(index, value); bitField0_ |= 0x00000002; @@ -714,18 +786,22 @@ public Builder setResourceNames( return this; } /** + * + * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; + * * @param value The resourceNames to add. * @return This builder for chaining. */ - public Builder addResourceNames( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceNamesIsMutable(); resourceNames_.add(value); bitField0_ |= 0x00000002; @@ -733,53 +809,61 @@ public Builder addResourceNames( return this; } /** + * + * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; + * * @param values The resourceNames to add. * @return This builder for chaining. */ - public Builder addAllResourceNames( - java.lang.Iterable values) { + public Builder addAllResourceNames(java.lang.Iterable values) { ensureResourceNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceNames_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; + * * @return This builder for chaining. */ public Builder clearResourceNames() { - resourceNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
                * The names of logging resources to collect logs for. Currently only projects
                * are supported. If empty, the widget will default to the host project.
                * 
          * * repeated string resource_names = 2; + * * @param value The bytes of the resourceNames to add. * @return This builder for chaining. */ - public Builder addResourceNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureResourceNamesIsMutable(); resourceNames_.add(value); @@ -787,9 +871,9 @@ public Builder addResourceNamesBytes( onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -799,12 +883,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.LogsPanel) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.LogsPanel) private static final com.google.monitoring.dashboard.v1.LogsPanel DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.LogsPanel(); } @@ -813,27 +897,27 @@ public static com.google.monitoring.dashboard.v1.LogsPanel getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogsPanel 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogsPanel 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; @@ -848,6 +932,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.LogsPanel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java similarity index 73% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java index d6b50714a83a..aaec179d41dc 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/logs_panel.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface LogsPanelOrBuilder extends +public interface LogsPanelOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.LogsPanel) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * A filter that chooses which log entries to return.  See [Advanced Logs
              * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -17,10 +35,13 @@ public interface LogsPanelOrBuilder extends
              * 
          * * string filter = 1; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
              * A filter that chooses which log entries to return.  See [Advanced Logs
              * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
          @@ -29,53 +50,63 @@ public interface LogsPanelOrBuilder extends
              * 
          * * string filter = 1; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
              * The names of logging resources to collect logs for. Currently only projects
              * are supported. If empty, the widget will default to the host project.
              * 
          * * repeated string resource_names = 2; + * * @return A list containing the resourceNames. */ - java.util.List - getResourceNamesList(); + java.util.List getResourceNamesList(); /** + * + * *
              * The names of logging resources to collect logs for. Currently only projects
              * are supported. If empty, the widget will default to the host project.
              * 
          * * repeated string resource_names = 2; + * * @return The count of resourceNames. */ int getResourceNamesCount(); /** + * + * *
              * The names of logging resources to collect logs for. Currently only projects
              * are supported. If empty, the widget will default to the host project.
              * 
          * * repeated string resource_names = 2; + * * @param index The index of the element to return. * @return The resourceNames at the given index. */ java.lang.String getResourceNames(int index); /** + * + * *
              * The names of logging resources to collect logs for. Currently only projects
              * are supported. If empty, the widget will default to the host project.
              * 
          * * repeated string resource_names = 2; + * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - com.google.protobuf.ByteString - getResourceNamesBytes(int index); + com.google.protobuf.ByteString getResourceNamesBytes(int index); } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java new file mode 100644 index 000000000000..b2c145b02ae5 --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java @@ -0,0 +1,69 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/logs_panel.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class LogsPanelProto { + private LogsPanelProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_LogsPanel_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n/google/monitoring/dashboard/v1/logs_pa" + + "nel.proto\022\036google.monitoring.dashboard.v" + + "1\"3\n\tLogsPanel\022\016\n\006filter\030\001 \001(\t\022\026\n\016resour" + + "ce_names\030\002 \003(\tB\367\001\n\"com.google.monitoring" + + ".dashboard.v1B\016LogsPanelProtoP\001ZFcloud.g" + + "oogle.com/go/monitoring/dashboard/apiv1/" + + "dashboardpb;dashboardpb\252\002$Google.Cloud.M" + + "onitoring.Dashboard.V1\312\002$Google\\Cloud\\Mo" + + "nitoring\\Dashboard\\V1\352\002(Google::Cloud::M" + + "onitoring::Dashboard::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_LogsPanel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor, + new java.lang.String[] { + "Filter", "ResourceNames", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java new file mode 100644 index 000000000000..a0cca913da48 --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java @@ -0,0 +1,192 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/metrics.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class MetricsProto { + private MetricsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_Threshold_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_Threshold_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/monitoring/dashboard/v1/metrics" + + ".proto\022\036google.monitoring.dashboard.v1\032\037" + + "google/api/field_behavior.proto\032+google/" + + "monitoring/dashboard/v1/common.proto\"\302\002\n" + + "\017TimeSeriesQuery\022N\n\022time_series_filter\030\001" + + " \001(\01320.google.monitoring.dashboard.v1.Ti" + + "meSeriesFilterH\000\022Y\n\030time_series_filter_r" + + "atio\030\002 \001(\01325.google.monitoring.dashboard" + + ".v1.TimeSeriesFilterRatioH\000\022$\n\032time_seri" + + "es_query_language\030\003 \001(\tH\000\022\032\n\020prometheus_" + + "query\030\006 \001(\tH\000\022\025\n\runit_override\030\005 \001(\t\022!\n\024" + + "output_full_duration\030\007 \001(\010B\003\340A\001B\010\n\006sourc" + + "e\"\212\003\n\020TimeSeriesFilter\022\023\n\006filter\030\001 \001(\tB\003" + + "\340A\002\022@\n\013aggregation\030\002 \001(\0132+.google.monito" + + "ring.dashboard.v1.Aggregation\022J\n\025seconda" + + "ry_aggregation\030\003 \001(\0132+.google.monitoring" + + ".dashboard.v1.Aggregation\022W\n\027pick_time_s" + + "eries_filter\030\004 \001(\01324.google.monitoring.d" + + "ashboard.v1.PickTimeSeriesFilterH\000\022i\n\036st" + + "atistical_time_series_filter\030\005 \001(\0132;.goo" + + "gle.monitoring.dashboard.v1.StatisticalT" + + "imeSeriesFilterB\002\030\001H\000B\017\n\routput_filter\"\306" + + "\004\n\025TimeSeriesFilterRatio\022R\n\tnumerator\030\001 " + + "\001(\0132?.google.monitoring.dashboard.v1.Tim" + + "eSeriesFilterRatio.RatioPart\022T\n\013denomina" + + "tor\030\002 \001(\0132?.google.monitoring.dashboard." + + "v1.TimeSeriesFilterRatio.RatioPart\022J\n\025se" + + "condary_aggregation\030\003 \001(\0132+.google.monit" + + "oring.dashboard.v1.Aggregation\022W\n\027pick_t" + + "ime_series_filter\030\004 \001(\01324.google.monitor" + + "ing.dashboard.v1.PickTimeSeriesFilterH\000\022" + + "i\n\036statistical_time_series_filter\030\005 \001(\0132" + + ";.google.monitoring.dashboard.v1.Statist" + + "icalTimeSeriesFilterB\002\030\001H\000\032b\n\tRatioPart\022" + + "\023\n\006filter\030\001 \001(\tB\003\340A\002\022@\n\013aggregation\030\002 \001(" + + "\0132+.google.monitoring.dashboard.v1.Aggre" + + "gationB\017\n\routput_filter\"\252\003\n\tThreshold\022\r\n" + + "\005label\030\001 \001(\t\022\r\n\005value\030\002 \001(\001\022>\n\005color\030\003 \001" + + "(\0162/.google.monitoring.dashboard.v1.Thre" + + "shold.Color\022F\n\tdirection\030\004 \001(\01623.google." + + "monitoring.dashboard.v1.Threshold.Direct" + + "ion\022I\n\013target_axis\030\005 \001(\01624.google.monito" + + "ring.dashboard.v1.Threshold.TargetAxis\"3" + + "\n\005Color\022\025\n\021COLOR_UNSPECIFIED\020\000\022\n\n\006YELLOW" + + "\020\004\022\007\n\003RED\020\006\"<\n\tDirection\022\031\n\025DIRECTION_UN" + + "SPECIFIED\020\000\022\t\n\005ABOVE\020\001\022\t\n\005BELOW\020\002\"9\n\nTar" + + "getAxis\022\033\n\027TARGET_AXIS_UNSPECIFIED\020\000\022\006\n\002" + + "Y1\020\001\022\006\n\002Y2\020\002*Q\n\016SparkChartType\022 \n\034SPARK_" + + "CHART_TYPE_UNSPECIFIED\020\000\022\016\n\nSPARK_LINE\020\001" + + "\022\r\n\tSPARK_BAR\020\002B\365\001\n\"com.google.monitorin" + + "g.dashboard.v1B\014MetricsProtoP\001ZFcloud.go" + + "ogle.com/go/monitoring/dashboard/apiv1/d" + + "ashboardpb;dashboardpb\252\002$Google.Cloud.Mo" + + "nitoring.Dashboard.V1\312\002$Google\\Cloud\\Mon" + + "itoring\\Dashboard\\V1\352\002(Google::Cloud::Mo" + + "nitoring::Dashboard::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.monitoring.dashboard.v1.CommonProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor, + new java.lang.String[] { + "TimeSeriesFilter", + "TimeSeriesFilterRatio", + "TimeSeriesQueryLanguage", + "PrometheusQuery", + "UnitOverride", + "OutputFullDuration", + "Source", + }); + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor, + new java.lang.String[] { + "Filter", + "Aggregation", + "SecondaryAggregation", + "PickTimeSeriesFilter", + "StatisticalTimeSeriesFilter", + "OutputFilter", + }); + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor, + new java.lang.String[] { + "Numerator", + "Denominator", + "SecondaryAggregation", + "PickTimeSeriesFilter", + "StatisticalTimeSeriesFilter", + "OutputFilter", + }); + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor = + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor + .getNestedTypes() + .get(0); + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor, + new java.lang.String[] { + "Filter", "Aggregation", + }); + internal_static_google_monitoring_dashboard_v1_Threshold_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_monitoring_dashboard_v1_Threshold_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_Threshold_descriptor, + new java.lang.String[] { + "Label", "Value", "Color", "Direction", "TargetAxis", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.monitoring.dashboard.v1.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java similarity index 73% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java index 4b55ae44d073..459b6aa30d04 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/layouts.proto @@ -5,6 +20,8 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A mosaic layout divides the available space into a grid of blocks, and
            * overlays the grid with tiles. Unlike `GridLayout`, tiles may span multiple
          @@ -13,44 +30,49 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.MosaicLayout}
            */
          -public final class MosaicLayout extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class MosaicLayout extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.MosaicLayout)
               MosaicLayoutOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use MosaicLayout.newBuilder() to construct.
             private MosaicLayout(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private MosaicLayout() {
               tiles_ = java.util.Collections.emptyList();
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new MosaicLayout();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.LayoutsProto
          +        .internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.LayoutsProto
          +        .internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.MosaicLayout.class, com.google.monitoring.dashboard.v1.MosaicLayout.Builder.class);
          +            com.google.monitoring.dashboard.v1.MosaicLayout.class,
          +            com.google.monitoring.dashboard.v1.MosaicLayout.Builder.class);
             }
           
          -  public interface TileOrBuilder extends
          +  public interface TileOrBuilder
          +      extends
                 // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.MosaicLayout.Tile)
                 com.google.protobuf.MessageOrBuilder {
           
               /**
          +     *
          +     *
                * 
                * The zero-indexed position of the tile in grid blocks relative to the
                * left edge of the grid. Tiles must be contained within the specified
          @@ -58,62 +80,80 @@ public interface TileOrBuilder extends
                * 
          * * int32 x_pos = 1; + * * @return The xPos. */ int getXPos(); /** + * + * *
                * The zero-indexed position of the tile in grid blocks relative to the
                * top edge of the grid. `y_pos` cannot be negative.
                * 
          * * int32 y_pos = 2; + * * @return The yPos. */ int getYPos(); /** + * + * *
                * The width of the tile, measured in grid blocks. Tiles must have a
                * minimum width of 1.
                * 
          * * int32 width = 3; + * * @return The width. */ int getWidth(); /** + * + * *
                * The height of the tile, measured in grid blocks. Tiles must have a
                * minimum height of 1.
                * 
          * * int32 height = 4; + * * @return The height. */ int getHeight(); /** + * + * *
                * The informational widget contained in the tile. For example an `XyChart`.
                * 
          * * .google.monitoring.dashboard.v1.Widget widget = 5; + * * @return Whether the widget field is set. */ boolean hasWidget(); /** + * + * *
                * The informational widget contained in the tile. For example an `XyChart`.
                * 
          * * .google.monitoring.dashboard.v1.Widget widget = 5; + * * @return The widget. */ com.google.monitoring.dashboard.v1.Widget getWidget(); /** + * + * *
                * The informational widget contained in the tile. For example an `XyChart`.
                * 
          @@ -123,6 +163,8 @@ public interface TileOrBuilder extends com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetOrBuilder(); } /** + * + * *
              * A single tile in the mosaic. The placement and size of the tile are
              * configurable.
          @@ -130,42 +172,45 @@ public interface TileOrBuilder extends
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.MosaicLayout.Tile}
              */
          -  public static final class Tile extends
          -      com.google.protobuf.GeneratedMessageV3 implements
          +  public static final class Tile extends com.google.protobuf.GeneratedMessageV3
          +      implements
                 // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.MosaicLayout.Tile)
                 TileOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +    private static final long serialVersionUID = 0L;
               // Use Tile.newBuilder() to construct.
               private Tile(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
          -    private Tile() {
          -    }
          +
          +    private Tile() {}
           
               @java.lang.Override
               @SuppressWarnings({"unused"})
          -    protected java.lang.Object newInstance(
          -        UnusedPrivateParameter unused) {
          +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new Tile();
               }
           
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto
          +          .internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.LayoutsProto
          +          .internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.MosaicLayout.Tile.class, com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder.class);
          +              com.google.monitoring.dashboard.v1.MosaicLayout.Tile.class,
          +              com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder.class);
               }
           
               private int bitField0_;
               public static final int X_POS_FIELD_NUMBER = 1;
               private int xPos_ = 0;
               /**
          +     *
          +     *
                * 
                * The zero-indexed position of the tile in grid blocks relative to the
                * left edge of the grid. Tiles must be contained within the specified
          @@ -173,6 +218,7 @@ protected java.lang.Object newInstance(
                * 
          * * int32 x_pos = 1; + * * @return The xPos. */ @java.lang.Override @@ -183,12 +229,15 @@ public int getXPos() { public static final int Y_POS_FIELD_NUMBER = 2; private int yPos_ = 0; /** + * + * *
                * The zero-indexed position of the tile in grid blocks relative to the
                * top edge of the grid. `y_pos` cannot be negative.
                * 
          * * int32 y_pos = 2; + * * @return The yPos. */ @java.lang.Override @@ -199,12 +248,15 @@ public int getYPos() { public static final int WIDTH_FIELD_NUMBER = 3; private int width_ = 0; /** + * + * *
                * The width of the tile, measured in grid blocks. Tiles must have a
                * minimum width of 1.
                * 
          * * int32 width = 3; + * * @return The width. */ @java.lang.Override @@ -215,12 +267,15 @@ public int getWidth() { public static final int HEIGHT_FIELD_NUMBER = 4; private int height_ = 0; /** + * + * *
                * The height of the tile, measured in grid blocks. Tiles must have a
                * minimum height of 1.
                * 
          * * int32 height = 4; + * * @return The height. */ @java.lang.Override @@ -231,11 +286,14 @@ public int getHeight() { public static final int WIDGET_FIELD_NUMBER = 5; private com.google.monitoring.dashboard.v1.Widget widget_; /** + * + * *
                * The informational widget contained in the tile. For example an `XyChart`.
                * 
          * * .google.monitoring.dashboard.v1.Widget widget = 5; + * * @return Whether the widget field is set. */ @java.lang.Override @@ -243,18 +301,25 @@ public boolean hasWidget() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * The informational widget contained in the tile. For example an `XyChart`.
                * 
          * * .google.monitoring.dashboard.v1.Widget widget = 5; + * * @return The widget. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Widget getWidget() { - return widget_ == null ? com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() : widget_; + return widget_ == null + ? com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() + : widget_; } /** + * + * *
                * The informational widget contained in the tile. For example an `XyChart`.
                * 
          @@ -263,10 +328,13 @@ public com.google.monitoring.dashboard.v1.Widget getWidget() { */ @java.lang.Override public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetOrBuilder() { - return widget_ == null ? com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() : widget_; + return widget_ == null + ? com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() + : widget_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +346,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (xPos_ != 0) { output.writeInt32(1, xPos_); } @@ -305,24 +372,19 @@ public int getSerializedSize() { size = 0; if (xPos_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, xPos_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, xPos_); } if (yPos_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, yPos_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, yPos_); } if (width_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, width_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, width_); } if (height_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, height_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, height_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getWidget()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getWidget()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -332,25 +394,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.MosaicLayout.Tile)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.MosaicLayout.Tile other = (com.google.monitoring.dashboard.v1.MosaicLayout.Tile) obj; + com.google.monitoring.dashboard.v1.MosaicLayout.Tile other = + (com.google.monitoring.dashboard.v1.MosaicLayout.Tile) obj; - if (getXPos() - != other.getXPos()) return false; - if (getYPos() - != other.getYPos()) return false; - if (getWidth() - != other.getWidth()) return false; - if (getHeight() - != other.getHeight()) return false; + if (getXPos() != other.getXPos()) return false; + if (getYPos() != other.getYPos()) return false; + if (getWidth() != other.getWidth()) return false; + if (getHeight() != other.getHeight()) return false; if (hasWidget() != other.hasWidget()) return false; if (hasWidget()) { - if (!getWidget() - .equals(other.getWidget())) return false; + if (!getWidget().equals(other.getWidget())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -381,89 +439,94 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.MosaicLayout.Tile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile 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.MosaicLayout.Tile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.MosaicLayout.Tile prototype) { + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.MosaicLayout.Tile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -473,6 +536,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                * A single tile in the mosaic. The placement and size of the tile are
                * configurable.
          @@ -480,21 +545,24 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.monitoring.dashboard.v1.MosaicLayout.Tile}
                */
          -    public static final class Builder extends
          -        com.google.protobuf.GeneratedMessageV3.Builder implements
          +    public static final class Builder
          +        extends com.google.protobuf.GeneratedMessageV3.Builder
          +        implements
                   // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.MosaicLayout.Tile)
                   com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder {
          -      public static final com.google.protobuf.Descriptors.Descriptor
          -          getDescriptor() {
          -        return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor;
          +      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +        return com.google.monitoring.dashboard.v1.LayoutsProto
          +            .internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor;
                 }
           
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
          -        return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable
          +        return com.google.monitoring.dashboard.v1.LayoutsProto
          +            .internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
          -                com.google.monitoring.dashboard.v1.MosaicLayout.Tile.class, com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder.class);
          +                com.google.monitoring.dashboard.v1.MosaicLayout.Tile.class,
          +                com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder.class);
                 }
           
                 // Construct using com.google.monitoring.dashboard.v1.MosaicLayout.Tile.newBuilder()
          @@ -502,17 +570,17 @@ private Builder() {
                   maybeForceBuilderInitialization();
                 }
           
          -      private Builder(
          -          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   super(parent);
                   maybeForceBuilderInitialization();
                 }
          +
                 private void maybeForceBuilderInitialization() {
          -        if (com.google.protobuf.GeneratedMessageV3
          -                .alwaysUseFieldBuilders) {
          +        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                     getWidgetFieldBuilder();
                   }
                 }
          +
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
          @@ -530,9 +598,9 @@ public Builder clear() {
                 }
           
                 @java.lang.Override
          -      public com.google.protobuf.Descriptors.Descriptor
          -          getDescriptorForType() {
          -        return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor;
          +      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +        return com.google.monitoring.dashboard.v1.LayoutsProto
          +            .internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor;
                 }
           
                 @java.lang.Override
          @@ -551,8 +619,11 @@ public com.google.monitoring.dashboard.v1.MosaicLayout.Tile build() {
           
                 @java.lang.Override
                 public com.google.monitoring.dashboard.v1.MosaicLayout.Tile buildPartial() {
          -        com.google.monitoring.dashboard.v1.MosaicLayout.Tile result = new com.google.monitoring.dashboard.v1.MosaicLayout.Tile(this);
          -        if (bitField0_ != 0) { buildPartial0(result); }
          +        com.google.monitoring.dashboard.v1.MosaicLayout.Tile result =
          +            new com.google.monitoring.dashboard.v1.MosaicLayout.Tile(this);
          +        if (bitField0_ != 0) {
          +          buildPartial0(result);
          +        }
                   onBuilt();
                   return result;
                 }
          @@ -573,9 +644,7 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.MosaicLayout.Tile
                   }
                   int to_bitField0_ = 0;
                   if (((from_bitField0_ & 0x00000010) != 0)) {
          -          result.widget_ = widgetBuilder_ == null
          -              ? widget_
          -              : widgetBuilder_.build();
          +          result.widget_ = widgetBuilder_ == null ? widget_ : widgetBuilder_.build();
                     to_bitField0_ |= 0x00000001;
                   }
                   result.bitField0_ |= to_bitField0_;
          @@ -585,38 +654,41 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.MosaicLayout.Tile
                 public Builder clone() {
                   return super.clone();
                 }
          +
                 @java.lang.Override
                 public Builder setField(
          -          com.google.protobuf.Descriptors.FieldDescriptor field,
          -          java.lang.Object value) {
          +          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) {
          +      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) {
          +      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) {
          +          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) {
          +          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.MosaicLayout.Tile) {
          -          return mergeFrom((com.google.monitoring.dashboard.v1.MosaicLayout.Tile)other);
          +          return mergeFrom((com.google.monitoring.dashboard.v1.MosaicLayout.Tile) other);
                   } else {
                     super.mergeFrom(other);
                     return this;
          @@ -624,7 +696,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                 }
           
                 public Builder mergeFrom(com.google.monitoring.dashboard.v1.MosaicLayout.Tile other) {
          -        if (other == com.google.monitoring.dashboard.v1.MosaicLayout.Tile.getDefaultInstance()) return this;
          +        if (other == com.google.monitoring.dashboard.v1.MosaicLayout.Tile.getDefaultInstance())
          +          return this;
                   if (other.getXPos() != 0) {
                     setXPos(other.getXPos());
                   }
          @@ -666,39 +739,43 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
          -              case 8: {
          -                xPos_ = input.readInt32();
          -                bitField0_ |= 0x00000001;
          -                break;
          -              } // case 8
          -              case 16: {
          -                yPos_ = input.readInt32();
          -                bitField0_ |= 0x00000002;
          -                break;
          -              } // case 16
          -              case 24: {
          -                width_ = input.readInt32();
          -                bitField0_ |= 0x00000004;
          -                break;
          -              } // case 24
          -              case 32: {
          -                height_ = input.readInt32();
          -                bitField0_ |= 0x00000008;
          -                break;
          -              } // case 32
          -              case 42: {
          -                input.readMessage(
          -                    getWidgetFieldBuilder().getBuilder(),
          -                    extensionRegistry);
          -                bitField0_ |= 0x00000010;
          -                break;
          -              } // case 42
          -              default: {
          -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                  done = true; // was an endgroup tag
          -                }
          -                break;
          -              } // default:
          +              case 8:
          +                {
          +                  xPos_ = input.readInt32();
          +                  bitField0_ |= 0x00000001;
          +                  break;
          +                } // case 8
          +              case 16:
          +                {
          +                  yPos_ = input.readInt32();
          +                  bitField0_ |= 0x00000002;
          +                  break;
          +                } // case 16
          +              case 24:
          +                {
          +                  width_ = input.readInt32();
          +                  bitField0_ |= 0x00000004;
          +                  break;
          +                } // case 24
          +              case 32:
          +                {
          +                  height_ = input.readInt32();
          +                  bitField0_ |= 0x00000008;
          +                  break;
          +                } // case 32
          +              case 42:
          +                {
          +                  input.readMessage(getWidgetFieldBuilder().getBuilder(), extensionRegistry);
          +                  bitField0_ |= 0x00000010;
          +                  break;
          +                } // case 42
          +              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) {
          @@ -708,10 +785,13 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
          +
                 private int bitField0_;
           
          -      private int xPos_ ;
          +      private int xPos_;
                 /**
          +       *
          +       *
                  * 
                  * The zero-indexed position of the tile in grid blocks relative to the
                  * left edge of the grid. Tiles must be contained within the specified
          @@ -719,6 +799,7 @@ public Builder mergeFrom(
                  * 
          * * int32 x_pos = 1; + * * @return The xPos. */ @java.lang.Override @@ -726,6 +807,8 @@ public int getXPos() { return xPos_; } /** + * + * *
                  * The zero-indexed position of the tile in grid blocks relative to the
                  * left edge of the grid. Tiles must be contained within the specified
          @@ -733,6 +816,7 @@ public int getXPos() {
                  * 
          * * int32 x_pos = 1; + * * @param value The xPos to set. * @return This builder for chaining. */ @@ -744,6 +828,8 @@ public Builder setXPos(int value) { return this; } /** + * + * *
                  * The zero-indexed position of the tile in grid blocks relative to the
                  * left edge of the grid. Tiles must be contained within the specified
          @@ -751,6 +837,7 @@ public Builder setXPos(int value) {
                  * 
          * * int32 x_pos = 1; + * * @return This builder for chaining. */ public Builder clearXPos() { @@ -760,14 +847,17 @@ public Builder clearXPos() { return this; } - private int yPos_ ; + private int yPos_; /** + * + * *
                  * The zero-indexed position of the tile in grid blocks relative to the
                  * top edge of the grid. `y_pos` cannot be negative.
                  * 
          * * int32 y_pos = 2; + * * @return The yPos. */ @java.lang.Override @@ -775,12 +865,15 @@ public int getYPos() { return yPos_; } /** + * + * *
                  * The zero-indexed position of the tile in grid blocks relative to the
                  * top edge of the grid. `y_pos` cannot be negative.
                  * 
          * * int32 y_pos = 2; + * * @param value The yPos to set. * @return This builder for chaining. */ @@ -792,12 +885,15 @@ public Builder setYPos(int value) { return this; } /** + * + * *
                  * The zero-indexed position of the tile in grid blocks relative to the
                  * top edge of the grid. `y_pos` cannot be negative.
                  * 
          * * int32 y_pos = 2; + * * @return This builder for chaining. */ public Builder clearYPos() { @@ -807,14 +903,17 @@ public Builder clearYPos() { return this; } - private int width_ ; + private int width_; /** + * + * *
                  * The width of the tile, measured in grid blocks. Tiles must have a
                  * minimum width of 1.
                  * 
          * * int32 width = 3; + * * @return The width. */ @java.lang.Override @@ -822,12 +921,15 @@ public int getWidth() { return width_; } /** + * + * *
                  * The width of the tile, measured in grid blocks. Tiles must have a
                  * minimum width of 1.
                  * 
          * * int32 width = 3; + * * @param value The width to set. * @return This builder for chaining. */ @@ -839,12 +941,15 @@ public Builder setWidth(int value) { return this; } /** + * + * *
                  * The width of the tile, measured in grid blocks. Tiles must have a
                  * minimum width of 1.
                  * 
          * * int32 width = 3; + * * @return This builder for chaining. */ public Builder clearWidth() { @@ -854,14 +959,17 @@ public Builder clearWidth() { return this; } - private int height_ ; + private int height_; /** + * + * *
                  * The height of the tile, measured in grid blocks. Tiles must have a
                  * minimum height of 1.
                  * 
          * * int32 height = 4; + * * @return The height. */ @java.lang.Override @@ -869,12 +977,15 @@ public int getHeight() { return height_; } /** + * + * *
                  * The height of the tile, measured in grid blocks. Tiles must have a
                  * minimum height of 1.
                  * 
          * * int32 height = 4; + * * @param value The height to set. * @return This builder for chaining. */ @@ -886,12 +997,15 @@ public Builder setHeight(int value) { return this; } /** + * + * *
                  * The height of the tile, measured in grid blocks. Tiles must have a
                  * minimum height of 1.
                  * 
          * * int32 height = 4; + * * @return This builder for chaining. */ public Builder clearHeight() { @@ -903,34 +1017,47 @@ public Builder clearHeight() { private com.google.monitoring.dashboard.v1.Widget widget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder> widgetBuilder_; + com.google.monitoring.dashboard.v1.Widget, + com.google.monitoring.dashboard.v1.Widget.Builder, + com.google.monitoring.dashboard.v1.WidgetOrBuilder> + widgetBuilder_; /** + * + * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          * * .google.monitoring.dashboard.v1.Widget widget = 5; + * * @return Whether the widget field is set. */ public boolean hasWidget() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          * * .google.monitoring.dashboard.v1.Widget widget = 5; + * * @return The widget. */ public com.google.monitoring.dashboard.v1.Widget getWidget() { if (widgetBuilder_ == null) { - return widget_ == null ? com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() : widget_; + return widget_ == null + ? com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() + : widget_; } else { return widgetBuilder_.getMessage(); } } /** + * + * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          @@ -951,14 +1078,15 @@ public Builder setWidget(com.google.monitoring.dashboard.v1.Widget value) { return this; } /** + * + * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          * * .google.monitoring.dashboard.v1.Widget widget = 5; */ - public Builder setWidget( - com.google.monitoring.dashboard.v1.Widget.Builder builderForValue) { + public Builder setWidget(com.google.monitoring.dashboard.v1.Widget.Builder builderForValue) { if (widgetBuilder_ == null) { widget_ = builderForValue.build(); } else { @@ -969,6 +1097,8 @@ public Builder setWidget( return this; } /** + * + * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          @@ -977,9 +1107,9 @@ public Builder setWidget( */ public Builder mergeWidget(com.google.monitoring.dashboard.v1.Widget value) { if (widgetBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - widget_ != null && - widget_ != com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && widget_ != null + && widget_ != com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()) { getWidgetBuilder().mergeFrom(value); } else { widget_ = value; @@ -994,6 +1124,8 @@ public Builder mergeWidget(com.google.monitoring.dashboard.v1.Widget value) { return this; } /** + * + * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          @@ -1011,6 +1143,8 @@ public Builder clearWidget() { return this; } /** + * + * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          @@ -1023,6 +1157,8 @@ public com.google.monitoring.dashboard.v1.Widget.Builder getWidgetBuilder() { return getWidgetFieldBuilder().getBuilder(); } /** + * + * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          @@ -1033,11 +1169,14 @@ public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetOrBuilder() { if (widgetBuilder_ != null) { return widgetBuilder_.getMessageOrBuilder(); } else { - return widget_ == null ? - com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() : widget_; + return widget_ == null + ? com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() + : widget_; } } /** + * + * *
                  * The informational widget contained in the tile. For example an `XyChart`.
                  * 
          @@ -1045,18 +1184,22 @@ public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetOrBuilder() { * .google.monitoring.dashboard.v1.Widget widget = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder> + com.google.monitoring.dashboard.v1.Widget, + com.google.monitoring.dashboard.v1.Widget.Builder, + com.google.monitoring.dashboard.v1.WidgetOrBuilder> getWidgetFieldBuilder() { if (widgetBuilder_ == null) { - widgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder>( - getWidget(), - getParentForChildren(), - isClean()); + widgetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Widget, + com.google.monitoring.dashboard.v1.Widget.Builder, + com.google.monitoring.dashboard.v1.WidgetOrBuilder>( + getWidget(), getParentForChildren(), isClean()); widget_ = null; } return widgetBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1069,12 +1212,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.MosaicLayout.Tile) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.MosaicLayout.Tile) private static final com.google.monitoring.dashboard.v1.MosaicLayout.Tile DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.MosaicLayout.Tile(); } @@ -1083,27 +1226,28 @@ public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Tile 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tile 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; @@ -1118,18 +1262,20 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.MosaicLayout.Tile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int COLUMNS_FIELD_NUMBER = 1; private int columns_ = 0; /** + * + * *
              * The number of columns in the mosaic grid. The number of columns must be
              * between 1 and 12, inclusive.
              * 
          * * int32 columns = 1; + * * @return The columns. */ @java.lang.Override @@ -1138,9 +1284,12 @@ public int getColumns() { } public static final int TILES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List tiles_; /** + * + * *
              * The tiles to display.
              * 
          @@ -1152,6 +1301,8 @@ public java.util.List getT return tiles_; } /** + * + * *
              * The tiles to display.
              * 
          @@ -1159,11 +1310,13 @@ public java.util.List getT * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ @java.lang.Override - public java.util.List + public java.util.List getTilesOrBuilderList() { return tiles_; } /** + * + * *
              * The tiles to display.
              * 
          @@ -1175,6 +1328,8 @@ public int getTilesCount() { return tiles_.size(); } /** + * + * *
              * The tiles to display.
              * 
          @@ -1186,6 +1341,8 @@ public com.google.monitoring.dashboard.v1.MosaicLayout.Tile getTiles(int index) return tiles_.get(index); } /** + * + * *
              * The tiles to display.
              * 
          @@ -1199,6 +1356,7 @@ public com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder getTilesOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1210,8 +1368,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (columns_ != 0) { output.writeInt32(1, columns_); } @@ -1228,12 +1385,10 @@ public int getSerializedSize() { size = 0; if (columns_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, columns_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, columns_); } for (int i = 0; i < tiles_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, tiles_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, tiles_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1243,17 +1398,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.MosaicLayout)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.MosaicLayout other = (com.google.monitoring.dashboard.v1.MosaicLayout) obj; + com.google.monitoring.dashboard.v1.MosaicLayout other = + (com.google.monitoring.dashboard.v1.MosaicLayout) obj; - if (getColumns() - != other.getColumns()) return false; - if (!getTilesList() - .equals(other.getTilesList())) return false; + if (getColumns() != other.getColumns()) return false; + if (!getTilesList().equals(other.getTilesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1276,99 +1430,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.MosaicLayout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.MosaicLayout 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.MosaicLayout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.MosaicLayout parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.MosaicLayout parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.MosaicLayout parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.MosaicLayout prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A mosaic layout divides the available space into a grid of blocks, and
              * overlays the grid with tiles. Unlike `GridLayout`, tiles may span multiple
          @@ -1377,33 +1536,32 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.MosaicLayout}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.MosaicLayout)
                 com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto
          +          .internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.LayoutsProto
          +          .internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.MosaicLayout.class, com.google.monitoring.dashboard.v1.MosaicLayout.Builder.class);
          +              com.google.monitoring.dashboard.v1.MosaicLayout.class,
          +              com.google.monitoring.dashboard.v1.MosaicLayout.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.MosaicLayout.newBuilder()
          -    private Builder() {
          +    private Builder() {}
           
          -    }
          -
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
          -
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -1420,9 +1578,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto
          +          .internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor;
               }
           
               @java.lang.Override
          @@ -1441,14 +1599,18 @@ public com.google.monitoring.dashboard.v1.MosaicLayout build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.MosaicLayout buildPartial() {
          -      com.google.monitoring.dashboard.v1.MosaicLayout result = new com.google.monitoring.dashboard.v1.MosaicLayout(this);
          +      com.google.monitoring.dashboard.v1.MosaicLayout result =
          +          new com.google.monitoring.dashboard.v1.MosaicLayout(this);
                 buildPartialRepeatedFields(result);
          -      if (bitField0_ != 0) { buildPartial0(result); }
          +      if (bitField0_ != 0) {
          +        buildPartial0(result);
          +      }
                 onBuilt();
                 return result;
               }
           
          -    private void buildPartialRepeatedFields(com.google.monitoring.dashboard.v1.MosaicLayout result) {
          +    private void buildPartialRepeatedFields(
          +        com.google.monitoring.dashboard.v1.MosaicLayout result) {
                 if (tilesBuilder_ == null) {
                   if (((bitField0_ & 0x00000002) != 0)) {
                     tiles_ = java.util.Collections.unmodifiableList(tiles_);
          @@ -1471,38 +1633,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.MosaicLayout resul
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.MosaicLayout) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.MosaicLayout)other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.MosaicLayout) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1510,7 +1673,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.MosaicLayout other) {
          -      if (other == com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance()) return this;
          +      if (other == com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance())
          +        return this;
                 if (other.getColumns() != 0) {
                   setColumns(other.getColumns());
                 }
          @@ -1532,9 +1696,10 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.MosaicLayout other)
                       tilesBuilder_ = null;
                       tiles_ = other.tiles_;
                       bitField0_ = (bitField0_ & ~0x00000002);
          -            tilesBuilder_ = 
          -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          -                 getTilesFieldBuilder() : null;
          +            tilesBuilder_ =
          +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          +                    ? getTilesFieldBuilder()
          +                    : null;
                     } else {
                       tilesBuilder_.addAllMessages(other.tiles_);
                     }
          @@ -1566,30 +1731,33 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 8: {
          -              columns_ = input.readInt32();
          -              bitField0_ |= 0x00000001;
          -              break;
          -            } // case 8
          -            case 26: {
          -              com.google.monitoring.dashboard.v1.MosaicLayout.Tile m =
          -                  input.readMessage(
          -                      com.google.monitoring.dashboard.v1.MosaicLayout.Tile.parser(),
          -                      extensionRegistry);
          -              if (tilesBuilder_ == null) {
          -                ensureTilesIsMutable();
          -                tiles_.add(m);
          -              } else {
          -                tilesBuilder_.addMessage(m);
          -              }
          -              break;
          -            } // case 26
          -            default: {
          -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                done = true; // was an endgroup tag
          -              }
          -              break;
          -            } // default:
          +            case 8:
          +              {
          +                columns_ = input.readInt32();
          +                bitField0_ |= 0x00000001;
          +                break;
          +              } // case 8
          +            case 26:
          +              {
          +                com.google.monitoring.dashboard.v1.MosaicLayout.Tile m =
          +                    input.readMessage(
          +                        com.google.monitoring.dashboard.v1.MosaicLayout.Tile.parser(),
          +                        extensionRegistry);
          +                if (tilesBuilder_ == null) {
          +                  ensureTilesIsMutable();
          +                  tiles_.add(m);
          +                } else {
          +                  tilesBuilder_.addMessage(m);
          +                }
          +                break;
          +              } // case 26
          +            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) {
          @@ -1599,16 +1767,20 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          +
               private int bitField0_;
           
          -    private int columns_ ;
          +    private int columns_;
               /**
          +     *
          +     *
                * 
                * The number of columns in the mosaic grid. The number of columns must be
                * between 1 and 12, inclusive.
                * 
          * * int32 columns = 1; + * * @return The columns. */ @java.lang.Override @@ -1616,12 +1788,15 @@ public int getColumns() { return columns_; } /** + * + * *
                * The number of columns in the mosaic grid. The number of columns must be
                * between 1 and 12, inclusive.
                * 
          * * int32 columns = 1; + * * @param value The columns to set. * @return This builder for chaining. */ @@ -1633,12 +1808,15 @@ public Builder setColumns(int value) { return this; } /** + * + * *
                * The number of columns in the mosaic grid. The number of columns must be
                * between 1 and 12, inclusive.
                * 
          * * int32 columns = 1; + * * @return This builder for chaining. */ public Builder clearColumns() { @@ -1649,18 +1827,25 @@ public Builder clearColumns() { } private java.util.List tiles_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTilesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - tiles_ = new java.util.ArrayList(tiles_); + tiles_ = + new java.util.ArrayList(tiles_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.MosaicLayout.Tile, com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder, com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder> tilesBuilder_; + com.google.monitoring.dashboard.v1.MosaicLayout.Tile, + com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder, + com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder> + tilesBuilder_; /** + * + * *
                * The tiles to display.
                * 
          @@ -1675,6 +1860,8 @@ public java.util.List getT } } /** + * + * *
                * The tiles to display.
                * 
          @@ -1689,6 +1876,8 @@ public int getTilesCount() { } } /** + * + * *
                * The tiles to display.
                * 
          @@ -1703,14 +1892,15 @@ public com.google.monitoring.dashboard.v1.MosaicLayout.Tile getTiles(int index) } } /** + * + * *
                * The tiles to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - public Builder setTiles( - int index, com.google.monitoring.dashboard.v1.MosaicLayout.Tile value) { + public Builder setTiles(int index, com.google.monitoring.dashboard.v1.MosaicLayout.Tile value) { if (tilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1724,6 +1914,8 @@ public Builder setTiles( return this; } /** + * + * *
                * The tiles to display.
                * 
          @@ -1742,6 +1934,8 @@ public Builder setTiles( return this; } /** + * + * *
                * The tiles to display.
                * 
          @@ -1762,14 +1956,15 @@ public Builder addTiles(com.google.monitoring.dashboard.v1.MosaicLayout.Tile val return this; } /** + * + * *
                * The tiles to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - public Builder addTiles( - int index, com.google.monitoring.dashboard.v1.MosaicLayout.Tile value) { + public Builder addTiles(int index, com.google.monitoring.dashboard.v1.MosaicLayout.Tile value) { if (tilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1783,6 +1978,8 @@ public Builder addTiles( return this; } /** + * + * *
                * The tiles to display.
                * 
          @@ -1801,6 +1998,8 @@ public Builder addTiles( return this; } /** + * + * *
                * The tiles to display.
                * 
          @@ -1819,6 +2018,8 @@ public Builder addTiles( return this; } /** + * + * *
                * The tiles to display.
                * 
          @@ -1829,8 +2030,7 @@ public Builder addAllTiles( java.lang.Iterable values) { if (tilesBuilder_ == null) { ensureTilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tiles_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tiles_); onChanged(); } else { tilesBuilder_.addAllMessages(values); @@ -1838,6 +2038,8 @@ public Builder addAllTiles( return this; } /** + * + * *
                * The tiles to display.
                * 
          @@ -1855,6 +2057,8 @@ public Builder clearTiles() { return this; } /** + * + * *
                * The tiles to display.
                * 
          @@ -1872,17 +2076,20 @@ public Builder removeTiles(int index) { return this; } /** + * + * *
                * The tiles to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - public com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder getTilesBuilder( - int index) { + public com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder getTilesBuilder(int index) { return getTilesFieldBuilder().getBuilder(index); } /** + * + * *
                * The tiles to display.
                * 
          @@ -1892,19 +2099,22 @@ public com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder getTilesBuil public com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder getTilesOrBuilder( int index) { if (tilesBuilder_ == null) { - return tiles_.get(index); } else { + return tiles_.get(index); + } else { return tilesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * The tiles to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - public java.util.List - getTilesOrBuilderList() { + public java.util.List + getTilesOrBuilderList() { if (tilesBuilder_ != null) { return tilesBuilder_.getMessageOrBuilderList(); } else { @@ -1912,6 +2122,8 @@ public com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder getTilesOrB } } /** + * + * *
                * The tiles to display.
                * 
          @@ -1919,49 +2131,56 @@ public com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder getTilesOrB * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ public com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder addTilesBuilder() { - return getTilesFieldBuilder().addBuilder( - com.google.monitoring.dashboard.v1.MosaicLayout.Tile.getDefaultInstance()); + return getTilesFieldBuilder() + .addBuilder(com.google.monitoring.dashboard.v1.MosaicLayout.Tile.getDefaultInstance()); } /** + * + * *
                * The tiles to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - public com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder addTilesBuilder( - int index) { - return getTilesFieldBuilder().addBuilder( - index, com.google.monitoring.dashboard.v1.MosaicLayout.Tile.getDefaultInstance()); + public com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder addTilesBuilder(int index) { + return getTilesFieldBuilder() + .addBuilder( + index, com.google.monitoring.dashboard.v1.MosaicLayout.Tile.getDefaultInstance()); } /** + * + * *
                * The tiles to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - public java.util.List - getTilesBuilderList() { + public java.util.List + getTilesBuilderList() { return getTilesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.MosaicLayout.Tile, com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder, com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder> + com.google.monitoring.dashboard.v1.MosaicLayout.Tile, + com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder, + com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder> getTilesFieldBuilder() { if (tilesBuilder_ == null) { - tilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.MosaicLayout.Tile, com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder, com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder>( - tiles_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + tilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.MosaicLayout.Tile, + com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder, + com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder>( + tiles_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); tiles_ = null; } return tilesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1971,12 +2190,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.MosaicLayout) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.MosaicLayout) private static final com.google.monitoring.dashboard.v1.MosaicLayout DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.MosaicLayout(); } @@ -1985,27 +2204,27 @@ public static com.google.monitoring.dashboard.v1.MosaicLayout getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MosaicLayout 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MosaicLayout 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; @@ -2020,6 +2239,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.MosaicLayout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java similarity index 67% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java index ba84d8d056c0..5ad7a38987b8 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java @@ -1,34 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/layouts.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface MosaicLayoutOrBuilder extends +public interface MosaicLayoutOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.MosaicLayout) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * The number of columns in the mosaic grid. The number of columns must be
              * between 1 and 12, inclusive.
              * 
          * * int32 columns = 1; + * * @return The columns. */ int getColumns(); /** + * + * *
              * The tiles to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - java.util.List - getTilesList(); + java.util.List getTilesList(); /** + * + * *
              * The tiles to display.
              * 
          @@ -37,6 +59,8 @@ public interface MosaicLayoutOrBuilder extends */ com.google.monitoring.dashboard.v1.MosaicLayout.Tile getTiles(int index); /** + * + * *
              * The tiles to display.
              * 
          @@ -45,21 +69,24 @@ public interface MosaicLayoutOrBuilder extends */ int getTilesCount(); /** + * + * *
              * The tiles to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - java.util.List + java.util.List getTilesOrBuilderList(); /** + * + * *
              * The tiles to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; */ - com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder getTilesOrBuilder( - int index); + com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder getTilesOrBuilder(int index); } diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilter.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilter.java similarity index 71% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilter.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilter.java index 9311805314ea..03a881075bd1 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilter.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilter.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/common.proto @@ -5,6 +20,8 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * Describes a ranking-based time series filter. Each input time series is
            * ranked with an aligner. The filter will allow up to `num_time_series` time
          @@ -17,15 +34,16 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.PickTimeSeriesFilter}
            */
          -public final class PickTimeSeriesFilter extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class PickTimeSeriesFilter extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.PickTimeSeriesFilter)
               PickTimeSeriesFilterOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use PickTimeSeriesFilter.newBuilder() to construct.
             private PickTimeSeriesFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private PickTimeSeriesFilter() {
               rankingMethod_ = 0;
               direction_ = 0;
          @@ -33,34 +51,38 @@ private PickTimeSeriesFilter() {
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new PickTimeSeriesFilter();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.CommonProto
          +        .internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.CommonProto
          +        .internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.class, com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder.class);
          +            com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.class,
          +            com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder.class);
             }
           
             /**
          +   *
          +   *
              * 
              * The value reducers that can be applied to a `PickTimeSeriesFilter`.
              * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method} */ - public enum Method - implements com.google.protobuf.ProtocolMessageEnum { + public enum Method implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                * Not allowed. You must specify a different `Method` if you specify a
                * `PickTimeSeriesFilter`.
          @@ -70,6 +92,8 @@ public enum Method
                */
               METHOD_UNSPECIFIED(0),
               /**
          +     *
          +     *
                * 
                * Select the mean of all values.
                * 
          @@ -78,6 +102,8 @@ public enum Method */ METHOD_MEAN(1), /** + * + * *
                * Select the maximum value.
                * 
          @@ -86,6 +112,8 @@ public enum Method */ METHOD_MAX(2), /** + * + * *
                * Select the minimum value.
                * 
          @@ -94,6 +122,8 @@ public enum Method */ METHOD_MIN(3), /** + * + * *
                * Compute the sum of all values.
                * 
          @@ -102,6 +132,8 @@ public enum Method */ METHOD_SUM(4), /** + * + * *
                * Select the most recent value.
                * 
          @@ -113,6 +145,8 @@ public enum Method ; /** + * + * *
                * Not allowed. You must specify a different `Method` if you specify a
                * `PickTimeSeriesFilter`.
          @@ -122,6 +156,8 @@ public enum Method
                */
               public static final int METHOD_UNSPECIFIED_VALUE = 0;
               /**
          +     *
          +     *
                * 
                * Select the mean of all values.
                * 
          @@ -130,6 +166,8 @@ public enum Method */ public static final int METHOD_MEAN_VALUE = 1; /** + * + * *
                * Select the maximum value.
                * 
          @@ -138,6 +176,8 @@ public enum Method */ public static final int METHOD_MAX_VALUE = 2; /** + * + * *
                * Select the minimum value.
                * 
          @@ -146,6 +186,8 @@ public enum Method */ public static final int METHOD_MIN_VALUE = 3; /** + * + * *
                * Compute the sum of all values.
                * 
          @@ -154,6 +196,8 @@ public enum Method */ public static final int METHOD_SUM_VALUE = 4; /** + * + * *
                * Select the most recent value.
                * 
          @@ -162,7 +206,6 @@ public enum Method */ public static final int METHOD_LATEST_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -187,52 +230,57 @@ public static Method valueOf(int value) { */ public static Method forNumber(int value) { switch (value) { - case 0: return METHOD_UNSPECIFIED; - case 1: return METHOD_MEAN; - case 2: return METHOD_MAX; - case 3: return METHOD_MIN; - case 4: return METHOD_SUM; - case 5: return METHOD_LATEST; - default: return null; + case 0: + return METHOD_UNSPECIFIED; + case 1: + return METHOD_MEAN; + case 2: + return METHOD_MAX; + case 3: + return METHOD_MIN; + case 4: + return METHOD_SUM; + case 5: + return METHOD_LATEST; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Method> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Method findValueByNumber(int number) { - return Method.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Method findValueByNumber(int number) { + return Method.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() { + + 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.PickTimeSeriesFilter.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDescriptor() + .getEnumTypes() + .get(0); } private static final Method[] VALUES = values(); - public static Method valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Method valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -250,15 +298,18 @@ private Method(int value) { } /** + * + * *
              * Describes the ranking directions.
              * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction} */ - public enum Direction - implements com.google.protobuf.ProtocolMessageEnum { + public enum Direction implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                * Not allowed. You must specify a different `Direction` if you specify a
                * `PickTimeSeriesFilter`.
          @@ -268,6 +319,8 @@ public enum Direction
                */
               DIRECTION_UNSPECIFIED(0),
               /**
          +     *
          +     *
                * 
                * Pass the highest `num_time_series` ranking inputs.
                * 
          @@ -276,6 +329,8 @@ public enum Direction */ TOP(1), /** + * + * *
                * Pass the lowest `num_time_series` ranking inputs.
                * 
          @@ -287,6 +342,8 @@ public enum Direction ; /** + * + * *
                * Not allowed. You must specify a different `Direction` if you specify a
                * `PickTimeSeriesFilter`.
          @@ -296,6 +353,8 @@ public enum Direction
                */
               public static final int DIRECTION_UNSPECIFIED_VALUE = 0;
               /**
          +     *
          +     *
                * 
                * Pass the highest `num_time_series` ranking inputs.
                * 
          @@ -304,6 +363,8 @@ public enum Direction */ public static final int TOP_VALUE = 1; /** + * + * *
                * Pass the lowest `num_time_series` ranking inputs.
                * 
          @@ -312,7 +373,6 @@ public enum Direction */ public static final int BOTTOM_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -337,49 +397,51 @@ public static Direction valueOf(int value) { */ public static Direction forNumber(int value) { switch (value) { - case 0: return DIRECTION_UNSPECIFIED; - case 1: return TOP; - case 2: return BOTTOM; - default: return null; + case 0: + return DIRECTION_UNSPECIFIED; + case 1: + return TOP; + case 2: + return BOTTOM; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Direction> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Direction findValueByNumber(int number) { - return Direction.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Direction findValueByNumber(int number) { + return Direction.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() { + + 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.PickTimeSeriesFilter.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDescriptor() + .getEnumTypes() + .get(1); } private static final Direction[] VALUES = values(); - public static Direction valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Direction valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -400,6 +462,8 @@ private Direction(int value) { public static final int RANKING_METHOD_FIELD_NUMBER = 1; private int rankingMethod_ = 0; /** + * + * *
              * `ranking_method` is applied to each time series independently to produce
              * the value which will be used to compare the time series to other time
          @@ -407,12 +471,16 @@ private Direction(int value) {
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; + * * @return The enum numeric value on the wire for rankingMethod. */ - @java.lang.Override public int getRankingMethodValue() { + @java.lang.Override + public int getRankingMethodValue() { return rankingMethod_; } /** + * + * *
              * `ranking_method` is applied to each time series independently to produce
              * the value which will be used to compare the time series to other time
          @@ -420,21 +488,29 @@ private Direction(int value) {
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; + * * @return The rankingMethod. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method getRankingMethod() { - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method result = com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.forNumber(rankingMethod_); - return result == null ? com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method getRankingMethod() { + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method result = + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.forNumber(rankingMethod_); + return result == null + ? com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.UNRECOGNIZED + : result; } public static final int NUM_TIME_SERIES_FIELD_NUMBER = 2; private int numTimeSeries_ = 0; /** + * + * *
              * How many time series to allow to pass through the filter.
              * 
          * * int32 num_time_series = 2; + * * @return The numTimeSeries. */ @java.lang.Override @@ -445,37 +521,51 @@ public int getNumTimeSeries() { public static final int DIRECTION_FIELD_NUMBER = 3; private int direction_ = 0; /** + * + * *
              * How to use the ranking to select time series that pass through the filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; + * * @return The enum numeric value on the wire for direction. */ - @java.lang.Override public int getDirectionValue() { + @java.lang.Override + public int getDirectionValue() { return direction_; } /** + * + * *
              * How to use the ranking to select time series that pass through the filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; + * * @return The direction. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction getDirection() { - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction result = com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.forNumber(direction_); - return result == null ? com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction getDirection() { + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction result = + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.forNumber(direction_); + return result == null + ? com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.UNRECOGNIZED + : result; } public static final int INTERVAL_FIELD_NUMBER = 4; private com.google.type.Interval interval_; /** + * + * *
              * Select the top N streams/time series within this time interval
              * 
          * * .google.type.Interval interval = 4; + * * @return Whether the interval field is set. */ @java.lang.Override @@ -483,11 +573,14 @@ public boolean hasInterval() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
              * Select the top N streams/time series within this time interval
              * 
          * * .google.type.Interval interval = 4; + * * @return The interval. */ @java.lang.Override @@ -495,6 +588,8 @@ public com.google.type.Interval getInterval() { return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; } /** + * + * *
              * Select the top N streams/time series within this time interval
              * 
          @@ -507,6 +602,7 @@ public com.google.type.IntervalOrBuilder getIntervalOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -518,15 +614,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (rankingMethod_ != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.METHOD_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (rankingMethod_ + != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.METHOD_UNSPECIFIED + .getNumber()) { output.writeEnum(1, rankingMethod_); } if (numTimeSeries_ != 0) { output.writeInt32(2, numTimeSeries_); } - if (direction_ != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + if (direction_ + != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.DIRECTION_UNSPECIFIED + .getNumber()) { output.writeEnum(3, direction_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -541,21 +640,21 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (rankingMethod_ != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.METHOD_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, rankingMethod_); + if (rankingMethod_ + != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.METHOD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, rankingMethod_); } if (numTimeSeries_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, numTimeSeries_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, numTimeSeries_); } - if (direction_ != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.DIRECTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, direction_); + if (direction_ + != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.DIRECTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, direction_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getInterval()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInterval()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -565,21 +664,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.PickTimeSeriesFilter)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter other = (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) obj; + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter other = + (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) obj; if (rankingMethod_ != other.rankingMethod_) return false; - if (getNumTimeSeries() - != other.getNumTimeSeries()) return false; + if (getNumTimeSeries() != other.getNumTimeSeries()) return false; if (direction_ != other.direction_) return false; if (hasInterval() != other.hasInterval()) return false; if (hasInterval()) { - if (!getInterval() - .equals(other.getInterval())) return false; + if (!getInterval().equals(other.getInterval())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -608,98 +706,104 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.PickTimeSeriesFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter 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.PickTimeSeriesFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.PickTimeSeriesFilter prototype) { + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Describes a ranking-based time series filter. Each input time series is
              * ranked with an aligner. The filter will allow up to `num_time_series` time
          @@ -712,21 +816,23 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.PickTimeSeriesFilter}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.PickTimeSeriesFilter)
                 com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.CommonProto
          +          .internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.CommonProto
          +          .internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.class, com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder.class);
          +              com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.class,
          +              com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.newBuilder()
          @@ -734,17 +840,17 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          +
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3
          -              .alwaysUseFieldBuilders) {
          +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                   getIntervalFieldBuilder();
                 }
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -761,9 +867,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.CommonProto
          +          .internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor;
               }
           
               @java.lang.Override
          @@ -782,8 +888,11 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter buildPartial() {
          -      com.google.monitoring.dashboard.v1.PickTimeSeriesFilter result = new com.google.monitoring.dashboard.v1.PickTimeSeriesFilter(this);
          -      if (bitField0_ != 0) { buildPartial0(result); }
          +      com.google.monitoring.dashboard.v1.PickTimeSeriesFilter result =
          +          new com.google.monitoring.dashboard.v1.PickTimeSeriesFilter(this);
          +      if (bitField0_ != 0) {
          +        buildPartial0(result);
          +      }
                 onBuilt();
                 return result;
               }
          @@ -801,9 +910,7 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.PickTimeSeriesFilt
                 }
                 int to_bitField0_ = 0;
                 if (((from_bitField0_ & 0x00000008) != 0)) {
          -        result.interval_ = intervalBuilder_ == null
          -            ? interval_
          -            : intervalBuilder_.build();
          +        result.interval_ = intervalBuilder_ == null ? interval_ : intervalBuilder_.build();
                   to_bitField0_ |= 0x00000001;
                 }
                 result.bitField0_ |= to_bitField0_;
          @@ -813,38 +920,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.PickTimeSeriesFilt
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.PickTimeSeriesFilter) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.PickTimeSeriesFilter)other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -852,7 +960,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.PickTimeSeriesFilter other) {
          -      if (other == com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance()) return this;
          +      if (other == com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance())
          +        return this;
                 if (other.rankingMethod_ != 0) {
                   setRankingMethodValue(other.getRankingMethodValue());
                 }
          @@ -891,34 +1000,37 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 8: {
          -              rankingMethod_ = input.readEnum();
          -              bitField0_ |= 0x00000001;
          -              break;
          -            } // case 8
          -            case 16: {
          -              numTimeSeries_ = input.readInt32();
          -              bitField0_ |= 0x00000002;
          -              break;
          -            } // case 16
          -            case 24: {
          -              direction_ = input.readEnum();
          -              bitField0_ |= 0x00000004;
          -              break;
          -            } // case 24
          -            case 34: {
          -              input.readMessage(
          -                  getIntervalFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              bitField0_ |= 0x00000008;
          -              break;
          -            } // case 34
          -            default: {
          -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                done = true; // was an endgroup tag
          -              }
          -              break;
          -            } // default:
          +            case 8:
          +              {
          +                rankingMethod_ = input.readEnum();
          +                bitField0_ |= 0x00000001;
          +                break;
          +              } // case 8
          +            case 16:
          +              {
          +                numTimeSeries_ = input.readInt32();
          +                bitField0_ |= 0x00000002;
          +                break;
          +              } // case 16
          +            case 24:
          +              {
          +                direction_ = input.readEnum();
          +                bitField0_ |= 0x00000004;
          +                break;
          +              } // case 24
          +            case 34:
          +              {
          +                input.readMessage(getIntervalFieldBuilder().getBuilder(), extensionRegistry);
          +                bitField0_ |= 0x00000008;
          +                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) {
          @@ -928,10 +1040,13 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          +
               private int bitField0_;
           
               private int rankingMethod_ = 0;
               /**
          +     *
          +     *
                * 
                * `ranking_method` is applied to each time series independently to produce
                * the value which will be used to compare the time series to other time
          @@ -939,12 +1054,16 @@ public Builder mergeFrom(
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; + * * @return The enum numeric value on the wire for rankingMethod. */ - @java.lang.Override public int getRankingMethodValue() { + @java.lang.Override + public int getRankingMethodValue() { return rankingMethod_; } /** + * + * *
                * `ranking_method` is applied to each time series independently to produce
                * the value which will be used to compare the time series to other time
          @@ -952,6 +1071,7 @@ public Builder mergeFrom(
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; + * * @param value The enum numeric value on the wire for rankingMethod to set. * @return This builder for chaining. */ @@ -962,6 +1082,8 @@ public Builder setRankingMethodValue(int value) { return this; } /** + * + * *
                * `ranking_method` is applied to each time series independently to produce
                * the value which will be used to compare the time series to other time
          @@ -969,14 +1091,20 @@ public Builder setRankingMethodValue(int value) {
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; + * * @return The rankingMethod. */ @java.lang.Override public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method getRankingMethod() { - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method result = com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.forNumber(rankingMethod_); - return result == null ? com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.UNRECOGNIZED : result; + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method result = + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.forNumber(rankingMethod_); + return result == null + ? com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method.UNRECOGNIZED + : result; } /** + * + * *
                * `ranking_method` is applied to each time series independently to produce
                * the value which will be used to compare the time series to other time
          @@ -984,10 +1112,12 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method getRanking
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; + * * @param value The rankingMethod to set. * @return This builder for chaining. */ - public Builder setRankingMethod(com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method value) { + public Builder setRankingMethod( + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method value) { if (value == null) { throw new NullPointerException(); } @@ -997,6 +1127,8 @@ public Builder setRankingMethod(com.google.monitoring.dashboard.v1.PickTimeSerie return this; } /** + * + * *
                * `ranking_method` is applied to each time series independently to produce
                * the value which will be used to compare the time series to other time
          @@ -1004,6 +1136,7 @@ public Builder setRankingMethod(com.google.monitoring.dashboard.v1.PickTimeSerie
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; + * * @return This builder for chaining. */ public Builder clearRankingMethod() { @@ -1013,13 +1146,16 @@ public Builder clearRankingMethod() { return this; } - private int numTimeSeries_ ; + private int numTimeSeries_; /** + * + * *
                * How many time series to allow to pass through the filter.
                * 
          * * int32 num_time_series = 2; + * * @return The numTimeSeries. */ @java.lang.Override @@ -1027,11 +1163,14 @@ public int getNumTimeSeries() { return numTimeSeries_; } /** + * + * *
                * How many time series to allow to pass through the filter.
                * 
          * * int32 num_time_series = 2; + * * @param value The numTimeSeries to set. * @return This builder for chaining. */ @@ -1043,11 +1182,14 @@ public Builder setNumTimeSeries(int value) { return this; } /** + * + * *
                * How many time series to allow to pass through the filter.
                * 
          * * int32 num_time_series = 2; + * * @return This builder for chaining. */ public Builder clearNumTimeSeries() { @@ -1059,22 +1201,29 @@ public Builder clearNumTimeSeries() { private int direction_ = 0; /** + * + * *
                * How to use the ranking to select time series that pass through the filter.
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; + * * @return The enum numeric value on the wire for direction. */ - @java.lang.Override public int getDirectionValue() { + @java.lang.Override + public int getDirectionValue() { return direction_; } /** + * + * *
                * How to use the ranking to select time series that pass through the filter.
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; + * * @param value The enum numeric value on the wire for direction to set. * @return This builder for chaining. */ @@ -1085,28 +1234,38 @@ public Builder setDirectionValue(int value) { return this; } /** + * + * *
                * How to use the ranking to select time series that pass through the filter.
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; + * * @return The direction. */ @java.lang.Override public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction getDirection() { - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction result = com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.forNumber(direction_); - return result == null ? com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.UNRECOGNIZED : result; + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction result = + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.forNumber(direction_); + return result == null + ? com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction.UNRECOGNIZED + : result; } /** + * + * *
                * How to use the ranking to select time series that pass through the filter.
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; + * * @param value The direction to set. * @return This builder for chaining. */ - public Builder setDirection(com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction value) { + public Builder setDirection( + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction value) { if (value == null) { throw new NullPointerException(); } @@ -1116,11 +1275,14 @@ public Builder setDirection(com.google.monitoring.dashboard.v1.PickTimeSeriesFil return this; } /** + * + * *
                * How to use the ranking to select time series that pass through the filter.
                * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; + * * @return This builder for chaining. */ public Builder clearDirection() { @@ -1132,24 +1294,33 @@ public Builder clearDirection() { private com.google.type.Interval interval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder> intervalBuilder_; + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + intervalBuilder_; /** + * + * *
                * Select the top N streams/time series within this time interval
                * 
          * * .google.type.Interval interval = 4; + * * @return Whether the interval field is set. */ public boolean hasInterval() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
                * Select the top N streams/time series within this time interval
                * 
          * * .google.type.Interval interval = 4; + * * @return The interval. */ public com.google.type.Interval getInterval() { @@ -1160,6 +1331,8 @@ public com.google.type.Interval getInterval() { } } /** + * + * *
                * Select the top N streams/time series within this time interval
                * 
          @@ -1180,14 +1353,15 @@ public Builder setInterval(com.google.type.Interval value) { return this; } /** + * + * *
                * Select the top N streams/time series within this time interval
                * 
          * * .google.type.Interval interval = 4; */ - public Builder setInterval( - com.google.type.Interval.Builder builderForValue) { + public Builder setInterval(com.google.type.Interval.Builder builderForValue) { if (intervalBuilder_ == null) { interval_ = builderForValue.build(); } else { @@ -1198,6 +1372,8 @@ public Builder setInterval( return this; } /** + * + * *
                * Select the top N streams/time series within this time interval
                * 
          @@ -1206,9 +1382,9 @@ public Builder setInterval( */ public Builder mergeInterval(com.google.type.Interval value) { if (intervalBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - interval_ != null && - interval_ != com.google.type.Interval.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && interval_ != null + && interval_ != com.google.type.Interval.getDefaultInstance()) { getIntervalBuilder().mergeFrom(value); } else { interval_ = value; @@ -1223,6 +1399,8 @@ public Builder mergeInterval(com.google.type.Interval value) { return this; } /** + * + * *
                * Select the top N streams/time series within this time interval
                * 
          @@ -1240,6 +1418,8 @@ public Builder clearInterval() { return this; } /** + * + * *
                * Select the top N streams/time series within this time interval
                * 
          @@ -1252,6 +1432,8 @@ public com.google.type.Interval.Builder getIntervalBuilder() { return getIntervalFieldBuilder().getBuilder(); } /** + * + * *
                * Select the top N streams/time series within this time interval
                * 
          @@ -1262,11 +1444,12 @@ public com.google.type.IntervalOrBuilder getIntervalOrBuilder() { if (intervalBuilder_ != null) { return intervalBuilder_.getMessageOrBuilder(); } else { - return interval_ == null ? - com.google.type.Interval.getDefaultInstance() : interval_; + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; } } /** + * + * *
                * Select the top N streams/time series within this time interval
                * 
          @@ -1274,21 +1457,24 @@ public com.google.type.IntervalOrBuilder getIntervalOrBuilder() { * .google.type.Interval interval = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder> + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> getIntervalFieldBuilder() { if (intervalBuilder_ == null) { - intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder>( - getInterval(), - getParentForChildren(), - isClean()); + intervalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder>( + getInterval(), getParentForChildren(), isClean()); interval_ = null; } return intervalBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1298,12 +1484,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.PickTimeSeriesFilter) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.PickTimeSeriesFilter) private static final com.google.monitoring.dashboard.v1.PickTimeSeriesFilter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.PickTimeSeriesFilter(); } @@ -1312,27 +1498,27 @@ public static com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PickTimeSeriesFilter 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PickTimeSeriesFilter 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; @@ -1347,6 +1533,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilterOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilterOrBuilder.java similarity index 77% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilterOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilterOrBuilder.java index 20cee3029db5..0bc1c631fe4e 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilterOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilterOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/common.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface PickTimeSeriesFilterOrBuilder extends +public interface PickTimeSeriesFilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.PickTimeSeriesFilter) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * `ranking_method` is applied to each time series independently to produce
              * the value which will be used to compare the time series to other time
          @@ -16,10 +34,13 @@ public interface PickTimeSeriesFilterOrBuilder extends
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; + * * @return The enum numeric value on the wire for rankingMethod. */ int getRankingMethodValue(); /** + * + * *
              * `ranking_method` is applied to each time series independently to produce
              * the value which will be used to compare the time series to other time
          @@ -27,58 +48,76 @@ public interface PickTimeSeriesFilterOrBuilder extends
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1; + * * @return The rankingMethod. */ com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method getRankingMethod(); /** + * + * *
              * How many time series to allow to pass through the filter.
              * 
          * * int32 num_time_series = 2; + * * @return The numTimeSeries. */ int getNumTimeSeries(); /** + * + * *
              * How to use the ranking to select time series that pass through the filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; + * * @return The enum numeric value on the wire for direction. */ int getDirectionValue(); /** + * + * *
              * How to use the ranking to select time series that pass through the filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3; + * * @return The direction. */ com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction getDirection(); /** + * + * *
              * Select the top N streams/time series within this time interval
              * 
          * * .google.type.Interval interval = 4; + * * @return Whether the interval field is set. */ boolean hasInterval(); /** + * + * *
              * Select the top N streams/time series within this time interval
              * 
          * * .google.type.Interval interval = 4; + * * @return The interval. */ com.google.type.Interval getInterval(); /** + * + * *
              * Select the top N streams/time series within this time interval
              * 
          diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChart.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChart.java similarity index 66% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChart.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChart.java index 7af93d9dcb61..0eccc113deac 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChart.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChart.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/piechart.proto @@ -5,21 +20,24 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A widget that displays timeseries data as a pie or a donut.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.PieChart} */ -public final class PieChart extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PieChart extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.PieChart) PieChartOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PieChart.newBuilder() to construct. private PieChart(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PieChart() { dataSets_ = java.util.Collections.emptyList(); chartType_ = 0; @@ -27,34 +45,38 @@ private PieChart() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PieChart(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.PieChartProto + .internal_static_google_monitoring_dashboard_v1_PieChart_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_fieldAccessorTable + return com.google.monitoring.dashboard.v1.PieChartProto + .internal_static_google_monitoring_dashboard_v1_PieChart_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.PieChart.class, com.google.monitoring.dashboard.v1.PieChart.Builder.class); + com.google.monitoring.dashboard.v1.PieChart.class, + com.google.monitoring.dashboard.v1.PieChart.Builder.class); } /** + * + * *
              * Types for the pie chart.
              * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.PieChart.PieChartType} */ - public enum PieChartType - implements com.google.protobuf.ProtocolMessageEnum { + public enum PieChartType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                * The zero value. No type specified. Do not use.
                * 
          @@ -63,6 +85,8 @@ public enum PieChartType */ PIE_CHART_TYPE_UNSPECIFIED(0), /** + * + * *
                * A Pie type PieChart.
                * 
          @@ -71,6 +95,8 @@ public enum PieChartType */ PIE(1), /** + * + * *
                * Similar to PIE, but the DONUT type PieChart has a hole in the middle.
                * 
          @@ -82,6 +108,8 @@ public enum PieChartType ; /** + * + * *
                * The zero value. No type specified. Do not use.
                * 
          @@ -90,6 +118,8 @@ public enum PieChartType */ public static final int PIE_CHART_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
                * A Pie type PieChart.
                * 
          @@ -98,6 +128,8 @@ public enum PieChartType */ public static final int PIE_VALUE = 1; /** + * + * *
                * Similar to PIE, but the DONUT type PieChart has a hole in the middle.
                * 
          @@ -106,7 +138,6 @@ public enum PieChartType */ public static final int DONUT_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -131,49 +162,49 @@ public static PieChartType valueOf(int value) { */ public static PieChartType forNumber(int value) { switch (value) { - case 0: return PIE_CHART_TYPE_UNSPECIFIED; - case 1: return PIE; - case 2: return DONUT; - default: return null; + case 0: + return PIE_CHART_TYPE_UNSPECIFIED; + case 1: + return PIE; + case 2: + return DONUT; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - PieChartType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PieChartType findValueByNumber(int number) { - return PieChartType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PieChartType findValueByNumber(int number) { + return PieChartType.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.monitoring.dashboard.v1.PieChart.getDescriptor().getEnumTypes().get(0); } private static final PieChartType[] VALUES = values(); - public static PieChartType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static PieChartType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -190,41 +221,58 @@ private PieChartType(int value) { // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.PieChart.PieChartType) } - public interface PieChartDataSetOrBuilder extends + public interface PieChartDataSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.PieChart.PieChartDataSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Required. The query for the PieChart. See,
                * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the timeSeriesQuery field is set. */ boolean hasTimeSeriesQuery(); /** + * + * *
                * Required. The query for the PieChart. See,
                * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The timeSeriesQuery. */ com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery(); /** + * + * *
                * Required. The query for the PieChart. See,
                * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder(); /** + * + * *
                * Optional. A template for the name of the slice. This name will be
                * displayed in the legend and the tooltip of the pie chart. It replaces the
          @@ -235,10 +283,13 @@ public interface PieChartDataSetOrBuilder extends
                * 
          * * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sliceNameTemplate. */ java.lang.String getSliceNameTemplate(); /** + * + * *
                * Optional. A template for the name of the slice. This name will be
                * displayed in the legend and the tooltip of the pie chart. It replaces the
          @@ -249,12 +300,14 @@ public interface PieChartDataSetOrBuilder extends
                * 
          * * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sliceNameTemplate. */ - com.google.protobuf.ByteString - getSliceNameTemplateBytes(); + com.google.protobuf.ByteString getSliceNameTemplateBytes(); /** + * + * *
                * Optional. The lower bound on data point frequency for this data set,
                * implemented by specifying the minimum alignment period to use in a time
          @@ -263,11 +316,16 @@ public interface PieChartDataSetOrBuilder extends
                * 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]; + * + * * @return Whether the minAlignmentPeriod field is set. */ 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
          @@ -276,11 +334,16 @@ public interface PieChartDataSetOrBuilder extends
                * 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]; + * + * * @return The minAlignmentPeriod. */ 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
          @@ -289,60 +352,71 @@ public interface PieChartDataSetOrBuilder extends
                * 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]; + * */ com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder(); } /** + * + * *
              * Groups a time series query definition.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.PieChart.PieChartDataSet} */ - public static final class PieChartDataSet extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class PieChartDataSet extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.PieChart.PieChartDataSet) PieChartDataSetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PieChartDataSet.newBuilder() to construct. private PieChartDataSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PieChartDataSet() { sliceNameTemplate_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PieChartDataSet(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.PieChartProto + .internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_fieldAccessorTable + return com.google.monitoring.dashboard.v1.PieChartProto + .internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.class, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder.class); + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.class, + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder.class); } private int bitField0_; public static final int TIME_SERIES_QUERY_FIELD_NUMBER = 1; private com.google.monitoring.dashboard.v1.TimeSeriesQuery timeSeriesQuery_; /** + * + * *
                * Required. The query for the PieChart. See,
                * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the timeSeriesQuery field is set. */ @java.lang.Override @@ -350,35 +424,52 @@ public boolean hasTimeSeriesQuery() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Required. The query for the PieChart. See,
                * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The timeSeriesQuery. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() { - return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + return timeSeriesQuery_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() + : timeSeriesQuery_; } /** + * + * *
                * Required. The query for the PieChart. See,
                * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder() { - return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder + getTimeSeriesQueryOrBuilder() { + return timeSeriesQuery_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() + : timeSeriesQuery_; } public static final int SLICE_NAME_TEMPLATE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object sliceNameTemplate_ = ""; /** + * + * *
                * Optional. A template for the name of the slice. This name will be
                * displayed in the legend and the tooltip of the pie chart. It replaces the
          @@ -389,6 +480,7 @@ public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeries
                * 
          * * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sliceNameTemplate. */ @java.lang.Override @@ -397,14 +489,15 @@ public java.lang.String getSliceNameTemplate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sliceNameTemplate_ = s; return s; } } /** + * + * *
                * Optional. A template for the name of the slice. This name will be
                * displayed in the legend and the tooltip of the pie chart. It replaces the
          @@ -415,16 +508,15 @@ public java.lang.String getSliceNameTemplate() {
                * 
          * * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sliceNameTemplate. */ @java.lang.Override - public com.google.protobuf.ByteString - getSliceNameTemplateBytes() { + public com.google.protobuf.ByteString getSliceNameTemplateBytes() { java.lang.Object ref = sliceNameTemplate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sliceNameTemplate_ = b; return b; } else { @@ -435,6 +527,8 @@ public java.lang.String getSliceNameTemplate() { public static final int MIN_ALIGNMENT_PERIOD_FIELD_NUMBER = 3; private com.google.protobuf.Duration minAlignmentPeriod_; /** + * + * *
                * Optional. The lower bound on data point frequency for this data set,
                * implemented by specifying the minimum alignment period to use in a time
          @@ -443,7 +537,10 @@ public java.lang.String getSliceNameTemplate() {
                * 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]; + * + * * @return Whether the minAlignmentPeriod field is set. */ @java.lang.Override @@ -451,6 +548,8 @@ public boolean hasMinAlignmentPeriod() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * Optional. The lower bound on data point frequency for this data set,
                * implemented by specifying the minimum alignment period to use in a time
          @@ -459,14 +558,21 @@ public boolean hasMinAlignmentPeriod() {
                * 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]; + * + * * @return The minAlignmentPeriod. */ @java.lang.Override public com.google.protobuf.Duration getMinAlignmentPeriod() { - return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + return minAlignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minAlignmentPeriod_; } /** + * + * *
                * Optional. The lower bound on data point frequency for this data set,
                * implemented by specifying the minimum alignment period to use in a time
          @@ -475,14 +581,19 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() {
                * 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]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { - return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + return minAlignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minAlignmentPeriod_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -494,8 +605,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTimeSeriesQuery()); } @@ -515,15 +625,14 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTimeSeriesQuery()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeSeriesQuery()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sliceNameTemplate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sliceNameTemplate_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMinAlignmentPeriod()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinAlignmentPeriod()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -533,24 +642,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet other = (com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet) obj; + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet other = + (com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet) obj; if (hasTimeSeriesQuery() != other.hasTimeSeriesQuery()) return false; if (hasTimeSeriesQuery()) { - if (!getTimeSeriesQuery() - .equals(other.getTimeSeriesQuery())) return false; + if (!getTimeSeriesQuery().equals(other.getTimeSeriesQuery())) return false; } - if (!getSliceNameTemplate() - .equals(other.getSliceNameTemplate())) return false; + if (!getSliceNameTemplate().equals(other.getSliceNameTemplate())) return false; if (hasMinAlignmentPeriod() != other.hasMinAlignmentPeriod()) return false; if (hasMinAlignmentPeriod()) { - if (!getMinAlignmentPeriod() - .equals(other.getMinAlignmentPeriod())) return false; + if (!getMinAlignmentPeriod().equals(other.getMinAlignmentPeriod())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -579,89 +686,94 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.PieChart.PieChartDataSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet 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.PieChart.PieChartDataSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet prototype) { + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -671,27 +783,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                * Groups a time series query definition.
                * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.PieChart.PieChartDataSet} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.PieChart.PieChartDataSet) com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.PieChartProto + .internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_fieldAccessorTable + return com.google.monitoring.dashboard.v1.PieChartProto + .internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.class, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder.class); + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.class, + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.newBuilder() @@ -699,18 +816,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTimeSeriesQueryFieldBuilder(); getMinAlignmentPeriodFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -730,13 +847,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.PieChartProto + .internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor; } @java.lang.Override - public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet getDefaultInstanceForType() { + public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet + getDefaultInstanceForType() { return com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.getDefaultInstance(); } @@ -751,28 +869,32 @@ public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet build() { @java.lang.Override public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet buildPartial() { - com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet result = new com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet result = + new com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet result) { + private void buildPartial0( + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.timeSeriesQuery_ = timeSeriesQueryBuilder_ == null - ? timeSeriesQuery_ - : timeSeriesQueryBuilder_.build(); + result.timeSeriesQuery_ = + timeSeriesQueryBuilder_ == null ? timeSeriesQuery_ : timeSeriesQueryBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.sliceNameTemplate_ = sliceNameTemplate_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.minAlignmentPeriod_ = minAlignmentPeriodBuilder_ == null - ? minAlignmentPeriod_ - : minAlignmentPeriodBuilder_.build(); + result.minAlignmentPeriod_ = + minAlignmentPeriodBuilder_ == null + ? minAlignmentPeriod_ + : minAlignmentPeriodBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -782,38 +904,41 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.PieChart.PieChartD public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.PieChart.PieChartDataSet) { - return mergeFrom((com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet)other); + return mergeFrom((com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet) other); } else { super.mergeFrom(other); return this; @@ -821,7 +946,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet other) { - if (other == com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.getDefaultInstance()) return this; + if (other + == com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.getDefaultInstance()) + return this; if (other.hasTimeSeriesQuery()) { mergeTimeSeriesQuery(other.getTimeSeriesQuery()); } @@ -859,31 +986,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getTimeSeriesQueryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - sliceNameTemplate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getMinAlignmentPeriodFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getTimeSeriesQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sliceNameTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getMinAlignmentPeriodFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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) { @@ -893,46 +1022,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.monitoring.dashboard.v1.TimeSeriesQuery timeSeriesQuery_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> timeSeriesQueryBuilder_; + com.google.monitoring.dashboard.v1.TimeSeriesQuery, + com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> + timeSeriesQueryBuilder_; /** + * + * *
                  * Required. The query for the PieChart. See,
                  * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the timeSeriesQuery field is set. */ public boolean hasTimeSeriesQuery() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                  * Required. The query for the PieChart. See,
                  * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The timeSeriesQuery. */ public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() { if (timeSeriesQueryBuilder_ == null) { - return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + return timeSeriesQuery_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() + : timeSeriesQuery_; } else { return timeSeriesQueryBuilder_.getMessage(); } } /** + * + * *
                  * Required. The query for the PieChart. See,
                  * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { if (timeSeriesQueryBuilder_ == null) { @@ -948,12 +1097,16 @@ public Builder setTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQ return this; } /** + * + * *
                  * Required. The query for the PieChart. See,
                  * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTimeSeriesQuery( com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder builderForValue) { @@ -967,18 +1120,24 @@ public Builder setTimeSeriesQuery( return this; } /** + * + * *
                  * Required. The query for the PieChart. See,
                  * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { + public Builder mergeTimeSeriesQuery( + com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { if (timeSeriesQueryBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - timeSeriesQuery_ != null && - timeSeriesQuery_ != com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && timeSeriesQuery_ != null + && timeSeriesQuery_ + != com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance()) { getTimeSeriesQueryBuilder().mergeFrom(value); } else { timeSeriesQuery_ = value; @@ -993,12 +1152,16 @@ public Builder mergeTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSerie return this; } /** + * + * *
                  * Required. The query for the PieChart. See,
                  * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTimeSeriesQuery() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1011,51 +1174,69 @@ public Builder clearTimeSeriesQuery() { return this; } /** + * + * *
                  * Required. The query for the PieChart. See,
                  * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder getTimeSeriesQueryBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder + getTimeSeriesQueryBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTimeSeriesQueryFieldBuilder().getBuilder(); } /** + * + * *
                  * Required. The query for the PieChart. See,
                  * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder + getTimeSeriesQueryOrBuilder() { if (timeSeriesQueryBuilder_ != null) { return timeSeriesQueryBuilder_.getMessageOrBuilder(); } else { - return timeSeriesQuery_ == null ? - com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + return timeSeriesQuery_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() + : timeSeriesQuery_; } } /** + * + * *
                  * Required. The query for the PieChart. See,
                  * `google.monitoring.dashboard.v1.TimeSeriesQuery`.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> + com.google.monitoring.dashboard.v1.TimeSeriesQuery, + com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> getTimeSeriesQueryFieldBuilder() { if (timeSeriesQueryBuilder_ == null) { - timeSeriesQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder>( - getTimeSeriesQuery(), - getParentForChildren(), - isClean()); + timeSeriesQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesQuery, + com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder>( + getTimeSeriesQuery(), getParentForChildren(), isClean()); timeSeriesQuery_ = null; } return timeSeriesQueryBuilder_; @@ -1063,6 +1244,8 @@ public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeries private java.lang.Object sliceNameTemplate_ = ""; /** + * + * *
                  * Optional. A template for the name of the slice. This name will be
                  * displayed in the legend and the tooltip of the pie chart. It replaces the
          @@ -1073,13 +1256,13 @@ public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeries
                  * 
          * * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sliceNameTemplate. */ public java.lang.String getSliceNameTemplate() { java.lang.Object ref = sliceNameTemplate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sliceNameTemplate_ = s; return s; @@ -1088,6 +1271,8 @@ public java.lang.String getSliceNameTemplate() { } } /** + * + * *
                  * Optional. A template for the name of the slice. This name will be
                  * displayed in the legend and the tooltip of the pie chart. It replaces the
          @@ -1098,15 +1283,14 @@ public java.lang.String getSliceNameTemplate() {
                  * 
          * * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sliceNameTemplate. */ - public com.google.protobuf.ByteString - getSliceNameTemplateBytes() { + public com.google.protobuf.ByteString getSliceNameTemplateBytes() { java.lang.Object ref = sliceNameTemplate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sliceNameTemplate_ = b; return b; } else { @@ -1114,6 +1298,8 @@ public java.lang.String getSliceNameTemplate() { } } /** + * + * *
                  * Optional. A template for the name of the slice. This name will be
                  * displayed in the legend and the tooltip of the pie chart. It replaces the
          @@ -1124,18 +1310,22 @@ public java.lang.String getSliceNameTemplate() {
                  * 
          * * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The sliceNameTemplate to set. * @return This builder for chaining. */ - public Builder setSliceNameTemplate( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSliceNameTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sliceNameTemplate_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
                  * Optional. A template for the name of the slice. This name will be
                  * displayed in the legend and the tooltip of the pie chart. It replaces the
          @@ -1146,6 +1336,7 @@ public Builder setSliceNameTemplate(
                  * 
          * * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSliceNameTemplate() { @@ -1155,6 +1346,8 @@ public Builder clearSliceNameTemplate() { return this; } /** + * + * *
                  * Optional. A template for the name of the slice. This name will be
                  * displayed in the legend and the tooltip of the pie chart. It replaces the
          @@ -1165,12 +1358,14 @@ public Builder clearSliceNameTemplate() {
                  * 
          * * string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for sliceNameTemplate to set. * @return This builder for chaining. */ - public Builder setSliceNameTemplateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSliceNameTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sliceNameTemplate_ = value; bitField0_ |= 0x00000002; @@ -1180,8 +1375,13 @@ public Builder setSliceNameTemplateBytes( private com.google.protobuf.Duration minAlignmentPeriod_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minAlignmentPeriodBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + minAlignmentPeriodBuilder_; /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1190,13 +1390,18 @@ public Builder setSliceNameTemplateBytes(
                  * 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]; + * + * * @return Whether the minAlignmentPeriod field is set. */ public boolean hasMinAlignmentPeriod() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1205,17 +1410,24 @@ public boolean hasMinAlignmentPeriod() {
                  * 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]; + * + * * @return The minAlignmentPeriod. */ public com.google.protobuf.Duration getMinAlignmentPeriod() { if (minAlignmentPeriodBuilder_ == null) { - return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + return minAlignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minAlignmentPeriod_; } else { return minAlignmentPeriodBuilder_.getMessage(); } } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1224,7 +1436,9 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() {
                  * 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]; + * */ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) { if (minAlignmentPeriodBuilder_ == null) { @@ -1240,6 +1454,8 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) { return this; } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1248,10 +1464,11 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) {
                  * 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]; + * */ - public Builder setMinAlignmentPeriod( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builderForValue) { if (minAlignmentPeriodBuilder_ == null) { minAlignmentPeriod_ = builderForValue.build(); } else { @@ -1262,6 +1479,8 @@ public Builder setMinAlignmentPeriod( return this; } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1270,13 +1489,15 @@ public Builder setMinAlignmentPeriod(
                  * 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]; + * */ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) { if (minAlignmentPeriodBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - minAlignmentPeriod_ != null && - minAlignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && minAlignmentPeriod_ != null + && minAlignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { getMinAlignmentPeriodBuilder().mergeFrom(value); } else { minAlignmentPeriod_ = value; @@ -1291,6 +1512,8 @@ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) { return this; } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1299,7 +1522,9 @@ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) {
                  * 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]; + * */ public Builder clearMinAlignmentPeriod() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1312,6 +1537,8 @@ public Builder clearMinAlignmentPeriod() { return this; } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1320,7 +1547,9 @@ public Builder clearMinAlignmentPeriod() {
                  * 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]; + * */ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() { bitField0_ |= 0x00000004; @@ -1328,6 +1557,8 @@ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() { return getMinAlignmentPeriodFieldBuilder().getBuilder(); } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1336,17 +1567,22 @@ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() {
                  * 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]; + * */ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { if (minAlignmentPeriodBuilder_ != null) { return minAlignmentPeriodBuilder_.getMessageOrBuilder(); } else { - return minAlignmentPeriod_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + return minAlignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minAlignmentPeriod_; } } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1355,21 +1591,27 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() {
                  * 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]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getMinAlignmentPeriodFieldBuilder() { if (minAlignmentPeriodBuilder_ == null) { - minAlignmentPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMinAlignmentPeriod(), - getParentForChildren(), - isClean()); + minAlignmentPeriodBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMinAlignmentPeriod(), getParentForChildren(), isClean()); minAlignmentPeriod_ = null; } return minAlignmentPeriodBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1382,12 +1624,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.PieChart.PieChartDataSet) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.PieChart.PieChartDataSet) - private static final com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet DEFAULT_INSTANCE; + private static final com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet(); } @@ -1396,27 +1639,28 @@ public static com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PieChartDataSet 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PieChartDataSet 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; @@ -1431,63 +1675,85 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int DATA_SETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List dataSets_; /** + * + * *
              * Required. The queries for the chart's data.
              * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List getDataSetsList() { + public java.util.List + getDataSetsList() { return dataSets_; } /** + * + * *
              * Required. The queries for the chart's data.
              * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder> getDataSetsOrBuilderList() { return dataSets_; } /** + * + * *
              * Required. The queries for the chart's data.
              * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getDataSetsCount() { return dataSets_.size(); } /** + * + * *
              * Required. The queries for the chart's data.
              * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet getDataSets(int index) { return dataSets_.get(index); } /** + * + * *
              * Required. The queries for the chart's data.
              * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder getDataSetsOrBuilder( @@ -1498,37 +1764,55 @@ public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder getD public static final int CHART_TYPE_FIELD_NUMBER = 2; private int chartType_ = 0; /** + * + * *
              * Required. Indicates the visualization type for the PieChart.
              * 
          * - * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for chartType. */ - @java.lang.Override public int getChartTypeValue() { + @java.lang.Override + public int getChartTypeValue() { return chartType_; } /** + * + * *
              * Required. Indicates the visualization type for the PieChart.
              * 
          * - * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The chartType. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.PieChart.PieChartType getChartType() { - com.google.monitoring.dashboard.v1.PieChart.PieChartType result = com.google.monitoring.dashboard.v1.PieChart.PieChartType.forNumber(chartType_); - return result == null ? com.google.monitoring.dashboard.v1.PieChart.PieChartType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.PieChart.PieChartType getChartType() { + com.google.monitoring.dashboard.v1.PieChart.PieChartType result = + com.google.monitoring.dashboard.v1.PieChart.PieChartType.forNumber(chartType_); + return result == null + ? com.google.monitoring.dashboard.v1.PieChart.PieChartType.UNRECOGNIZED + : result; } public static final int SHOW_LABELS_FIELD_NUMBER = 4; private boolean showLabels_ = false; /** + * + * *
              * Optional. Indicates whether or not the pie chart should show slices' labels
              * 
          * * bool show_labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The showLabels. */ @java.lang.Override @@ -1537,6 +1821,7 @@ public boolean getShowLabels() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1548,12 +1833,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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 (chartType_ != com.google.monitoring.dashboard.v1.PieChart.PieChartType.PIE_CHART_TYPE_UNSPECIFIED.getNumber()) { + if (chartType_ + != com.google.monitoring.dashboard.v1.PieChart.PieChartType.PIE_CHART_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, chartType_); } if (showLabels_ != false) { @@ -1569,16 +1855,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < dataSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, dataSets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataSets_.get(i)); } - if (chartType_ != com.google.monitoring.dashboard.v1.PieChart.PieChartType.PIE_CHART_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, chartType_); + if (chartType_ + != com.google.monitoring.dashboard.v1.PieChart.PieChartType.PIE_CHART_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, chartType_); } if (showLabels_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, showLabels_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showLabels_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1588,18 +1873,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.PieChart)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.PieChart other = (com.google.monitoring.dashboard.v1.PieChart) obj; + com.google.monitoring.dashboard.v1.PieChart other = + (com.google.monitoring.dashboard.v1.PieChart) obj; - if (!getDataSetsList() - .equals(other.getDataSetsList())) return false; + if (!getDataSetsList().equals(other.getDataSetsList())) return false; if (chartType_ != other.chartType_) return false; - if (getShowLabels() - != other.getShowLabels()) return false; + if (getShowLabels() != other.getShowLabels()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1618,139 +1902,142 @@ public int hashCode() { hash = (37 * hash) + CHART_TYPE_FIELD_NUMBER; hash = (53 * hash) + chartType_; hash = (37 * hash) + SHOW_LABELS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShowLabels()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowLabels()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.monitoring.dashboard.v1.PieChart parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.PieChart parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.PieChart parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.PieChart parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.PieChart 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.PieChart parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.PieChart parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.PieChart parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.PieChart parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.PieChart parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.PieChart parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.PieChart parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.PieChart parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.PieChart parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.PieChart prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A widget that displays timeseries data as a pie or a donut.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.PieChart} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.PieChart) com.google.monitoring.dashboard.v1.PieChartOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.PieChartProto + .internal_static_google_monitoring_dashboard_v1_PieChart_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_fieldAccessorTable + return com.google.monitoring.dashboard.v1.PieChartProto + .internal_static_google_monitoring_dashboard_v1_PieChart_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.PieChart.class, com.google.monitoring.dashboard.v1.PieChart.Builder.class); + com.google.monitoring.dashboard.v1.PieChart.class, + com.google.monitoring.dashboard.v1.PieChart.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.PieChart.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1768,9 +2055,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.PieChartProto.internal_static_google_monitoring_dashboard_v1_PieChart_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.PieChartProto + .internal_static_google_monitoring_dashboard_v1_PieChart_descriptor; } @java.lang.Override @@ -1789,9 +2076,12 @@ public com.google.monitoring.dashboard.v1.PieChart build() { @java.lang.Override public com.google.monitoring.dashboard.v1.PieChart buildPartial() { - com.google.monitoring.dashboard.v1.PieChart result = new com.google.monitoring.dashboard.v1.PieChart(this); + com.google.monitoring.dashboard.v1.PieChart result = + new com.google.monitoring.dashboard.v1.PieChart(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1822,38 +2112,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.PieChart result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.PieChart) { - return mergeFrom((com.google.monitoring.dashboard.v1.PieChart)other); + return mergeFrom((com.google.monitoring.dashboard.v1.PieChart) other); } else { super.mergeFrom(other); return this; @@ -1880,9 +2171,10 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.PieChart other) { dataSetsBuilder_ = null; dataSets_ = other.dataSets_; bitField0_ = (bitField0_ & ~0x00000001); - dataSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataSetsFieldBuilder() : null; + dataSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataSetsFieldBuilder() + : null; } else { dataSetsBuilder_.addAllMessages(other.dataSets_); } @@ -1920,35 +2212,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet m = - input.readMessage( - com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.parser(), - extensionRegistry); - if (dataSetsBuilder_ == null) { - ensureDataSetsIsMutable(); - dataSets_.add(m); - } else { - dataSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: { - chartType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 32: { - showLabels_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet m = + input.readMessage( + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.parser(), + extensionRegistry); + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + dataSets_.add(m); + } else { + dataSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + chartType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 32: + { + showLabels_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + 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) { @@ -1958,28 +2254,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List dataSets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDataSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - dataSets_ = new java.util.ArrayList(dataSets_); + dataSets_ = + new java.util.ArrayList( + dataSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder> dataSetsBuilder_; + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet, + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder, + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder> + dataSetsBuilder_; /** + * + * *
                * Required. The queries for the chart's data.
                * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getDataSetsList() { + public java.util.List + getDataSetsList() { if (dataSetsBuilder_ == null) { return java.util.Collections.unmodifiableList(dataSets_); } else { @@ -1987,11 +2295,15 @@ public java.util.List * Required. The queries for the chart's data. *
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getDataSetsCount() { if (dataSetsBuilder_ == null) { @@ -2001,11 +2313,15 @@ public int getDataSetsCount() { } } /** + * + * *
                * Required. The queries for the chart's data.
                * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet getDataSets(int index) { if (dataSetsBuilder_ == null) { @@ -2015,11 +2331,15 @@ public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet getDataSets(i } } /** + * + * *
                * Required. The queries for the chart's data.
                * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDataSets( int index, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet value) { @@ -2036,14 +2356,19 @@ public Builder setDataSets( return this; } /** + * + * *
                * Required. The queries for the chart's data.
                * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDataSets( - int index, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder builderForValue) { + int index, + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder builderForValue) { if (dataSetsBuilder_ == null) { ensureDataSetsIsMutable(); dataSets_.set(index, builderForValue.build()); @@ -2054,11 +2379,15 @@ public Builder setDataSets( return this; } /** + * + * *
                * Required. The queries for the chart's data.
                * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addDataSets(com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet value) { if (dataSetsBuilder_ == null) { @@ -2074,11 +2403,15 @@ public Builder addDataSets(com.google.monitoring.dashboard.v1.PieChart.PieChartD return this; } /** + * + * *
                * Required. The queries for the chart's data.
                * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addDataSets( int index, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet value) { @@ -2095,11 +2428,15 @@ public Builder addDataSets( return this; } /** + * + * *
                * Required. The queries for the chart's data.
                * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addDataSets( com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder builderForValue) { @@ -2113,14 +2450,19 @@ public Builder addDataSets( return this; } /** + * + * *
                * Required. The queries for the chart's data.
                * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addDataSets( - int index, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder builderForValue) { + int index, + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder builderForValue) { if (dataSetsBuilder_ == null) { ensureDataSetsIsMutable(); dataSets_.add(index, builderForValue.build()); @@ -2131,18 +2473,22 @@ public Builder addDataSets( return this; } /** + * + * *
                * Required. The queries for the chart's data.
                * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllDataSets( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (dataSetsBuilder_ == null) { ensureDataSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dataSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataSets_); onChanged(); } else { dataSetsBuilder_.addAllMessages(values); @@ -2150,11 +2496,15 @@ public Builder addAllDataSets( return this; } /** + * + * *
                * Required. The queries for the chart's data.
                * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDataSets() { if (dataSetsBuilder_ == null) { @@ -2167,11 +2517,15 @@ public Builder clearDataSets() { return this; } /** + * + * *
                * Required. The queries for the chart's data.
                * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeDataSets(int index) { if (dataSetsBuilder_ == null) { @@ -2184,39 +2538,53 @@ public Builder removeDataSets(int index) { return this; } /** + * + * *
                * Required. The queries for the chart's data.
                * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder getDataSetsBuilder( int index) { return getDataSetsFieldBuilder().getBuilder(index); } /** + * + * *
                * Required. The queries for the chart's data.
                * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder getDataSetsOrBuilder( - int index) { + public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder + getDataSetsOrBuilder(int index) { if (dataSetsBuilder_ == null) { - return dataSets_.get(index); } else { + return dataSets_.get(index); + } else { return dataSetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * Required. The queries for the chart's data.
                * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getDataSetsOrBuilderList() { + public java.util.List< + ? extends com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder> + getDataSetsOrBuilderList() { if (dataSetsBuilder_ != null) { return dataSetsBuilder_.getMessageOrBuilderList(); } else { @@ -2224,49 +2592,68 @@ public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder getD } } /** + * + * *
                * Required. The queries for the chart's data.
                * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder addDataSetsBuilder() { - return getDataSetsFieldBuilder().addBuilder( - com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.getDefaultInstance()); + public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder + addDataSetsBuilder() { + return getDataSetsFieldBuilder() + .addBuilder( + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.getDefaultInstance()); } /** + * + * *
                * Required. The queries for the chart's data.
                * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder addDataSetsBuilder( int index) { - return getDataSetsFieldBuilder().addBuilder( - index, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.getDefaultInstance()); + return getDataSetsFieldBuilder() + .addBuilder( + index, + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.getDefaultInstance()); } /** + * + * *
                * Required. The queries for the chart's data.
                * 
          * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getDataSetsBuilderList() { + public java.util.List + getDataSetsBuilderList() { return getDataSetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder> + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet, + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder, + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder> getDataSetsFieldBuilder() { if (dataSetsBuilder_ == null) { - dataSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder, com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder>( - dataSets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + dataSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet, + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder, + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder>( + dataSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); dataSets_ = null; } return dataSetsBuilder_; @@ -2274,22 +2661,33 @@ public com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder addDa private int chartType_ = 0; /** + * + * *
                * Required. Indicates the visualization type for the PieChart.
                * 
          * - * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for chartType. */ - @java.lang.Override public int getChartTypeValue() { + @java.lang.Override + public int getChartTypeValue() { return chartType_; } /** + * + * *
                * Required. Indicates the visualization type for the PieChart.
                * 
          * - * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for chartType to set. * @return This builder for chaining. */ @@ -2300,24 +2698,37 @@ public Builder setChartTypeValue(int value) { return this; } /** + * + * *
                * Required. Indicates the visualization type for the PieChart.
                * 
          * - * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The chartType. */ @java.lang.Override public com.google.monitoring.dashboard.v1.PieChart.PieChartType getChartType() { - com.google.monitoring.dashboard.v1.PieChart.PieChartType result = com.google.monitoring.dashboard.v1.PieChart.PieChartType.forNumber(chartType_); - return result == null ? com.google.monitoring.dashboard.v1.PieChart.PieChartType.UNRECOGNIZED : result; + com.google.monitoring.dashboard.v1.PieChart.PieChartType result = + com.google.monitoring.dashboard.v1.PieChart.PieChartType.forNumber(chartType_); + return result == null + ? com.google.monitoring.dashboard.v1.PieChart.PieChartType.UNRECOGNIZED + : result; } /** + * + * *
                * Required. Indicates the visualization type for the PieChart.
                * 
          * - * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The chartType to set. * @return This builder for chaining. */ @@ -2331,11 +2742,16 @@ public Builder setChartType(com.google.monitoring.dashboard.v1.PieChart.PieChart return this; } /** + * + * *
                * Required. Indicates the visualization type for the PieChart.
                * 
          * - * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearChartType() { @@ -2345,13 +2761,16 @@ public Builder clearChartType() { return this; } - private boolean showLabels_ ; + private boolean showLabels_; /** + * + * *
                * Optional. Indicates whether or not the pie chart should show slices' labels
                * 
          * * bool show_labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The showLabels. */ @java.lang.Override @@ -2359,11 +2778,14 @@ public boolean getShowLabels() { return showLabels_; } /** + * + * *
                * Optional. Indicates whether or not the pie chart should show slices' labels
                * 
          * * bool show_labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The showLabels to set. * @return This builder for chaining. */ @@ -2375,11 +2797,14 @@ public Builder setShowLabels(boolean value) { return this; } /** + * + * *
                * Optional. Indicates whether or not the pie chart should show slices' labels
                * 
          * * bool show_labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearShowLabels() { @@ -2388,9 +2813,9 @@ public Builder clearShowLabels() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2400,12 +2825,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.PieChart) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.PieChart) private static final com.google.monitoring.dashboard.v1.PieChart DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.PieChart(); } @@ -2414,27 +2839,27 @@ public static com.google.monitoring.dashboard.v1.PieChart getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PieChart 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PieChart 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; @@ -2449,6 +2874,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.PieChart getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartOrBuilder.java new file mode 100644 index 000000000000..d49dac73a4a9 --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/piechart.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public interface PieChartOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.PieChart) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The queries for the chart's data.
          +   * 
          + * + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getDataSetsList(); + /** + * + * + *
          +   * Required. The queries for the chart's data.
          +   * 
          + * + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet getDataSets(int index); + /** + * + * + *
          +   * Required. The queries for the chart's data.
          +   * 
          + * + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getDataSetsCount(); + /** + * + * + *
          +   * Required. The queries for the chart's data.
          +   * 
          + * + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getDataSetsOrBuilderList(); + /** + * + * + *
          +   * Required. The queries for the chart's data.
          +   * 
          + * + * + * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder getDataSetsOrBuilder( + int index); + + /** + * + * + *
          +   * Required. Indicates the visualization type for the PieChart.
          +   * 
          + * + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for chartType. + */ + int getChartTypeValue(); + /** + * + * + *
          +   * Required. Indicates the visualization type for the PieChart.
          +   * 
          + * + * + * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The chartType. + */ + com.google.monitoring.dashboard.v1.PieChart.PieChartType getChartType(); + + /** + * + * + *
          +   * Optional. Indicates whether or not the pie chart should show slices' labels
          +   * 
          + * + * bool show_labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The showLabels. + */ + boolean getShowLabels(); +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartProto.java new file mode 100644 index 000000000000..79b8322dedb3 --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartProto.java @@ -0,0 +1,107 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/piechart.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class PieChartProto { + private PieChartProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_PieChart_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_PieChart_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/monitoring/dashboard/v1/piechar" + + "t.proto\022\036google.monitoring.dashboard.v1\032" + + "\037google/api/field_behavior.proto\032,google" + + "/monitoring/dashboard/v1/metrics.proto\032\036" + + "google/protobuf/duration.proto\"\317\003\n\010PieCh" + + "art\022P\n\tdata_sets\030\001 \003(\01328.google.monitori" + + "ng.dashboard.v1.PieChart.PieChartDataSet" + + "B\003\340A\002\022N\n\nchart_type\030\002 \001(\01625.google.monit" + + "oring.dashboard.v1.PieChart.PieChartType" + + "B\003\340A\002\022\030\n\013show_labels\030\004 \001(\010B\003\340A\001\032\302\001\n\017PieC" + + "hartDataSet\022O\n\021time_series_query\030\001 \001(\0132/" + + ".google.monitoring.dashboard.v1.TimeSeri" + + "esQueryB\003\340A\002\022 \n\023slice_name_template\030\002 \001(" + + "\tB\003\340A\001\022<\n\024min_alignment_period\030\003 \001(\0132\031.g" + + "oogle.protobuf.DurationB\003\340A\001\"B\n\014PieChart" + + "Type\022\036\n\032PIE_CHART_TYPE_UNSPECIFIED\020\000\022\007\n\003" + + "PIE\020\001\022\t\n\005DONUT\020\002B\366\001\n\"com.google.monitori" + + "ng.dashboard.v1B\rPieChartProtoP\001ZFcloud." + + "google.com/go/monitoring/dashboard/apiv1" + + "/dashboardpb;dashboardpb\252\002$Google.Cloud." + + "Monitoring.Dashboard.V1\312\002$Google\\Cloud\\M" + + "onitoring\\Dashboard\\V1\352\002(Google::Cloud::" + + "Monitoring::Dashboard::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_PieChart_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_PieChart_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_PieChart_descriptor, + new java.lang.String[] { + "DataSets", "ChartType", "ShowLabels", + }); + internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor = + internal_static_google_monitoring_dashboard_v1_PieChart_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor, + new java.lang.String[] { + "TimeSeriesQuery", "SliceNameTemplate", "MinAlignmentPeriod", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ProjectName.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ProjectName.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ProjectName.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ProjectName.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayout.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayout.java similarity index 74% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayout.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayout.java index 5311700e09bd..b428f25592f0 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayout.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayout.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/layouts.proto @@ -5,6 +20,8 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A simplified layout that divides the available space into rows
            * and arranges a set of widgets horizontally in each row.
          @@ -12,44 +29,49 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.RowLayout}
            */
          -public final class RowLayout extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class RowLayout extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.RowLayout)
               RowLayoutOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use RowLayout.newBuilder() to construct.
             private RowLayout(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private RowLayout() {
               rows_ = java.util.Collections.emptyList();
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new RowLayout();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.LayoutsProto
          +        .internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.LayoutsProto
          +        .internal_static_google_monitoring_dashboard_v1_RowLayout_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.RowLayout.class, com.google.monitoring.dashboard.v1.RowLayout.Builder.class);
          +            com.google.monitoring.dashboard.v1.RowLayout.class,
          +            com.google.monitoring.dashboard.v1.RowLayout.Builder.class);
             }
           
          -  public interface RowOrBuilder extends
          +  public interface RowOrBuilder
          +      extends
                 // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.RowLayout.Row)
                 com.google.protobuf.MessageOrBuilder {
           
               /**
          +     *
          +     *
                * 
                * The relative weight of this row. The row weight is used to adjust the
                * height of rows on the screen (relative to peers). Greater the weight,
          @@ -58,20 +80,24 @@ public interface RowOrBuilder extends
                * 
          * * int64 weight = 1; + * * @return The weight. */ long getWeight(); /** + * + * *
                * The display widgets arranged horizontally in this row.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - java.util.List - getWidgetsList(); + java.util.List getWidgetsList(); /** + * + * *
                * The display widgets arranged horizontally in this row.
                * 
          @@ -80,6 +106,8 @@ public interface RowOrBuilder extends */ com.google.monitoring.dashboard.v1.Widget getWidgets(int index); /** + * + * *
                * The display widgets arranged horizontally in this row.
                * 
          @@ -88,67 +116,76 @@ public interface RowOrBuilder extends */ int getWidgetsCount(); /** + * + * *
                * The display widgets arranged horizontally in this row.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - java.util.List + java.util.List getWidgetsOrBuilderList(); /** + * + * *
                * The display widgets arranged horizontally in this row.
                * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( - int index); + com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index); } /** + * + * *
              * Defines the layout properties and content for a row.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.RowLayout.Row} */ - public static final class Row extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Row extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.RowLayout.Row) RowOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Row.newBuilder() to construct. private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Row() { widgets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Row(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_Row_fieldAccessorTable + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_RowLayout_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.RowLayout.Row.class, com.google.monitoring.dashboard.v1.RowLayout.Row.Builder.class); + com.google.monitoring.dashboard.v1.RowLayout.Row.class, + com.google.monitoring.dashboard.v1.RowLayout.Row.Builder.class); } public static final int WEIGHT_FIELD_NUMBER = 1; private long weight_ = 0L; /** + * + * *
                * The relative weight of this row. The row weight is used to adjust the
                * height of rows on the screen (relative to peers). Greater the weight,
          @@ -157,6 +194,7 @@ protected java.lang.Object newInstance(
                * 
          * * int64 weight = 1; + * * @return The weight. */ @java.lang.Override @@ -165,9 +203,12 @@ public long getWeight() { } public static final int WIDGETS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List widgets_; /** + * + * *
                * The display widgets arranged horizontally in this row.
                * 
          @@ -179,6 +220,8 @@ public java.util.List getWidgetsList( return widgets_; } /** + * + * *
                * The display widgets arranged horizontally in this row.
                * 
          @@ -186,11 +229,13 @@ public java.util.List getWidgetsList( * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ @java.lang.Override - public java.util.List + public java.util.List getWidgetsOrBuilderList() { return widgets_; } /** + * + * *
                * The display widgets arranged horizontally in this row.
                * 
          @@ -202,6 +247,8 @@ public int getWidgetsCount() { return widgets_.size(); } /** + * + * *
                * The display widgets arranged horizontally in this row.
                * 
          @@ -213,6 +260,8 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { return widgets_.get(index); } /** + * + * *
                * The display widgets arranged horizontally in this row.
                * 
          @@ -220,12 +269,12 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( - int index) { + public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index) { return widgets_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,8 +286,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (weight_ != 0L) { output.writeInt64(1, weight_); } @@ -255,12 +303,10 @@ public int getSerializedSize() { size = 0; if (weight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, weight_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, weight_); } for (int i = 0; i < widgets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, widgets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, widgets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -270,17 +316,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.RowLayout.Row)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.RowLayout.Row other = (com.google.monitoring.dashboard.v1.RowLayout.Row) obj; + com.google.monitoring.dashboard.v1.RowLayout.Row other = + (com.google.monitoring.dashboard.v1.RowLayout.Row) obj; - if (getWeight() - != other.getWeight()) return false; - if (!getWidgetsList() - .equals(other.getWidgetsList())) return false; + if (getWeight() != other.getWeight()) return false; + if (!getWidgetsList().equals(other.getWidgetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -293,8 +338,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getWeight()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWeight()); if (getWidgetsCount() > 0) { hash = (37 * hash) + WIDGETS_FIELD_NUMBER; hash = (53 * hash) + getWidgetsList().hashCode(); @@ -305,89 +349,93 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.RowLayout.Row parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.RowLayout.Row parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.RowLayout.Row parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.RowLayout.Row 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.RowLayout.Row parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.RowLayout.Row parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.RowLayout.Row parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.RowLayout.Row parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.RowLayout.Row parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.RowLayout.Row parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.RowLayout.Row parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.RowLayout.Row parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.RowLayout.Row parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.RowLayout.Row parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.RowLayout.Row prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -397,39 +445,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                * Defines the layout properties and content for a row.
                * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.RowLayout.Row} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.RowLayout.Row) com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_Row_fieldAccessorTable + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_RowLayout_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.RowLayout.Row.class, com.google.monitoring.dashboard.v1.RowLayout.Row.Builder.class); + com.google.monitoring.dashboard.v1.RowLayout.Row.class, + com.google.monitoring.dashboard.v1.RowLayout.Row.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.RowLayout.Row.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor; } @java.lang.Override @@ -467,14 +517,18 @@ public com.google.monitoring.dashboard.v1.RowLayout.Row build() { @java.lang.Override public com.google.monitoring.dashboard.v1.RowLayout.Row buildPartial() { - com.google.monitoring.dashboard.v1.RowLayout.Row result = new com.google.monitoring.dashboard.v1.RowLayout.Row(this); + com.google.monitoring.dashboard.v1.RowLayout.Row result = + new com.google.monitoring.dashboard.v1.RowLayout.Row(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.dashboard.v1.RowLayout.Row result) { + private void buildPartialRepeatedFields( + com.google.monitoring.dashboard.v1.RowLayout.Row result) { if (widgetsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { widgets_ = java.util.Collections.unmodifiableList(widgets_); @@ -497,38 +551,41 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.RowLayout.Row resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.RowLayout.Row) { - return mergeFrom((com.google.monitoring.dashboard.v1.RowLayout.Row)other); + return mergeFrom((com.google.monitoring.dashboard.v1.RowLayout.Row) other); } else { super.mergeFrom(other); return this; @@ -536,7 +593,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.RowLayout.Row other) { - if (other == com.google.monitoring.dashboard.v1.RowLayout.Row.getDefaultInstance()) return this; + if (other == com.google.monitoring.dashboard.v1.RowLayout.Row.getDefaultInstance()) + return this; if (other.getWeight() != 0L) { setWeight(other.getWeight()); } @@ -558,9 +616,10 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.RowLayout.Row other) widgetsBuilder_ = null; widgets_ = other.widgets_; bitField0_ = (bitField0_ & ~0x00000002); - widgetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWidgetsFieldBuilder() : null; + widgetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWidgetsFieldBuilder() + : null; } else { widgetsBuilder_.addAllMessages(other.widgets_); } @@ -592,30 +651,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - weight_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - com.google.monitoring.dashboard.v1.Widget m = - input.readMessage( - com.google.monitoring.dashboard.v1.Widget.parser(), - extensionRegistry); - if (widgetsBuilder_ == null) { - ensureWidgetsIsMutable(); - widgets_.add(m); - } else { - widgetsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + weight_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.monitoring.dashboard.v1.Widget m = + input.readMessage( + com.google.monitoring.dashboard.v1.Widget.parser(), extensionRegistry); + if (widgetsBuilder_ == null) { + ensureWidgetsIsMutable(); + widgets_.add(m); + } else { + widgetsBuilder_.addMessage(m); + } + break; + } // case 18 + 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) { @@ -625,10 +686,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long weight_ ; + private long weight_; /** + * + * *
                  * The relative weight of this row. The row weight is used to adjust the
                  * height of rows on the screen (relative to peers). Greater the weight,
          @@ -637,6 +701,7 @@ public Builder mergeFrom(
                  * 
          * * int64 weight = 1; + * * @return The weight. */ @java.lang.Override @@ -644,6 +709,8 @@ public long getWeight() { return weight_; } /** + * + * *
                  * The relative weight of this row. The row weight is used to adjust the
                  * height of rows on the screen (relative to peers). Greater the weight,
          @@ -652,6 +719,7 @@ public long getWeight() {
                  * 
          * * int64 weight = 1; + * * @param value The weight to set. * @return This builder for chaining. */ @@ -663,6 +731,8 @@ public Builder setWeight(long value) { return this; } /** + * + * *
                  * The relative weight of this row. The row weight is used to adjust the
                  * height of rows on the screen (relative to peers). Greater the weight,
          @@ -671,6 +741,7 @@ public Builder setWeight(long value) {
                  * 
          * * int64 weight = 1; + * * @return This builder for chaining. */ public Builder clearWeight() { @@ -681,18 +752,24 @@ public Builder clearWeight() { } private java.util.List widgets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWidgetsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { widgets_ = new java.util.ArrayList(widgets_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder> widgetsBuilder_; + com.google.monitoring.dashboard.v1.Widget, + com.google.monitoring.dashboard.v1.Widget.Builder, + com.google.monitoring.dashboard.v1.WidgetOrBuilder> + widgetsBuilder_; /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -707,6 +784,8 @@ public java.util.List getWidgetsList( } } /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -721,6 +800,8 @@ public int getWidgetsCount() { } } /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -735,14 +816,15 @@ public com.google.monitoring.dashboard.v1.Widget getWidgets(int index) { } } /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder setWidgets( - int index, com.google.monitoring.dashboard.v1.Widget value) { + public Builder setWidgets(int index, com.google.monitoring.dashboard.v1.Widget value) { if (widgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -756,6 +838,8 @@ public Builder setWidgets( return this; } /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -774,6 +858,8 @@ public Builder setWidgets( return this; } /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -794,14 +880,15 @@ public Builder addWidgets(com.google.monitoring.dashboard.v1.Widget value) { return this; } /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder addWidgets( - int index, com.google.monitoring.dashboard.v1.Widget value) { + public Builder addWidgets(int index, com.google.monitoring.dashboard.v1.Widget value) { if (widgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -815,14 +902,15 @@ public Builder addWidgets( return this; } /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public Builder addWidgets( - com.google.monitoring.dashboard.v1.Widget.Builder builderForValue) { + public Builder addWidgets(com.google.monitoring.dashboard.v1.Widget.Builder builderForValue) { if (widgetsBuilder_ == null) { ensureWidgetsIsMutable(); widgets_.add(builderForValue.build()); @@ -833,6 +921,8 @@ public Builder addWidgets( return this; } /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -851,6 +941,8 @@ public Builder addWidgets( return this; } /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -861,8 +953,7 @@ public Builder addAllWidgets( java.lang.Iterable values) { if (widgetsBuilder_ == null) { ensureWidgetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, widgets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, widgets_); onChanged(); } else { widgetsBuilder_.addAllMessages(values); @@ -870,6 +961,8 @@ public Builder addAllWidgets( return this; } /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -887,6 +980,8 @@ public Builder clearWidgets() { return this; } /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -904,39 +999,44 @@ public Builder removeWidgets(int index) { return this; } /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.Widget.Builder getWidgetsBuilder( - int index) { + public com.google.monitoring.dashboard.v1.Widget.Builder getWidgetsBuilder(int index) { return getWidgetsFieldBuilder().getBuilder(index); } /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( - int index) { + public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder(int index) { if (widgetsBuilder_ == null) { - return widgets_.get(index); } else { + return widgets_.get(index); + } else { return widgetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public java.util.List - getWidgetsOrBuilderList() { + public java.util.List + getWidgetsOrBuilderList() { if (widgetsBuilder_ != null) { return widgetsBuilder_.getMessageOrBuilderList(); } else { @@ -944,6 +1044,8 @@ public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( } } /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          @@ -951,46 +1053,53 @@ public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetsOrBuilder( * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder() { - return getWidgetsFieldBuilder().addBuilder( - com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); + return getWidgetsFieldBuilder() + .addBuilder(com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); } /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder( - int index) { - return getWidgetsFieldBuilder().addBuilder( - index, com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); + public com.google.monitoring.dashboard.v1.Widget.Builder addWidgetsBuilder(int index) { + return getWidgetsFieldBuilder() + .addBuilder(index, com.google.monitoring.dashboard.v1.Widget.getDefaultInstance()); } /** + * + * *
                  * The display widgets arranged horizontally in this row.
                  * 
          * * repeated .google.monitoring.dashboard.v1.Widget widgets = 2; */ - public java.util.List - getWidgetsBuilderList() { + public java.util.List + getWidgetsBuilderList() { return getWidgetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder> + com.google.monitoring.dashboard.v1.Widget, + com.google.monitoring.dashboard.v1.Widget.Builder, + com.google.monitoring.dashboard.v1.WidgetOrBuilder> getWidgetsFieldBuilder() { if (widgetsBuilder_ == null) { - widgetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Widget, com.google.monitoring.dashboard.v1.Widget.Builder, com.google.monitoring.dashboard.v1.WidgetOrBuilder>( - widgets_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + widgetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.Widget, + com.google.monitoring.dashboard.v1.Widget.Builder, + com.google.monitoring.dashboard.v1.WidgetOrBuilder>( + widgets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); widgets_ = null; } return widgetsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1003,12 +1112,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.RowLayout.Row) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.RowLayout.Row) private static final com.google.monitoring.dashboard.v1.RowLayout.Row DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.RowLayout.Row(); } @@ -1017,27 +1126,28 @@ public static com.google.monitoring.dashboard.v1.RowLayout.Row getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Row 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Row 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; @@ -1052,13 +1162,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.RowLayout.Row getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int ROWS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List rows_; /** + * + * *
              * The rows of content to display.
              * 
          @@ -1070,6 +1182,8 @@ public java.util.List getRowsL return rows_; } /** + * + * *
              * The rows of content to display.
              * 
          @@ -1077,11 +1191,13 @@ public java.util.List getRowsL * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRowsOrBuilderList() { return rows_; } /** + * + * *
              * The rows of content to display.
              * 
          @@ -1093,6 +1209,8 @@ public int getRowsCount() { return rows_.size(); } /** + * + * *
              * The rows of content to display.
              * 
          @@ -1104,6 +1222,8 @@ public com.google.monitoring.dashboard.v1.RowLayout.Row getRows(int index) { return rows_.get(index); } /** + * + * *
              * The rows of content to display.
              * 
          @@ -1111,12 +1231,12 @@ public com.google.monitoring.dashboard.v1.RowLayout.Row getRows(int index) { * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder getRowsOrBuilder( - int index) { + public com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder getRowsOrBuilder(int index) { return rows_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1128,8 +1248,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < rows_.size(); i++) { output.writeMessage(1, rows_.get(i)); } @@ -1143,8 +1262,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < rows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rows_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rows_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1154,15 +1272,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.RowLayout)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.RowLayout other = (com.google.monitoring.dashboard.v1.RowLayout) obj; + com.google.monitoring.dashboard.v1.RowLayout other = + (com.google.monitoring.dashboard.v1.RowLayout) obj; - if (!getRowsList() - .equals(other.getRowsList())) return false; + if (!getRowsList().equals(other.getRowsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1183,99 +1301,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.RowLayout parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.RowLayout parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.RowLayout parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.RowLayout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.RowLayout 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.RowLayout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.RowLayout parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.RowLayout parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.RowLayout parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.RowLayout parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.RowLayout parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.RowLayout parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.RowLayout parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.RowLayout parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.RowLayout prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A simplified layout that divides the available space into rows
              * and arranges a set of widgets horizontally in each row.
          @@ -1283,33 +1406,32 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.RowLayout}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.RowLayout)
                 com.google.monitoring.dashboard.v1.RowLayoutOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto
          +          .internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.LayoutsProto
          +          .internal_static_google_monitoring_dashboard_v1_RowLayout_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.RowLayout.class, com.google.monitoring.dashboard.v1.RowLayout.Builder.class);
          +              com.google.monitoring.dashboard.v1.RowLayout.class,
          +              com.google.monitoring.dashboard.v1.RowLayout.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.RowLayout.newBuilder()
          -    private Builder() {
          +    private Builder() {}
           
          -    }
          -
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
          -
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -1325,9 +1447,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.LayoutsProto.internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.LayoutsProto
          +          .internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor;
               }
           
               @java.lang.Override
          @@ -1346,9 +1468,12 @@ public com.google.monitoring.dashboard.v1.RowLayout build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.RowLayout buildPartial() {
          -      com.google.monitoring.dashboard.v1.RowLayout result = new com.google.monitoring.dashboard.v1.RowLayout(this);
          +      com.google.monitoring.dashboard.v1.RowLayout result =
          +          new com.google.monitoring.dashboard.v1.RowLayout(this);
                 buildPartialRepeatedFields(result);
          -      if (bitField0_ != 0) { buildPartial0(result); }
          +      if (bitField0_ != 0) {
          +        buildPartial0(result);
          +      }
                 onBuilt();
                 return result;
               }
          @@ -1373,38 +1498,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.RowLayout result)
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.RowLayout) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.RowLayout)other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.RowLayout) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1431,9 +1557,10 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.RowLayout other) {
                       rowsBuilder_ = null;
                       rows_ = other.rows_;
                       bitField0_ = (bitField0_ & ~0x00000001);
          -            rowsBuilder_ = 
          -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          -                 getRowsFieldBuilder() : null;
          +            rowsBuilder_ =
          +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          +                    ? getRowsFieldBuilder()
          +                    : null;
                     } else {
                       rowsBuilder_.addAllMessages(other.rows_);
                     }
          @@ -1465,25 +1592,27 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10: {
          -              com.google.monitoring.dashboard.v1.RowLayout.Row m =
          -                  input.readMessage(
          -                      com.google.monitoring.dashboard.v1.RowLayout.Row.parser(),
          -                      extensionRegistry);
          -              if (rowsBuilder_ == null) {
          -                ensureRowsIsMutable();
          -                rows_.add(m);
          -              } else {
          -                rowsBuilder_.addMessage(m);
          -              }
          -              break;
          -            } // case 10
          -            default: {
          -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                done = true; // was an endgroup tag
          -              }
          -              break;
          -            } // default:
          +            case 10:
          +              {
          +                com.google.monitoring.dashboard.v1.RowLayout.Row m =
          +                    input.readMessage(
          +                        com.google.monitoring.dashboard.v1.RowLayout.Row.parser(),
          +                        extensionRegistry);
          +                if (rowsBuilder_ == null) {
          +                  ensureRowsIsMutable();
          +                  rows_.add(m);
          +                } else {
          +                  rowsBuilder_.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) {
          @@ -1493,21 +1622,28 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          +
               private int bitField0_;
           
               private java.util.List rows_ =
          -      java.util.Collections.emptyList();
          +        java.util.Collections.emptyList();
          +
               private void ensureRowsIsMutable() {
                 if (!((bitField0_ & 0x00000001) != 0)) {
                   rows_ = new java.util.ArrayList(rows_);
                   bitField0_ |= 0x00000001;
          -       }
          +      }
               }
           
               private com.google.protobuf.RepeatedFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.RowLayout.Row, com.google.monitoring.dashboard.v1.RowLayout.Row.Builder, com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder> rowsBuilder_;
          +            com.google.monitoring.dashboard.v1.RowLayout.Row,
          +            com.google.monitoring.dashboard.v1.RowLayout.Row.Builder,
          +            com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder>
          +        rowsBuilder_;
           
               /**
          +     *
          +     *
                * 
                * The rows of content to display.
                * 
          @@ -1522,6 +1658,8 @@ public java.util.List getRowsL } } /** + * + * *
                * The rows of content to display.
                * 
          @@ -1536,6 +1674,8 @@ public int getRowsCount() { } } /** + * + * *
                * The rows of content to display.
                * 
          @@ -1550,14 +1690,15 @@ public com.google.monitoring.dashboard.v1.RowLayout.Row getRows(int index) { } } /** + * + * *
                * The rows of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - public Builder setRows( - int index, com.google.monitoring.dashboard.v1.RowLayout.Row value) { + public Builder setRows(int index, com.google.monitoring.dashboard.v1.RowLayout.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1571,6 +1712,8 @@ public Builder setRows( return this; } /** + * + * *
                * The rows of content to display.
                * 
          @@ -1589,6 +1732,8 @@ public Builder setRows( return this; } /** + * + * *
                * The rows of content to display.
                * 
          @@ -1609,14 +1754,15 @@ public Builder addRows(com.google.monitoring.dashboard.v1.RowLayout.Row value) { return this; } /** + * + * *
                * The rows of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - public Builder addRows( - int index, com.google.monitoring.dashboard.v1.RowLayout.Row value) { + public Builder addRows(int index, com.google.monitoring.dashboard.v1.RowLayout.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1630,6 +1776,8 @@ public Builder addRows( return this; } /** + * + * *
                * The rows of content to display.
                * 
          @@ -1648,6 +1796,8 @@ public Builder addRows( return this; } /** + * + * *
                * The rows of content to display.
                * 
          @@ -1666,6 +1816,8 @@ public Builder addRows( return this; } /** + * + * *
                * The rows of content to display.
                * 
          @@ -1676,8 +1828,7 @@ public Builder addAllRows( java.lang.Iterable values) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rows_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); onChanged(); } else { rowsBuilder_.addAllMessages(values); @@ -1685,6 +1836,8 @@ public Builder addAllRows( return this; } /** + * + * *
                * The rows of content to display.
                * 
          @@ -1702,6 +1855,8 @@ public Builder clearRows() { return this; } /** + * + * *
                * The rows of content to display.
                * 
          @@ -1719,39 +1874,44 @@ public Builder removeRows(int index) { return this; } /** + * + * *
                * The rows of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - public com.google.monitoring.dashboard.v1.RowLayout.Row.Builder getRowsBuilder( - int index) { + public com.google.monitoring.dashboard.v1.RowLayout.Row.Builder getRowsBuilder(int index) { return getRowsFieldBuilder().getBuilder(index); } /** + * + * *
                * The rows of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - public com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder getRowsOrBuilder( - int index) { + public com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder getRowsOrBuilder(int index) { if (rowsBuilder_ == null) { - return rows_.get(index); } else { + return rows_.get(index); + } else { return rowsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * The rows of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - public java.util.List - getRowsOrBuilderList() { + public java.util.List + getRowsOrBuilderList() { if (rowsBuilder_ != null) { return rowsBuilder_.getMessageOrBuilderList(); } else { @@ -1759,6 +1919,8 @@ public com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder getRowsOrBuilde } } /** + * + * *
                * The rows of content to display.
                * 
          @@ -1766,49 +1928,55 @@ public com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder getRowsOrBuilde * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ public com.google.monitoring.dashboard.v1.RowLayout.Row.Builder addRowsBuilder() { - return getRowsFieldBuilder().addBuilder( - com.google.monitoring.dashboard.v1.RowLayout.Row.getDefaultInstance()); + return getRowsFieldBuilder() + .addBuilder(com.google.monitoring.dashboard.v1.RowLayout.Row.getDefaultInstance()); } /** + * + * *
                * The rows of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - public com.google.monitoring.dashboard.v1.RowLayout.Row.Builder addRowsBuilder( - int index) { - return getRowsFieldBuilder().addBuilder( - index, com.google.monitoring.dashboard.v1.RowLayout.Row.getDefaultInstance()); + public com.google.monitoring.dashboard.v1.RowLayout.Row.Builder addRowsBuilder(int index) { + return getRowsFieldBuilder() + .addBuilder(index, com.google.monitoring.dashboard.v1.RowLayout.Row.getDefaultInstance()); } /** + * + * *
                * The rows of content to display.
                * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - public java.util.List - getRowsBuilderList() { + public java.util.List + getRowsBuilderList() { return getRowsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.RowLayout.Row, com.google.monitoring.dashboard.v1.RowLayout.Row.Builder, com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder> + com.google.monitoring.dashboard.v1.RowLayout.Row, + com.google.monitoring.dashboard.v1.RowLayout.Row.Builder, + com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder> getRowsFieldBuilder() { if (rowsBuilder_ == null) { - rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.RowLayout.Row, com.google.monitoring.dashboard.v1.RowLayout.Row.Builder, com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder>( - rows_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + rowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.RowLayout.Row, + com.google.monitoring.dashboard.v1.RowLayout.Row.Builder, + com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder>( + rows_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); rows_ = null; } return rowsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1818,12 +1986,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.RowLayout) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.RowLayout) private static final com.google.monitoring.dashboard.v1.RowLayout DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.RowLayout(); } @@ -1832,27 +2000,27 @@ public static com.google.monitoring.dashboard.v1.RowLayout getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RowLayout 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RowLayout 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; @@ -1867,6 +2035,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.RowLayout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayoutOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayoutOrBuilder.java similarity index 65% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayoutOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayoutOrBuilder.java index 6182a600cefe..321c9fe542b0 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayoutOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/RowLayoutOrBuilder.java @@ -1,23 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/layouts.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface RowLayoutOrBuilder extends +public interface RowLayoutOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.RowLayout) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * The rows of content to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - java.util.List - getRowsList(); + java.util.List getRowsList(); /** + * + * *
              * The rows of content to display.
              * 
          @@ -26,6 +45,8 @@ public interface RowLayoutOrBuilder extends */ com.google.monitoring.dashboard.v1.RowLayout.Row getRows(int index); /** + * + * *
              * The rows of content to display.
              * 
          @@ -34,21 +55,24 @@ public interface RowLayoutOrBuilder extends */ int getRowsCount(); /** + * + * *
              * The rows of content to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - java.util.List + java.util.List getRowsOrBuilderList(); /** + * + * *
              * The rows of content to display.
              * 
          * * repeated .google.monitoring.dashboard.v1.RowLayout.Row rows = 1; */ - com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder getRowsOrBuilder( - int index); + com.google.monitoring.dashboard.v1.RowLayout.RowOrBuilder getRowsOrBuilder(int index); } diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Scorecard.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Scorecard.java similarity index 77% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Scorecard.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Scorecard.java index 7111623ef989..b61ddc84a09c 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Scorecard.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Scorecard.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/scorecard.proto @@ -5,6 +20,8 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A widget showing the latest value of a metric, and how this value relates to
            * one or more thresholds.
          @@ -12,66 +29,77 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.Scorecard}
            */
          -public final class Scorecard extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class Scorecard extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Scorecard)
               ScorecardOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use Scorecard.newBuilder() to construct.
             private Scorecard(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private Scorecard() {
               thresholds_ = java.util.Collections.emptyList();
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new Scorecard();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.ScorecardProto
          +        .internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.ScorecardProto
          +        .internal_static_google_monitoring_dashboard_v1_Scorecard_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.Scorecard.class, com.google.monitoring.dashboard.v1.Scorecard.Builder.class);
          +            com.google.monitoring.dashboard.v1.Scorecard.class,
          +            com.google.monitoring.dashboard.v1.Scorecard.Builder.class);
             }
           
          -  public interface GaugeViewOrBuilder extends
          +  public interface GaugeViewOrBuilder
          +      extends
                 // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Scorecard.GaugeView)
                 com.google.protobuf.MessageOrBuilder {
           
               /**
          +     *
          +     *
                * 
                * The lower bound for this gauge chart. The value of the chart should
                * always be greater than or equal to this.
                * 
          * * double lower_bound = 1; + * * @return The lowerBound. */ double getLowerBound(); /** + * + * *
                * The upper bound for this gauge chart. The value of the chart should
                * always be less than or equal to this.
                * 
          * * double upper_bound = 2; + * * @return The upperBound. */ double getUpperBound(); } /** + * + * *
              * A gauge chart shows where the current value sits within a pre-defined
              * range. The upper and lower bounds should define the possible range of
          @@ -80,47 +108,51 @@ public interface GaugeViewOrBuilder extends
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.Scorecard.GaugeView}
              */
          -  public static final class GaugeView extends
          -      com.google.protobuf.GeneratedMessageV3 implements
          +  public static final class GaugeView extends com.google.protobuf.GeneratedMessageV3
          +      implements
                 // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Scorecard.GaugeView)
                 GaugeViewOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +    private static final long serialVersionUID = 0L;
               // Use GaugeView.newBuilder() to construct.
               private GaugeView(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
          -    private GaugeView() {
          -    }
          +
          +    private GaugeView() {}
           
               @java.lang.Override
               @SuppressWarnings({"unused"})
          -    protected java.lang.Object newInstance(
          -        UnusedPrivateParameter unused) {
          +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new GaugeView();
               }
           
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.ScorecardProto
          +          .internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.ScorecardProto
          +          .internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.Scorecard.GaugeView.class, com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder.class);
          +              com.google.monitoring.dashboard.v1.Scorecard.GaugeView.class,
          +              com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder.class);
               }
           
               public static final int LOWER_BOUND_FIELD_NUMBER = 1;
               private double lowerBound_ = 0D;
               /**
          +     *
          +     *
                * 
                * The lower bound for this gauge chart. The value of the chart should
                * always be greater than or equal to this.
                * 
          * * double lower_bound = 1; + * * @return The lowerBound. */ @java.lang.Override @@ -131,12 +163,15 @@ public double getLowerBound() { public static final int UPPER_BOUND_FIELD_NUMBER = 2; private double upperBound_ = 0D; /** + * + * *
                * The upper bound for this gauge chart. The value of the chart should
                * always be less than or equal to this.
                * 
          * * double upper_bound = 2; + * * @return The upperBound. */ @java.lang.Override @@ -145,6 +180,7 @@ public double getUpperBound() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -156,8 +192,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Double.doubleToRawLongBits(lowerBound_) != 0) { output.writeDouble(1, lowerBound_); } @@ -174,12 +209,10 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(lowerBound_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, lowerBound_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, lowerBound_); } if (java.lang.Double.doubleToRawLongBits(upperBound_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, upperBound_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, upperBound_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -189,19 +222,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.Scorecard.GaugeView)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.Scorecard.GaugeView other = (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) obj; + com.google.monitoring.dashboard.v1.Scorecard.GaugeView other = + (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) obj; if (java.lang.Double.doubleToLongBits(getLowerBound()) - != java.lang.Double.doubleToLongBits( - other.getLowerBound())) return false; + != java.lang.Double.doubleToLongBits(other.getLowerBound())) return false; if (java.lang.Double.doubleToLongBits(getUpperBound()) - != java.lang.Double.doubleToLongBits( - other.getUpperBound())) return false; + != java.lang.Double.doubleToLongBits(other.getUpperBound())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -214,100 +246,109 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOWER_BOUND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getLowerBound())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLowerBound())); hash = (37 * hash) + UPPER_BOUND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getUpperBound())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getUpperBound())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Scorecard.GaugeView parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView 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.Scorecard.GaugeView parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.Scorecard.GaugeView prototype) { + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.Scorecard.GaugeView prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -317,6 +358,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                * A gauge chart shows where the current value sits within a pre-defined
                * range. The upper and lower bounds should define the possible range of
          @@ -325,33 +368,33 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.monitoring.dashboard.v1.Scorecard.GaugeView}
                */
          -    public static final class Builder extends
          -        com.google.protobuf.GeneratedMessageV3.Builder implements
          +    public static final class Builder
          +        extends com.google.protobuf.GeneratedMessageV3.Builder
          +        implements
                   // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Scorecard.GaugeView)
                   com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder {
          -      public static final com.google.protobuf.Descriptors.Descriptor
          -          getDescriptor() {
          -        return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor;
          +      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +        return com.google.monitoring.dashboard.v1.ScorecardProto
          +            .internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor;
                 }
           
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
          -        return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_fieldAccessorTable
          +        return com.google.monitoring.dashboard.v1.ScorecardProto
          +            .internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
          -                com.google.monitoring.dashboard.v1.Scorecard.GaugeView.class, com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder.class);
          +                com.google.monitoring.dashboard.v1.Scorecard.GaugeView.class,
          +                com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder.class);
                 }
           
                 // Construct using com.google.monitoring.dashboard.v1.Scorecard.GaugeView.newBuilder()
          -      private Builder() {
          -
          -      }
          +      private Builder() {}
           
          -      private Builder(
          -          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   super(parent);
          -
                 }
          +
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
          @@ -362,9 +405,9 @@ public Builder clear() {
                 }
           
                 @java.lang.Override
          -      public com.google.protobuf.Descriptors.Descriptor
          -          getDescriptorForType() {
          -        return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor;
          +      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +        return com.google.monitoring.dashboard.v1.ScorecardProto
          +            .internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor;
                 }
           
                 @java.lang.Override
          @@ -383,8 +426,11 @@ public com.google.monitoring.dashboard.v1.Scorecard.GaugeView build() {
           
                 @java.lang.Override
                 public com.google.monitoring.dashboard.v1.Scorecard.GaugeView buildPartial() {
          -        com.google.monitoring.dashboard.v1.Scorecard.GaugeView result = new com.google.monitoring.dashboard.v1.Scorecard.GaugeView(this);
          -        if (bitField0_ != 0) { buildPartial0(result); }
          +        com.google.monitoring.dashboard.v1.Scorecard.GaugeView result =
          +            new com.google.monitoring.dashboard.v1.Scorecard.GaugeView(this);
          +        if (bitField0_ != 0) {
          +          buildPartial0(result);
          +        }
                   onBuilt();
                   return result;
                 }
          @@ -403,38 +449,41 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Scorecard.GaugeVie
                 public Builder clone() {
                   return super.clone();
                 }
          +
                 @java.lang.Override
                 public Builder setField(
          -          com.google.protobuf.Descriptors.FieldDescriptor field,
          -          java.lang.Object value) {
          +          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) {
          +      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) {
          +      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) {
          +          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) {
          +          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.Scorecard.GaugeView) {
          -          return mergeFrom((com.google.monitoring.dashboard.v1.Scorecard.GaugeView)other);
          +          return mergeFrom((com.google.monitoring.dashboard.v1.Scorecard.GaugeView) other);
                   } else {
                     super.mergeFrom(other);
                     return this;
          @@ -442,7 +491,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                 }
           
                 public Builder mergeFrom(com.google.monitoring.dashboard.v1.Scorecard.GaugeView other) {
          -        if (other == com.google.monitoring.dashboard.v1.Scorecard.GaugeView.getDefaultInstance()) return this;
          +        if (other == com.google.monitoring.dashboard.v1.Scorecard.GaugeView.getDefaultInstance())
          +          return this;
                   if (other.getLowerBound() != 0D) {
                     setLowerBound(other.getLowerBound());
                   }
          @@ -475,22 +525,25 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
          -              case 9: {
          -                lowerBound_ = input.readDouble();
          -                bitField0_ |= 0x00000001;
          -                break;
          -              } // case 9
          -              case 17: {
          -                upperBound_ = input.readDouble();
          -                bitField0_ |= 0x00000002;
          -                break;
          -              } // case 17
          -              default: {
          -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                  done = true; // was an endgroup tag
          -                }
          -                break;
          -              } // default:
          +              case 9:
          +                {
          +                  lowerBound_ = input.readDouble();
          +                  bitField0_ |= 0x00000001;
          +                  break;
          +                } // case 9
          +              case 17:
          +                {
          +                  upperBound_ = input.readDouble();
          +                  bitField0_ |= 0x00000002;
          +                  break;
          +                } // case 17
          +              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) {
          @@ -500,16 +553,20 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
          +
                 private int bitField0_;
           
          -      private double lowerBound_ ;
          +      private double lowerBound_;
                 /**
          +       *
          +       *
                  * 
                  * The lower bound for this gauge chart. The value of the chart should
                  * always be greater than or equal to this.
                  * 
          * * double lower_bound = 1; + * * @return The lowerBound. */ @java.lang.Override @@ -517,12 +574,15 @@ public double getLowerBound() { return lowerBound_; } /** + * + * *
                  * The lower bound for this gauge chart. The value of the chart should
                  * always be greater than or equal to this.
                  * 
          * * double lower_bound = 1; + * * @param value The lowerBound to set. * @return This builder for chaining. */ @@ -534,12 +594,15 @@ public Builder setLowerBound(double value) { return this; } /** + * + * *
                  * The lower bound for this gauge chart. The value of the chart should
                  * always be greater than or equal to this.
                  * 
          * * double lower_bound = 1; + * * @return This builder for chaining. */ public Builder clearLowerBound() { @@ -549,14 +612,17 @@ public Builder clearLowerBound() { return this; } - private double upperBound_ ; + private double upperBound_; /** + * + * *
                  * The upper bound for this gauge chart. The value of the chart should
                  * always be less than or equal to this.
                  * 
          * * double upper_bound = 2; + * * @return The upperBound. */ @java.lang.Override @@ -564,12 +630,15 @@ public double getUpperBound() { return upperBound_; } /** + * + * *
                  * The upper bound for this gauge chart. The value of the chart should
                  * always be less than or equal to this.
                  * 
          * * double upper_bound = 2; + * * @param value The upperBound to set. * @return This builder for chaining. */ @@ -581,12 +650,15 @@ public Builder setUpperBound(double value) { return this; } /** + * + * *
                  * The upper bound for this gauge chart. The value of the chart should
                  * always be less than or equal to this.
                  * 
          * * double upper_bound = 2; + * * @return This builder for chaining. */ public Builder clearUpperBound() { @@ -595,6 +667,7 @@ public Builder clearUpperBound() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -607,12 +680,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.Scorecard.GaugeView) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Scorecard.GaugeView) private static final com.google.monitoring.dashboard.v1.Scorecard.GaugeView DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Scorecard.GaugeView(); } @@ -621,27 +694,28 @@ public static com.google.monitoring.dashboard.v1.Scorecard.GaugeView getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GaugeView 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GaugeView 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; @@ -656,33 +730,45 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.Scorecard.GaugeView getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface SparkChartViewOrBuilder extends + public interface SparkChartViewOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Scorecard.SparkChartView) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Required. The type of sparkchart to show in this chartView.
                * 
          * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for sparkChartType. */ int getSparkChartTypeValue(); /** + * + * *
                * Required. The type of sparkchart to show in this chartView.
                * 
          * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sparkChartType. */ com.google.monitoring.dashboard.v1.SparkChartType getSparkChartType(); /** + * + * *
                * The lower bound on data point frequency in the chart implemented by
                * specifying the minimum alignment period to use in a time series query.
          @@ -692,10 +778,13 @@ public interface SparkChartViewOrBuilder extends
                * 
          * * .google.protobuf.Duration min_alignment_period = 2; + * * @return Whether the minAlignmentPeriod field is set. */ boolean hasMinAlignmentPeriod(); /** + * + * *
                * The lower bound on data point frequency in the chart implemented by
                * specifying the minimum alignment period to use in a time series query.
          @@ -705,10 +794,13 @@ public interface SparkChartViewOrBuilder extends
                * 
          * * .google.protobuf.Duration min_alignment_period = 2; + * * @return The minAlignmentPeriod. */ com.google.protobuf.Duration getMinAlignmentPeriod(); /** + * + * *
                * The lower bound on data point frequency in the chart implemented by
                * specifying the minimum alignment period to use in a time series query.
          @@ -722,6 +814,8 @@ public interface SparkChartViewOrBuilder extends
               com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder();
             }
             /**
          +   *
          +   *
              * 
              * A sparkChart is a small chart suitable for inclusion in a table-cell or
              * inline in text. This message contains the configuration for a sparkChart
          @@ -731,69 +825,88 @@ public interface SparkChartViewOrBuilder extends
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.Scorecard.SparkChartView}
              */
          -  public static final class SparkChartView extends
          -      com.google.protobuf.GeneratedMessageV3 implements
          +  public static final class SparkChartView extends com.google.protobuf.GeneratedMessageV3
          +      implements
                 // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Scorecard.SparkChartView)
                 SparkChartViewOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +    private static final long serialVersionUID = 0L;
               // Use SparkChartView.newBuilder() to construct.
               private SparkChartView(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
          +
               private SparkChartView() {
                 sparkChartType_ = 0;
               }
           
               @java.lang.Override
               @SuppressWarnings({"unused"})
          -    protected java.lang.Object newInstance(
          -        UnusedPrivateParameter unused) {
          +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new SparkChartView();
               }
           
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.ScorecardProto
          +          .internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.ScorecardProto
          +          .internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.class, com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder.class);
          +              com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.class,
          +              com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder.class);
               }
           
               private int bitField0_;
               public static final int SPARK_CHART_TYPE_FIELD_NUMBER = 1;
               private int sparkChartType_ = 0;
               /**
          +     *
          +     *
                * 
                * Required. The type of sparkchart to show in this chartView.
                * 
          * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for sparkChartType. */ - @java.lang.Override public int getSparkChartTypeValue() { + @java.lang.Override + public int getSparkChartTypeValue() { return sparkChartType_; } /** + * + * *
                * Required. The type of sparkchart to show in this chartView.
                * 
          * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sparkChartType. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.SparkChartType getSparkChartType() { - com.google.monitoring.dashboard.v1.SparkChartType result = com.google.monitoring.dashboard.v1.SparkChartType.forNumber(sparkChartType_); - return result == null ? com.google.monitoring.dashboard.v1.SparkChartType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.SparkChartType getSparkChartType() { + com.google.monitoring.dashboard.v1.SparkChartType result = + com.google.monitoring.dashboard.v1.SparkChartType.forNumber(sparkChartType_); + return result == null + ? com.google.monitoring.dashboard.v1.SparkChartType.UNRECOGNIZED + : result; } public static final int MIN_ALIGNMENT_PERIOD_FIELD_NUMBER = 2; private com.google.protobuf.Duration minAlignmentPeriod_; /** + * + * *
                * The lower bound on data point frequency in the chart implemented by
                * specifying the minimum alignment period to use in a time series query.
          @@ -803,6 +916,7 @@ protected java.lang.Object newInstance(
                * 
          * * .google.protobuf.Duration min_alignment_period = 2; + * * @return Whether the minAlignmentPeriod field is set. */ @java.lang.Override @@ -810,6 +924,8 @@ public boolean hasMinAlignmentPeriod() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * The lower bound on data point frequency in the chart implemented by
                * specifying the minimum alignment period to use in a time series query.
          @@ -819,13 +935,18 @@ public boolean hasMinAlignmentPeriod() {
                * 
          * * .google.protobuf.Duration min_alignment_period = 2; + * * @return The minAlignmentPeriod. */ @java.lang.Override public com.google.protobuf.Duration getMinAlignmentPeriod() { - return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + return minAlignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minAlignmentPeriod_; } /** + * + * *
                * The lower bound on data point frequency in the chart implemented by
                * specifying the minimum alignment period to use in a time series query.
          @@ -838,10 +959,13 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() {
                */
               @java.lang.Override
               public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() {
          -      return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_;
          +      return minAlignmentPeriod_ == null
          +          ? com.google.protobuf.Duration.getDefaultInstance()
          +          : minAlignmentPeriod_;
               }
           
               private byte memoizedIsInitialized = -1;
          +
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
          @@ -853,9 +977,10 @@ public final boolean isInitialized() {
               }
           
               @java.lang.Override
          -    public void writeTo(com.google.protobuf.CodedOutputStream output)
          -                        throws java.io.IOException {
          -      if (sparkChartType_ != com.google.monitoring.dashboard.v1.SparkChartType.SPARK_CHART_TYPE_UNSPECIFIED.getNumber()) {
          +    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
          +      if (sparkChartType_
          +          != com.google.monitoring.dashboard.v1.SparkChartType.SPARK_CHART_TYPE_UNSPECIFIED
          +              .getNumber()) {
                   output.writeEnum(1, sparkChartType_);
                 }
                 if (((bitField0_ & 0x00000001) != 0)) {
          @@ -870,13 +995,14 @@ public int getSerializedSize() {
                 if (size != -1) return size;
           
                 size = 0;
          -      if (sparkChartType_ != com.google.monitoring.dashboard.v1.SparkChartType.SPARK_CHART_TYPE_UNSPECIFIED.getNumber()) {
          -        size += com.google.protobuf.CodedOutputStream
          -          .computeEnumSize(1, sparkChartType_);
          +      if (sparkChartType_
          +          != com.google.monitoring.dashboard.v1.SparkChartType.SPARK_CHART_TYPE_UNSPECIFIED
          +              .getNumber()) {
          +        size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, sparkChartType_);
                 }
                 if (((bitField0_ & 0x00000001) != 0)) {
          -        size += com.google.protobuf.CodedOutputStream
          -          .computeMessageSize(2, getMinAlignmentPeriod());
          +        size +=
          +            com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMinAlignmentPeriod());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
          @@ -886,18 +1012,18 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
          -       return true;
          +        return true;
                 }
                 if (!(obj instanceof com.google.monitoring.dashboard.v1.Scorecard.SparkChartView)) {
                   return super.equals(obj);
                 }
          -      com.google.monitoring.dashboard.v1.Scorecard.SparkChartView other = (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) obj;
          +      com.google.monitoring.dashboard.v1.Scorecard.SparkChartView other =
          +          (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) obj;
           
                 if (sparkChartType_ != other.sparkChartType_) return false;
                 if (hasMinAlignmentPeriod() != other.hasMinAlignmentPeriod()) return false;
                 if (hasMinAlignmentPeriod()) {
          -        if (!getMinAlignmentPeriod()
          -            .equals(other.getMinAlignmentPeriod())) return false;
          +        if (!getMinAlignmentPeriod().equals(other.getMinAlignmentPeriod())) return false;
                 }
                 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                 return true;
          @@ -922,89 +1048,94 @@ public int hashCode() {
               }
           
               public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseFrom(
          -        java.nio.ByteBuffer data)
          -        throws com.google.protobuf.InvalidProtocolBufferException {
          +        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
          +
               public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseFrom(
          -        java.nio.ByteBuffer data,
          -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        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.Scorecard.SparkChartView parseFrom(
                   com.google.protobuf.ByteString data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
          +
               public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView 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.Scorecard.SparkChartView parseFrom(byte[] data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
          +
               public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseFrom(
          -        byte[] data,
          -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
          -    public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseFrom(java.io.InputStream input)
          -        throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3
          -          .parseWithIOException(PARSER, input);
          +
          +    public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseFrom(
          +        java.io.InputStream input) throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
               }
          +
               public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseFrom(
          -        java.io.InputStream input,
          -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3
          -          .parseWithIOException(PARSER, input, extensionRegistry);
          +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          +          PARSER, input, extensionRegistry);
               }
           
          -    public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseDelimitedFrom(java.io.InputStream input)
          -        throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3
          -          .parseDelimitedWithIOException(PARSER, input);
          +    public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseDelimitedFrom(
          +        java.io.InputStream input) throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
               }
           
               public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseDelimitedFrom(
          -        java.io.InputStream input,
          -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3
          -          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
          +      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          +          PARSER, input, extensionRegistry);
               }
          +
               public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseFrom(
          -        com.google.protobuf.CodedInputStream input)
          -        throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3
          -          .parseWithIOException(PARSER, input);
          +        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
               }
          +
               public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView parseFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3
          -          .parseWithIOException(PARSER, input, extensionRegistry);
          +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          +          PARSER, input, extensionRegistry);
               }
           
               @java.lang.Override
          -    public Builder newBuilderForType() { return newBuilder(); }
          +    public Builder newBuilderForType() {
          +      return newBuilder();
          +    }
          +
               public static Builder newBuilder() {
                 return DEFAULT_INSTANCE.toBuilder();
               }
          -    public static Builder newBuilder(com.google.monitoring.dashboard.v1.Scorecard.SparkChartView prototype) {
          +
          +    public static Builder newBuilder(
          +        com.google.monitoring.dashboard.v1.Scorecard.SparkChartView prototype) {
                 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
               }
          +
               @java.lang.Override
               public Builder toBuilder() {
          -      return this == DEFAULT_INSTANCE
          -          ? new Builder() : new Builder().mergeFrom(this);
          +      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
               }
           
               @java.lang.Override
          @@ -1014,6 +1145,8 @@ protected Builder newBuilderForType(
                 return builder;
               }
               /**
          +     *
          +     *
                * 
                * A sparkChart is a small chart suitable for inclusion in a table-cell or
                * inline in text. This message contains the configuration for a sparkChart
          @@ -1023,21 +1156,24 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.monitoring.dashboard.v1.Scorecard.SparkChartView}
                */
          -    public static final class Builder extends
          -        com.google.protobuf.GeneratedMessageV3.Builder implements
          +    public static final class Builder
          +        extends com.google.protobuf.GeneratedMessageV3.Builder
          +        implements
                   // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Scorecard.SparkChartView)
                   com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder {
          -      public static final com.google.protobuf.Descriptors.Descriptor
          -          getDescriptor() {
          -        return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor;
          +      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +        return com.google.monitoring.dashboard.v1.ScorecardProto
          +            .internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor;
                 }
           
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
          -        return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_fieldAccessorTable
          +        return com.google.monitoring.dashboard.v1.ScorecardProto
          +            .internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
          -                com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.class, com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder.class);
          +                com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.class,
          +                com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder.class);
                 }
           
                 // Construct using com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.newBuilder()
          @@ -1045,17 +1181,17 @@ private Builder() {
                   maybeForceBuilderInitialization();
                 }
           
          -      private Builder(
          -          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   super(parent);
                   maybeForceBuilderInitialization();
                 }
          +
                 private void maybeForceBuilderInitialization() {
          -        if (com.google.protobuf.GeneratedMessageV3
          -                .alwaysUseFieldBuilders) {
          +        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                     getMinAlignmentPeriodFieldBuilder();
                   }
                 }
          +
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
          @@ -1070,13 +1206,14 @@ public Builder clear() {
                 }
           
                 @java.lang.Override
          -      public com.google.protobuf.Descriptors.Descriptor
          -          getDescriptorForType() {
          -        return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor;
          +      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +        return com.google.monitoring.dashboard.v1.ScorecardProto
          +            .internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor;
                 }
           
                 @java.lang.Override
          -      public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView getDefaultInstanceForType() {
          +      public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView
          +          getDefaultInstanceForType() {
                   return com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.getDefaultInstance();
                 }
           
          @@ -1091,22 +1228,27 @@ public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView build() {
           
                 @java.lang.Override
                 public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView buildPartial() {
          -        com.google.monitoring.dashboard.v1.Scorecard.SparkChartView result = new com.google.monitoring.dashboard.v1.Scorecard.SparkChartView(this);
          -        if (bitField0_ != 0) { buildPartial0(result); }
          +        com.google.monitoring.dashboard.v1.Scorecard.SparkChartView result =
          +            new com.google.monitoring.dashboard.v1.Scorecard.SparkChartView(this);
          +        if (bitField0_ != 0) {
          +          buildPartial0(result);
          +        }
                   onBuilt();
                   return result;
                 }
           
          -      private void buildPartial0(com.google.monitoring.dashboard.v1.Scorecard.SparkChartView result) {
          +      private void buildPartial0(
          +          com.google.monitoring.dashboard.v1.Scorecard.SparkChartView result) {
                   int from_bitField0_ = bitField0_;
                   if (((from_bitField0_ & 0x00000001) != 0)) {
                     result.sparkChartType_ = sparkChartType_;
                   }
                   int to_bitField0_ = 0;
                   if (((from_bitField0_ & 0x00000002) != 0)) {
          -          result.minAlignmentPeriod_ = minAlignmentPeriodBuilder_ == null
          -              ? minAlignmentPeriod_
          -              : minAlignmentPeriodBuilder_.build();
          +          result.minAlignmentPeriod_ =
          +              minAlignmentPeriodBuilder_ == null
          +                  ? minAlignmentPeriod_
          +                  : minAlignmentPeriodBuilder_.build();
                     to_bitField0_ |= 0x00000001;
                   }
                   result.bitField0_ |= to_bitField0_;
          @@ -1116,38 +1258,41 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Scorecard.SparkCha
                 public Builder clone() {
                   return super.clone();
                 }
          +
                 @java.lang.Override
                 public Builder setField(
          -          com.google.protobuf.Descriptors.FieldDescriptor field,
          -          java.lang.Object value) {
          +          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) {
          +      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) {
          +      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) {
          +          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) {
          +          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.Scorecard.SparkChartView) {
          -          return mergeFrom((com.google.monitoring.dashboard.v1.Scorecard.SparkChartView)other);
          +          return mergeFrom((com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) other);
                   } else {
                     super.mergeFrom(other);
                     return this;
          @@ -1155,7 +1300,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                 }
           
                 public Builder mergeFrom(com.google.monitoring.dashboard.v1.Scorecard.SparkChartView other) {
          -        if (other == com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.getDefaultInstance()) return this;
          +        if (other
          +            == com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.getDefaultInstance())
          +          return this;
                   if (other.sparkChartType_ != 0) {
                     setSparkChartTypeValue(other.getSparkChartTypeValue());
                   }
          @@ -1188,24 +1335,26 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
          -              case 8: {
          -                sparkChartType_ = input.readEnum();
          -                bitField0_ |= 0x00000001;
          -                break;
          -              } // case 8
          -              case 18: {
          -                input.readMessage(
          -                    getMinAlignmentPeriodFieldBuilder().getBuilder(),
          -                    extensionRegistry);
          -                bitField0_ |= 0x00000002;
          -                break;
          -              } // case 18
          -              default: {
          -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                  done = true; // was an endgroup tag
          -                }
          -                break;
          -              } // default:
          +              case 8:
          +                {
          +                  sparkChartType_ = input.readEnum();
          +                  bitField0_ |= 0x00000001;
          +                  break;
          +                } // case 8
          +              case 18:
          +                {
          +                  input.readMessage(
          +                      getMinAlignmentPeriodFieldBuilder().getBuilder(), extensionRegistry);
          +                  bitField0_ |= 0x00000002;
          +                  break;
          +                } // case 18
          +              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) {
          @@ -1215,26 +1364,38 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
          +
                 private int bitField0_;
           
                 private int sparkChartType_ = 0;
                 /**
          +       *
          +       *
                  * 
                  * Required. The type of sparkchart to show in this chartView.
                  * 
          * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for sparkChartType. */ - @java.lang.Override public int getSparkChartTypeValue() { + @java.lang.Override + public int getSparkChartTypeValue() { return sparkChartType_; } /** + * + * *
                  * Required. The type of sparkchart to show in this chartView.
                  * 
          * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for sparkChartType to set. * @return This builder for chaining. */ @@ -1245,24 +1406,37 @@ public Builder setSparkChartTypeValue(int value) { return this; } /** + * + * *
                  * Required. The type of sparkchart to show in this chartView.
                  * 
          * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sparkChartType. */ @java.lang.Override public com.google.monitoring.dashboard.v1.SparkChartType getSparkChartType() { - com.google.monitoring.dashboard.v1.SparkChartType result = com.google.monitoring.dashboard.v1.SparkChartType.forNumber(sparkChartType_); - return result == null ? com.google.monitoring.dashboard.v1.SparkChartType.UNRECOGNIZED : result; + com.google.monitoring.dashboard.v1.SparkChartType result = + com.google.monitoring.dashboard.v1.SparkChartType.forNumber(sparkChartType_); + return result == null + ? com.google.monitoring.dashboard.v1.SparkChartType.UNRECOGNIZED + : result; } /** + * + * *
                  * Required. The type of sparkchart to show in this chartView.
                  * 
          * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The sparkChartType to set. * @return This builder for chaining. */ @@ -1276,11 +1450,16 @@ public Builder setSparkChartType(com.google.monitoring.dashboard.v1.SparkChartTy return this; } /** + * + * *
                  * Required. The type of sparkchart to show in this chartView.
                  * 
          * - * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearSparkChartType() { @@ -1292,8 +1471,13 @@ public Builder clearSparkChartType() { private com.google.protobuf.Duration minAlignmentPeriod_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minAlignmentPeriodBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + minAlignmentPeriodBuilder_; /** + * + * *
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1303,12 +1487,15 @@ public Builder clearSparkChartType() {
                  * 
          * * .google.protobuf.Duration min_alignment_period = 2; + * * @return Whether the minAlignmentPeriod field is set. */ public boolean hasMinAlignmentPeriod() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1318,16 +1505,21 @@ public boolean hasMinAlignmentPeriod() {
                  * 
          * * .google.protobuf.Duration min_alignment_period = 2; + * * @return The minAlignmentPeriod. */ public com.google.protobuf.Duration getMinAlignmentPeriod() { if (minAlignmentPeriodBuilder_ == null) { - return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + return minAlignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minAlignmentPeriod_; } else { return minAlignmentPeriodBuilder_.getMessage(); } } /** + * + * *
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1352,6 +1544,8 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) {
                   return this;
                 }
                 /**
          +       *
          +       *
                  * 
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1362,8 +1556,7 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) {
                  *
                  * .google.protobuf.Duration min_alignment_period = 2;
                  */
          -      public Builder setMinAlignmentPeriod(
          -          com.google.protobuf.Duration.Builder builderForValue) {
          +      public Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builderForValue) {
                   if (minAlignmentPeriodBuilder_ == null) {
                     minAlignmentPeriod_ = builderForValue.build();
                   } else {
          @@ -1374,6 +1567,8 @@ public Builder setMinAlignmentPeriod(
                   return this;
                 }
                 /**
          +       *
          +       *
                  * 
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1386,9 +1581,9 @@ public Builder setMinAlignmentPeriod(
                  */
                 public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) {
                   if (minAlignmentPeriodBuilder_ == null) {
          -          if (((bitField0_ & 0x00000002) != 0) &&
          -            minAlignmentPeriod_ != null &&
          -            minAlignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
          +          if (((bitField0_ & 0x00000002) != 0)
          +              && minAlignmentPeriod_ != null
          +              && minAlignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
                       getMinAlignmentPeriodBuilder().mergeFrom(value);
                     } else {
                       minAlignmentPeriod_ = value;
          @@ -1403,6 +1598,8 @@ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) {
                   return this;
                 }
                 /**
          +       *
          +       *
                  * 
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1424,6 +1621,8 @@ public Builder clearMinAlignmentPeriod() {
                   return this;
                 }
                 /**
          +       *
          +       *
                  * 
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1440,6 +1639,8 @@ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() {
                   return getMinAlignmentPeriodFieldBuilder().getBuilder();
                 }
                 /**
          +       *
          +       *
                  * 
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1454,11 +1655,14 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() {
                   if (minAlignmentPeriodBuilder_ != null) {
                     return minAlignmentPeriodBuilder_.getMessageOrBuilder();
                   } else {
          -          return minAlignmentPeriod_ == null ?
          -              com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_;
          +          return minAlignmentPeriod_ == null
          +              ? com.google.protobuf.Duration.getDefaultInstance()
          +              : minAlignmentPeriod_;
                   }
                 }
                 /**
          +       *
          +       *
                  * 
                  * The lower bound on data point frequency in the chart implemented by
                  * specifying the minimum alignment period to use in a time series query.
          @@ -1470,18 +1674,22 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() {
                  * .google.protobuf.Duration min_alignment_period = 2;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
          -          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
          +              com.google.protobuf.Duration,
          +              com.google.protobuf.Duration.Builder,
          +              com.google.protobuf.DurationOrBuilder>
                     getMinAlignmentPeriodFieldBuilder() {
                   if (minAlignmentPeriodBuilder_ == null) {
          -          minAlignmentPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          -              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
          -                  getMinAlignmentPeriod(),
          -                  getParentForChildren(),
          -                  isClean());
          +          minAlignmentPeriodBuilder_ =
          +              new com.google.protobuf.SingleFieldBuilderV3<
          +                  com.google.protobuf.Duration,
          +                  com.google.protobuf.Duration.Builder,
          +                  com.google.protobuf.DurationOrBuilder>(
          +                  getMinAlignmentPeriod(), getParentForChildren(), isClean());
                     minAlignmentPeriod_ = null;
                   }
                   return minAlignmentPeriodBuilder_;
                 }
          +
                 @java.lang.Override
                 public final Builder setUnknownFields(
                     final com.google.protobuf.UnknownFieldSet unknownFields) {
          @@ -1494,12 +1702,13 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
           
          -
                 // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.Scorecard.SparkChartView)
               }
           
               // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Scorecard.SparkChartView)
          -    private static final com.google.monitoring.dashboard.v1.Scorecard.SparkChartView DEFAULT_INSTANCE;
          +    private static final com.google.monitoring.dashboard.v1.Scorecard.SparkChartView
          +        DEFAULT_INSTANCE;
          +
               static {
                 DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Scorecard.SparkChartView();
               }
          @@ -1508,27 +1717,28 @@ public static com.google.monitoring.dashboard.v1.Scorecard.SparkChartView getDef
                 return DEFAULT_INSTANCE;
               }
           
          -    private static final com.google.protobuf.Parser
          -        PARSER = new com.google.protobuf.AbstractParser() {
          -      @java.lang.Override
          -      public SparkChartView 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();
          -      }
          -    };
          +    private static final com.google.protobuf.Parser PARSER =
          +        new com.google.protobuf.AbstractParser() {
          +          @java.lang.Override
          +          public SparkChartView 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;
          @@ -1543,21 +1753,24 @@ public com.google.protobuf.Parser getParserForType() {
               public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
          -
             }
           
             private int bitField0_;
             private int dataViewCase_ = 0;
          +
             @SuppressWarnings("serial")
             private java.lang.Object dataView_;
          +
             public enum DataViewCase
          -      implements com.google.protobuf.Internal.EnumLite,
          +      implements
          +          com.google.protobuf.Internal.EnumLite,
                     com.google.protobuf.AbstractMessage.InternalOneOfEnum {
               GAUGE_VIEW(4),
               SPARK_CHART_VIEW(5),
               BLANK_VIEW(7),
               DATAVIEW_NOT_SET(0);
               private final int value;
          +
               private DataViewCase(int value) {
                 this.value = value;
               }
          @@ -1573,33 +1786,42 @@ public static DataViewCase valueOf(int value) {
           
               public static DataViewCase forNumber(int value) {
                 switch (value) {
          -        case 4: return GAUGE_VIEW;
          -        case 5: return SPARK_CHART_VIEW;
          -        case 7: return BLANK_VIEW;
          -        case 0: return DATAVIEW_NOT_SET;
          -        default: return null;
          +        case 4:
          +          return GAUGE_VIEW;
          +        case 5:
          +          return SPARK_CHART_VIEW;
          +        case 7:
          +          return BLANK_VIEW;
          +        case 0:
          +          return DATAVIEW_NOT_SET;
          +        default:
          +          return null;
                 }
               }
          +
               public int getNumber() {
                 return this.value;
               }
             };
           
          -  public DataViewCase
          -  getDataViewCase() {
          -    return DataViewCase.forNumber(
          -        dataViewCase_);
          +  public DataViewCase getDataViewCase() {
          +    return DataViewCase.forNumber(dataViewCase_);
             }
           
             public static final int TIME_SERIES_QUERY_FIELD_NUMBER = 1;
             private com.google.monitoring.dashboard.v1.TimeSeriesQuery timeSeriesQuery_;
             /**
          +   *
          +   *
              * 
              * Required. Fields for querying time series data from the
              * Stackdriver metrics API.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the timeSeriesQuery field is set. */ @java.lang.Override @@ -1607,38 +1829,54 @@ public boolean hasTimeSeriesQuery() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
              * Required. Fields for querying time series data from the
              * Stackdriver metrics API.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The timeSeriesQuery. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() { - return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + return timeSeriesQuery_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() + : timeSeriesQuery_; } /** + * + * *
              * Required. Fields for querying time series data from the
              * Stackdriver metrics API.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder() { - return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + return timeSeriesQuery_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() + : timeSeriesQuery_; } public static final int GAUGE_VIEW_FIELD_NUMBER = 4; /** + * + * *
              * Will cause the scorecard to show a gauge chart.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4; + * * @return Whether the gaugeView field is set. */ @java.lang.Override @@ -1646,21 +1884,26 @@ public boolean hasGaugeView() { return dataViewCase_ == 4; } /** + * + * *
              * Will cause the scorecard to show a gauge chart.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4; + * * @return The gaugeView. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Scorecard.GaugeView getGaugeView() { if (dataViewCase_ == 4) { - return (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_; + return (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_; } return com.google.monitoring.dashboard.v1.Scorecard.GaugeView.getDefaultInstance(); } /** + * + * *
              * Will cause the scorecard to show a gauge chart.
              * 
          @@ -1670,18 +1913,21 @@ public com.google.monitoring.dashboard.v1.Scorecard.GaugeView getGaugeView() { @java.lang.Override public com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder getGaugeViewOrBuilder() { if (dataViewCase_ == 4) { - return (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_; + return (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_; } return com.google.monitoring.dashboard.v1.Scorecard.GaugeView.getDefaultInstance(); } public static final int SPARK_CHART_VIEW_FIELD_NUMBER = 5; /** + * + * *
              * Will cause the scorecard to show a spark chart.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; + * * @return Whether the sparkChartView field is set. */ @java.lang.Override @@ -1689,21 +1935,26 @@ public boolean hasSparkChartView() { return dataViewCase_ == 5; } /** + * + * *
              * Will cause the scorecard to show a spark chart.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; + * * @return The sparkChartView. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView getSparkChartView() { if (dataViewCase_ == 5) { - return (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_; + return (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_; } return com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.getDefaultInstance(); } /** + * + * *
              * Will cause the scorecard to show a spark chart.
              * 
          @@ -1711,21 +1962,25 @@ public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView getSparkChart * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder getSparkChartViewOrBuilder() { + public com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder + getSparkChartViewOrBuilder() { if (dataViewCase_ == 5) { - return (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_; + return (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_; } return com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.getDefaultInstance(); } public static final int BLANK_VIEW_FIELD_NUMBER = 7; /** + * + * *
              * Will cause the `Scorecard` to show only the value, with no indicator to
              * its value relative to its thresholds.
              * 
          * * .google.protobuf.Empty blank_view = 7; + * * @return Whether the blankView field is set. */ @java.lang.Override @@ -1733,22 +1988,27 @@ public boolean hasBlankView() { return dataViewCase_ == 7; } /** + * + * *
              * Will cause the `Scorecard` to show only the value, with no indicator to
              * its value relative to its thresholds.
              * 
          * * .google.protobuf.Empty blank_view = 7; + * * @return The blankView. */ @java.lang.Override public com.google.protobuf.Empty getBlankView() { if (dataViewCase_ == 7) { - return (com.google.protobuf.Empty) dataView_; + return (com.google.protobuf.Empty) dataView_; } return com.google.protobuf.Empty.getDefaultInstance(); } /** + * + * *
              * Will cause the `Scorecard` to show only the value, with no indicator to
              * its value relative to its thresholds.
          @@ -1759,15 +2019,18 @@ public com.google.protobuf.Empty getBlankView() {
             @java.lang.Override
             public com.google.protobuf.EmptyOrBuilder getBlankViewOrBuilder() {
               if (dataViewCase_ == 7) {
          -       return (com.google.protobuf.Empty) dataView_;
          +      return (com.google.protobuf.Empty) dataView_;
               }
               return com.google.protobuf.Empty.getDefaultInstance();
             }
           
             public static final int THRESHOLDS_FIELD_NUMBER = 6;
          +
             @SuppressWarnings("serial")
             private java.util.List thresholds_;
             /**
          +   *
          +   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -1816,6 +2079,8 @@ public java.util.List getThreshold
               return thresholds_;
             }
             /**
          +   *
          +   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -1860,11 +2125,13 @@ public java.util.List getThreshold
              * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
              */
             @java.lang.Override
          -  public java.util.List 
          +  public java.util.List
                 getThresholdsOrBuilderList() {
               return thresholds_;
             }
             /**
          +   *
          +   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -1913,6 +2180,8 @@ public int getThresholdsCount() {
               return thresholds_.size();
             }
             /**
          +   *
          +   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -1961,6 +2230,8 @@ public com.google.monitoring.dashboard.v1.Threshold getThresholds(int index) {
               return thresholds_.get(index);
             }
             /**
          +   *
          +   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -2005,12 +2276,12 @@ public com.google.monitoring.dashboard.v1.Threshold getThresholds(int index) {
              * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
              */
             @java.lang.Override
          -  public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(
          -      int index) {
          +  public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(int index) {
               return thresholds_.get(index);
             }
           
             private byte memoizedIsInitialized = -1;
          +
             @java.lang.Override
             public final boolean isInitialized() {
               byte isInitialized = memoizedIsInitialized;
          @@ -2022,8 +2293,7 @@ public final boolean isInitialized() {
             }
           
             @java.lang.Override
          -  public void writeTo(com.google.protobuf.CodedOutputStream output)
          -                      throws java.io.IOException {
          +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
               if (((bitField0_ & 0x00000001) != 0)) {
                 output.writeMessage(1, getTimeSeriesQuery());
               }
          @@ -2031,7 +2301,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
                 output.writeMessage(4, (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_);
               }
               if (dataViewCase_ == 5) {
          -      output.writeMessage(5, (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_);
          +      output.writeMessage(
          +          5, (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_);
               }
               for (int i = 0; i < thresholds_.size(); i++) {
                 output.writeMessage(6, thresholds_.get(i));
          @@ -2049,24 +2320,25 @@ public int getSerializedSize() {
           
               size = 0;
               if (((bitField0_ & 0x00000001) != 0)) {
          -      size += com.google.protobuf.CodedOutputStream
          -        .computeMessageSize(1, getTimeSeriesQuery());
          +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeSeriesQuery());
               }
               if (dataViewCase_ == 4) {
          -      size += com.google.protobuf.CodedOutputStream
          -        .computeMessageSize(4, (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_);
          +      size +=
          +          com.google.protobuf.CodedOutputStream.computeMessageSize(
          +              4, (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_);
               }
               if (dataViewCase_ == 5) {
          -      size += com.google.protobuf.CodedOutputStream
          -        .computeMessageSize(5, (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_);
          +      size +=
          +          com.google.protobuf.CodedOutputStream.computeMessageSize(
          +              5, (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_);
               }
               for (int i = 0; i < thresholds_.size(); i++) {
          -      size += com.google.protobuf.CodedOutputStream
          -        .computeMessageSize(6, thresholds_.get(i));
          +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, thresholds_.get(i));
               }
               if (dataViewCase_ == 7) {
          -      size += com.google.protobuf.CodedOutputStream
          -        .computeMessageSize(7, (com.google.protobuf.Empty) dataView_);
          +      size +=
          +          com.google.protobuf.CodedOutputStream.computeMessageSize(
          +              7, (com.google.protobuf.Empty) dataView_);
               }
               size += getUnknownFields().getSerializedSize();
               memoizedSize = size;
          @@ -2076,33 +2348,29 @@ public int getSerializedSize() {
             @java.lang.Override
             public boolean equals(final java.lang.Object obj) {
               if (obj == this) {
          -     return true;
          +      return true;
               }
               if (!(obj instanceof com.google.monitoring.dashboard.v1.Scorecard)) {
                 return super.equals(obj);
               }
          -    com.google.monitoring.dashboard.v1.Scorecard other = (com.google.monitoring.dashboard.v1.Scorecard) obj;
          +    com.google.monitoring.dashboard.v1.Scorecard other =
          +        (com.google.monitoring.dashboard.v1.Scorecard) obj;
           
               if (hasTimeSeriesQuery() != other.hasTimeSeriesQuery()) return false;
               if (hasTimeSeriesQuery()) {
          -      if (!getTimeSeriesQuery()
          -          .equals(other.getTimeSeriesQuery())) return false;
          +      if (!getTimeSeriesQuery().equals(other.getTimeSeriesQuery())) return false;
               }
          -    if (!getThresholdsList()
          -        .equals(other.getThresholdsList())) return false;
          +    if (!getThresholdsList().equals(other.getThresholdsList())) return false;
               if (!getDataViewCase().equals(other.getDataViewCase())) return false;
               switch (dataViewCase_) {
                 case 4:
          -        if (!getGaugeView()
          -            .equals(other.getGaugeView())) return false;
          +        if (!getGaugeView().equals(other.getGaugeView())) return false;
                   break;
                 case 5:
          -        if (!getSparkChartView()
          -            .equals(other.getSparkChartView())) return false;
          +        if (!getSparkChartView().equals(other.getSparkChartView())) return false;
                   break;
                 case 7:
          -        if (!getBlankView()
          -            .equals(other.getBlankView())) return false;
          +        if (!getBlankView().equals(other.getBlankView())) return false;
                   break;
                 case 0:
                 default:
          @@ -2147,99 +2415,104 @@ public int hashCode() {
               return hash;
             }
           
          -  public static com.google.monitoring.dashboard.v1.Scorecard parseFrom(
          -      java.nio.ByteBuffer data)
          +  public static com.google.monitoring.dashboard.v1.Scorecard parseFrom(java.nio.ByteBuffer data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          +
             public static com.google.monitoring.dashboard.v1.Scorecard parseFrom(
          -      java.nio.ByteBuffer data,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      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.Scorecard parseFrom(
                 com.google.protobuf.ByteString data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          +
             public static com.google.monitoring.dashboard.v1.Scorecard 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.Scorecard parseFrom(byte[] data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          +
             public static com.google.monitoring.dashboard.v1.Scorecard parseFrom(
          -      byte[] data,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data, extensionRegistry);
             }
          +
             public static com.google.monitoring.dashboard.v1.Scorecard parseFrom(java.io.InputStream input)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input);
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
             }
          +
             public static com.google.monitoring.dashboard.v1.Scorecard parseFrom(
          -      java.io.InputStream input,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          +        PARSER, input, extensionRegistry);
             }
           
          -  public static com.google.monitoring.dashboard.v1.Scorecard parseDelimitedFrom(java.io.InputStream input)
          -      throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseDelimitedWithIOException(PARSER, input);
          +  public static com.google.monitoring.dashboard.v1.Scorecard parseDelimitedFrom(
          +      java.io.InputStream input) throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
             }
           
             public static com.google.monitoring.dashboard.v1.Scorecard parseDelimitedFrom(
          -      java.io.InputStream input,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          +        PARSER, input, extensionRegistry);
             }
          +
             public static com.google.monitoring.dashboard.v1.Scorecard parseFrom(
          -      com.google.protobuf.CodedInputStream input)
          -      throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input);
          +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
             }
          +
             public static com.google.monitoring.dashboard.v1.Scorecard parseFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          +        PARSER, input, extensionRegistry);
             }
           
             @java.lang.Override
          -  public Builder newBuilderForType() { return newBuilder(); }
          +  public Builder newBuilderForType() {
          +    return newBuilder();
          +  }
          +
             public static Builder newBuilder() {
               return DEFAULT_INSTANCE.toBuilder();
             }
          +
             public static Builder newBuilder(com.google.monitoring.dashboard.v1.Scorecard prototype) {
               return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
             }
          +
             @java.lang.Override
             public Builder toBuilder() {
          -    return this == DEFAULT_INSTANCE
          -        ? new Builder() : new Builder().mergeFrom(this);
          +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
             }
           
             @java.lang.Override
          -  protected Builder newBuilderForType(
          -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
               Builder builder = new Builder(parent);
               return builder;
             }
             /**
          +   *
          +   *
              * 
              * A widget showing the latest value of a metric, and how this value relates to
              * one or more thresholds.
          @@ -2247,21 +2520,23 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.Scorecard}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Scorecard)
                 com.google.monitoring.dashboard.v1.ScorecardOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.ScorecardProto
          +          .internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.ScorecardProto
          +          .internal_static_google_monitoring_dashboard_v1_Scorecard_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.Scorecard.class, com.google.monitoring.dashboard.v1.Scorecard.Builder.class);
          +              com.google.monitoring.dashboard.v1.Scorecard.class,
          +              com.google.monitoring.dashboard.v1.Scorecard.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.Scorecard.newBuilder()
          @@ -2269,18 +2544,18 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          +
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3
          -              .alwaysUseFieldBuilders) {
          +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                   getTimeSeriesQueryFieldBuilder();
                   getThresholdsFieldBuilder();
                 }
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -2312,9 +2587,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.ScorecardProto.internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.ScorecardProto
          +          .internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor;
               }
           
               @java.lang.Override
          @@ -2333,9 +2608,12 @@ public com.google.monitoring.dashboard.v1.Scorecard build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.Scorecard buildPartial() {
          -      com.google.monitoring.dashboard.v1.Scorecard result = new com.google.monitoring.dashboard.v1.Scorecard(this);
          +      com.google.monitoring.dashboard.v1.Scorecard result =
          +          new com.google.monitoring.dashboard.v1.Scorecard(this);
                 buildPartialRepeatedFields(result);
          -      if (bitField0_ != 0) { buildPartial0(result); }
          +      if (bitField0_ != 0) {
          +        buildPartial0(result);
          +      }
                 buildPartialOneofs(result);
                 onBuilt();
                 return result;
          @@ -2357,9 +2635,8 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Scorecard result)
                 int from_bitField0_ = bitField0_;
                 int to_bitField0_ = 0;
                 if (((from_bitField0_ & 0x00000001) != 0)) {
          -        result.timeSeriesQuery_ = timeSeriesQueryBuilder_ == null
          -            ? timeSeriesQuery_
          -            : timeSeriesQueryBuilder_.build();
          +        result.timeSeriesQuery_ =
          +            timeSeriesQueryBuilder_ == null ? timeSeriesQuery_ : timeSeriesQueryBuilder_.build();
                   to_bitField0_ |= 0x00000001;
                 }
                 result.bitField0_ |= to_bitField0_;
          @@ -2368,16 +2645,13 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Scorecard result)
               private void buildPartialOneofs(com.google.monitoring.dashboard.v1.Scorecard result) {
                 result.dataViewCase_ = dataViewCase_;
                 result.dataView_ = this.dataView_;
          -      if (dataViewCase_ == 4 &&
          -          gaugeViewBuilder_ != null) {
          +      if (dataViewCase_ == 4 && gaugeViewBuilder_ != null) {
                   result.dataView_ = gaugeViewBuilder_.build();
                 }
          -      if (dataViewCase_ == 5 &&
          -          sparkChartViewBuilder_ != null) {
          +      if (dataViewCase_ == 5 && sparkChartViewBuilder_ != null) {
                   result.dataView_ = sparkChartViewBuilder_.build();
                 }
          -      if (dataViewCase_ == 7 &&
          -          blankViewBuilder_ != null) {
          +      if (dataViewCase_ == 7 && blankViewBuilder_ != null) {
                   result.dataView_ = blankViewBuilder_.build();
                 }
               }
          @@ -2386,38 +2660,39 @@ private void buildPartialOneofs(com.google.monitoring.dashboard.v1.Scorecard res
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.Scorecard) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.Scorecard)other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.Scorecard) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -2447,30 +2722,35 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.Scorecard other) {
                       thresholdsBuilder_ = null;
                       thresholds_ = other.thresholds_;
                       bitField0_ = (bitField0_ & ~0x00000010);
          -            thresholdsBuilder_ = 
          -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          -                 getThresholdsFieldBuilder() : null;
          +            thresholdsBuilder_ =
          +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          +                    ? getThresholdsFieldBuilder()
          +                    : null;
                     } else {
                       thresholdsBuilder_.addAllMessages(other.thresholds_);
                     }
                   }
                 }
                 switch (other.getDataViewCase()) {
          -        case GAUGE_VIEW: {
          -          mergeGaugeView(other.getGaugeView());
          -          break;
          -        }
          -        case SPARK_CHART_VIEW: {
          -          mergeSparkChartView(other.getSparkChartView());
          -          break;
          -        }
          -        case BLANK_VIEW: {
          -          mergeBlankView(other.getBlankView());
          -          break;
          -        }
          -        case DATAVIEW_NOT_SET: {
          -          break;
          -        }
          +        case GAUGE_VIEW:
          +          {
          +            mergeGaugeView(other.getGaugeView());
          +            break;
          +          }
          +        case SPARK_CHART_VIEW:
          +          {
          +            mergeSparkChartView(other.getSparkChartView());
          +            break;
          +          }
          +        case BLANK_VIEW:
          +          {
          +            mergeBlankView(other.getBlankView());
          +            break;
          +          }
          +        case DATAVIEW_NOT_SET:
          +          {
          +            break;
          +          }
                 }
                 this.mergeUnknownFields(other.getUnknownFields());
                 onChanged();
          @@ -2498,53 +2778,50 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10: {
          -              input.readMessage(
          -                  getTimeSeriesQueryFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              bitField0_ |= 0x00000001;
          -              break;
          -            } // case 10
          -            case 34: {
          -              input.readMessage(
          -                  getGaugeViewFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              dataViewCase_ = 4;
          -              break;
          -            } // case 34
          -            case 42: {
          -              input.readMessage(
          -                  getSparkChartViewFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              dataViewCase_ = 5;
          -              break;
          -            } // case 42
          -            case 50: {
          -              com.google.monitoring.dashboard.v1.Threshold m =
          -                  input.readMessage(
          -                      com.google.monitoring.dashboard.v1.Threshold.parser(),
          -                      extensionRegistry);
          -              if (thresholdsBuilder_ == null) {
          -                ensureThresholdsIsMutable();
          -                thresholds_.add(m);
          -              } else {
          -                thresholdsBuilder_.addMessage(m);
          -              }
          -              break;
          -            } // case 50
          -            case 58: {
          -              input.readMessage(
          -                  getBlankViewFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              dataViewCase_ = 7;
          -              break;
          -            } // case 58
          -            default: {
          -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                done = true; // was an endgroup tag
          -              }
          -              break;
          -            } // default:
          +            case 10:
          +              {
          +                input.readMessage(getTimeSeriesQueryFieldBuilder().getBuilder(), extensionRegistry);
          +                bitField0_ |= 0x00000001;
          +                break;
          +              } // case 10
          +            case 34:
          +              {
          +                input.readMessage(getGaugeViewFieldBuilder().getBuilder(), extensionRegistry);
          +                dataViewCase_ = 4;
          +                break;
          +              } // case 34
          +            case 42:
          +              {
          +                input.readMessage(getSparkChartViewFieldBuilder().getBuilder(), extensionRegistry);
          +                dataViewCase_ = 5;
          +                break;
          +              } // case 42
          +            case 50:
          +              {
          +                com.google.monitoring.dashboard.v1.Threshold m =
          +                    input.readMessage(
          +                        com.google.monitoring.dashboard.v1.Threshold.parser(), extensionRegistry);
          +                if (thresholdsBuilder_ == null) {
          +                  ensureThresholdsIsMutable();
          +                  thresholds_.add(m);
          +                } else {
          +                  thresholdsBuilder_.addMessage(m);
          +                }
          +                break;
          +              } // case 50
          +            case 58:
          +              {
          +                input.readMessage(getBlankViewFieldBuilder().getBuilder(), extensionRegistry);
          +                dataViewCase_ = 7;
          +                break;
          +              } // case 58
          +            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) {
          @@ -2554,12 +2831,12 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          +
               private int dataViewCase_ = 0;
               private java.lang.Object dataView_;
          -    public DataViewCase
          -        getDataViewCase() {
          -      return DataViewCase.forNumber(
          -          dataViewCase_);
          +
          +    public DataViewCase getDataViewCase() {
          +      return DataViewCase.forNumber(dataViewCase_);
               }
           
               public Builder clearDataView() {
          @@ -2573,42 +2850,61 @@ public Builder clearDataView() {
           
               private com.google.monitoring.dashboard.v1.TimeSeriesQuery timeSeriesQuery_;
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> timeSeriesQueryBuilder_;
          +            com.google.monitoring.dashboard.v1.TimeSeriesQuery,
          +            com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder,
          +            com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder>
          +        timeSeriesQueryBuilder_;
               /**
          +     *
          +     *
                * 
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the timeSeriesQuery field is set. */ public boolean hasTimeSeriesQuery() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The timeSeriesQuery. */ public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() { if (timeSeriesQueryBuilder_ == null) { - return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + return timeSeriesQuery_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() + : timeSeriesQuery_; } else { return timeSeriesQueryBuilder_.getMessage(); } } /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { if (timeSeriesQueryBuilder_ == null) { @@ -2624,12 +2920,16 @@ public Builder setTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQ return this; } /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTimeSeriesQuery( com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder builderForValue) { @@ -2643,18 +2943,23 @@ public Builder setTimeSeriesQuery( return this; } /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { if (timeSeriesQueryBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - timeSeriesQuery_ != null && - timeSeriesQuery_ != com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && timeSeriesQuery_ != null + && timeSeriesQuery_ + != com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance()) { getTimeSeriesQueryBuilder().mergeFrom(value); } else { timeSeriesQuery_ = value; @@ -2669,12 +2974,16 @@ public Builder mergeTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSerie return this; } /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTimeSeriesQuery() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2687,12 +2996,16 @@ public Builder clearTimeSeriesQuery() { return this; } /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder getTimeSeriesQueryBuilder() { bitField0_ |= 0x00000001; @@ -2700,51 +3013,70 @@ public com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder getTimeSeriesQ return getTimeSeriesQueryFieldBuilder().getBuilder(); } /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder + getTimeSeriesQueryOrBuilder() { if (timeSeriesQueryBuilder_ != null) { return timeSeriesQueryBuilder_.getMessageOrBuilder(); } else { - return timeSeriesQuery_ == null ? - com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + return timeSeriesQuery_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() + : timeSeriesQuery_; } } /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> + com.google.monitoring.dashboard.v1.TimeSeriesQuery, + com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> getTimeSeriesQueryFieldBuilder() { if (timeSeriesQueryBuilder_ == null) { - timeSeriesQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder>( - getTimeSeriesQuery(), - getParentForChildren(), - isClean()); + timeSeriesQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesQuery, + com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder>( + getTimeSeriesQuery(), getParentForChildren(), isClean()); timeSeriesQuery_ = null; } return timeSeriesQueryBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard.GaugeView, com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder, com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder> gaugeViewBuilder_; + com.google.monitoring.dashboard.v1.Scorecard.GaugeView, + com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder, + com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder> + gaugeViewBuilder_; /** + * + * *
                * Will cause the scorecard to show a gauge chart.
                * 
          * * .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4; + * * @return Whether the gaugeView field is set. */ @java.lang.Override @@ -2752,11 +3084,14 @@ public boolean hasGaugeView() { return dataViewCase_ == 4; } /** + * + * *
                * Will cause the scorecard to show a gauge chart.
                * 
          * * .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4; + * * @return The gaugeView. */ @java.lang.Override @@ -2774,6 +3109,8 @@ public com.google.monitoring.dashboard.v1.Scorecard.GaugeView getGaugeView() { } } /** + * + * *
                * Will cause the scorecard to show a gauge chart.
                * 
          @@ -2794,6 +3131,8 @@ public Builder setGaugeView(com.google.monitoring.dashboard.v1.Scorecard.GaugeVi return this; } /** + * + * *
                * Will cause the scorecard to show a gauge chart.
                * 
          @@ -2812,6 +3151,8 @@ public Builder setGaugeView( return this; } /** + * + * *
                * Will cause the scorecard to show a gauge chart.
                * 
          @@ -2820,10 +3161,14 @@ public Builder setGaugeView( */ public Builder mergeGaugeView(com.google.monitoring.dashboard.v1.Scorecard.GaugeView value) { if (gaugeViewBuilder_ == null) { - if (dataViewCase_ == 4 && - dataView_ != com.google.monitoring.dashboard.v1.Scorecard.GaugeView.getDefaultInstance()) { - dataView_ = com.google.monitoring.dashboard.v1.Scorecard.GaugeView.newBuilder((com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_) - .mergeFrom(value).buildPartial(); + if (dataViewCase_ == 4 + && dataView_ + != com.google.monitoring.dashboard.v1.Scorecard.GaugeView.getDefaultInstance()) { + dataView_ = + com.google.monitoring.dashboard.v1.Scorecard.GaugeView.newBuilder( + (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_) + .mergeFrom(value) + .buildPartial(); } else { dataView_ = value; } @@ -2839,6 +3184,8 @@ public Builder mergeGaugeView(com.google.monitoring.dashboard.v1.Scorecard.Gauge return this; } /** + * + * *
                * Will cause the scorecard to show a gauge chart.
                * 
          @@ -2862,6 +3209,8 @@ public Builder clearGaugeView() { return this; } /** + * + * *
                * Will cause the scorecard to show a gauge chart.
                * 
          @@ -2872,6 +3221,8 @@ public com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder getGaugeVi return getGaugeViewFieldBuilder().getBuilder(); } /** + * + * *
                * Will cause the scorecard to show a gauge chart.
                * 
          @@ -2890,6 +3241,8 @@ public com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder getGaugeV } } /** + * + * *
                * Will cause the scorecard to show a gauge chart.
                * 
          @@ -2897,14 +3250,19 @@ public com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder getGaugeV * .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard.GaugeView, com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder, com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder> + com.google.monitoring.dashboard.v1.Scorecard.GaugeView, + com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder, + com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder> getGaugeViewFieldBuilder() { if (gaugeViewBuilder_ == null) { if (!(dataViewCase_ == 4)) { dataView_ = com.google.monitoring.dashboard.v1.Scorecard.GaugeView.getDefaultInstance(); } - gaugeViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard.GaugeView, com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder, com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder>( + gaugeViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Scorecard.GaugeView, + com.google.monitoring.dashboard.v1.Scorecard.GaugeView.Builder, + com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder>( (com.google.monitoring.dashboard.v1.Scorecard.GaugeView) dataView_, getParentForChildren(), isClean()); @@ -2916,13 +3274,19 @@ public com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder getGaugeV } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard.SparkChartView, com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder, com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder> sparkChartViewBuilder_; + com.google.monitoring.dashboard.v1.Scorecard.SparkChartView, + com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder, + com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder> + sparkChartViewBuilder_; /** + * + * *
                * Will cause the scorecard to show a spark chart.
                * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; + * * @return Whether the sparkChartView field is set. */ @java.lang.Override @@ -2930,11 +3294,14 @@ public boolean hasSparkChartView() { return dataViewCase_ == 5; } /** + * + * *
                * Will cause the scorecard to show a spark chart.
                * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; + * * @return The sparkChartView. */ @java.lang.Override @@ -2952,13 +3319,16 @@ public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView getSparkChart } } /** + * + * *
                * Will cause the scorecard to show a spark chart.
                * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; */ - public Builder setSparkChartView(com.google.monitoring.dashboard.v1.Scorecard.SparkChartView value) { + public Builder setSparkChartView( + com.google.monitoring.dashboard.v1.Scorecard.SparkChartView value) { if (sparkChartViewBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2972,6 +3342,8 @@ public Builder setSparkChartView(com.google.monitoring.dashboard.v1.Scorecard.Sp return this; } /** + * + * *
                * Will cause the scorecard to show a spark chart.
                * 
          @@ -2990,18 +3362,26 @@ public Builder setSparkChartView( return this; } /** + * + * *
                * Will cause the scorecard to show a spark chart.
                * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; */ - public Builder mergeSparkChartView(com.google.monitoring.dashboard.v1.Scorecard.SparkChartView value) { + public Builder mergeSparkChartView( + com.google.monitoring.dashboard.v1.Scorecard.SparkChartView value) { if (sparkChartViewBuilder_ == null) { - if (dataViewCase_ == 5 && - dataView_ != com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.getDefaultInstance()) { - dataView_ = com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.newBuilder((com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_) - .mergeFrom(value).buildPartial(); + if (dataViewCase_ == 5 + && dataView_ + != com.google.monitoring.dashboard.v1.Scorecard.SparkChartView + .getDefaultInstance()) { + dataView_ = + com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.newBuilder( + (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_) + .mergeFrom(value) + .buildPartial(); } else { dataView_ = value; } @@ -3017,6 +3397,8 @@ public Builder mergeSparkChartView(com.google.monitoring.dashboard.v1.Scorecard. return this; } /** + * + * *
                * Will cause the scorecard to show a spark chart.
                * 
          @@ -3040,16 +3422,21 @@ public Builder clearSparkChartView() { return this; } /** + * + * *
                * Will cause the scorecard to show a spark chart.
                * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; */ - public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder getSparkChartViewBuilder() { + public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder + getSparkChartViewBuilder() { return getSparkChartViewFieldBuilder().getBuilder(); } /** + * + * *
                * Will cause the scorecard to show a spark chart.
                * 
          @@ -3057,7 +3444,8 @@ public com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder getSp * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder getSparkChartViewOrBuilder() { + public com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder + getSparkChartViewOrBuilder() { if ((dataViewCase_ == 5) && (sparkChartViewBuilder_ != null)) { return sparkChartViewBuilder_.getMessageOrBuilder(); } else { @@ -3068,6 +3456,8 @@ public com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder getS } } /** + * + * *
                * Will cause the scorecard to show a spark chart.
                * 
          @@ -3075,14 +3465,20 @@ public com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder getS * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard.SparkChartView, com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder, com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder> + com.google.monitoring.dashboard.v1.Scorecard.SparkChartView, + com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder, + com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder> getSparkChartViewFieldBuilder() { if (sparkChartViewBuilder_ == null) { if (!(dataViewCase_ == 5)) { - dataView_ = com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.getDefaultInstance(); + dataView_ = + com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.getDefaultInstance(); } - sparkChartViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard.SparkChartView, com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder, com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder>( + sparkChartViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Scorecard.SparkChartView, + com.google.monitoring.dashboard.v1.Scorecard.SparkChartView.Builder, + com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder>( (com.google.monitoring.dashboard.v1.Scorecard.SparkChartView) dataView_, getParentForChildren(), isClean()); @@ -3094,14 +3490,20 @@ public com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder getS } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> blankViewBuilder_; + com.google.protobuf.Empty, + com.google.protobuf.Empty.Builder, + com.google.protobuf.EmptyOrBuilder> + blankViewBuilder_; /** + * + * *
                * Will cause the `Scorecard` to show only the value, with no indicator to
                * its value relative to its thresholds.
                * 
          * * .google.protobuf.Empty blank_view = 7; + * * @return Whether the blankView field is set. */ @java.lang.Override @@ -3109,12 +3511,15 @@ public boolean hasBlankView() { return dataViewCase_ == 7; } /** + * + * *
                * Will cause the `Scorecard` to show only the value, with no indicator to
                * its value relative to its thresholds.
                * 
          * * .google.protobuf.Empty blank_view = 7; + * * @return The blankView. */ @java.lang.Override @@ -3132,6 +3537,8 @@ public com.google.protobuf.Empty getBlankView() { } } /** + * + * *
                * Will cause the `Scorecard` to show only the value, with no indicator to
                * its value relative to its thresholds.
          @@ -3153,6 +3560,8 @@ public Builder setBlankView(com.google.protobuf.Empty value) {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Will cause the `Scorecard` to show only the value, with no indicator to
                * its value relative to its thresholds.
          @@ -3160,8 +3569,7 @@ public Builder setBlankView(com.google.protobuf.Empty value) {
                *
                * .google.protobuf.Empty blank_view = 7;
                */
          -    public Builder setBlankView(
          -        com.google.protobuf.Empty.Builder builderForValue) {
          +    public Builder setBlankView(com.google.protobuf.Empty.Builder builderForValue) {
                 if (blankViewBuilder_ == null) {
                   dataView_ = builderForValue.build();
                   onChanged();
          @@ -3172,6 +3580,8 @@ public Builder setBlankView(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Will cause the `Scorecard` to show only the value, with no indicator to
                * its value relative to its thresholds.
          @@ -3181,10 +3591,11 @@ public Builder setBlankView(
                */
               public Builder mergeBlankView(com.google.protobuf.Empty value) {
                 if (blankViewBuilder_ == null) {
          -        if (dataViewCase_ == 7 &&
          -            dataView_ != com.google.protobuf.Empty.getDefaultInstance()) {
          -          dataView_ = com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) dataView_)
          -              .mergeFrom(value).buildPartial();
          +        if (dataViewCase_ == 7 && dataView_ != com.google.protobuf.Empty.getDefaultInstance()) {
          +          dataView_ =
          +              com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) dataView_)
          +                  .mergeFrom(value)
          +                  .buildPartial();
                   } else {
                     dataView_ = value;
                   }
          @@ -3200,6 +3611,8 @@ public Builder mergeBlankView(com.google.protobuf.Empty value) {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Will cause the `Scorecard` to show only the value, with no indicator to
                * its value relative to its thresholds.
          @@ -3224,6 +3637,8 @@ public Builder clearBlankView() {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Will cause the `Scorecard` to show only the value, with no indicator to
                * its value relative to its thresholds.
          @@ -3235,6 +3650,8 @@ public com.google.protobuf.Empty.Builder getBlankViewBuilder() {
                 return getBlankViewFieldBuilder().getBuilder();
               }
               /**
          +     *
          +     *
                * 
                * Will cause the `Scorecard` to show only the value, with no indicator to
                * its value relative to its thresholds.
          @@ -3254,6 +3671,8 @@ public com.google.protobuf.EmptyOrBuilder getBlankViewOrBuilder() {
                 }
               }
               /**
          +     *
          +     *
                * 
                * Will cause the `Scorecard` to show only the value, with no indicator to
                * its value relative to its thresholds.
          @@ -3262,17 +3681,20 @@ public com.google.protobuf.EmptyOrBuilder getBlankViewOrBuilder() {
                * .google.protobuf.Empty blank_view = 7;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> 
          +            com.google.protobuf.Empty,
          +            com.google.protobuf.Empty.Builder,
          +            com.google.protobuf.EmptyOrBuilder>
                   getBlankViewFieldBuilder() {
                 if (blankViewBuilder_ == null) {
                   if (!(dataViewCase_ == 7)) {
                     dataView_ = com.google.protobuf.Empty.getDefaultInstance();
                   }
          -        blankViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder>(
          -                (com.google.protobuf.Empty) dataView_,
          -                getParentForChildren(),
          -                isClean());
          +        blankViewBuilder_ =
          +            new com.google.protobuf.SingleFieldBuilderV3<
          +                com.google.protobuf.Empty,
          +                com.google.protobuf.Empty.Builder,
          +                com.google.protobuf.EmptyOrBuilder>(
          +                (com.google.protobuf.Empty) dataView_, getParentForChildren(), isClean());
                   dataView_ = null;
                 }
                 dataViewCase_ = 7;
          @@ -3281,18 +3703,25 @@ public com.google.protobuf.EmptyOrBuilder getBlankViewOrBuilder() {
               }
           
               private java.util.List thresholds_ =
          -      java.util.Collections.emptyList();
          +        java.util.Collections.emptyList();
          +
               private void ensureThresholdsIsMutable() {
                 if (!((bitField0_ & 0x00000010) != 0)) {
          -        thresholds_ = new java.util.ArrayList(thresholds_);
          +        thresholds_ =
          +            new java.util.ArrayList(thresholds_);
                   bitField0_ |= 0x00000010;
          -       }
          +      }
               }
           
               private com.google.protobuf.RepeatedFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.Threshold, com.google.monitoring.dashboard.v1.Threshold.Builder, com.google.monitoring.dashboard.v1.ThresholdOrBuilder> thresholdsBuilder_;
          +            com.google.monitoring.dashboard.v1.Threshold,
          +            com.google.monitoring.dashboard.v1.Threshold.Builder,
          +            com.google.monitoring.dashboard.v1.ThresholdOrBuilder>
          +        thresholdsBuilder_;
           
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3344,6 +3773,8 @@ public java.util.List getThreshold
                 }
               }
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3395,6 +3826,8 @@ public int getThresholdsCount() {
                 }
               }
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3446,6 +3879,8 @@ public com.google.monitoring.dashboard.v1.Threshold getThresholds(int index) {
                 }
               }
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3489,8 +3924,7 @@ public com.google.monitoring.dashboard.v1.Threshold getThresholds(int index) {
                *
                * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
                */
          -    public Builder setThresholds(
          -        int index, com.google.monitoring.dashboard.v1.Threshold value) {
          +    public Builder setThresholds(int index, com.google.monitoring.dashboard.v1.Threshold value) {
                 if (thresholdsBuilder_ == null) {
                   if (value == null) {
                     throw new NullPointerException();
          @@ -3504,6 +3938,8 @@ public Builder setThresholds(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3559,6 +3995,8 @@ public Builder setThresholds(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3616,6 +4054,8 @@ public Builder addThresholds(com.google.monitoring.dashboard.v1.Threshold value)
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3659,8 +4099,7 @@ public Builder addThresholds(com.google.monitoring.dashboard.v1.Threshold value)
                *
                * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
                */
          -    public Builder addThresholds(
          -        int index, com.google.monitoring.dashboard.v1.Threshold value) {
          +    public Builder addThresholds(int index, com.google.monitoring.dashboard.v1.Threshold value) {
                 if (thresholdsBuilder_ == null) {
                   if (value == null) {
                     throw new NullPointerException();
          @@ -3674,6 +4113,8 @@ public Builder addThresholds(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3729,6 +4170,8 @@ public Builder addThresholds(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3784,6 +4227,8 @@ public Builder addThresholds(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3831,8 +4276,7 @@ public Builder addAllThresholds(
                   java.lang.Iterable values) {
                 if (thresholdsBuilder_ == null) {
                   ensureThresholdsIsMutable();
          -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
          -            values, thresholds_);
          +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, thresholds_);
                   onChanged();
                 } else {
                   thresholdsBuilder_.addAllMessages(values);
          @@ -3840,6 +4284,8 @@ public Builder addAllThresholds(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3894,6 +4340,8 @@ public Builder clearThresholds() {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3948,6 +4396,8 @@ public Builder removeThresholds(int index) {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -3991,11 +4441,12 @@ public Builder removeThresholds(int index) {
                *
                * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
                */
          -    public com.google.monitoring.dashboard.v1.Threshold.Builder getThresholdsBuilder(
          -        int index) {
          +    public com.google.monitoring.dashboard.v1.Threshold.Builder getThresholdsBuilder(int index) {
                 return getThresholdsFieldBuilder().getBuilder(index);
               }
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -4039,14 +4490,16 @@ public com.google.monitoring.dashboard.v1.Threshold.Builder getThresholdsBuilder
                *
                * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
                */
          -    public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(
          -        int index) {
          +    public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(int index) {
                 if (thresholdsBuilder_ == null) {
          -        return thresholds_.get(index);  } else {
          +        return thresholds_.get(index);
          +      } else {
                   return thresholdsBuilder_.getMessageOrBuilder(index);
                 }
               }
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -4090,8 +4543,8 @@ public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuil
                *
                * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
                */
          -    public java.util.List 
          -         getThresholdsOrBuilderList() {
          +    public java.util.List
          +        getThresholdsOrBuilderList() {
                 if (thresholdsBuilder_ != null) {
                   return thresholdsBuilder_.getMessageOrBuilderList();
                 } else {
          @@ -4099,6 +4552,8 @@ public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuil
                 }
               }
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -4143,10 +4598,12 @@ public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuil
                * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
                */
               public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder() {
          -      return getThresholdsFieldBuilder().addBuilder(
          -          com.google.monitoring.dashboard.v1.Threshold.getDefaultInstance());
          +      return getThresholdsFieldBuilder()
          +          .addBuilder(com.google.monitoring.dashboard.v1.Threshold.getDefaultInstance());
               }
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -4190,12 +4647,13 @@ public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder
                *
                * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
                */
          -    public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder(
          -        int index) {
          -      return getThresholdsFieldBuilder().addBuilder(
          -          index, com.google.monitoring.dashboard.v1.Threshold.getDefaultInstance());
          +    public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder(int index) {
          +      return getThresholdsFieldBuilder()
          +          .addBuilder(index, com.google.monitoring.dashboard.v1.Threshold.getDefaultInstance());
               }
               /**
          +     *
          +     *
                * 
                * The thresholds used to determine the state of the scorecard given the
                * time series' current value. For an actual value x, the scorecard is in a
          @@ -4239,27 +4697,30 @@ public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder
                *
                * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
                */
          -    public java.util.List 
          -         getThresholdsBuilderList() {
          +    public java.util.List
          +        getThresholdsBuilderList() {
                 return getThresholdsFieldBuilder().getBuilderList();
               }
          +
               private com.google.protobuf.RepeatedFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.Threshold, com.google.monitoring.dashboard.v1.Threshold.Builder, com.google.monitoring.dashboard.v1.ThresholdOrBuilder> 
          +            com.google.monitoring.dashboard.v1.Threshold,
          +            com.google.monitoring.dashboard.v1.Threshold.Builder,
          +            com.google.monitoring.dashboard.v1.ThresholdOrBuilder>
                   getThresholdsFieldBuilder() {
                 if (thresholdsBuilder_ == null) {
          -        thresholdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.Threshold, com.google.monitoring.dashboard.v1.Threshold.Builder, com.google.monitoring.dashboard.v1.ThresholdOrBuilder>(
          -                thresholds_,
          -                ((bitField0_ & 0x00000010) != 0),
          -                getParentForChildren(),
          -                isClean());
          +        thresholdsBuilder_ =
          +            new com.google.protobuf.RepeatedFieldBuilderV3<
          +                com.google.monitoring.dashboard.v1.Threshold,
          +                com.google.monitoring.dashboard.v1.Threshold.Builder,
          +                com.google.monitoring.dashboard.v1.ThresholdOrBuilder>(
          +                thresholds_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
                   thresholds_ = null;
                 }
                 return thresholdsBuilder_;
               }
          +
               @java.lang.Override
          -    public final Builder setUnknownFields(
          -        final com.google.protobuf.UnknownFieldSet unknownFields) {
          +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                 return super.setUnknownFields(unknownFields);
               }
           
          @@ -4269,12 +4730,12 @@ public final Builder mergeUnknownFields(
                 return super.mergeUnknownFields(unknownFields);
               }
           
          -
               // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.Scorecard)
             }
           
             // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Scorecard)
             private static final com.google.monitoring.dashboard.v1.Scorecard DEFAULT_INSTANCE;
          +
             static {
               DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Scorecard();
             }
          @@ -4283,27 +4744,27 @@ public static com.google.monitoring.dashboard.v1.Scorecard getDefaultInstance()
               return DEFAULT_INSTANCE;
             }
           
          -  private static final com.google.protobuf.Parser
          -      PARSER = new com.google.protobuf.AbstractParser() {
          -    @java.lang.Override
          -    public Scorecard 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();
          -    }
          -  };
          +  private static final com.google.protobuf.Parser PARSER =
          +      new com.google.protobuf.AbstractParser() {
          +        @java.lang.Override
          +        public Scorecard 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;
          @@ -4318,6 +4779,4 @@ public com.google.protobuf.Parser getParserForType() {
             public com.google.monitoring.dashboard.v1.Scorecard getDefaultInstanceForType() {
               return DEFAULT_INSTANCE;
             }
          -
           }
          -
          diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardOrBuilder.java
          similarity index 88%
          rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardOrBuilder.java
          rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardOrBuilder.java
          index 18059b12b9af..d91b86543a81 100644
          --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardOrBuilder.java
          +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardOrBuilder.java
          @@ -1,62 +1,100 @@
          +/*
          + * Copyright 2024 Google LLC
          + *
          + * Licensed under the Apache License, Version 2.0 (the "License");
          + * you may not use this file except in compliance with the License.
          + * You may obtain a copy of the License at
          + *
          + *     https://www.apache.org/licenses/LICENSE-2.0
          + *
          + * Unless required by applicable law or agreed to in writing, software
          + * distributed under the License is distributed on an "AS IS" BASIS,
          + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          + * See the License for the specific language governing permissions and
          + * limitations under the License.
          + */
           // Generated by the protocol buffer compiler.  DO NOT EDIT!
           // source: google/monitoring/dashboard/v1/scorecard.proto
           
           // Protobuf Java Version: 3.25.2
           package com.google.monitoring.dashboard.v1;
           
          -public interface ScorecardOrBuilder extends
          +public interface ScorecardOrBuilder
          +    extends
               // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Scorecard)
               com.google.protobuf.MessageOrBuilder {
           
             /**
          +   *
          +   *
              * 
              * Required. Fields for querying time series data from the
              * Stackdriver metrics API.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the timeSeriesQuery field is set. */ boolean hasTimeSeriesQuery(); /** + * + * *
              * Required. Fields for querying time series data from the
              * Stackdriver metrics API.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The timeSeriesQuery. */ com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery(); /** + * + * *
              * Required. Fields for querying time series data from the
              * Stackdriver metrics API.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder(); /** + * + * *
              * Will cause the scorecard to show a gauge chart.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4; + * * @return Whether the gaugeView field is set. */ boolean hasGaugeView(); /** + * + * *
              * Will cause the scorecard to show a gauge chart.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4; + * * @return The gaugeView. */ com.google.monitoring.dashboard.v1.Scorecard.GaugeView getGaugeView(); /** + * + * *
              * Will cause the scorecard to show a gauge chart.
              * 
          @@ -66,24 +104,32 @@ public interface ScorecardOrBuilder extends com.google.monitoring.dashboard.v1.Scorecard.GaugeViewOrBuilder getGaugeViewOrBuilder(); /** + * + * *
              * Will cause the scorecard to show a spark chart.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; + * * @return Whether the sparkChartView field is set. */ boolean hasSparkChartView(); /** + * + * *
              * Will cause the scorecard to show a spark chart.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5; + * * @return The sparkChartView. */ com.google.monitoring.dashboard.v1.Scorecard.SparkChartView getSparkChartView(); /** + * + * *
              * Will cause the scorecard to show a spark chart.
              * 
          @@ -93,26 +139,34 @@ public interface ScorecardOrBuilder extends com.google.monitoring.dashboard.v1.Scorecard.SparkChartViewOrBuilder getSparkChartViewOrBuilder(); /** + * + * *
              * Will cause the `Scorecard` to show only the value, with no indicator to
              * its value relative to its thresholds.
              * 
          * * .google.protobuf.Empty blank_view = 7; + * * @return Whether the blankView field is set. */ boolean hasBlankView(); /** + * + * *
              * Will cause the `Scorecard` to show only the value, with no indicator to
              * its value relative to its thresholds.
              * 
          * * .google.protobuf.Empty blank_view = 7; + * * @return The blankView. */ com.google.protobuf.Empty getBlankView(); /** + * + * *
              * Will cause the `Scorecard` to show only the value, with no indicator to
              * its value relative to its thresholds.
          @@ -123,6 +177,8 @@ public interface ScorecardOrBuilder extends
             com.google.protobuf.EmptyOrBuilder getBlankViewOrBuilder();
           
             /**
          +   *
          +   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -166,9 +222,10 @@ public interface ScorecardOrBuilder extends
              *
              * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
              */
          -  java.util.List 
          -      getThresholdsList();
          +  java.util.List getThresholdsList();
             /**
          +   *
          +   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -214,6 +271,8 @@ public interface ScorecardOrBuilder extends
              */
             com.google.monitoring.dashboard.v1.Threshold getThresholds(int index);
             /**
          +   *
          +   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -259,6 +318,8 @@ public interface ScorecardOrBuilder extends
              */
             int getThresholdsCount();
             /**
          +   *
          +   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -302,9 +363,11 @@ public interface ScorecardOrBuilder extends
              *
              * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
              */
          -  java.util.List 
          +  java.util.List
                 getThresholdsOrBuilderList();
             /**
          +   *
          +   *
              * 
              * The thresholds used to determine the state of the scorecard given the
              * time series' current value. For an actual value x, the scorecard is in a
          @@ -348,8 +411,7 @@ public interface ScorecardOrBuilder extends
              *
              * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
              */
          -  com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(
          -      int index);
          +  com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(int index);
           
             com.google.monitoring.dashboard.v1.Scorecard.DataViewCase getDataViewCase();
           }
          diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java
          new file mode 100644
          index 000000000000..3f87d36c44c4
          --- /dev/null
          +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java
          @@ -0,0 +1,130 @@
          +/*
          + * Copyright 2024 Google LLC
          + *
          + * Licensed under the Apache License, Version 2.0 (the "License");
          + * you may not use this file except in compliance with the License.
          + * You may obtain a copy of the License at
          + *
          + *     https://www.apache.org/licenses/LICENSE-2.0
          + *
          + * Unless required by applicable law or agreed to in writing, software
          + * distributed under the License is distributed on an "AS IS" BASIS,
          + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          + * See the License for the specific language governing permissions and
          + * limitations under the License.
          + */
          +// Generated by the protocol buffer compiler.  DO NOT EDIT!
          +// source: google/monitoring/dashboard/v1/scorecard.proto
          +
          +// Protobuf Java Version: 3.25.2
          +package com.google.monitoring.dashboard.v1;
          +
          +public final class ScorecardProto {
          +  private ScorecardProto() {}
          +
          +  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
          +
          +  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
          +    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
          +  }
          +
          +  static final com.google.protobuf.Descriptors.Descriptor
          +      internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor;
          +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          +      internal_static_google_monitoring_dashboard_v1_Scorecard_fieldAccessorTable;
          +  static final com.google.protobuf.Descriptors.Descriptor
          +      internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor;
          +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          +      internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_fieldAccessorTable;
          +  static final com.google.protobuf.Descriptors.Descriptor
          +      internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor;
          +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          +      internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_fieldAccessorTable;
          +
          +  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
          +    return descriptor;
          +  }
          +
          +  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
          +
          +  static {
          +    java.lang.String[] descriptorData = {
          +      "\n.google/monitoring/dashboard/v1/scoreca"
          +          + "rd.proto\022\036google.monitoring.dashboard.v1"
          +          + "\032\037google/api/field_behavior.proto\032,googl"
          +          + "e/monitoring/dashboard/v1/metrics.proto\032"
          +          + "\036google/protobuf/duration.proto\032\033google/"
          +          + "protobuf/empty.proto\"\311\004\n\tScorecard\022O\n\021ti"
          +          + "me_series_query\030\001 \001(\0132/.google.monitorin"
          +          + "g.dashboard.v1.TimeSeriesQueryB\003\340A\002\022I\n\ng"
          +          + "auge_view\030\004 \001(\01323.google.monitoring.dash"
          +          + "board.v1.Scorecard.GaugeViewH\000\022T\n\020spark_"
          +          + "chart_view\030\005 \001(\01328.google.monitoring.das"
          +          + "hboard.v1.Scorecard.SparkChartViewH\000\022,\n\n"
          +          + "blank_view\030\007 \001(\0132\026.google.protobuf.Empty"
          +          + "H\000\022=\n\nthresholds\030\006 \003(\0132).google.monitori"
          +          + "ng.dashboard.v1.Threshold\0325\n\tGaugeView\022\023"
          +          + "\n\013lower_bound\030\001 \001(\001\022\023\n\013upper_bound\030\002 \001(\001"
          +          + "\032\230\001\n\016SparkChartView\022M\n\020spark_chart_type\030"
          +          + "\001 \001(\0162..google.monitoring.dashboard.v1.S"
          +          + "parkChartTypeB\003\340A\002\0227\n\024min_alignment_peri"
          +          + "od\030\002 \001(\0132\031.google.protobuf.DurationB\013\n\td"
          +          + "ata_viewB\367\001\n\"com.google.monitoring.dashb"
          +          + "oard.v1B\016ScorecardProtoP\001ZFcloud.google."
          +          + "com/go/monitoring/dashboard/apiv1/dashbo"
          +          + "ardpb;dashboardpb\252\002$Google.Cloud.Monitor"
          +          + "ing.Dashboard.V1\312\002$Google\\Cloud\\Monitori"
          +          + "ng\\Dashboard\\V1\352\002(Google::Cloud::Monitor"
          +          + "ing::Dashboard::V1b\006proto3"
          +    };
          +    descriptor =
          +        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
          +            descriptorData,
          +            new com.google.protobuf.Descriptors.FileDescriptor[] {
          +              com.google.api.FieldBehaviorProto.getDescriptor(),
          +              com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(),
          +              com.google.protobuf.DurationProto.getDescriptor(),
          +              com.google.protobuf.EmptyProto.getDescriptor(),
          +            });
          +    internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor =
          +        getDescriptor().getMessageTypes().get(0);
          +    internal_static_google_monitoring_dashboard_v1_Scorecard_fieldAccessorTable =
          +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          +            internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor,
          +            new java.lang.String[] {
          +              "TimeSeriesQuery",
          +              "GaugeView",
          +              "SparkChartView",
          +              "BlankView",
          +              "Thresholds",
          +              "DataView",
          +            });
          +    internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor =
          +        internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor.getNestedTypes().get(0);
          +    internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_fieldAccessorTable =
          +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          +            internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor,
          +            new java.lang.String[] {
          +              "LowerBound", "UpperBound",
          +            });
          +    internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor =
          +        internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor.getNestedTypes().get(1);
          +    internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_fieldAccessorTable =
          +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          +            internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor,
          +            new java.lang.String[] {
          +              "SparkChartType", "MinAlignmentPeriod",
          +            });
          +    com.google.protobuf.ExtensionRegistry registry =
          +        com.google.protobuf.ExtensionRegistry.newInstance();
          +    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
          +    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
          +        descriptor, registry);
          +    com.google.api.FieldBehaviorProto.getDescriptor();
          +    com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor();
          +    com.google.protobuf.DurationProto.getDescriptor();
          +    com.google.protobuf.EmptyProto.getDescriptor();
          +  }
          +
          +  // @@protoc_insertion_point(outer_class_scope)
          +}
          diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeader.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeader.java
          similarity index 68%
          rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeader.java
          rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeader.java
          index 6fde0435b7d1..cecdf480ef56 100644
          --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeader.java
          +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeader.java
          @@ -1,3 +1,18 @@
          +/*
          + * Copyright 2024 Google LLC
          + *
          + * Licensed under the Apache License, Version 2.0 (the "License");
          + * you may not use this file except in compliance with the License.
          + * You may obtain a copy of the License at
          + *
          + *     https://www.apache.org/licenses/LICENSE-2.0
          + *
          + * Unless required by applicable law or agreed to in writing, software
          + * distributed under the License is distributed on an "AS IS" BASIS,
          + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          + * See the License for the specific language governing permissions and
          + * limitations under the License.
          + */
           // Generated by the protocol buffer compiler.  DO NOT EDIT!
           // source: google/monitoring/dashboard/v1/section_header.proto
           
          @@ -5,6 +20,8 @@
           package com.google.monitoring.dashboard.v1;
           
           /**
          + *
          + *
            * 
            * A widget that defines a new section header. Sections populate a table of
            * contents and allow easier navigation of long-form content.
          @@ -12,48 +29,54 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.SectionHeader}
            */
          -public final class SectionHeader extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class SectionHeader extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.SectionHeader)
               SectionHeaderOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use SectionHeader.newBuilder() to construct.
             private SectionHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private SectionHeader() {
               subtitle_ = "";
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new SectionHeader();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.SectionHeaderProto.internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.SectionHeaderProto
          +        .internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.SectionHeaderProto.internal_static_google_monitoring_dashboard_v1_SectionHeader_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.SectionHeaderProto
          +        .internal_static_google_monitoring_dashboard_v1_SectionHeader_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.SectionHeader.class, com.google.monitoring.dashboard.v1.SectionHeader.Builder.class);
          +            com.google.monitoring.dashboard.v1.SectionHeader.class,
          +            com.google.monitoring.dashboard.v1.SectionHeader.Builder.class);
             }
           
             public static final int SUBTITLE_FIELD_NUMBER = 1;
          +
             @SuppressWarnings("serial")
             private volatile java.lang.Object subtitle_ = "";
             /**
          +   *
          +   *
              * 
              * The subtitle of the section
              * 
          * * string subtitle = 1; + * * @return The subtitle. */ @java.lang.Override @@ -62,29 +85,29 @@ public java.lang.String getSubtitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subtitle_ = s; return s; } } /** + * + * *
              * The subtitle of the section
              * 
          * * string subtitle = 1; + * * @return The bytes for subtitle. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubtitleBytes() { + public com.google.protobuf.ByteString getSubtitleBytes() { java.lang.Object ref = subtitle_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subtitle_ = b; return b; } else { @@ -95,11 +118,14 @@ public java.lang.String getSubtitle() { public static final int DIVIDER_BELOW_FIELD_NUMBER = 2; private boolean dividerBelow_ = false; /** + * + * *
              * Whether to insert a divider below the section in the table of contents
              * 
          * * bool divider_below = 2; + * * @return The dividerBelow. */ @java.lang.Override @@ -108,6 +134,7 @@ public boolean getDividerBelow() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +146,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subtitle_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subtitle_); } @@ -140,8 +166,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subtitle_); } if (dividerBelow_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, dividerBelow_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, dividerBelow_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -151,17 +176,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.SectionHeader)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.SectionHeader other = (com.google.monitoring.dashboard.v1.SectionHeader) obj; + com.google.monitoring.dashboard.v1.SectionHeader other = + (com.google.monitoring.dashboard.v1.SectionHeader) obj; - if (!getSubtitle() - .equals(other.getSubtitle())) return false; - if (getDividerBelow() - != other.getDividerBelow()) return false; + if (!getSubtitle().equals(other.getSubtitle())) return false; + if (getDividerBelow() != other.getDividerBelow()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,106 +200,110 @@ public int hashCode() { hash = (37 * hash) + SUBTITLE_FIELD_NUMBER; hash = (53 * hash) + getSubtitle().hashCode(); hash = (37 * hash) + DIVIDER_BELOW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDividerBelow()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDividerBelow()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.monitoring.dashboard.v1.SectionHeader parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.SectionHeader parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.SectionHeader parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.SectionHeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.SectionHeader 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.SectionHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.SectionHeader parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.SectionHeader parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.SectionHeader parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.SectionHeader parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.SectionHeader parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.SectionHeader parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.SectionHeader parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.SectionHeader parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.SectionHeader parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.SectionHeader prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A widget that defines a new section header. Sections populate a table of
              * contents and allow easier navigation of long-form content.
          @@ -283,33 +311,32 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.SectionHeader}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.SectionHeader)
                 com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.SectionHeaderProto.internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.SectionHeaderProto
          +          .internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.SectionHeaderProto.internal_static_google_monitoring_dashboard_v1_SectionHeader_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.SectionHeaderProto
          +          .internal_static_google_monitoring_dashboard_v1_SectionHeader_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.SectionHeader.class, com.google.monitoring.dashboard.v1.SectionHeader.Builder.class);
          +              com.google.monitoring.dashboard.v1.SectionHeader.class,
          +              com.google.monitoring.dashboard.v1.SectionHeader.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.SectionHeader.newBuilder()
          -    private Builder() {
          +    private Builder() {}
           
          -    }
          -
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
          -
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -320,9 +347,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.SectionHeaderProto.internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.SectionHeaderProto
          +          .internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor;
               }
           
               @java.lang.Override
          @@ -341,8 +368,11 @@ public com.google.monitoring.dashboard.v1.SectionHeader build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.SectionHeader buildPartial() {
          -      com.google.monitoring.dashboard.v1.SectionHeader result = new com.google.monitoring.dashboard.v1.SectionHeader(this);
          -      if (bitField0_ != 0) { buildPartial0(result); }
          +      com.google.monitoring.dashboard.v1.SectionHeader result =
          +          new com.google.monitoring.dashboard.v1.SectionHeader(this);
          +      if (bitField0_ != 0) {
          +        buildPartial0(result);
          +      }
                 onBuilt();
                 return result;
               }
          @@ -361,38 +391,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.SectionHeader resu
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.SectionHeader) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.SectionHeader)other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.SectionHeader) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -400,7 +431,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.SectionHeader other) {
          -      if (other == com.google.monitoring.dashboard.v1.SectionHeader.getDefaultInstance()) return this;
          +      if (other == com.google.monitoring.dashboard.v1.SectionHeader.getDefaultInstance())
          +        return this;
                 if (!other.getSubtitle().isEmpty()) {
                   subtitle_ = other.subtitle_;
                   bitField0_ |= 0x00000001;
          @@ -435,22 +467,25 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10: {
          -              subtitle_ = input.readStringRequireUtf8();
          -              bitField0_ |= 0x00000001;
          -              break;
          -            } // case 10
          -            case 16: {
          -              dividerBelow_ = input.readBool();
          -              bitField0_ |= 0x00000002;
          -              break;
          -            } // case 16
          -            default: {
          -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                done = true; // was an endgroup tag
          -              }
          -              break;
          -            } // default:
          +            case 10:
          +              {
          +                subtitle_ = input.readStringRequireUtf8();
          +                bitField0_ |= 0x00000001;
          +                break;
          +              } // case 10
          +            case 16:
          +              {
          +                dividerBelow_ = input.readBool();
          +                bitField0_ |= 0x00000002;
          +                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) {
          @@ -460,22 +495,25 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          +
               private int bitField0_;
           
               private java.lang.Object subtitle_ = "";
               /**
          +     *
          +     *
                * 
                * The subtitle of the section
                * 
          * * string subtitle = 1; + * * @return The subtitle. */ public java.lang.String getSubtitle() { java.lang.Object ref = subtitle_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subtitle_ = s; return s; @@ -484,20 +522,21 @@ public java.lang.String getSubtitle() { } } /** + * + * *
                * The subtitle of the section
                * 
          * * string subtitle = 1; + * * @return The bytes for subtitle. */ - public com.google.protobuf.ByteString - getSubtitleBytes() { + public com.google.protobuf.ByteString getSubtitleBytes() { java.lang.Object ref = subtitle_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subtitle_ = b; return b; } else { @@ -505,28 +544,35 @@ public java.lang.String getSubtitle() { } } /** + * + * *
                * The subtitle of the section
                * 
          * * string subtitle = 1; + * * @param value The subtitle to set. * @return This builder for chaining. */ - public Builder setSubtitle( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubtitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subtitle_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                * The subtitle of the section
                * 
          * * string subtitle = 1; + * * @return This builder for chaining. */ public Builder clearSubtitle() { @@ -536,17 +582,21 @@ public Builder clearSubtitle() { return this; } /** + * + * *
                * The subtitle of the section
                * 
          * * string subtitle = 1; + * * @param value The bytes for subtitle to set. * @return This builder for chaining. */ - public Builder setSubtitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubtitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subtitle_ = value; bitField0_ |= 0x00000001; @@ -554,13 +604,16 @@ public Builder setSubtitleBytes( return this; } - private boolean dividerBelow_ ; + private boolean dividerBelow_; /** + * + * *
                * Whether to insert a divider below the section in the table of contents
                * 
          * * bool divider_below = 2; + * * @return The dividerBelow. */ @java.lang.Override @@ -568,11 +621,14 @@ public boolean getDividerBelow() { return dividerBelow_; } /** + * + * *
                * Whether to insert a divider below the section in the table of contents
                * 
          * * bool divider_below = 2; + * * @param value The dividerBelow to set. * @return This builder for chaining. */ @@ -584,11 +640,14 @@ public Builder setDividerBelow(boolean value) { return this; } /** + * + * *
                * Whether to insert a divider below the section in the table of contents
                * 
          * * bool divider_below = 2; + * * @return This builder for chaining. */ public Builder clearDividerBelow() { @@ -597,9 +656,9 @@ public Builder clearDividerBelow() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -609,12 +668,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.SectionHeader) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.SectionHeader) private static final com.google.monitoring.dashboard.v1.SectionHeader DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.SectionHeader(); } @@ -623,27 +682,27 @@ public static com.google.monitoring.dashboard.v1.SectionHeader getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SectionHeader 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SectionHeader 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; @@ -658,6 +717,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.SectionHeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderOrBuilder.java similarity index 54% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderOrBuilder.java index 90d987aed784..3c24431c0d74 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderOrBuilder.java @@ -1,39 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/section_header.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface SectionHeaderOrBuilder extends +public interface SectionHeaderOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.SectionHeader) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * The subtitle of the section
              * 
          * * string subtitle = 1; + * * @return The subtitle. */ java.lang.String getSubtitle(); /** + * + * *
              * The subtitle of the section
              * 
          * * string subtitle = 1; + * * @return The bytes for subtitle. */ - com.google.protobuf.ByteString - getSubtitleBytes(); + com.google.protobuf.ByteString getSubtitleBytes(); /** + * + * *
              * Whether to insert a divider below the section in the table of contents
              * 
          * * bool divider_below = 2; + * * @return The dividerBelow. */ boolean getDividerBelow(); diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderProto.java new file mode 100644 index 000000000000..9a0a41d26272 --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderProto.java @@ -0,0 +1,70 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/section_header.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class SectionHeaderProto { + private SectionHeaderProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_SectionHeader_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/monitoring/dashboard/v1/section" + + "_header.proto\022\036google.monitoring.dashboa" + + "rd.v1\"8\n\rSectionHeader\022\020\n\010subtitle\030\001 \001(\t" + + "\022\025\n\rdivider_below\030\002 \001(\010B\373\001\n\"com.google.m" + + "onitoring.dashboard.v1B\022SectionHeaderPro" + + "toP\001ZFcloud.google.com/go/monitoring/das" + + "hboard/apiv1/dashboardpb;dashboardpb\252\002$G" + + "oogle.Cloud.Monitoring.Dashboard.V1\312\002$Go" + + "ogle\\Cloud\\Monitoring\\Dashboard\\V1\352\002(Goo" + + "gle::Cloud::Monitoring::Dashboard::V1b\006p" + + "roto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_SectionHeader_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor, + new java.lang.String[] { + "Subtitle", "DividerBelow", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroup.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroup.java similarity index 64% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroup.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroup.java index 29a2e5685ca1..3c84ca85fb60 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroup.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroup.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/single_view_group.proto @@ -5,6 +20,8 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A widget that groups the other widgets by using a dropdown menu. All widgets
            * that are within the area spanned by the grouping widget are considered
          @@ -13,39 +30,41 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.SingleViewGroup}
            */
          -public final class SingleViewGroup extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class SingleViewGroup extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.SingleViewGroup)
               SingleViewGroupOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use SingleViewGroup.newBuilder() to construct.
             private SingleViewGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -  private SingleViewGroup() {
          -  }
          +
          +  private SingleViewGroup() {}
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new SingleViewGroup();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.SingleViewGroupProto.internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.SingleViewGroupProto
          +        .internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.SingleViewGroupProto.internal_static_google_monitoring_dashboard_v1_SingleViewGroup_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.SingleViewGroupProto
          +        .internal_static_google_monitoring_dashboard_v1_SingleViewGroup_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.SingleViewGroup.class, com.google.monitoring.dashboard.v1.SingleViewGroup.Builder.class);
          +            com.google.monitoring.dashboard.v1.SingleViewGroup.class,
          +            com.google.monitoring.dashboard.v1.SingleViewGroup.Builder.class);
             }
           
             private byte memoizedIsInitialized = -1;
          +
             @java.lang.Override
             public final boolean isInitialized() {
               byte isInitialized = memoizedIsInitialized;
          @@ -57,8 +76,7 @@ public final boolean isInitialized() {
             }
           
             @java.lang.Override
          -  public void writeTo(com.google.protobuf.CodedOutputStream output)
          -                      throws java.io.IOException {
          +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
               getUnknownFields().writeTo(output);
             }
           
          @@ -76,12 +94,13 @@ public int getSerializedSize() {
             @java.lang.Override
             public boolean equals(final java.lang.Object obj) {
               if (obj == this) {
          -     return true;
          +      return true;
               }
               if (!(obj instanceof com.google.monitoring.dashboard.v1.SingleViewGroup)) {
                 return super.equals(obj);
               }
          -    com.google.monitoring.dashboard.v1.SingleViewGroup other = (com.google.monitoring.dashboard.v1.SingleViewGroup) obj;
          +    com.google.monitoring.dashboard.v1.SingleViewGroup other =
          +        (com.google.monitoring.dashboard.v1.SingleViewGroup) obj;
           
               if (!getUnknownFields().equals(other.getUnknownFields())) return false;
               return true;
          @@ -100,98 +119,103 @@ public int hashCode() {
             }
           
             public static com.google.monitoring.dashboard.v1.SingleViewGroup parseFrom(
          -      java.nio.ByteBuffer data)
          -      throws com.google.protobuf.InvalidProtocolBufferException {
          +      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          +
             public static com.google.monitoring.dashboard.v1.SingleViewGroup parseFrom(
          -      java.nio.ByteBuffer data,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      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.SingleViewGroup parseFrom(
                 com.google.protobuf.ByteString data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          +
             public static com.google.monitoring.dashboard.v1.SingleViewGroup 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.SingleViewGroup parseFrom(byte[] data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          +
             public static com.google.monitoring.dashboard.v1.SingleViewGroup parseFrom(
          -      byte[] data,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data, extensionRegistry);
             }
          -  public static com.google.monitoring.dashboard.v1.SingleViewGroup parseFrom(java.io.InputStream input)
          -      throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input);
          +
          +  public static com.google.monitoring.dashboard.v1.SingleViewGroup parseFrom(
          +      java.io.InputStream input) throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
             }
          +
             public static com.google.monitoring.dashboard.v1.SingleViewGroup parseFrom(
          -      java.io.InputStream input,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          +        PARSER, input, extensionRegistry);
             }
           
          -  public static com.google.monitoring.dashboard.v1.SingleViewGroup parseDelimitedFrom(java.io.InputStream input)
          -      throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseDelimitedWithIOException(PARSER, input);
          +  public static com.google.monitoring.dashboard.v1.SingleViewGroup parseDelimitedFrom(
          +      java.io.InputStream input) throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
             }
           
             public static com.google.monitoring.dashboard.v1.SingleViewGroup parseDelimitedFrom(
          -      java.io.InputStream input,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          +        PARSER, input, extensionRegistry);
             }
          +
             public static com.google.monitoring.dashboard.v1.SingleViewGroup parseFrom(
          -      com.google.protobuf.CodedInputStream input)
          -      throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input);
          +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
             }
          +
             public static com.google.monitoring.dashboard.v1.SingleViewGroup parseFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          +        PARSER, input, extensionRegistry);
             }
           
             @java.lang.Override
          -  public Builder newBuilderForType() { return newBuilder(); }
          +  public Builder newBuilderForType() {
          +    return newBuilder();
          +  }
          +
             public static Builder newBuilder() {
               return DEFAULT_INSTANCE.toBuilder();
             }
          +
             public static Builder newBuilder(com.google.monitoring.dashboard.v1.SingleViewGroup prototype) {
               return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
             }
          +
             @java.lang.Override
             public Builder toBuilder() {
          -    return this == DEFAULT_INSTANCE
          -        ? new Builder() : new Builder().mergeFrom(this);
          +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
             }
           
             @java.lang.Override
          -  protected Builder newBuilderForType(
          -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
               Builder builder = new Builder(parent);
               return builder;
             }
             /**
          +   *
          +   *
              * 
              * A widget that groups the other widgets by using a dropdown menu. All widgets
              * that are within the area spanned by the grouping widget are considered
          @@ -200,33 +224,32 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.SingleViewGroup}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.SingleViewGroup)
                 com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.SingleViewGroupProto.internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.SingleViewGroupProto
          +          .internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.SingleViewGroupProto.internal_static_google_monitoring_dashboard_v1_SingleViewGroup_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.SingleViewGroupProto
          +          .internal_static_google_monitoring_dashboard_v1_SingleViewGroup_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.SingleViewGroup.class, com.google.monitoring.dashboard.v1.SingleViewGroup.Builder.class);
          +              com.google.monitoring.dashboard.v1.SingleViewGroup.class,
          +              com.google.monitoring.dashboard.v1.SingleViewGroup.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.SingleViewGroup.newBuilder()
          -    private Builder() {
          -
          -    }
          +    private Builder() {}
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
          -
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -234,9 +257,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.SingleViewGroupProto.internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.SingleViewGroupProto
          +          .internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor;
               }
           
               @java.lang.Override
          @@ -255,7 +278,8 @@ public com.google.monitoring.dashboard.v1.SingleViewGroup build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.SingleViewGroup buildPartial() {
          -      com.google.monitoring.dashboard.v1.SingleViewGroup result = new com.google.monitoring.dashboard.v1.SingleViewGroup(this);
          +      com.google.monitoring.dashboard.v1.SingleViewGroup result =
          +          new com.google.monitoring.dashboard.v1.SingleViewGroup(this);
                 onBuilt();
                 return result;
               }
          @@ -264,38 +288,39 @@ public com.google.monitoring.dashboard.v1.SingleViewGroup buildPartial() {
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.SingleViewGroup) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.SingleViewGroup)other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.SingleViewGroup) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -303,7 +328,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.SingleViewGroup other) {
          -      if (other == com.google.monitoring.dashboard.v1.SingleViewGroup.getDefaultInstance()) return this;
          +      if (other == com.google.monitoring.dashboard.v1.SingleViewGroup.getDefaultInstance())
          +        return this;
                 this.mergeUnknownFields(other.getUnknownFields());
                 onChanged();
                 return this;
          @@ -330,12 +356,13 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            default: {
          -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                done = true; // was an endgroup tag
          -              }
          -              break;
          -            } // default:
          +            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) {
          @@ -345,9 +372,9 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          +
               @java.lang.Override
          -    public final Builder setUnknownFields(
          -        final com.google.protobuf.UnknownFieldSet unknownFields) {
          +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                 return super.setUnknownFields(unknownFields);
               }
           
          @@ -357,12 +384,12 @@ public final Builder mergeUnknownFields(
                 return super.mergeUnknownFields(unknownFields);
               }
           
          -
               // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.SingleViewGroup)
             }
           
             // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.SingleViewGroup)
             private static final com.google.monitoring.dashboard.v1.SingleViewGroup DEFAULT_INSTANCE;
          +
             static {
               DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.SingleViewGroup();
             }
          @@ -371,27 +398,27 @@ public static com.google.monitoring.dashboard.v1.SingleViewGroup getDefaultInsta
               return DEFAULT_INSTANCE;
             }
           
          -  private static final com.google.protobuf.Parser
          -      PARSER = new com.google.protobuf.AbstractParser() {
          -    @java.lang.Override
          -    public SingleViewGroup 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();
          -    }
          -  };
          +  private static final com.google.protobuf.Parser PARSER =
          +      new com.google.protobuf.AbstractParser() {
          +        @java.lang.Override
          +        public SingleViewGroup 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;
          @@ -406,6 +433,4 @@ public com.google.protobuf.Parser getParserForType() {
             public com.google.monitoring.dashboard.v1.SingleViewGroup getDefaultInstanceForType() {
               return DEFAULT_INSTANCE;
             }
          -
           }
          -
          diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupOrBuilder.java
          new file mode 100644
          index 000000000000..996bc97887fb
          --- /dev/null
          +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupOrBuilder.java
          @@ -0,0 +1,25 @@
          +/*
          + * Copyright 2024 Google LLC
          + *
          + * Licensed under the Apache License, Version 2.0 (the "License");
          + * you may not use this file except in compliance with the License.
          + * You may obtain a copy of the License at
          + *
          + *     https://www.apache.org/licenses/LICENSE-2.0
          + *
          + * Unless required by applicable law or agreed to in writing, software
          + * distributed under the License is distributed on an "AS IS" BASIS,
          + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          + * See the License for the specific language governing permissions and
          + * limitations under the License.
          + */
          +// Generated by the protocol buffer compiler.  DO NOT EDIT!
          +// source: google/monitoring/dashboard/v1/single_view_group.proto
          +
          +// Protobuf Java Version: 3.25.2
          +package com.google.monitoring.dashboard.v1;
          +
          +public interface SingleViewGroupOrBuilder
          +    extends
          +    // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.SingleViewGroup)
          +    com.google.protobuf.MessageOrBuilder {}
          diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupProto.java
          new file mode 100644
          index 000000000000..47a1a8c70b9e
          --- /dev/null
          +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupProto.java
          @@ -0,0 +1,67 @@
          +/*
          + * Copyright 2024 Google LLC
          + *
          + * Licensed under the Apache License, Version 2.0 (the "License");
          + * you may not use this file except in compliance with the License.
          + * You may obtain a copy of the License at
          + *
          + *     https://www.apache.org/licenses/LICENSE-2.0
          + *
          + * Unless required by applicable law or agreed to in writing, software
          + * distributed under the License is distributed on an "AS IS" BASIS,
          + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          + * See the License for the specific language governing permissions and
          + * limitations under the License.
          + */
          +// Generated by the protocol buffer compiler.  DO NOT EDIT!
          +// source: google/monitoring/dashboard/v1/single_view_group.proto
          +
          +// Protobuf Java Version: 3.25.2
          +package com.google.monitoring.dashboard.v1;
          +
          +public final class SingleViewGroupProto {
          +  private SingleViewGroupProto() {}
          +
          +  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
          +
          +  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
          +    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
          +  }
          +
          +  static final com.google.protobuf.Descriptors.Descriptor
          +      internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor;
          +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          +      internal_static_google_monitoring_dashboard_v1_SingleViewGroup_fieldAccessorTable;
          +
          +  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
          +    return descriptor;
          +  }
          +
          +  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
          +
          +  static {
          +    java.lang.String[] descriptorData = {
          +      "\n6google/monitoring/dashboard/v1/single_"
          +          + "view_group.proto\022\036google.monitoring.dash"
          +          + "board.v1\"\021\n\017SingleViewGroupB\375\001\n\"com.goog"
          +          + "le.monitoring.dashboard.v1B\024SingleViewGr"
          +          + "oupProtoP\001ZFcloud.google.com/go/monitori"
          +          + "ng/dashboard/apiv1/dashboardpb;dashboard"
          +          + "pb\252\002$Google.Cloud.Monitoring.Dashboard.V"
          +          + "1\312\002$Google\\Cloud\\Monitoring\\Dashboard\\V1"
          +          + "\352\002(Google::Cloud::Monitoring::Dashboard:"
          +          + ":V1b\006proto3"
          +    };
          +    descriptor =
          +        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
          +            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
          +    internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor =
          +        getDescriptor().getMessageTypes().get(0);
          +    internal_static_google_monitoring_dashboard_v1_SingleViewGroup_fieldAccessorTable =
          +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          +            internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor,
          +            new java.lang.String[] {});
          +  }
          +
          +  // @@protoc_insertion_point(outer_class_scope)
          +}
          diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SparkChartType.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SparkChartType.java
          similarity index 68%
          rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SparkChartType.java
          rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SparkChartType.java
          index 0210b043633d..9756d6394cc9 100644
          --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SparkChartType.java
          +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SparkChartType.java
          @@ -1,3 +1,18 @@
          +/*
          + * Copyright 2024 Google LLC
          + *
          + * Licensed under the Apache License, Version 2.0 (the "License");
          + * you may not use this file except in compliance with the License.
          + * You may obtain a copy of the License at
          + *
          + *     https://www.apache.org/licenses/LICENSE-2.0
          + *
          + * Unless required by applicable law or agreed to in writing, software
          + * distributed under the License is distributed on an "AS IS" BASIS,
          + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          + * See the License for the specific language governing permissions and
          + * limitations under the License.
          + */
           // Generated by the protocol buffer compiler.  DO NOT EDIT!
           // source: google/monitoring/dashboard/v1/metrics.proto
           
          @@ -5,15 +20,18 @@
           package com.google.monitoring.dashboard.v1;
           
           /**
          + *
          + *
            * 
            * Defines the possible types of spark chart supported by the `Scorecard`.
            * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.SparkChartType} */ -public enum SparkChartType - implements com.google.protobuf.ProtocolMessageEnum { +public enum SparkChartType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
              * Not allowed in well-formed requests.
              * 
          @@ -22,6 +40,8 @@ public enum SparkChartType */ SPARK_CHART_TYPE_UNSPECIFIED(0), /** + * + * *
              * The sparkline will be rendered as a small line chart.
              * 
          @@ -30,6 +50,8 @@ public enum SparkChartType */ SPARK_LINE(1), /** + * + * *
              * The sparkbar will be rendered as a small bar chart.
              * 
          @@ -41,6 +63,8 @@ public enum SparkChartType ; /** + * + * *
              * Not allowed in well-formed requests.
              * 
          @@ -49,6 +73,8 @@ public enum SparkChartType */ public static final int SPARK_CHART_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
              * The sparkline will be rendered as a small line chart.
              * 
          @@ -57,6 +83,8 @@ public enum SparkChartType */ public static final int SPARK_LINE_VALUE = 1; /** + * + * *
              * The sparkbar will be rendered as a small bar chart.
              * 
          @@ -65,7 +93,6 @@ public enum SparkChartType */ public static final int SPARK_BAR_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -90,49 +117,49 @@ public static SparkChartType valueOf(int value) { */ public static SparkChartType forNumber(int value) { switch (value) { - case 0: return SPARK_CHART_TYPE_UNSPECIFIED; - case 1: return SPARK_LINE; - case 2: return SPARK_BAR; - default: return null; + case 0: + return SPARK_CHART_TYPE_UNSPECIFIED; + case 1: + return SPARK_LINE; + case 2: + return SPARK_BAR; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SparkChartType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SparkChartType findValueByNumber(int number) { - return SparkChartType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SparkChartType findValueByNumber(int number) { + return SparkChartType.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor().getEnumTypes().get(0); } private static final SparkChartType[] VALUES = values(); - public static SparkChartType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SparkChartType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -148,4 +175,3 @@ private SparkChartType(int value) { // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.SparkChartType) } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilter.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilter.java similarity index 66% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilter.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilter.java index a6d024a45d6c..8abcd261477f 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilter.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilter.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/common.proto @@ -5,6 +20,8 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A filter that ranks streams based on their statistical relation to other
            * streams in a request.
          @@ -13,49 +30,54 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter}
            */
          -public final class StatisticalTimeSeriesFilter extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class StatisticalTimeSeriesFilter extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter)
               StatisticalTimeSeriesFilterOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use StatisticalTimeSeriesFilter.newBuilder() to construct.
             private StatisticalTimeSeriesFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private StatisticalTimeSeriesFilter() {
               rankingMethod_ = 0;
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new StatisticalTimeSeriesFilter();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.CommonProto
          +        .internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.CommonProto
          +        .internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.class, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder.class);
          +            com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.class,
          +            com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder.class);
             }
           
             /**
          +   *
          +   *
              * 
              * The filter methods that can be applied to a stream.
              * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method} */ - public enum Method - implements com.google.protobuf.ProtocolMessageEnum { + public enum Method implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                * Not allowed in well-formed requests.
                * 
          @@ -64,6 +86,8 @@ public enum Method */ METHOD_UNSPECIFIED(0), /** + * + * *
                * Compute the outlier score of each stream.
                * 
          @@ -75,6 +99,8 @@ public enum Method ; /** + * + * *
                * Not allowed in well-formed requests.
                * 
          @@ -83,6 +109,8 @@ public enum Method */ public static final int METHOD_UNSPECIFIED_VALUE = 0; /** + * + * *
                * Compute the outlier score of each stream.
                * 
          @@ -91,7 +119,6 @@ public enum Method */ public static final int METHOD_CLUSTER_OUTLIER_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,48 +143,49 @@ public static Method valueOf(int value) { */ public static Method forNumber(int value) { switch (value) { - case 0: return METHOD_UNSPECIFIED; - case 1: return METHOD_CLUSTER_OUTLIER; - default: return null; + case 0: + return METHOD_UNSPECIFIED; + case 1: + return METHOD_CLUSTER_OUTLIER; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Method> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Method findValueByNumber(int number) { - return Method.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Method findValueByNumber(int number) { + return Method.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() { + + 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.StatisticalTimeSeriesFilter.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDescriptor() + .getEnumTypes() + .get(0); } private static final Method[] VALUES = values(); - public static Method valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Method valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -177,6 +205,8 @@ private Method(int value) { public static final int RANKING_METHOD_FIELD_NUMBER = 1; private int rankingMethod_ = 0; /** + * + * *
              * `rankingMethod` is applied to a set of time series, and then the produced
              * value for each individual time series is used to compare a given time
          @@ -185,13 +215,18 @@ private Method(int value) {
              * require the full context of a request to evaluate time series.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * + * * @return The enum numeric value on the wire for rankingMethod. */ - @java.lang.Override public int getRankingMethodValue() { + @java.lang.Override + public int getRankingMethodValue() { return rankingMethod_; } /** + * + * *
              * `rankingMethod` is applied to a set of time series, and then the produced
              * value for each individual time series is used to compare a given time
          @@ -200,22 +235,32 @@ private Method(int value) {
              * require the full context of a request to evaluate time series.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * + * * @return The rankingMethod. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method getRankingMethod() { - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method result = com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.forNumber(rankingMethod_); - return result == null ? com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method getRankingMethod() { + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method result = + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.forNumber( + rankingMethod_); + return result == null + ? com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.UNRECOGNIZED + : result; } public static final int NUM_TIME_SERIES_FIELD_NUMBER = 2; private int numTimeSeries_ = 0; /** + * + * *
              * How many time series to output.
              * 
          * * int32 num_time_series = 2; + * * @return The numTimeSeries. */ @java.lang.Override @@ -224,6 +269,7 @@ public int getNumTimeSeries() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,9 +281,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (rankingMethod_ != com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.METHOD_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (rankingMethod_ + != com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.METHOD_UNSPECIFIED + .getNumber()) { output.writeEnum(1, rankingMethod_); } if (numTimeSeries_ != 0) { @@ -252,13 +299,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (rankingMethod_ != com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.METHOD_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, rankingMethod_); + if (rankingMethod_ + != com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.METHOD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, rankingMethod_); } if (numTimeSeries_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, numTimeSeries_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, numTimeSeries_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -268,16 +315,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter other = (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) obj; + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter other = + (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) obj; if (rankingMethod_ != other.rankingMethod_) return false; - if (getNumTimeSeries() - != other.getNumTimeSeries()) return false; + if (getNumTimeSeries() != other.getNumTimeSeries()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -299,98 +346,104 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.StatisticalTimeSeriesFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter 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.StatisticalTimeSeriesFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter prototype) { + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A filter that ranks streams based on their statistical relation to other
              * streams in a request.
          @@ -399,33 +452,32 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter)
                 com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.CommonProto
          +          .internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.CommonProto
          +          .internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.class, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder.class);
          +              com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.class,
          +              com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.newBuilder()
          -    private Builder() {
          +    private Builder() {}
           
          -    }
          -
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
          -
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -436,13 +488,14 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.CommonProto.internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.CommonProto
          +          .internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor;
               }
           
               @java.lang.Override
          -    public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getDefaultInstanceForType() {
          +    public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter
          +        getDefaultInstanceForType() {
                 return com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance();
               }
           
          @@ -457,13 +510,17 @@ public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter buildPartial() {
          -      com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter result = new com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter(this);
          -      if (bitField0_ != 0) { buildPartial0(result); }
          +      com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter result =
          +          new com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter(this);
          +      if (bitField0_ != 0) {
          +        buildPartial0(result);
          +      }
                 onBuilt();
                 return result;
               }
           
          -    private void buildPartial0(com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter result) {
          +    private void buildPartial0(
          +        com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter result) {
                 int from_bitField0_ = bitField0_;
                 if (((from_bitField0_ & 0x00000001) != 0)) {
                   result.rankingMethod_ = rankingMethod_;
          @@ -477,38 +534,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.StatisticalTimeSer
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.StatisticalTimeSeriesFilter) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter)other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -516,7 +574,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter other) {
          -      if (other == com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance()) return this;
          +      if (other
          +          == com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance())
          +        return this;
                 if (other.rankingMethod_ != 0) {
                   setRankingMethodValue(other.getRankingMethodValue());
                 }
          @@ -549,22 +609,25 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 8: {
          -              rankingMethod_ = input.readEnum();
          -              bitField0_ |= 0x00000001;
          -              break;
          -            } // case 8
          -            case 16: {
          -              numTimeSeries_ = input.readInt32();
          -              bitField0_ |= 0x00000002;
          -              break;
          -            } // case 16
          -            default: {
          -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                done = true; // was an endgroup tag
          -              }
          -              break;
          -            } // default:
          +            case 8:
          +              {
          +                rankingMethod_ = input.readEnum();
          +                bitField0_ |= 0x00000001;
          +                break;
          +              } // case 8
          +            case 16:
          +              {
          +                numTimeSeries_ = input.readInt32();
          +                bitField0_ |= 0x00000002;
          +                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) {
          @@ -574,10 +637,13 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          +
               private int bitField0_;
           
               private int rankingMethod_ = 0;
               /**
          +     *
          +     *
                * 
                * `rankingMethod` is applied to a set of time series, and then the produced
                * value for each individual time series is used to compare a given time
          @@ -586,13 +652,18 @@ public Builder mergeFrom(
                * require the full context of a request to evaluate time series.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * + * * @return The enum numeric value on the wire for rankingMethod. */ - @java.lang.Override public int getRankingMethodValue() { + @java.lang.Override + public int getRankingMethodValue() { return rankingMethod_; } /** + * + * *
                * `rankingMethod` is applied to a set of time series, and then the produced
                * value for each individual time series is used to compare a given time
          @@ -601,7 +672,9 @@ public Builder mergeFrom(
                * require the full context of a request to evaluate time series.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * + * * @param value The enum numeric value on the wire for rankingMethod to set. * @return This builder for chaining. */ @@ -612,6 +685,8 @@ public Builder setRankingMethodValue(int value) { return this; } /** + * + * *
                * `rankingMethod` is applied to a set of time series, and then the produced
                * value for each individual time series is used to compare a given time
          @@ -620,15 +695,24 @@ public Builder setRankingMethodValue(int value) {
                * require the full context of a request to evaluate time series.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * + * * @return The rankingMethod. */ @java.lang.Override - public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method getRankingMethod() { - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method result = com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.forNumber(rankingMethod_); - return result == null ? com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.UNRECOGNIZED : result; + public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method + getRankingMethod() { + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method result = + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.forNumber( + rankingMethod_); + return result == null + ? com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method.UNRECOGNIZED + : result; } /** + * + * *
                * `rankingMethod` is applied to a set of time series, and then the produced
                * value for each individual time series is used to compare a given time
          @@ -637,11 +721,14 @@ public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method get
                * require the full context of a request to evaluate time series.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * + * * @param value The rankingMethod to set. * @return This builder for chaining. */ - public Builder setRankingMethod(com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method value) { + public Builder setRankingMethod( + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method value) { if (value == null) { throw new NullPointerException(); } @@ -651,6 +738,8 @@ public Builder setRankingMethod(com.google.monitoring.dashboard.v1.StatisticalTi return this; } /** + * + * *
                * `rankingMethod` is applied to a set of time series, and then the produced
                * value for each individual time series is used to compare a given time
          @@ -659,7 +748,9 @@ public Builder setRankingMethod(com.google.monitoring.dashboard.v1.StatisticalTi
                * require the full context of a request to evaluate time series.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * + * * @return This builder for chaining. */ public Builder clearRankingMethod() { @@ -669,13 +760,16 @@ public Builder clearRankingMethod() { return this; } - private int numTimeSeries_ ; + private int numTimeSeries_; /** + * + * *
                * How many time series to output.
                * 
          * * int32 num_time_series = 2; + * * @return The numTimeSeries. */ @java.lang.Override @@ -683,11 +777,14 @@ public int getNumTimeSeries() { return numTimeSeries_; } /** + * + * *
                * How many time series to output.
                * 
          * * int32 num_time_series = 2; + * * @param value The numTimeSeries to set. * @return This builder for chaining. */ @@ -699,11 +796,14 @@ public Builder setNumTimeSeries(int value) { return this; } /** + * + * *
                * How many time series to output.
                * 
          * * int32 num_time_series = 2; + * * @return This builder for chaining. */ public Builder clearNumTimeSeries() { @@ -712,9 +812,9 @@ public Builder clearNumTimeSeries() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -724,41 +824,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) - private static final com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter DEFAULT_INSTANCE; + private static final com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter(); } - public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getDefaultInstance() { + public static com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StatisticalTimeSeriesFilter 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StatisticalTimeSeriesFilter 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; @@ -770,9 +872,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getDefaultInstanceForType() { + public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilterOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilterOrBuilder.java similarity index 66% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilterOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilterOrBuilder.java index bf9613c87b33..8a5b34a9f5bd 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilterOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/StatisticalTimeSeriesFilterOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/common.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface StatisticalTimeSeriesFilterOrBuilder extends +public interface StatisticalTimeSeriesFilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * `rankingMethod` is applied to a set of time series, and then the produced
              * value for each individual time series is used to compare a given time
          @@ -17,11 +35,15 @@ public interface StatisticalTimeSeriesFilterOrBuilder extends
              * require the full context of a request to evaluate time series.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * + * * @return The enum numeric value on the wire for rankingMethod. */ int getRankingMethodValue(); /** + * + * *
              * `rankingMethod` is applied to a set of time series, and then the produced
              * value for each individual time series is used to compare a given time
          @@ -30,17 +52,22 @@ public interface StatisticalTimeSeriesFilterOrBuilder extends
              * require the full context of a request to evaluate time series.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method ranking_method = 1; + * + * * @return The rankingMethod. */ com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method getRankingMethod(); /** + * + * *
              * How many time series to output.
              * 
          * * int32 num_time_series = 2; + * * @return The numTimeSeries. */ int getNumTimeSeries(); diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java similarity index 63% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java index 08184f1f6921..746c03d126de 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/table_display_options.proto @@ -5,112 +20,139 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * Table display options that can be reused.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.TableDisplayOptions} */ -public final class TableDisplayOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TableDisplayOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TableDisplayOptions) TableDisplayOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableDisplayOptions.newBuilder() to construct. private TableDisplayOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TableDisplayOptions() { - shownColumns_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + shownColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TableDisplayOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto + .internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_fieldAccessorTable + return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto + .internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.TableDisplayOptions.class, com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder.class); + com.google.monitoring.dashboard.v1.TableDisplayOptions.class, + com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder.class); } public static final int SHOWN_COLUMNS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList shownColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
              * 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]; - * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. - * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 + * + * repeated string shown_columns = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. See + * google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @return A list containing the shownColumns. */ - @java.lang.Deprecated public com.google.protobuf.ProtocolStringList - getShownColumnsList() { + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getShownColumnsList() { return shownColumns_; } /** + * + * *
              * 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]; - * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. - * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 + * + * repeated string shown_columns = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. See + * google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @return The count of shownColumns. */ - @java.lang.Deprecated public int getShownColumnsCount() { + @java.lang.Deprecated + public int getShownColumnsCount() { return shownColumns_.size(); } /** + * + * *
              * 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]; - * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. - * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 + * + * repeated string shown_columns = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. See + * google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @param index The index of the element to return. * @return The shownColumns at the given index. */ - @java.lang.Deprecated public java.lang.String getShownColumns(int index) { + @java.lang.Deprecated + public java.lang.String getShownColumns(int index) { return shownColumns_.get(index); } /** + * + * *
              * 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]; - * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. - * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 + * + * repeated string shown_columns = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. See + * google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @param index The index of the value to return. * @return The bytes of the shownColumns at the given index. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getShownColumnsBytes(int index) { + @java.lang.Deprecated + public com.google.protobuf.ByteString getShownColumnsBytes(int index) { return shownColumns_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -122,8 +164,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < shownColumns_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, shownColumns_.getRaw(i)); } @@ -152,15 +193,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.TableDisplayOptions)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.TableDisplayOptions other = (com.google.monitoring.dashboard.v1.TableDisplayOptions) obj; + com.google.monitoring.dashboard.v1.TableDisplayOptions other = + (com.google.monitoring.dashboard.v1.TableDisplayOptions) obj; - if (!getShownColumnsList() - .equals(other.getShownColumnsList())) return false; + if (!getShownColumnsList().equals(other.getShownColumnsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,144 +223,148 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TableDisplayOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.TableDisplayOptions 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.TableDisplayOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.TableDisplayOptions prototype) { + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.TableDisplayOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Table display options that can be reused.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.TableDisplayOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.TableDisplayOptions) com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto + .internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_fieldAccessorTable + return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto + .internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.TableDisplayOptions.class, com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder.class); + com.google.monitoring.dashboard.v1.TableDisplayOptions.class, + com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.TableDisplayOptions.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - shownColumns_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + shownColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.TableDisplayOptionsProto + .internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor; } @java.lang.Override @@ -338,8 +383,11 @@ public com.google.monitoring.dashboard.v1.TableDisplayOptions build() { @java.lang.Override public com.google.monitoring.dashboard.v1.TableDisplayOptions buildPartial() { - com.google.monitoring.dashboard.v1.TableDisplayOptions result = new com.google.monitoring.dashboard.v1.TableDisplayOptions(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.TableDisplayOptions result = + new com.google.monitoring.dashboard.v1.TableDisplayOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -356,38 +404,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.TableDisplayOption public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TableDisplayOptions) { - return mergeFrom((com.google.monitoring.dashboard.v1.TableDisplayOptions)other); + return mergeFrom((com.google.monitoring.dashboard.v1.TableDisplayOptions) other); } else { super.mergeFrom(other); return this; @@ -395,7 +444,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.TableDisplayOptions other) { - if (other == com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance()) return this; + if (other == com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance()) + return this; if (!other.shownColumns_.isEmpty()) { if (shownColumns_.isEmpty()) { shownColumns_ = other.shownColumns_; @@ -432,18 +482,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureShownColumnsIsMutable(); - shownColumns_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureShownColumnsIsMutable(); + shownColumns_.add(s); + 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) { @@ -453,10 +505,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList shownColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureShownColumnsIsMutable() { if (!shownColumns_.isModifiable()) { shownColumns_ = new com.google.protobuf.LazyStringArrayList(shownColumns_); @@ -464,82 +518,111 @@ private void ensureShownColumnsIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
                * 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]; + * + * * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @return A list containing the shownColumns. */ - @java.lang.Deprecated public com.google.protobuf.ProtocolStringList - getShownColumnsList() { + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getShownColumnsList() { shownColumns_.makeImmutable(); return shownColumns_; } /** + * + * *
                * 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]; + * + * * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @return The count of shownColumns. */ - @java.lang.Deprecated public int getShownColumnsCount() { + @java.lang.Deprecated + public int getShownColumnsCount() { return shownColumns_.size(); } /** + * + * *
                * 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]; + * + * * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @param index The index of the element to return. * @return The shownColumns at the given index. */ - @java.lang.Deprecated public java.lang.String getShownColumns(int index) { + @java.lang.Deprecated + public java.lang.String getShownColumns(int index) { return shownColumns_.get(index); } /** + * + * *
                * 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]; + * + * * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @param index The index of the value to return. * @return The bytes of the shownColumns at the given index. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getShownColumnsBytes(int index) { + @java.lang.Deprecated + public com.google.protobuf.ByteString getShownColumnsBytes(int index) { return shownColumns_.getByteString(index); } /** + * + * *
                * 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]; + * + * * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @param index The index to set the value at. * @param value The shownColumns to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setShownColumns( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setShownColumns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureShownColumnsIsMutable(); shownColumns_.set(index, value); bitField0_ |= 0x00000001; @@ -547,20 +630,27 @@ private void ensureShownColumnsIsMutable() { return this; } /** + * + * *
                * 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]; + * + * * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @param value The shownColumns to add. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder addShownColumns( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder addShownColumns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureShownColumnsIsMutable(); shownColumns_.add(value); bitField0_ |= 0x00000001; @@ -568,59 +658,76 @@ private void ensureShownColumnsIsMutable() { return this; } /** + * + * *
                * 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]; + * + * * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @param values The shownColumns to add. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder addAllShownColumns( - java.lang.Iterable values) { + @java.lang.Deprecated + public Builder addAllShownColumns(java.lang.Iterable values) { ensureShownColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, shownColumns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shownColumns_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                * 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]; + * + * * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearShownColumns() { - shownColumns_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + @java.lang.Deprecated + public Builder clearShownColumns() { + shownColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
                * 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]; + * + * * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 * @param value The bytes of the shownColumns to add. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder addShownColumnsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder addShownColumnsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureShownColumnsIsMutable(); shownColumns_.add(value); @@ -628,9 +735,9 @@ private void ensureShownColumnsIsMutable() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -640,12 +747,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.TableDisplayOptions) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.TableDisplayOptions) private static final com.google.monitoring.dashboard.v1.TableDisplayOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.TableDisplayOptions(); } @@ -654,27 +761,27 @@ public static com.google.monitoring.dashboard.v1.TableDisplayOptions getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableDisplayOptions 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableDisplayOptions 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; @@ -689,6 +796,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.TableDisplayOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java new file mode 100644 index 000000000000..51d043d3d542 --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/table_display_options.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public interface TableDisplayOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TableDisplayOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * 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]; + * + * + * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. See + * google/monitoring/dashboard/v1/table_display_options.proto;l=32 + * @return A list containing the shownColumns. + */ + @java.lang.Deprecated + java.util.List getShownColumnsList(); + /** + * + * + *
          +   * 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]; + * + * + * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. See + * google/monitoring/dashboard/v1/table_display_options.proto;l=32 + * @return The count of shownColumns. + */ + @java.lang.Deprecated + int getShownColumnsCount(); + /** + * + * + *
          +   * 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]; + * + * + * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. See + * google/monitoring/dashboard/v1/table_display_options.proto;l=32 + * @param index The index of the element to return. + * @return The shownColumns at the given index. + */ + @java.lang.Deprecated + java.lang.String getShownColumns(int index); + /** + * + * + *
          +   * 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]; + * + * + * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. See + * google/monitoring/dashboard/v1/table_display_options.proto;l=32 + * @param index The index of the value to return. + * @return The bytes of the shownColumns at the given index. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getShownColumnsBytes(int index); +} diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java new file mode 100644 index 000000000000..82dd3f498937 --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java @@ -0,0 +1,80 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/table_display_options.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class TableDisplayOptionsProto { + private TableDisplayOptionsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n:google/monitoring/dashboard/v1/table_d" + + "isplay_options.proto\022\036google.monitoring." + + "dashboard.v1\032\037google/api/field_behavior." + + "proto\"3\n\023TableDisplayOptions\022\034\n\rshown_co" + + "lumns\030\001 \003(\tB\005\030\001\340A\001B\201\002\n\"com.google.monito" + + "ring.dashboard.v1B\030TableDisplayOptionsPr" + + "otoP\001ZFcloud.google.com/go/monitoring/da" + + "shboard/apiv1/dashboardpb;dashboardpb\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" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor, + new java.lang.String[] { + "ShownColumns", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} 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 new file mode 100644 index 000000000000..e99b416c0bd1 --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java @@ -0,0 +1,133 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/table.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class TableProto { + private TableProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n*google/monitoring/dashboard/v1/table.p" + + "roto\022\036google.monitoring.dashboard.v1\032\037go" + + "ogle/api/field_behavior.proto\032,google/mo" + + "nitoring/dashboard/v1/metrics.proto\032:goo" + + "gle/monitoring/dashboard/v1/table_displa" + + "y_options.proto\032\036google/protobuf/duratio" + + "n.proto\"\322\005\n\017TimeSeriesTable\022T\n\tdata_sets" + + "\030\001 \003(\0132<.google.monitoring.dashboard.v1." + + "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\363\001\n\"com.google.monitoring.d" + + "ashboard.v1B\nTableProtoP\001ZFcloud.google." + + "com/go/monitoring/dashboard/apiv1/dashbo" + + "ardpb;dashboardpb\252\002$Google.Cloud.Monitor" + + "ing.Dashboard.V1\312\002$Google\\Cloud\\Monitori" + + "ng\\Dashboard\\V1\352\002(Google::Cloud::Monitor" + + "ing::Dashboard::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(), + com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor, + new java.lang.String[] { + "DataSets", "MetricVisualization", "ColumnSettings", + }); + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor = + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor + .getNestedTypes() + .get(0); + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor, + 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); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(); + com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Text.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Text.java similarity index 70% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Text.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Text.java index 4256bcdde44b..a271e760dc89 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Text.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Text.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/text.proto @@ -5,21 +20,24 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A widget that displays textual content.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.Text} */ -public final class Text extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Text extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Text) TextOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Text.newBuilder() to construct. private Text(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Text() { content_ = ""; format_ = 0; @@ -27,34 +45,38 @@ private Text() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Text(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.TextProto + .internal_static_google_monitoring_dashboard_v1_Text_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_fieldAccessorTable + return com.google.monitoring.dashboard.v1.TextProto + .internal_static_google_monitoring_dashboard_v1_Text_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.Text.class, com.google.monitoring.dashboard.v1.Text.Builder.class); + com.google.monitoring.dashboard.v1.Text.class, + com.google.monitoring.dashboard.v1.Text.Builder.class); } /** + * + * *
              * The format type of the text content.
              * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.Text.Format} */ - public enum Format - implements com.google.protobuf.ProtocolMessageEnum { + public enum Format implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                * Format is unspecified. Defaults to MARKDOWN.
                * 
          @@ -63,6 +85,8 @@ public enum Format */ FORMAT_UNSPECIFIED(0), /** + * + * *
                * The text contains Markdown formatting.
                * 
          @@ -71,6 +95,8 @@ public enum Format */ MARKDOWN(1), /** + * + * *
                * The text contains no special formatting.
                * 
          @@ -82,6 +108,8 @@ public enum Format ; /** + * + * *
                * Format is unspecified. Defaults to MARKDOWN.
                * 
          @@ -90,6 +118,8 @@ public enum Format */ public static final int FORMAT_UNSPECIFIED_VALUE = 0; /** + * + * *
                * The text contains Markdown formatting.
                * 
          @@ -98,6 +128,8 @@ public enum Format */ public static final int MARKDOWN_VALUE = 1; /** + * + * *
                * The text contains no special formatting.
                * 
          @@ -106,7 +138,6 @@ public enum Format */ public static final int RAW_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -131,49 +162,49 @@ public static Format valueOf(int value) { */ public static Format forNumber(int value) { switch (value) { - case 0: return FORMAT_UNSPECIFIED; - case 1: return MARKDOWN; - case 2: return RAW; - default: return null; + case 0: + return FORMAT_UNSPECIFIED; + case 1: + return MARKDOWN; + case 2: + return RAW; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Format> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Format findValueByNumber(int number) { - return Format.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Format findValueByNumber(int number) { + return Format.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.monitoring.dashboard.v1.Text.getDescriptor().getEnumTypes().get(0); } private static final Format[] VALUES = values(); - public static Format valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Format valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -190,163 +221,217 @@ private Format(int value) { // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.Text.Format) } - public interface TextStyleOrBuilder extends + public interface TextStyleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Text.TextStyle) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * The background color as a hex string. "#RRGGBB" or "#RGB"
                * 
          * * string background_color = 1; + * * @return The backgroundColor. */ java.lang.String getBackgroundColor(); /** + * + * *
                * The background color as a hex string. "#RRGGBB" or "#RGB"
                * 
          * * string background_color = 1; + * * @return The bytes for backgroundColor. */ - com.google.protobuf.ByteString - getBackgroundColorBytes(); + com.google.protobuf.ByteString getBackgroundColorBytes(); /** + * + * *
                * The text color as a hex string. "#RRGGBB" or "#RGB"
                * 
          * * string text_color = 2; + * * @return The textColor. */ java.lang.String getTextColor(); /** + * + * *
                * The text color as a hex string. "#RRGGBB" or "#RGB"
                * 
          * * string text_color = 2; + * * @return The bytes for textColor. */ - com.google.protobuf.ByteString - getTextColorBytes(); + com.google.protobuf.ByteString getTextColorBytes(); /** + * + * *
                * The horizontal alignment of both the title and content
                * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * * @return The enum numeric value on the wire for horizontalAlignment. */ int getHorizontalAlignmentValue(); /** + * + * *
                * The horizontal alignment of both the title and content
                * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * * @return The horizontalAlignment. */ com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment getHorizontalAlignment(); /** + * + * *
                * The vertical alignment of both the title and content
                * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * * @return The enum numeric value on the wire for verticalAlignment. */ int getVerticalAlignmentValue(); /** + * + * *
                * The vertical alignment of both the title and content
                * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * * @return The verticalAlignment. */ com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment getVerticalAlignment(); /** + * + * *
                * The amount of padding around the widget
                * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * * @return The enum numeric value on the wire for padding. */ int getPaddingValue(); /** + * + * *
                * The amount of padding around the widget
                * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * * @return The padding. */ com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize getPadding(); /** + * + * *
                * Font sizes for both the title and content. The title will still be larger
                * relative to the content.
                * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * * @return The enum numeric value on the wire for fontSize. */ int getFontSizeValue(); /** + * + * *
                * Font sizes for both the title and content. The title will still be larger
                * relative to the content.
                * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * * @return The fontSize. */ com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize getFontSize(); /** + * + * *
                * The pointer location for this widget (also sometimes called a "tail")
                * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * + * * @return The enum numeric value on the wire for pointerLocation. */ int getPointerLocationValue(); /** + * + * *
                * The pointer location for this widget (also sometimes called a "tail")
                * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * + * * @return The pointerLocation. */ com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation getPointerLocation(); } /** + * + * *
              * Properties that determine how the title and content are styled
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.Text.TextStyle} */ - public static final class TextStyle extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TextStyle extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Text.TextStyle) TextStyleOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextStyle.newBuilder() to construct. private TextStyle(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextStyle() { backgroundColor_ = ""; textColor_ = ""; @@ -359,34 +444,38 @@ private TextStyle() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextStyle(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.TextProto + .internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_TextStyle_fieldAccessorTable + return com.google.monitoring.dashboard.v1.TextProto + .internal_static_google_monitoring_dashboard_v1_Text_TextStyle_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.Text.TextStyle.class, com.google.monitoring.dashboard.v1.Text.TextStyle.Builder.class); + com.google.monitoring.dashboard.v1.Text.TextStyle.class, + com.google.monitoring.dashboard.v1.Text.TextStyle.Builder.class); } /** + * + * *
                * The horizontal alignment of both the title and content on a text widget
                * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment} */ - public enum HorizontalAlignment - implements com.google.protobuf.ProtocolMessageEnum { + public enum HorizontalAlignment implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                  * No horizontal alignment specified, will default to H_LEFT
                  * 
          @@ -395,6 +484,8 @@ public enum HorizontalAlignment */ HORIZONTAL_ALIGNMENT_UNSPECIFIED(0), /** + * + * *
                  * Left-align
                  * 
          @@ -403,6 +494,8 @@ public enum HorizontalAlignment */ H_LEFT(1), /** + * + * *
                  * Center-align
                  * 
          @@ -411,6 +504,8 @@ public enum HorizontalAlignment */ H_CENTER(2), /** + * + * *
                  * Right-align
                  * 
          @@ -422,6 +517,8 @@ public enum HorizontalAlignment ; /** + * + * *
                  * No horizontal alignment specified, will default to H_LEFT
                  * 
          @@ -430,6 +527,8 @@ public enum HorizontalAlignment */ public static final int HORIZONTAL_ALIGNMENT_UNSPECIFIED_VALUE = 0; /** + * + * *
                  * Left-align
                  * 
          @@ -438,6 +537,8 @@ public enum HorizontalAlignment */ public static final int H_LEFT_VALUE = 1; /** + * + * *
                  * Center-align
                  * 
          @@ -446,6 +547,8 @@ public enum HorizontalAlignment */ public static final int H_CENTER_VALUE = 2; /** + * + * *
                  * Right-align
                  * 
          @@ -454,7 +557,6 @@ public enum HorizontalAlignment */ public static final int H_RIGHT_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -479,11 +581,16 @@ public static HorizontalAlignment valueOf(int value) { */ public static HorizontalAlignment forNumber(int value) { switch (value) { - case 0: return HORIZONTAL_ALIGNMENT_UNSPECIFIED; - case 1: return H_LEFT; - case 2: return H_CENTER; - case 3: return H_RIGHT; - default: return null; + case 0: + return HORIZONTAL_ALIGNMENT_UNSPECIFIED; + case 1: + return H_LEFT; + case 2: + return H_CENTER; + case 3: + return H_RIGHT; + default: + return null; } } @@ -491,29 +598,31 @@ public static HorizontalAlignment forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - HorizontalAlignment> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HorizontalAlignment findValueByNumber(int number) { - return HorizontalAlignment.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HorizontalAlignment findValueByNumber(int number) { + return HorizontalAlignment.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() { + + 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.Text.TextStyle.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.Text.TextStyle.getDescriptor() + .getEnumTypes() + .get(0); } private static final HorizontalAlignment[] VALUES = values(); @@ -521,8 +630,7 @@ public HorizontalAlignment findValueByNumber(int number) { public static HorizontalAlignment valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -540,15 +648,18 @@ private HorizontalAlignment(int value) { } /** + * + * *
                * The vertical alignment of both the title and content on a text widget
                * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment} */ - public enum VerticalAlignment - implements com.google.protobuf.ProtocolMessageEnum { + public enum VerticalAlignment implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                  * No vertical alignment specified, will default to V_TOP
                  * 
          @@ -557,6 +668,8 @@ public enum VerticalAlignment */ VERTICAL_ALIGNMENT_UNSPECIFIED(0), /** + * + * *
                  * Top-align
                  * 
          @@ -565,6 +678,8 @@ public enum VerticalAlignment */ V_TOP(1), /** + * + * *
                  * Center-align
                  * 
          @@ -573,6 +688,8 @@ public enum VerticalAlignment */ V_CENTER(2), /** + * + * *
                  * Bottom-align
                  * 
          @@ -584,6 +701,8 @@ public enum VerticalAlignment ; /** + * + * *
                  * No vertical alignment specified, will default to V_TOP
                  * 
          @@ -592,6 +711,8 @@ public enum VerticalAlignment */ public static final int VERTICAL_ALIGNMENT_UNSPECIFIED_VALUE = 0; /** + * + * *
                  * Top-align
                  * 
          @@ -600,6 +721,8 @@ public enum VerticalAlignment */ public static final int V_TOP_VALUE = 1; /** + * + * *
                  * Center-align
                  * 
          @@ -608,6 +731,8 @@ public enum VerticalAlignment */ public static final int V_CENTER_VALUE = 2; /** + * + * *
                  * Bottom-align
                  * 
          @@ -616,7 +741,6 @@ public enum VerticalAlignment */ public static final int V_BOTTOM_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -641,11 +765,16 @@ public static VerticalAlignment valueOf(int value) { */ public static VerticalAlignment forNumber(int value) { switch (value) { - case 0: return VERTICAL_ALIGNMENT_UNSPECIFIED; - case 1: return V_TOP; - case 2: return V_CENTER; - case 3: return V_BOTTOM; - default: return null; + case 0: + return VERTICAL_ALIGNMENT_UNSPECIFIED; + case 1: + return V_TOP; + case 2: + return V_CENTER; + case 3: + return V_BOTTOM; + default: + return null; } } @@ -653,29 +782,31 @@ public static VerticalAlignment forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - VerticalAlignment> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public VerticalAlignment findValueByNumber(int number) { - return VerticalAlignment.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VerticalAlignment findValueByNumber(int number) { + return VerticalAlignment.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() { + + 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.Text.TextStyle.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.Text.TextStyle.getDescriptor() + .getEnumTypes() + .get(1); } private static final VerticalAlignment[] VALUES = values(); @@ -683,8 +814,7 @@ public VerticalAlignment findValueByNumber(int number) { public static VerticalAlignment valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -702,15 +832,18 @@ private VerticalAlignment(int value) { } /** + * + * *
                * Specifies padding size around a text widget
                * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize} */ - public enum PaddingSize - implements com.google.protobuf.ProtocolMessageEnum { + public enum PaddingSize implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                  * No padding size specified, will default to P_EXTRA_SMALL
                  * 
          @@ -719,6 +852,8 @@ public enum PaddingSize */ PADDING_SIZE_UNSPECIFIED(0), /** + * + * *
                  * Extra small padding
                  * 
          @@ -727,6 +862,8 @@ public enum PaddingSize */ P_EXTRA_SMALL(1), /** + * + * *
                  * Small padding
                  * 
          @@ -735,6 +872,8 @@ public enum PaddingSize */ P_SMALL(2), /** + * + * *
                  * Medium padding
                  * 
          @@ -743,6 +882,8 @@ public enum PaddingSize */ P_MEDIUM(3), /** + * + * *
                  * Large padding
                  * 
          @@ -751,6 +892,8 @@ public enum PaddingSize */ P_LARGE(4), /** + * + * *
                  * Extra large padding
                  * 
          @@ -762,6 +905,8 @@ public enum PaddingSize ; /** + * + * *
                  * No padding size specified, will default to P_EXTRA_SMALL
                  * 
          @@ -770,6 +915,8 @@ public enum PaddingSize */ public static final int PADDING_SIZE_UNSPECIFIED_VALUE = 0; /** + * + * *
                  * Extra small padding
                  * 
          @@ -778,6 +925,8 @@ public enum PaddingSize */ public static final int P_EXTRA_SMALL_VALUE = 1; /** + * + * *
                  * Small padding
                  * 
          @@ -786,6 +935,8 @@ public enum PaddingSize */ public static final int P_SMALL_VALUE = 2; /** + * + * *
                  * Medium padding
                  * 
          @@ -794,6 +945,8 @@ public enum PaddingSize */ public static final int P_MEDIUM_VALUE = 3; /** + * + * *
                  * Large padding
                  * 
          @@ -802,6 +955,8 @@ public enum PaddingSize */ public static final int P_LARGE_VALUE = 4; /** + * + * *
                  * Extra large padding
                  * 
          @@ -810,7 +965,6 @@ public enum PaddingSize */ public static final int P_EXTRA_LARGE_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -835,52 +989,57 @@ public static PaddingSize valueOf(int value) { */ public static PaddingSize forNumber(int value) { switch (value) { - case 0: return PADDING_SIZE_UNSPECIFIED; - case 1: return P_EXTRA_SMALL; - case 2: return P_SMALL; - case 3: return P_MEDIUM; - case 4: return P_LARGE; - case 5: return P_EXTRA_LARGE; - default: return null; + case 0: + return PADDING_SIZE_UNSPECIFIED; + case 1: + return P_EXTRA_SMALL; + case 2: + return P_SMALL; + case 3: + return P_MEDIUM; + case 4: + return P_LARGE; + case 5: + return P_EXTRA_LARGE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - PaddingSize> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PaddingSize findValueByNumber(int number) { - return PaddingSize.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PaddingSize findValueByNumber(int number) { + return PaddingSize.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() { + + 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.Text.TextStyle.getDescriptor().getEnumTypes().get(2); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.Text.TextStyle.getDescriptor() + .getEnumTypes() + .get(2); } private static final PaddingSize[] VALUES = values(); - public static PaddingSize valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static PaddingSize valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -898,15 +1057,18 @@ private PaddingSize(int value) { } /** + * + * *
                * Specifies a font size for the title and content of a text widget
                * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.Text.TextStyle.FontSize} */ - public enum FontSize - implements com.google.protobuf.ProtocolMessageEnum { + public enum FontSize implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                  * No font size specified, will default to FS_LARGE
                  * 
          @@ -915,6 +1077,8 @@ public enum FontSize */ FONT_SIZE_UNSPECIFIED(0), /** + * + * *
                  * Extra small font size
                  * 
          @@ -923,6 +1087,8 @@ public enum FontSize */ FS_EXTRA_SMALL(1), /** + * + * *
                  * Small font size
                  * 
          @@ -931,6 +1097,8 @@ public enum FontSize */ FS_SMALL(2), /** + * + * *
                  * Medium font size
                  * 
          @@ -939,6 +1107,8 @@ public enum FontSize */ FS_MEDIUM(3), /** + * + * *
                  * Large font size
                  * 
          @@ -947,6 +1117,8 @@ public enum FontSize */ FS_LARGE(4), /** + * + * *
                  * Extra large font size
                  * 
          @@ -958,6 +1130,8 @@ public enum FontSize ; /** + * + * *
                  * No font size specified, will default to FS_LARGE
                  * 
          @@ -966,6 +1140,8 @@ public enum FontSize */ public static final int FONT_SIZE_UNSPECIFIED_VALUE = 0; /** + * + * *
                  * Extra small font size
                  * 
          @@ -974,6 +1150,8 @@ public enum FontSize */ public static final int FS_EXTRA_SMALL_VALUE = 1; /** + * + * *
                  * Small font size
                  * 
          @@ -982,6 +1160,8 @@ public enum FontSize */ public static final int FS_SMALL_VALUE = 2; /** + * + * *
                  * Medium font size
                  * 
          @@ -990,6 +1170,8 @@ public enum FontSize */ public static final int FS_MEDIUM_VALUE = 3; /** + * + * *
                  * Large font size
                  * 
          @@ -998,6 +1180,8 @@ public enum FontSize */ public static final int FS_LARGE_VALUE = 4; /** + * + * *
                  * Extra large font size
                  * 
          @@ -1006,7 +1190,6 @@ public enum FontSize */ public static final int FS_EXTRA_LARGE_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1031,52 +1214,57 @@ public static FontSize valueOf(int value) { */ public static FontSize forNumber(int value) { switch (value) { - case 0: return FONT_SIZE_UNSPECIFIED; - case 1: return FS_EXTRA_SMALL; - case 2: return FS_SMALL; - case 3: return FS_MEDIUM; - case 4: return FS_LARGE; - case 5: return FS_EXTRA_LARGE; - default: return null; + case 0: + return FONT_SIZE_UNSPECIFIED; + case 1: + return FS_EXTRA_SMALL; + case 2: + return FS_SMALL; + case 3: + return FS_MEDIUM; + case 4: + return FS_LARGE; + case 5: + return FS_EXTRA_LARGE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - FontSize> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FontSize findValueByNumber(int number) { - return FontSize.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FontSize findValueByNumber(int number) { + return FontSize.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() { + + 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.Text.TextStyle.getDescriptor().getEnumTypes().get(3); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.Text.TextStyle.getDescriptor() + .getEnumTypes() + .get(3); } private static final FontSize[] VALUES = values(); - public static FontSize valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static FontSize valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1094,6 +1282,8 @@ private FontSize(int value) { } /** + * + * *
                * Specifies where a visual pointer is placed on a text widget (also
                * sometimes called a "tail")
          @@ -1101,9 +1291,10 @@ private FontSize(int value) {
                *
                * Protobuf enum {@code google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation}
                */
          -    public enum PointerLocation
          -        implements com.google.protobuf.ProtocolMessageEnum {
          +    public enum PointerLocation implements com.google.protobuf.ProtocolMessageEnum {
                 /**
          +       *
          +       *
                  * 
                  * No visual pointer
                  * 
          @@ -1112,6 +1303,8 @@ public enum PointerLocation */ POINTER_LOCATION_UNSPECIFIED(0), /** + * + * *
                  * Placed in the middle of the top of the widget
                  * 
          @@ -1120,6 +1313,8 @@ public enum PointerLocation */ PL_TOP(1), /** + * + * *
                  * Placed in the middle of the right side of the widget
                  * 
          @@ -1128,6 +1323,8 @@ public enum PointerLocation */ PL_RIGHT(2), /** + * + * *
                  * Placed in the middle of the bottom of the widget
                  * 
          @@ -1136,6 +1333,8 @@ public enum PointerLocation */ PL_BOTTOM(3), /** + * + * *
                  * Placed in the middle of the left side of the widget
                  * 
          @@ -1144,6 +1343,8 @@ public enum PointerLocation */ PL_LEFT(4), /** + * + * *
                  * Placed on the left side of the top of the widget
                  * 
          @@ -1152,6 +1353,8 @@ public enum PointerLocation */ PL_TOP_LEFT(5), /** + * + * *
                  * Placed on the right side of the top of the widget
                  * 
          @@ -1160,6 +1363,8 @@ public enum PointerLocation */ PL_TOP_RIGHT(6), /** + * + * *
                  * Placed on the top of the right side of the widget
                  * 
          @@ -1168,6 +1373,8 @@ public enum PointerLocation */ PL_RIGHT_TOP(7), /** + * + * *
                  * Placed on the bottom of the right side of the widget
                  * 
          @@ -1176,6 +1383,8 @@ public enum PointerLocation */ PL_RIGHT_BOTTOM(8), /** + * + * *
                  * Placed on the right side of the bottom of the widget
                  * 
          @@ -1184,6 +1393,8 @@ public enum PointerLocation */ PL_BOTTOM_RIGHT(9), /** + * + * *
                  * Placed on the left side of the bottom of the widget
                  * 
          @@ -1192,6 +1403,8 @@ public enum PointerLocation */ PL_BOTTOM_LEFT(10), /** + * + * *
                  * Placed on the bottom of the left side of the widget
                  * 
          @@ -1200,6 +1413,8 @@ public enum PointerLocation */ PL_LEFT_BOTTOM(11), /** + * + * *
                  * Placed on the top of the left side of the widget
                  * 
          @@ -1211,6 +1426,8 @@ public enum PointerLocation ; /** + * + * *
                  * No visual pointer
                  * 
          @@ -1219,6 +1436,8 @@ public enum PointerLocation */ public static final int POINTER_LOCATION_UNSPECIFIED_VALUE = 0; /** + * + * *
                  * Placed in the middle of the top of the widget
                  * 
          @@ -1227,6 +1446,8 @@ public enum PointerLocation */ public static final int PL_TOP_VALUE = 1; /** + * + * *
                  * Placed in the middle of the right side of the widget
                  * 
          @@ -1235,6 +1456,8 @@ public enum PointerLocation */ public static final int PL_RIGHT_VALUE = 2; /** + * + * *
                  * Placed in the middle of the bottom of the widget
                  * 
          @@ -1243,6 +1466,8 @@ public enum PointerLocation */ public static final int PL_BOTTOM_VALUE = 3; /** + * + * *
                  * Placed in the middle of the left side of the widget
                  * 
          @@ -1251,6 +1476,8 @@ public enum PointerLocation */ public static final int PL_LEFT_VALUE = 4; /** + * + * *
                  * Placed on the left side of the top of the widget
                  * 
          @@ -1259,6 +1486,8 @@ public enum PointerLocation */ public static final int PL_TOP_LEFT_VALUE = 5; /** + * + * *
                  * Placed on the right side of the top of the widget
                  * 
          @@ -1267,6 +1496,8 @@ public enum PointerLocation */ public static final int PL_TOP_RIGHT_VALUE = 6; /** + * + * *
                  * Placed on the top of the right side of the widget
                  * 
          @@ -1275,6 +1506,8 @@ public enum PointerLocation */ public static final int PL_RIGHT_TOP_VALUE = 7; /** + * + * *
                  * Placed on the bottom of the right side of the widget
                  * 
          @@ -1283,6 +1516,8 @@ public enum PointerLocation */ public static final int PL_RIGHT_BOTTOM_VALUE = 8; /** + * + * *
                  * Placed on the right side of the bottom of the widget
                  * 
          @@ -1291,6 +1526,8 @@ public enum PointerLocation */ public static final int PL_BOTTOM_RIGHT_VALUE = 9; /** + * + * *
                  * Placed on the left side of the bottom of the widget
                  * 
          @@ -1299,6 +1536,8 @@ public enum PointerLocation */ public static final int PL_BOTTOM_LEFT_VALUE = 10; /** + * + * *
                  * Placed on the bottom of the left side of the widget
                  * 
          @@ -1307,6 +1546,8 @@ public enum PointerLocation */ public static final int PL_LEFT_BOTTOM_VALUE = 11; /** + * + * *
                  * Placed on the top of the left side of the widget
                  * 
          @@ -1315,7 +1556,6 @@ public enum PointerLocation */ public static final int PL_LEFT_TOP_VALUE = 12; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1340,20 +1580,34 @@ public static PointerLocation valueOf(int value) { */ public static PointerLocation forNumber(int value) { switch (value) { - case 0: return POINTER_LOCATION_UNSPECIFIED; - case 1: return PL_TOP; - case 2: return PL_RIGHT; - case 3: return PL_BOTTOM; - case 4: return PL_LEFT; - case 5: return PL_TOP_LEFT; - case 6: return PL_TOP_RIGHT; - case 7: return PL_RIGHT_TOP; - case 8: return PL_RIGHT_BOTTOM; - case 9: return PL_BOTTOM_RIGHT; - case 10: return PL_BOTTOM_LEFT; - case 11: return PL_LEFT_BOTTOM; - case 12: return PL_LEFT_TOP; - default: return null; + case 0: + return POINTER_LOCATION_UNSPECIFIED; + case 1: + return PL_TOP; + case 2: + return PL_RIGHT; + case 3: + return PL_BOTTOM; + case 4: + return PL_LEFT; + case 5: + return PL_TOP_LEFT; + case 6: + return PL_TOP_RIGHT; + case 7: + return PL_RIGHT_TOP; + case 8: + return PL_RIGHT_BOTTOM; + case 9: + return PL_BOTTOM_RIGHT; + case 10: + return PL_BOTTOM_LEFT; + case 11: + return PL_LEFT_BOTTOM; + case 12: + return PL_LEFT_TOP; + default: + return null; } } @@ -1361,29 +1615,31 @@ public static PointerLocation forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - PointerLocation> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PointerLocation findValueByNumber(int number) { - return PointerLocation.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PointerLocation findValueByNumber(int number) { + return PointerLocation.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() { + + 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.Text.TextStyle.getDescriptor().getEnumTypes().get(4); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.Text.TextStyle.getDescriptor() + .getEnumTypes() + .get(4); } private static final PointerLocation[] VALUES = values(); @@ -1391,8 +1647,7 @@ public PointerLocation findValueByNumber(int number) { public static PointerLocation valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1410,14 +1665,18 @@ private PointerLocation(int value) { } public static final int BACKGROUND_COLOR_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object backgroundColor_ = ""; /** + * + * *
                * The background color as a hex string. "#RRGGBB" or "#RGB"
                * 
          * * string background_color = 1; + * * @return The backgroundColor. */ @java.lang.Override @@ -1426,29 +1685,29 @@ public java.lang.String getBackgroundColor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backgroundColor_ = s; return s; } } /** + * + * *
                * The background color as a hex string. "#RRGGBB" or "#RGB"
                * 
          * * string background_color = 1; + * * @return The bytes for backgroundColor. */ @java.lang.Override - public com.google.protobuf.ByteString - getBackgroundColorBytes() { + public com.google.protobuf.ByteString getBackgroundColorBytes() { java.lang.Object ref = backgroundColor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); backgroundColor_ = b; return b; } else { @@ -1457,14 +1716,18 @@ public java.lang.String getBackgroundColor() { } public static final int TEXT_COLOR_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object textColor_ = ""; /** + * + * *
                * The text color as a hex string. "#RRGGBB" or "#RGB"
                * 
          * * string text_color = 2; + * * @return The textColor. */ @java.lang.Override @@ -1473,29 +1736,29 @@ public java.lang.String getTextColor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); textColor_ = s; return s; } } /** + * + * *
                * The text color as a hex string. "#RRGGBB" or "#RGB"
                * 
          * * string text_color = 2; + * * @return The bytes for textColor. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextColorBytes() { + public com.google.protobuf.ByteString getTextColorBytes() { java.lang.Object ref = textColor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); textColor_ = b; return b; } else { @@ -1506,136 +1769,207 @@ public java.lang.String getTextColor() { public static final int HORIZONTAL_ALIGNMENT_FIELD_NUMBER = 3; private int horizontalAlignment_ = 0; /** + * + * *
                * The horizontal alignment of both the title and content
                * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * * @return The enum numeric value on the wire for horizontalAlignment. */ - @java.lang.Override public int getHorizontalAlignmentValue() { + @java.lang.Override + public int getHorizontalAlignmentValue() { return horizontalAlignment_; } /** + * + * *
                * The horizontal alignment of both the title and content
                * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * * @return The horizontalAlignment. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment getHorizontalAlignment() { - com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment result = com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment.forNumber(horizontalAlignment_); - return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment + getHorizontalAlignment() { + com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment result = + com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment.forNumber( + horizontalAlignment_); + return result == null + ? com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment.UNRECOGNIZED + : result; } public static final int VERTICAL_ALIGNMENT_FIELD_NUMBER = 4; private int verticalAlignment_ = 0; /** + * + * *
                * The vertical alignment of both the title and content
                * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * * @return The enum numeric value on the wire for verticalAlignment. */ - @java.lang.Override public int getVerticalAlignmentValue() { + @java.lang.Override + public int getVerticalAlignmentValue() { return verticalAlignment_; } /** + * + * *
                * The vertical alignment of both the title and content
                * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * * @return The verticalAlignment. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment getVerticalAlignment() { - com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment result = com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment.forNumber(verticalAlignment_); - return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment + getVerticalAlignment() { + com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment result = + com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment.forNumber( + verticalAlignment_); + return result == null + ? com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment.UNRECOGNIZED + : result; } public static final int PADDING_FIELD_NUMBER = 5; private int padding_ = 0; /** + * + * *
                * The amount of padding around the widget
                * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * * @return The enum numeric value on the wire for padding. */ - @java.lang.Override public int getPaddingValue() { + @java.lang.Override + public int getPaddingValue() { return padding_; } /** + * + * *
                * The amount of padding around the widget
                * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * * @return The padding. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize getPadding() { - com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize result = com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.forNumber(padding_); - return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize getPadding() { + com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize result = + com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.forNumber(padding_); + return result == null + ? com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.UNRECOGNIZED + : result; } public static final int FONT_SIZE_FIELD_NUMBER = 6; private int fontSize_ = 0; /** + * + * *
                * Font sizes for both the title and content. The title will still be larger
                * relative to the content.
                * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * * @return The enum numeric value on the wire for fontSize. */ - @java.lang.Override public int getFontSizeValue() { + @java.lang.Override + public int getFontSizeValue() { return fontSize_; } /** + * + * *
                * Font sizes for both the title and content. The title will still be larger
                * relative to the content.
                * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * * @return The fontSize. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize getFontSize() { - com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize result = com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.forNumber(fontSize_); - return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize getFontSize() { + com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize result = + com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.forNumber(fontSize_); + return result == null + ? com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.UNRECOGNIZED + : result; } public static final int POINTER_LOCATION_FIELD_NUMBER = 7; private int pointerLocation_ = 0; /** + * + * *
                * The pointer location for this widget (also sometimes called a "tail")
                * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * + * * @return The enum numeric value on the wire for pointerLocation. */ - @java.lang.Override public int getPointerLocationValue() { + @java.lang.Override + public int getPointerLocationValue() { return pointerLocation_; } /** + * + * *
                * The pointer location for this widget (also sometimes called a "tail")
                * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * + * * @return The pointerLocation. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation getPointerLocation() { - com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation result = com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation.forNumber(pointerLocation_); - return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation getPointerLocation() { + com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation result = + com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation.forNumber( + pointerLocation_); + return result == null + ? com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1647,27 +1981,39 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backgroundColor_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, backgroundColor_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(textColor_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, textColor_); } - if (horizontalAlignment_ != com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment.HORIZONTAL_ALIGNMENT_UNSPECIFIED.getNumber()) { + if (horizontalAlignment_ + != com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment + .HORIZONTAL_ALIGNMENT_UNSPECIFIED + .getNumber()) { output.writeEnum(3, horizontalAlignment_); } - if (verticalAlignment_ != com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment.VERTICAL_ALIGNMENT_UNSPECIFIED.getNumber()) { + if (verticalAlignment_ + != com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment + .VERTICAL_ALIGNMENT_UNSPECIFIED + .getNumber()) { output.writeEnum(4, verticalAlignment_); } - if (padding_ != com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.PADDING_SIZE_UNSPECIFIED.getNumber()) { + if (padding_ + != com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.PADDING_SIZE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, padding_); } - if (fontSize_ != com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.FONT_SIZE_UNSPECIFIED.getNumber()) { + if (fontSize_ + != com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.FONT_SIZE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, fontSize_); } - if (pointerLocation_ != com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation.POINTER_LOCATION_UNSPECIFIED.getNumber()) { + if (pointerLocation_ + != com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation + .POINTER_LOCATION_UNSPECIFIED + .getNumber()) { output.writeEnum(7, pointerLocation_); } getUnknownFields().writeTo(output); @@ -1685,25 +2031,33 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(textColor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, textColor_); } - if (horizontalAlignment_ != com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment.HORIZONTAL_ALIGNMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, horizontalAlignment_); - } - if (verticalAlignment_ != com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment.VERTICAL_ALIGNMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, verticalAlignment_); - } - if (padding_ != com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.PADDING_SIZE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, padding_); - } - if (fontSize_ != com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.FONT_SIZE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, fontSize_); - } - if (pointerLocation_ != com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation.POINTER_LOCATION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, pointerLocation_); + if (horizontalAlignment_ + != com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment + .HORIZONTAL_ALIGNMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, horizontalAlignment_); + } + if (verticalAlignment_ + != com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment + .VERTICAL_ALIGNMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, verticalAlignment_); + } + if (padding_ + != com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.PADDING_SIZE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, padding_); + } + if (fontSize_ + != com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.FONT_SIZE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, fontSize_); + } + if (pointerLocation_ + != com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation + .POINTER_LOCATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, pointerLocation_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1713,17 +2067,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.Text.TextStyle)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.Text.TextStyle other = (com.google.monitoring.dashboard.v1.Text.TextStyle) obj; + com.google.monitoring.dashboard.v1.Text.TextStyle other = + (com.google.monitoring.dashboard.v1.Text.TextStyle) obj; - if (!getBackgroundColor() - .equals(other.getBackgroundColor())) return false; - if (!getTextColor() - .equals(other.getTextColor())) return false; + if (!getBackgroundColor().equals(other.getBackgroundColor())) return false; + if (!getTextColor().equals(other.getTextColor())) return false; if (horizontalAlignment_ != other.horizontalAlignment_) return false; if (verticalAlignment_ != other.verticalAlignment_) return false; if (padding_ != other.padding_) return false; @@ -1760,89 +2113,93 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.Text.TextStyle parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Text.TextStyle parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Text.TextStyle parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Text.TextStyle 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.Text.TextStyle parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Text.TextStyle parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Text.TextStyle parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.Text.TextStyle parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.Text.TextStyle parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Text.TextStyle parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.Text.TextStyle parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.Text.TextStyle parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.Text.TextStyle parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.Text.TextStyle parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.Text.TextStyle prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1852,39 +2209,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                * Properties that determine how the title and content are styled
                * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.Text.TextStyle} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Text.TextStyle) com.google.monitoring.dashboard.v1.Text.TextStyleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.TextProto + .internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_TextStyle_fieldAccessorTable + return com.google.monitoring.dashboard.v1.TextProto + .internal_static_google_monitoring_dashboard_v1_Text_TextStyle_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.Text.TextStyle.class, com.google.monitoring.dashboard.v1.Text.TextStyle.Builder.class); + com.google.monitoring.dashboard.v1.Text.TextStyle.class, + com.google.monitoring.dashboard.v1.Text.TextStyle.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.Text.TextStyle.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1900,9 +2259,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.TextProto + .internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor; } @java.lang.Override @@ -1921,8 +2280,11 @@ public com.google.monitoring.dashboard.v1.Text.TextStyle build() { @java.lang.Override public com.google.monitoring.dashboard.v1.Text.TextStyle buildPartial() { - com.google.monitoring.dashboard.v1.Text.TextStyle result = new com.google.monitoring.dashboard.v1.Text.TextStyle(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.Text.TextStyle result = + new com.google.monitoring.dashboard.v1.Text.TextStyle(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1956,38 +2318,41 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Text.TextStyle res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.Text.TextStyle) { - return mergeFrom((com.google.monitoring.dashboard.v1.Text.TextStyle)other); + return mergeFrom((com.google.monitoring.dashboard.v1.Text.TextStyle) other); } else { super.mergeFrom(other); return this; @@ -1995,7 +2360,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.Text.TextStyle other) { - if (other == com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance()) return this; + if (other == com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance()) + return this; if (!other.getBackgroundColor().isEmpty()) { backgroundColor_ = other.backgroundColor_; bitField0_ |= 0x00000001; @@ -2047,47 +2413,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - backgroundColor_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - textColor_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - horizontalAlignment_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - verticalAlignment_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - padding_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - fontSize_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - pointerLocation_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 56 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + backgroundColor_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + textColor_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + horizontalAlignment_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + verticalAlignment_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + padding_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + fontSize_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + pointerLocation_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + 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) { @@ -2097,22 +2471,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object backgroundColor_ = ""; /** + * + * *
                  * The background color as a hex string. "#RRGGBB" or "#RGB"
                  * 
          * * string background_color = 1; + * * @return The backgroundColor. */ public java.lang.String getBackgroundColor() { java.lang.Object ref = backgroundColor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backgroundColor_ = s; return s; @@ -2121,20 +2498,21 @@ public java.lang.String getBackgroundColor() { } } /** + * + * *
                  * The background color as a hex string. "#RRGGBB" or "#RGB"
                  * 
          * * string background_color = 1; + * * @return The bytes for backgroundColor. */ - public com.google.protobuf.ByteString - getBackgroundColorBytes() { + public com.google.protobuf.ByteString getBackgroundColorBytes() { java.lang.Object ref = backgroundColor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); backgroundColor_ = b; return b; } else { @@ -2142,28 +2520,35 @@ public java.lang.String getBackgroundColor() { } } /** + * + * *
                  * The background color as a hex string. "#RRGGBB" or "#RGB"
                  * 
          * * string background_color = 1; + * * @param value The backgroundColor to set. * @return This builder for chaining. */ - public Builder setBackgroundColor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBackgroundColor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } backgroundColor_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                  * The background color as a hex string. "#RRGGBB" or "#RGB"
                  * 
          * * string background_color = 1; + * * @return This builder for chaining. */ public Builder clearBackgroundColor() { @@ -2173,17 +2558,21 @@ public Builder clearBackgroundColor() { return this; } /** + * + * *
                  * The background color as a hex string. "#RRGGBB" or "#RGB"
                  * 
          * * string background_color = 1; + * * @param value The bytes for backgroundColor to set. * @return This builder for chaining. */ - public Builder setBackgroundColorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBackgroundColorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); backgroundColor_ = value; bitField0_ |= 0x00000001; @@ -2193,18 +2582,20 @@ public Builder setBackgroundColorBytes( private java.lang.Object textColor_ = ""; /** + * + * *
                  * The text color as a hex string. "#RRGGBB" or "#RGB"
                  * 
          * * string text_color = 2; + * * @return The textColor. */ public java.lang.String getTextColor() { java.lang.Object ref = textColor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); textColor_ = s; return s; @@ -2213,20 +2604,21 @@ public java.lang.String getTextColor() { } } /** + * + * *
                  * The text color as a hex string. "#RRGGBB" or "#RGB"
                  * 
          * * string text_color = 2; + * * @return The bytes for textColor. */ - public com.google.protobuf.ByteString - getTextColorBytes() { + public com.google.protobuf.ByteString getTextColorBytes() { java.lang.Object ref = textColor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); textColor_ = b; return b; } else { @@ -2234,28 +2626,35 @@ public java.lang.String getTextColor() { } } /** + * + * *
                  * The text color as a hex string. "#RRGGBB" or "#RGB"
                  * 
          * * string text_color = 2; + * * @param value The textColor to set. * @return This builder for chaining. */ - public Builder setTextColor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTextColor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } textColor_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
                  * The text color as a hex string. "#RRGGBB" or "#RGB"
                  * 
          * * string text_color = 2; + * * @return This builder for chaining. */ public Builder clearTextColor() { @@ -2265,17 +2664,21 @@ public Builder clearTextColor() { return this; } /** + * + * *
                  * The text color as a hex string. "#RRGGBB" or "#RGB"
                  * 
          * * string text_color = 2; + * * @param value The bytes for textColor to set. * @return This builder for chaining. */ - public Builder setTextColorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTextColorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); textColor_ = value; bitField0_ |= 0x00000002; @@ -2285,22 +2688,33 @@ public Builder setTextColorBytes( private int horizontalAlignment_ = 0; /** + * + * *
                  * The horizontal alignment of both the title and content
                  * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * * @return The enum numeric value on the wire for horizontalAlignment. */ - @java.lang.Override public int getHorizontalAlignmentValue() { + @java.lang.Override + public int getHorizontalAlignmentValue() { return horizontalAlignment_; } /** + * + * *
                  * The horizontal alignment of both the title and content
                  * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * * @param value The enum numeric value on the wire for horizontalAlignment to set. * @return This builder for chaining. */ @@ -2311,28 +2725,44 @@ public Builder setHorizontalAlignmentValue(int value) { return this; } /** + * + * *
                  * The horizontal alignment of both the title and content
                  * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * * @return The horizontalAlignment. */ @java.lang.Override - public com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment getHorizontalAlignment() { - com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment result = com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment.forNumber(horizontalAlignment_); - return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment.UNRECOGNIZED : result; + public com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment + getHorizontalAlignment() { + com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment result = + com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment.forNumber( + horizontalAlignment_); + return result == null + ? com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment.UNRECOGNIZED + : result; } /** + * + * *
                  * The horizontal alignment of both the title and content
                  * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * * @param value The horizontalAlignment to set. * @return This builder for chaining. */ - public Builder setHorizontalAlignment(com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment value) { + public Builder setHorizontalAlignment( + com.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment value) { if (value == null) { throw new NullPointerException(); } @@ -2342,11 +2772,16 @@ public Builder setHorizontalAlignment(com.google.monitoring.dashboard.v1.Text.Te return this; } /** + * + * *
                  * The horizontal alignment of both the title and content
                  * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3; + * + * * @return This builder for chaining. */ public Builder clearHorizontalAlignment() { @@ -2358,22 +2793,33 @@ public Builder clearHorizontalAlignment() { private int verticalAlignment_ = 0; /** + * + * *
                  * The vertical alignment of both the title and content
                  * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * * @return The enum numeric value on the wire for verticalAlignment. */ - @java.lang.Override public int getVerticalAlignmentValue() { + @java.lang.Override + public int getVerticalAlignmentValue() { return verticalAlignment_; } /** + * + * *
                  * The vertical alignment of both the title and content
                  * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * * @param value The enum numeric value on the wire for verticalAlignment to set. * @return This builder for chaining. */ @@ -2384,28 +2830,44 @@ public Builder setVerticalAlignmentValue(int value) { return this; } /** + * + * *
                  * The vertical alignment of both the title and content
                  * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * * @return The verticalAlignment. */ @java.lang.Override - public com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment getVerticalAlignment() { - com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment result = com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment.forNumber(verticalAlignment_); - return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment.UNRECOGNIZED : result; + public com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment + getVerticalAlignment() { + com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment result = + com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment.forNumber( + verticalAlignment_); + return result == null + ? com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment.UNRECOGNIZED + : result; } /** + * + * *
                  * The vertical alignment of both the title and content
                  * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * * @param value The verticalAlignment to set. * @return This builder for chaining. */ - public Builder setVerticalAlignment(com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment value) { + public Builder setVerticalAlignment( + com.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment value) { if (value == null) { throw new NullPointerException(); } @@ -2415,11 +2877,16 @@ public Builder setVerticalAlignment(com.google.monitoring.dashboard.v1.Text.Text return this; } /** + * + * *
                  * The vertical alignment of both the title and content
                  * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4; + * + * * @return This builder for chaining. */ public Builder clearVerticalAlignment() { @@ -2431,22 +2898,29 @@ public Builder clearVerticalAlignment() { private int padding_ = 0; /** + * + * *
                  * The amount of padding around the widget
                  * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * * @return The enum numeric value on the wire for padding. */ - @java.lang.Override public int getPaddingValue() { + @java.lang.Override + public int getPaddingValue() { return padding_; } /** + * + * *
                  * The amount of padding around the widget
                  * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * * @param value The enum numeric value on the wire for padding to set. * @return This builder for chaining. */ @@ -2457,28 +2931,38 @@ public Builder setPaddingValue(int value) { return this; } /** + * + * *
                  * The amount of padding around the widget
                  * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * * @return The padding. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize getPadding() { - com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize result = com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.forNumber(padding_); - return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.UNRECOGNIZED : result; + com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize result = + com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.forNumber(padding_); + return result == null + ? com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize.UNRECOGNIZED + : result; } /** + * + * *
                  * The amount of padding around the widget
                  * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * * @param value The padding to set. * @return This builder for chaining. */ - public Builder setPadding(com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize value) { + public Builder setPadding( + com.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize value) { if (value == null) { throw new NullPointerException(); } @@ -2488,11 +2972,14 @@ public Builder setPadding(com.google.monitoring.dashboard.v1.Text.TextStyle.Padd return this; } /** + * + * *
                  * The amount of padding around the widget
                  * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5; + * * @return This builder for chaining. */ public Builder clearPadding() { @@ -2504,24 +2991,31 @@ public Builder clearPadding() { private int fontSize_ = 0; /** + * + * *
                  * Font sizes for both the title and content. The title will still be larger
                  * relative to the content.
                  * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * * @return The enum numeric value on the wire for fontSize. */ - @java.lang.Override public int getFontSizeValue() { + @java.lang.Override + public int getFontSizeValue() { return fontSize_; } /** + * + * *
                  * Font sizes for both the title and content. The title will still be larger
                  * relative to the content.
                  * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * * @param value The enum numeric value on the wire for fontSize to set. * @return This builder for chaining. */ @@ -2532,26 +3026,35 @@ public Builder setFontSizeValue(int value) { return this; } /** + * + * *
                  * Font sizes for both the title and content. The title will still be larger
                  * relative to the content.
                  * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * * @return The fontSize. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize getFontSize() { - com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize result = com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.forNumber(fontSize_); - return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.UNRECOGNIZED : result; + com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize result = + com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.forNumber(fontSize_); + return result == null + ? com.google.monitoring.dashboard.v1.Text.TextStyle.FontSize.UNRECOGNIZED + : result; } /** + * + * *
                  * Font sizes for both the title and content. The title will still be larger
                  * relative to the content.
                  * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * * @param value The fontSize to set. * @return This builder for chaining. */ @@ -2565,12 +3068,15 @@ public Builder setFontSize(com.google.monitoring.dashboard.v1.Text.TextStyle.Fon return this; } /** + * + * *
                  * Font sizes for both the title and content. The title will still be larger
                  * relative to the content.
                  * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6; + * * @return This builder for chaining. */ public Builder clearFontSize() { @@ -2582,22 +3088,31 @@ public Builder clearFontSize() { private int pointerLocation_ = 0; /** + * + * *
                  * The pointer location for this widget (also sometimes called a "tail")
                  * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * + * * @return The enum numeric value on the wire for pointerLocation. */ - @java.lang.Override public int getPointerLocationValue() { + @java.lang.Override + public int getPointerLocationValue() { return pointerLocation_; } /** + * + * *
                  * The pointer location for this widget (also sometimes called a "tail")
                  * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * + * * @param value The enum numeric value on the wire for pointerLocation to set. * @return This builder for chaining. */ @@ -2608,28 +3123,42 @@ public Builder setPointerLocationValue(int value) { return this; } /** + * + * *
                  * The pointer location for this widget (also sometimes called a "tail")
                  * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * + * * @return The pointerLocation. */ @java.lang.Override - public com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation getPointerLocation() { - com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation result = com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation.forNumber(pointerLocation_); - return result == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation.UNRECOGNIZED : result; + public com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation + getPointerLocation() { + com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation result = + com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation.forNumber( + pointerLocation_); + return result == null + ? com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation.UNRECOGNIZED + : result; } /** + * + * *
                  * The pointer location for this widget (also sometimes called a "tail")
                  * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * + * * @param value The pointerLocation to set. * @return This builder for chaining. */ - public Builder setPointerLocation(com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation value) { + public Builder setPointerLocation( + com.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation value) { if (value == null) { throw new NullPointerException(); } @@ -2639,11 +3168,15 @@ public Builder setPointerLocation(com.google.monitoring.dashboard.v1.Text.TextSt return this; } /** + * + * *
                  * The pointer location for this widget (also sometimes called a "tail")
                  * 
          * - * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7; + * + * * @return This builder for chaining. */ public Builder clearPointerLocation() { @@ -2652,6 +3185,7 @@ public Builder clearPointerLocation() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2664,12 +3198,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.Text.TextStyle) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Text.TextStyle) private static final com.google.monitoring.dashboard.v1.Text.TextStyle DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Text.TextStyle(); } @@ -2678,27 +3212,28 @@ public static com.google.monitoring.dashboard.v1.Text.TextStyle getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextStyle 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextStyle 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; @@ -2713,19 +3248,22 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.Text.TextStyle getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; public static final int CONTENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object content_ = ""; /** + * + * *
              * The text content to be displayed.
              * 
          * * string content = 1; + * * @return The content. */ @java.lang.Override @@ -2734,29 +3272,29 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** + * + * *
              * The text content to be displayed.
              * 
          * * string content = 1; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -2767,37 +3305,49 @@ public java.lang.String getContent() { public static final int FORMAT_FIELD_NUMBER = 2; private int format_ = 0; /** + * + * *
              * How the text content is formatted.
              * 
          * * .google.monitoring.dashboard.v1.Text.Format format = 2; + * * @return The enum numeric value on the wire for format. */ - @java.lang.Override public int getFormatValue() { + @java.lang.Override + public int getFormatValue() { return format_; } /** + * + * *
              * How the text content is formatted.
              * 
          * * .google.monitoring.dashboard.v1.Text.Format format = 2; + * * @return The format. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.Text.Format getFormat() { - com.google.monitoring.dashboard.v1.Text.Format result = com.google.monitoring.dashboard.v1.Text.Format.forNumber(format_); + @java.lang.Override + public com.google.monitoring.dashboard.v1.Text.Format getFormat() { + com.google.monitoring.dashboard.v1.Text.Format result = + com.google.monitoring.dashboard.v1.Text.Format.forNumber(format_); return result == null ? com.google.monitoring.dashboard.v1.Text.Format.UNRECOGNIZED : result; } public static final int STYLE_FIELD_NUMBER = 3; private com.google.monitoring.dashboard.v1.Text.TextStyle style_; /** + * + * *
              * How the text is styled
              * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + * * @return Whether the style field is set. */ @java.lang.Override @@ -2805,18 +3355,25 @@ public boolean hasStyle() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
              * How the text is styled
              * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + * * @return The style. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Text.TextStyle getStyle() { - return style_ == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance() : style_; + return style_ == null + ? com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance() + : style_; } /** + * + * *
              * How the text is styled
              * 
          @@ -2825,10 +3382,13 @@ public com.google.monitoring.dashboard.v1.Text.TextStyle getStyle() { */ @java.lang.Override public com.google.monitoring.dashboard.v1.Text.TextStyleOrBuilder getStyleOrBuilder() { - return style_ == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance() : style_; + return style_ == null + ? com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance() + : style_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2840,8 +3400,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } @@ -2864,12 +3423,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); } if (format_ != com.google.monitoring.dashboard.v1.Text.Format.FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, format_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, format_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStyle()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStyle()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2879,20 +3436,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.Text)) { return super.equals(obj); } com.google.monitoring.dashboard.v1.Text other = (com.google.monitoring.dashboard.v1.Text) obj; - if (!getContent() - .equals(other.getContent())) return false; + if (!getContent().equals(other.getContent())) return false; if (format_ != other.format_) return false; if (hasStyle() != other.hasStyle()) return false; if (hasStyle()) { - if (!getStyle() - .equals(other.getStyle())) return false; + if (!getStyle().equals(other.getStyle())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2918,120 +3473,127 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.Text parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.Text parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Text parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Text parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Text 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.Text parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Text parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.Text parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.Text parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Text parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.Text parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.Text parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.Text parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.Text parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.Text prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A widget that displays textual content.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.Text} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Text) com.google.monitoring.dashboard.v1.TextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.TextProto + .internal_static_google_monitoring_dashboard_v1_Text_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_fieldAccessorTable + return com.google.monitoring.dashboard.v1.TextProto + .internal_static_google_monitoring_dashboard_v1_Text_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.Text.class, com.google.monitoring.dashboard.v1.Text.Builder.class); + com.google.monitoring.dashboard.v1.Text.class, + com.google.monitoring.dashboard.v1.Text.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.Text.newBuilder() @@ -3039,17 +3601,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStyleFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -3065,9 +3627,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.TextProto.internal_static_google_monitoring_dashboard_v1_Text_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.TextProto + .internal_static_google_monitoring_dashboard_v1_Text_descriptor; } @java.lang.Override @@ -3086,8 +3648,11 @@ public com.google.monitoring.dashboard.v1.Text build() { @java.lang.Override public com.google.monitoring.dashboard.v1.Text buildPartial() { - com.google.monitoring.dashboard.v1.Text result = new com.google.monitoring.dashboard.v1.Text(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.Text result = + new com.google.monitoring.dashboard.v1.Text(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -3102,9 +3667,7 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Text result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.style_ = styleBuilder_ == null - ? style_ - : styleBuilder_.build(); + result.style_ = styleBuilder_ == null ? style_ : styleBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -3114,38 +3677,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Text result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.Text) { - return mergeFrom((com.google.monitoring.dashboard.v1.Text)other); + return mergeFrom((com.google.monitoring.dashboard.v1.Text) other); } else { super.mergeFrom(other); return this; @@ -3191,29 +3755,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - format_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getStyleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + format_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getStyleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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) { @@ -3223,22 +3789,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object content_ = ""; /** + * + * *
                * The text content to be displayed.
                * 
          * * string content = 1; + * * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -3247,20 +3816,21 @@ public java.lang.String getContent() { } } /** + * + * *
                * The text content to be displayed.
                * 
          * * string content = 1; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -3268,28 +3838,35 @@ public java.lang.String getContent() { } } /** + * + * *
                * The text content to be displayed.
                * 
          * * string content = 1; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                * The text content to be displayed.
                * 
          * * string content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -3299,17 +3876,21 @@ public Builder clearContent() { return this; } /** + * + * *
                * The text content to be displayed.
                * 
          * * string content = 1; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); content_ = value; bitField0_ |= 0x00000001; @@ -3319,22 +3900,29 @@ public Builder setContentBytes( private int format_ = 0; /** + * + * *
                * How the text content is formatted.
                * 
          * * .google.monitoring.dashboard.v1.Text.Format format = 2; + * * @return The enum numeric value on the wire for format. */ - @java.lang.Override public int getFormatValue() { + @java.lang.Override + public int getFormatValue() { return format_; } /** + * + * *
                * How the text content is formatted.
                * 
          * * .google.monitoring.dashboard.v1.Text.Format format = 2; + * * @param value The enum numeric value on the wire for format to set. * @return This builder for chaining. */ @@ -3345,24 +3933,31 @@ public Builder setFormatValue(int value) { return this; } /** + * + * *
                * How the text content is formatted.
                * 
          * * .google.monitoring.dashboard.v1.Text.Format format = 2; + * * @return The format. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Text.Format getFormat() { - com.google.monitoring.dashboard.v1.Text.Format result = com.google.monitoring.dashboard.v1.Text.Format.forNumber(format_); + com.google.monitoring.dashboard.v1.Text.Format result = + com.google.monitoring.dashboard.v1.Text.Format.forNumber(format_); return result == null ? com.google.monitoring.dashboard.v1.Text.Format.UNRECOGNIZED : result; } /** + * + * *
                * How the text content is formatted.
                * 
          * * .google.monitoring.dashboard.v1.Text.Format format = 2; + * * @param value The format to set. * @return This builder for chaining. */ @@ -3376,11 +3971,14 @@ public Builder setFormat(com.google.monitoring.dashboard.v1.Text.Format value) { return this; } /** + * + * *
                * How the text content is formatted.
                * 
          * * .google.monitoring.dashboard.v1.Text.Format format = 2; + * * @return This builder for chaining. */ public Builder clearFormat() { @@ -3392,34 +3990,47 @@ public Builder clearFormat() { private com.google.monitoring.dashboard.v1.Text.TextStyle style_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Text.TextStyle, com.google.monitoring.dashboard.v1.Text.TextStyle.Builder, com.google.monitoring.dashboard.v1.Text.TextStyleOrBuilder> styleBuilder_; + com.google.monitoring.dashboard.v1.Text.TextStyle, + com.google.monitoring.dashboard.v1.Text.TextStyle.Builder, + com.google.monitoring.dashboard.v1.Text.TextStyleOrBuilder> + styleBuilder_; /** + * + * *
                * How the text is styled
                * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + * * @return Whether the style field is set. */ public boolean hasStyle() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                * How the text is styled
                * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + * * @return The style. */ public com.google.monitoring.dashboard.v1.Text.TextStyle getStyle() { if (styleBuilder_ == null) { - return style_ == null ? com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance() : style_; + return style_ == null + ? com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance() + : style_; } else { return styleBuilder_.getMessage(); } } /** + * + * *
                * How the text is styled
                * 
          @@ -3440,6 +4051,8 @@ public Builder setStyle(com.google.monitoring.dashboard.v1.Text.TextStyle value) return this; } /** + * + * *
                * How the text is styled
                * 
          @@ -3458,6 +4071,8 @@ public Builder setStyle( return this; } /** + * + * *
                * How the text is styled
                * 
          @@ -3466,9 +4081,9 @@ public Builder setStyle( */ public Builder mergeStyle(com.google.monitoring.dashboard.v1.Text.TextStyle value) { if (styleBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - style_ != null && - style_ != com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && style_ != null + && style_ != com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance()) { getStyleBuilder().mergeFrom(value); } else { style_ = value; @@ -3483,6 +4098,8 @@ public Builder mergeStyle(com.google.monitoring.dashboard.v1.Text.TextStyle valu return this; } /** + * + * *
                * How the text is styled
                * 
          @@ -3500,6 +4117,8 @@ public Builder clearStyle() { return this; } /** + * + * *
                * How the text is styled
                * 
          @@ -3512,6 +4131,8 @@ public com.google.monitoring.dashboard.v1.Text.TextStyle.Builder getStyleBuilder return getStyleFieldBuilder().getBuilder(); } /** + * + * *
                * How the text is styled
                * 
          @@ -3522,11 +4143,14 @@ public com.google.monitoring.dashboard.v1.Text.TextStyleOrBuilder getStyleOrBuil if (styleBuilder_ != null) { return styleBuilder_.getMessageOrBuilder(); } else { - return style_ == null ? - com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance() : style_; + return style_ == null + ? com.google.monitoring.dashboard.v1.Text.TextStyle.getDefaultInstance() + : style_; } } /** + * + * *
                * How the text is styled
                * 
          @@ -3534,21 +4158,24 @@ public com.google.monitoring.dashboard.v1.Text.TextStyleOrBuilder getStyleOrBuil * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Text.TextStyle, com.google.monitoring.dashboard.v1.Text.TextStyle.Builder, com.google.monitoring.dashboard.v1.Text.TextStyleOrBuilder> + com.google.monitoring.dashboard.v1.Text.TextStyle, + com.google.monitoring.dashboard.v1.Text.TextStyle.Builder, + com.google.monitoring.dashboard.v1.Text.TextStyleOrBuilder> getStyleFieldBuilder() { if (styleBuilder_ == null) { - styleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Text.TextStyle, com.google.monitoring.dashboard.v1.Text.TextStyle.Builder, com.google.monitoring.dashboard.v1.Text.TextStyleOrBuilder>( - getStyle(), - getParentForChildren(), - isClean()); + styleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Text.TextStyle, + com.google.monitoring.dashboard.v1.Text.TextStyle.Builder, + com.google.monitoring.dashboard.v1.Text.TextStyleOrBuilder>( + getStyle(), getParentForChildren(), isClean()); style_ = null; } return styleBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3558,12 +4185,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.Text) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Text) private static final com.google.monitoring.dashboard.v1.Text DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Text(); } @@ -3572,27 +4199,27 @@ public static com.google.monitoring.dashboard.v1.Text getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Text 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Text 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; @@ -3607,6 +4234,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.Text getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextOrBuilder.java similarity index 69% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextOrBuilder.java index 917fb576296f..99603ddd3911 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextOrBuilder.java @@ -1,71 +1,106 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/text.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface TextOrBuilder extends +public interface TextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Text) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * The text content to be displayed.
              * 
          * * string content = 1; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
              * The text content to be displayed.
              * 
          * * string content = 1; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + com.google.protobuf.ByteString getContentBytes(); /** + * + * *
              * How the text content is formatted.
              * 
          * * .google.monitoring.dashboard.v1.Text.Format format = 2; + * * @return The enum numeric value on the wire for format. */ int getFormatValue(); /** + * + * *
              * How the text content is formatted.
              * 
          * * .google.monitoring.dashboard.v1.Text.Format format = 2; + * * @return The format. */ com.google.monitoring.dashboard.v1.Text.Format getFormat(); /** + * + * *
              * How the text is styled
              * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + * * @return Whether the style field is set. */ boolean hasStyle(); /** + * + * *
              * How the text is styled
              * 
          * * .google.monitoring.dashboard.v1.Text.TextStyle style = 3; + * * @return The style. */ com.google.monitoring.dashboard.v1.Text.TextStyle getStyle(); /** + * + * *
              * How the text is styled
              * 
          diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextProto.java new file mode 100644 index 000000000000..a51021710ee7 --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextProto.java @@ -0,0 +1,121 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/text.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class TextProto { + private TextProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_Text_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_Text_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_Text_TextStyle_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/monitoring/dashboard/v1/text.pr" + + "oto\022\036google.monitoring.dashboard.v1\"\370\n\n\004" + + "Text\022\017\n\007content\030\001 \001(\t\022;\n\006format\030\002 \001(\0162+." + + "google.monitoring.dashboard.v1.Text.Form" + + "at\022=\n\005style\030\003 \001(\0132..google.monitoring.da" + + "shboard.v1.Text.TextStyle\032\251\t\n\tTextStyle\022" + + "\030\n\020background_color\030\001 \001(\t\022\022\n\ntext_color\030" + + "\002 \001(\t\022`\n\024horizontal_alignment\030\003 \001(\0162B.go" + + "ogle.monitoring.dashboard.v1.Text.TextSt" + + "yle.HorizontalAlignment\022\\\n\022vertical_alig" + + "nment\030\004 \001(\0162@.google.monitoring.dashboar" + + "d.v1.Text.TextStyle.VerticalAlignment\022K\n" + + "\007padding\030\005 \001(\0162:.google.monitoring.dashb" + + "oard.v1.Text.TextStyle.PaddingSize\022J\n\tfo" + + "nt_size\030\006 \001(\01627.google.monitoring.dashbo" + + "ard.v1.Text.TextStyle.FontSize\022X\n\020pointe" + + "r_location\030\007 \001(\0162>.google.monitoring.das" + + "hboard.v1.Text.TextStyle.PointerLocation" + + "\"b\n\023HorizontalAlignment\022$\n HORIZONTAL_AL" + + "IGNMENT_UNSPECIFIED\020\000\022\n\n\006H_LEFT\020\001\022\014\n\010H_C" + + "ENTER\020\002\022\013\n\007H_RIGHT\020\003\"^\n\021VerticalAlignmen" + + "t\022\"\n\036VERTICAL_ALIGNMENT_UNSPECIFIED\020\000\022\t\n" + + "\005V_TOP\020\001\022\014\n\010V_CENTER\020\002\022\014\n\010V_BOTTOM\020\003\"y\n\013" + + "PaddingSize\022\034\n\030PADDING_SIZE_UNSPECIFIED\020" + + "\000\022\021\n\rP_EXTRA_SMALL\020\001\022\013\n\007P_SMALL\020\002\022\014\n\010P_M" + + "EDIUM\020\003\022\013\n\007P_LARGE\020\004\022\021\n\rP_EXTRA_LARGE\020\005\"" + + "x\n\010FontSize\022\031\n\025FONT_SIZE_UNSPECIFIED\020\000\022\022" + + "\n\016FS_EXTRA_SMALL\020\001\022\014\n\010FS_SMALL\020\002\022\r\n\tFS_M" + + "EDIUM\020\003\022\014\n\010FS_LARGE\020\004\022\022\n\016FS_EXTRA_LARGE\020" + + "\005\"\201\002\n\017PointerLocation\022 \n\034POINTER_LOCATIO" + + "N_UNSPECIFIED\020\000\022\n\n\006PL_TOP\020\001\022\014\n\010PL_RIGHT\020" + + "\002\022\r\n\tPL_BOTTOM\020\003\022\013\n\007PL_LEFT\020\004\022\017\n\013PL_TOP_" + + "LEFT\020\005\022\020\n\014PL_TOP_RIGHT\020\006\022\020\n\014PL_RIGHT_TOP" + + "\020\007\022\023\n\017PL_RIGHT_BOTTOM\020\010\022\023\n\017PL_BOTTOM_RIG" + + "HT\020\t\022\022\n\016PL_BOTTOM_LEFT\020\n\022\022\n\016PL_LEFT_BOTT" + + "OM\020\013\022\017\n\013PL_LEFT_TOP\020\014\"7\n\006Format\022\026\n\022FORMA" + + "T_UNSPECIFIED\020\000\022\014\n\010MARKDOWN\020\001\022\007\n\003RAW\020\002B\362" + + "\001\n\"com.google.monitoring.dashboard.v1B\tT" + + "extProtoP\001ZFcloud.google.com/go/monitori" + + "ng/dashboard/apiv1/dashboardpb;dashboard" + + "pb\252\002$Google.Cloud.Monitoring.Dashboard.V" + + "1\312\002$Google\\Cloud\\Monitoring\\Dashboard\\V1" + + "\352\002(Google::Cloud::Monitoring::Dashboard:" + + ":V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_monitoring_dashboard_v1_Text_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_Text_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_Text_descriptor, + new java.lang.String[] { + "Content", "Format", "Style", + }); + internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor = + internal_static_google_monitoring_dashboard_v1_Text_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_dashboard_v1_Text_TextStyle_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor, + new java.lang.String[] { + "BackgroundColor", + "TextColor", + "HorizontalAlignment", + "VerticalAlignment", + "Padding", + "FontSize", + "PointerLocation", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java similarity index 70% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java index 0cd6ccb7b602..b2a769368040 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/metrics.proto @@ -5,21 +20,24 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * Defines a threshold for categorizing time series values.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.Threshold} */ -public final class Threshold extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Threshold extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Threshold) ThresholdOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Threshold.newBuilder() to construct. private Threshold(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Threshold() { label_ = ""; color_ = 0; @@ -29,25 +47,28 @@ private Threshold() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Threshold(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_Threshold_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.MetricsProto + .internal_static_google_monitoring_dashboard_v1_Threshold_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_Threshold_fieldAccessorTable + return com.google.monitoring.dashboard.v1.MetricsProto + .internal_static_google_monitoring_dashboard_v1_Threshold_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.Threshold.class, com.google.monitoring.dashboard.v1.Threshold.Builder.class); + com.google.monitoring.dashboard.v1.Threshold.class, + com.google.monitoring.dashboard.v1.Threshold.Builder.class); } /** + * + * *
              * The color suggests an interpretation to the viewer when actual values cross
              * the threshold. Comments on each color provide UX guidance on how users can
          @@ -56,9 +77,10 @@ protected java.lang.Object newInstance(
              *
              * Protobuf enum {@code google.monitoring.dashboard.v1.Threshold.Color}
              */
          -  public enum Color
          -      implements com.google.protobuf.ProtocolMessageEnum {
          +  public enum Color implements com.google.protobuf.ProtocolMessageEnum {
               /**
          +     *
          +     *
                * 
                * Color is unspecified. Not allowed in well-formed requests.
                * 
          @@ -67,6 +89,8 @@ public enum Color */ COLOR_UNSPECIFIED(0), /** + * + * *
                * Crossing the threshold is "concerning" behavior.
                * 
          @@ -75,6 +99,8 @@ public enum Color */ YELLOW(4), /** + * + * *
                * Crossing the threshold is "emergency" behavior.
                * 
          @@ -86,6 +112,8 @@ public enum Color ; /** + * + * *
                * Color is unspecified. Not allowed in well-formed requests.
                * 
          @@ -94,6 +122,8 @@ public enum Color */ public static final int COLOR_UNSPECIFIED_VALUE = 0; /** + * + * *
                * Crossing the threshold is "concerning" behavior.
                * 
          @@ -102,6 +132,8 @@ public enum Color */ public static final int YELLOW_VALUE = 4; /** + * + * *
                * Crossing the threshold is "emergency" behavior.
                * 
          @@ -110,7 +142,6 @@ public enum Color */ public static final int RED_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -135,49 +166,49 @@ public static Color valueOf(int value) { */ public static Color forNumber(int value) { switch (value) { - case 0: return COLOR_UNSPECIFIED; - case 4: return YELLOW; - case 6: return RED; - default: return null; + case 0: + return COLOR_UNSPECIFIED; + case 4: + return YELLOW; + case 6: + return RED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Color> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Color findValueByNumber(int number) { - return Color.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Color findValueByNumber(int number) { + return Color.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.monitoring.dashboard.v1.Threshold.getDescriptor().getEnumTypes().get(0); } private static final Color[] VALUES = values(); - public static Color valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Color valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -195,6 +226,8 @@ private Color(int value) { } /** + * + * *
              * Whether the threshold is considered crossed by an actual value above or
              * below its threshold value.
          @@ -202,9 +235,10 @@ private Color(int value) {
              *
              * Protobuf enum {@code google.monitoring.dashboard.v1.Threshold.Direction}
              */
          -  public enum Direction
          -      implements com.google.protobuf.ProtocolMessageEnum {
          +  public enum Direction implements com.google.protobuf.ProtocolMessageEnum {
               /**
          +     *
          +     *
                * 
                * Not allowed in well-formed requests.
                * 
          @@ -213,6 +247,8 @@ public enum Direction */ DIRECTION_UNSPECIFIED(0), /** + * + * *
                * The threshold will be considered crossed if the actual value is above
                * the threshold value.
          @@ -222,6 +258,8 @@ public enum Direction
                */
               ABOVE(1),
               /**
          +     *
          +     *
                * 
                * The threshold will be considered crossed if the actual value is below
                * the threshold value.
          @@ -234,6 +272,8 @@ public enum Direction
               ;
           
               /**
          +     *
          +     *
                * 
                * Not allowed in well-formed requests.
                * 
          @@ -242,6 +282,8 @@ public enum Direction */ public static final int DIRECTION_UNSPECIFIED_VALUE = 0; /** + * + * *
                * The threshold will be considered crossed if the actual value is above
                * the threshold value.
          @@ -251,6 +293,8 @@ public enum Direction
                */
               public static final int ABOVE_VALUE = 1;
               /**
          +     *
          +     *
                * 
                * The threshold will be considered crossed if the actual value is below
                * the threshold value.
          @@ -260,7 +304,6 @@ public enum Direction
                */
               public static final int BELOW_VALUE = 2;
           
          -
               public final int getNumber() {
                 if (this == UNRECOGNIZED) {
                   throw new java.lang.IllegalArgumentException(
          @@ -285,49 +328,49 @@ public static Direction valueOf(int value) {
                */
               public static Direction forNumber(int value) {
                 switch (value) {
          -        case 0: return DIRECTION_UNSPECIFIED;
          -        case 1: return ABOVE;
          -        case 2: return BELOW;
          -        default: return null;
          +        case 0:
          +          return DIRECTION_UNSPECIFIED;
          +        case 1:
          +          return ABOVE;
          +        case 2:
          +          return BELOW;
          +        default:
          +          return null;
                 }
               }
           
          -    public static com.google.protobuf.Internal.EnumLiteMap
          -        internalGetValueMap() {
          +    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
                 return internalValueMap;
               }
          -    private static final com.google.protobuf.Internal.EnumLiteMap<
          -        Direction> internalValueMap =
          -          new com.google.protobuf.Internal.EnumLiteMap() {
          -            public Direction findValueByNumber(int number) {
          -              return Direction.forNumber(number);
          -            }
          -          };
           
          -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
          -        getValueDescriptor() {
          +    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
          +        new com.google.protobuf.Internal.EnumLiteMap() {
          +          public Direction findValueByNumber(int number) {
          +            return Direction.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() {
          +
          +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
                 return getDescriptor();
               }
          -    public static final com.google.protobuf.Descriptors.EnumDescriptor
          -        getDescriptor() {
          +
          +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
                 return com.google.monitoring.dashboard.v1.Threshold.getDescriptor().getEnumTypes().get(1);
               }
           
               private static final Direction[] VALUES = values();
           
          -    public static Direction valueOf(
          -        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          +    public static Direction valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                 if (desc.getType() != getDescriptor()) {
          -        throw new java.lang.IllegalArgumentException(
          -          "EnumValueDescriptor is not for this type.");
          +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                 }
                 if (desc.getIndex() == -1) {
                   return UNRECOGNIZED;
          @@ -345,15 +388,18 @@ private Direction(int value) {
             }
           
             /**
          +   *
          +   *
              * 
              * An axis identifier.
              * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.Threshold.TargetAxis} */ - public enum TargetAxis - implements com.google.protobuf.ProtocolMessageEnum { + public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                * The target axis was not specified. Defaults to Y1.
                * 
          @@ -362,6 +408,8 @@ public enum TargetAxis */ TARGET_AXIS_UNSPECIFIED(0), /** + * + * *
                * The y_axis (the right axis of chart).
                * 
          @@ -370,6 +418,8 @@ public enum TargetAxis */ Y1(1), /** + * + * *
                * The y2_axis (the left axis of chart).
                * 
          @@ -381,6 +431,8 @@ public enum TargetAxis ; /** + * + * *
                * The target axis was not specified. Defaults to Y1.
                * 
          @@ -389,6 +441,8 @@ public enum TargetAxis */ public static final int TARGET_AXIS_UNSPECIFIED_VALUE = 0; /** + * + * *
                * The y_axis (the right axis of chart).
                * 
          @@ -397,6 +451,8 @@ public enum TargetAxis */ public static final int Y1_VALUE = 1; /** + * + * *
                * The y2_axis (the left axis of chart).
                * 
          @@ -405,7 +461,6 @@ public enum TargetAxis */ public static final int Y2_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -430,49 +485,49 @@ public static TargetAxis valueOf(int value) { */ public static TargetAxis forNumber(int value) { switch (value) { - case 0: return TARGET_AXIS_UNSPECIFIED; - case 1: return Y1; - case 2: return Y2; - default: return null; + case 0: + return TARGET_AXIS_UNSPECIFIED; + case 1: + return Y1; + case 2: + return Y2; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - TargetAxis> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TargetAxis findValueByNumber(int number) { - return TargetAxis.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TargetAxis findValueByNumber(int number) { + return TargetAxis.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.monitoring.dashboard.v1.Threshold.getDescriptor().getEnumTypes().get(2); } private static final TargetAxis[] VALUES = values(); - public static TargetAxis valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TargetAxis valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -490,14 +545,18 @@ private TargetAxis(int value) { } public static final int LABEL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object label_ = ""; /** + * + * *
              * A label for the threshold.
              * 
          * * string label = 1; + * * @return The label. */ @java.lang.Override @@ -506,29 +565,29 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** + * + * *
              * A label for the threshold.
              * 
          * * string label = 1; + * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -539,12 +598,15 @@ public java.lang.String getLabel() { public static final int VALUE_FIELD_NUMBER = 2; private double value_ = 0D; /** + * + * *
              * The value of the threshold. The value should be defined in the native scale
              * of the metric.
              * 
          * * double value = 2; + * * @return The value. */ @java.lang.Override @@ -555,86 +617,120 @@ public double getValue() { public static final int COLOR_FIELD_NUMBER = 3; private int color_ = 0; /** + * + * *
              * The state color for this threshold. Color is not allowed in a XyChart.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; + * * @return The enum numeric value on the wire for color. */ - @java.lang.Override public int getColorValue() { + @java.lang.Override + public int getColorValue() { return color_; } /** + * + * *
              * The state color for this threshold. Color is not allowed in a XyChart.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; + * * @return The color. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.Threshold.Color getColor() { - com.google.monitoring.dashboard.v1.Threshold.Color result = com.google.monitoring.dashboard.v1.Threshold.Color.forNumber(color_); - return result == null ? com.google.monitoring.dashboard.v1.Threshold.Color.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.Threshold.Color getColor() { + com.google.monitoring.dashboard.v1.Threshold.Color result = + com.google.monitoring.dashboard.v1.Threshold.Color.forNumber(color_); + return result == null + ? com.google.monitoring.dashboard.v1.Threshold.Color.UNRECOGNIZED + : result; } public static final int DIRECTION_FIELD_NUMBER = 4; private int direction_ = 0; /** + * + * *
              * The direction for the current threshold. Direction is not allowed in a
              * XyChart.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; + * * @return The enum numeric value on the wire for direction. */ - @java.lang.Override public int getDirectionValue() { + @java.lang.Override + public int getDirectionValue() { return direction_; } /** + * + * *
              * The direction for the current threshold. Direction is not allowed in a
              * XyChart.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; + * * @return The direction. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.Threshold.Direction getDirection() { - com.google.monitoring.dashboard.v1.Threshold.Direction result = com.google.monitoring.dashboard.v1.Threshold.Direction.forNumber(direction_); - return result == null ? com.google.monitoring.dashboard.v1.Threshold.Direction.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.Threshold.Direction getDirection() { + com.google.monitoring.dashboard.v1.Threshold.Direction result = + com.google.monitoring.dashboard.v1.Threshold.Direction.forNumber(direction_); + return result == null + ? com.google.monitoring.dashboard.v1.Threshold.Direction.UNRECOGNIZED + : result; } public static final int TARGET_AXIS_FIELD_NUMBER = 5; private int targetAxis_ = 0; /** + * + * *
              * The target axis to use for plotting the threshold. Target axis is not
              * allowed in a Scorecard.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; + * * @return The enum numeric value on the wire for targetAxis. */ - @java.lang.Override public int getTargetAxisValue() { + @java.lang.Override + public int getTargetAxisValue() { return targetAxis_; } /** + * + * *
              * The target axis to use for plotting the threshold. Target axis is not
              * allowed in a Scorecard.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; + * * @return The targetAxis. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.Threshold.TargetAxis getTargetAxis() { - com.google.monitoring.dashboard.v1.Threshold.TargetAxis result = com.google.monitoring.dashboard.v1.Threshold.TargetAxis.forNumber(targetAxis_); - return result == null ? com.google.monitoring.dashboard.v1.Threshold.TargetAxis.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.Threshold.TargetAxis getTargetAxis() { + com.google.monitoring.dashboard.v1.Threshold.TargetAxis result = + com.google.monitoring.dashboard.v1.Threshold.TargetAxis.forNumber(targetAxis_); + return result == null + ? com.google.monitoring.dashboard.v1.Threshold.TargetAxis.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -646,21 +742,25 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { output.writeDouble(2, value_); } - if (color_ != com.google.monitoring.dashboard.v1.Threshold.Color.COLOR_UNSPECIFIED.getNumber()) { + if (color_ + != com.google.monitoring.dashboard.v1.Threshold.Color.COLOR_UNSPECIFIED.getNumber()) { output.writeEnum(3, color_); } - if (direction_ != com.google.monitoring.dashboard.v1.Threshold.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + if (direction_ + != com.google.monitoring.dashboard.v1.Threshold.Direction.DIRECTION_UNSPECIFIED + .getNumber()) { output.writeEnum(4, direction_); } - if (targetAxis_ != com.google.monitoring.dashboard.v1.Threshold.TargetAxis.TARGET_AXIS_UNSPECIFIED.getNumber()) { + if (targetAxis_ + != com.google.monitoring.dashboard.v1.Threshold.TargetAxis.TARGET_AXIS_UNSPECIFIED + .getNumber()) { output.writeEnum(5, targetAxis_); } getUnknownFields().writeTo(output); @@ -676,20 +776,21 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, value_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, value_); } - if (color_ != com.google.monitoring.dashboard.v1.Threshold.Color.COLOR_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, color_); + if (color_ + != com.google.monitoring.dashboard.v1.Threshold.Color.COLOR_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, color_); } - if (direction_ != com.google.monitoring.dashboard.v1.Threshold.Direction.DIRECTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, direction_); + if (direction_ + != com.google.monitoring.dashboard.v1.Threshold.Direction.DIRECTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, direction_); } - if (targetAxis_ != com.google.monitoring.dashboard.v1.Threshold.TargetAxis.TARGET_AXIS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, targetAxis_); + if (targetAxis_ + != com.google.monitoring.dashboard.v1.Threshold.TargetAxis.TARGET_AXIS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, targetAxis_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -699,18 +800,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.Threshold)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.Threshold other = (com.google.monitoring.dashboard.v1.Threshold) obj; + com.google.monitoring.dashboard.v1.Threshold other = + (com.google.monitoring.dashboard.v1.Threshold) obj; - if (!getLabel() - .equals(other.getLabel())) return false; + if (!getLabel().equals(other.getLabel())) return false; if (java.lang.Double.doubleToLongBits(getValue()) - != java.lang.Double.doubleToLongBits( - other.getValue())) return false; + != java.lang.Double.doubleToLongBits(other.getValue())) return false; if (color_ != other.color_) return false; if (direction_ != other.direction_) return false; if (targetAxis_ != other.targetAxis_) return false; @@ -728,8 +828,9 @@ public int hashCode() { hash = (37 * hash) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabel().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getValue())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getValue())); hash = (37 * hash) + COLOR_FIELD_NUMBER; hash = (53 * hash) + color_; hash = (37 * hash) + DIRECTION_FIELD_NUMBER; @@ -741,132 +842,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.Threshold parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.Threshold parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Threshold parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Threshold parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Threshold 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.Threshold parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Threshold parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.Threshold parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.Threshold parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Threshold parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.Threshold parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.Threshold parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.Threshold parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.Threshold parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.Threshold prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Defines a threshold for categorizing time series values.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.Threshold} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Threshold) com.google.monitoring.dashboard.v1.ThresholdOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_Threshold_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.MetricsProto + .internal_static_google_monitoring_dashboard_v1_Threshold_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_Threshold_fieldAccessorTable + return com.google.monitoring.dashboard.v1.MetricsProto + .internal_static_google_monitoring_dashboard_v1_Threshold_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.Threshold.class, com.google.monitoring.dashboard.v1.Threshold.Builder.class); + com.google.monitoring.dashboard.v1.Threshold.class, + com.google.monitoring.dashboard.v1.Threshold.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.Threshold.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -880,9 +985,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_Threshold_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.MetricsProto + .internal_static_google_monitoring_dashboard_v1_Threshold_descriptor; } @java.lang.Override @@ -901,8 +1006,11 @@ public com.google.monitoring.dashboard.v1.Threshold build() { @java.lang.Override public com.google.monitoring.dashboard.v1.Threshold buildPartial() { - com.google.monitoring.dashboard.v1.Threshold result = new com.google.monitoring.dashboard.v1.Threshold(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.Threshold result = + new com.google.monitoring.dashboard.v1.Threshold(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -930,38 +1038,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Threshold result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.Threshold) { - return mergeFrom((com.google.monitoring.dashboard.v1.Threshold)other); + return mergeFrom((com.google.monitoring.dashboard.v1.Threshold) other); } else { super.mergeFrom(other); return this; @@ -1013,37 +1122,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - label_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 17: { - value_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - case 24: { - color_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - direction_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - targetAxis_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + label_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: + { + value_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 24: + { + color_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + direction_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + targetAxis_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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) { @@ -1053,22 +1168,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object label_ = ""; /** + * + * *
                * A label for the threshold.
                * 
          * * string label = 1; + * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -1077,20 +1195,21 @@ public java.lang.String getLabel() { } } /** + * + * *
                * A label for the threshold.
                * 
          * * string label = 1; + * * @return The bytes for label. */ - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -1098,28 +1217,35 @@ public java.lang.String getLabel() { } } /** + * + * *
                * A label for the threshold.
                * 
          * * string label = 1; + * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } label_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                * A label for the threshold.
                * 
          * * string label = 1; + * * @return This builder for chaining. */ public Builder clearLabel() { @@ -1129,17 +1255,21 @@ public Builder clearLabel() { return this; } /** + * + * *
                * A label for the threshold.
                * 
          * * string label = 1; + * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); label_ = value; bitField0_ |= 0x00000001; @@ -1147,14 +1277,17 @@ public Builder setLabelBytes( return this; } - private double value_ ; + private double value_; /** + * + * *
                * The value of the threshold. The value should be defined in the native scale
                * of the metric.
                * 
          * * double value = 2; + * * @return The value. */ @java.lang.Override @@ -1162,12 +1295,15 @@ public double getValue() { return value_; } /** + * + * *
                * The value of the threshold. The value should be defined in the native scale
                * of the metric.
                * 
          * * double value = 2; + * * @param value The value to set. * @return This builder for chaining. */ @@ -1179,12 +1315,15 @@ public Builder setValue(double value) { return this; } /** + * + * *
                * The value of the threshold. The value should be defined in the native scale
                * of the metric.
                * 
          * * double value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -1196,22 +1335,29 @@ public Builder clearValue() { private int color_ = 0; /** + * + * *
                * The state color for this threshold. Color is not allowed in a XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; + * * @return The enum numeric value on the wire for color. */ - @java.lang.Override public int getColorValue() { + @java.lang.Override + public int getColorValue() { return color_; } /** + * + * *
                * The state color for this threshold. Color is not allowed in a XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; + * * @param value The enum numeric value on the wire for color to set. * @return This builder for chaining. */ @@ -1222,24 +1368,33 @@ public Builder setColorValue(int value) { return this; } /** + * + * *
                * The state color for this threshold. Color is not allowed in a XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; + * * @return The color. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Threshold.Color getColor() { - com.google.monitoring.dashboard.v1.Threshold.Color result = com.google.monitoring.dashboard.v1.Threshold.Color.forNumber(color_); - return result == null ? com.google.monitoring.dashboard.v1.Threshold.Color.UNRECOGNIZED : result; + com.google.monitoring.dashboard.v1.Threshold.Color result = + com.google.monitoring.dashboard.v1.Threshold.Color.forNumber(color_); + return result == null + ? com.google.monitoring.dashboard.v1.Threshold.Color.UNRECOGNIZED + : result; } /** + * + * *
                * The state color for this threshold. Color is not allowed in a XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; + * * @param value The color to set. * @return This builder for chaining. */ @@ -1253,11 +1408,14 @@ public Builder setColor(com.google.monitoring.dashboard.v1.Threshold.Color value return this; } /** + * + * *
                * The state color for this threshold. Color is not allowed in a XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; + * * @return This builder for chaining. */ public Builder clearColor() { @@ -1269,24 +1427,31 @@ public Builder clearColor() { private int direction_ = 0; /** + * + * *
                * The direction for the current threshold. Direction is not allowed in a
                * XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; + * * @return The enum numeric value on the wire for direction. */ - @java.lang.Override public int getDirectionValue() { + @java.lang.Override + public int getDirectionValue() { return direction_; } /** + * + * *
                * The direction for the current threshold. Direction is not allowed in a
                * XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; + * * @param value The enum numeric value on the wire for direction to set. * @return This builder for chaining. */ @@ -1297,26 +1462,35 @@ public Builder setDirectionValue(int value) { return this; } /** + * + * *
                * The direction for the current threshold. Direction is not allowed in a
                * XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; + * * @return The direction. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Threshold.Direction getDirection() { - com.google.monitoring.dashboard.v1.Threshold.Direction result = com.google.monitoring.dashboard.v1.Threshold.Direction.forNumber(direction_); - return result == null ? com.google.monitoring.dashboard.v1.Threshold.Direction.UNRECOGNIZED : result; + com.google.monitoring.dashboard.v1.Threshold.Direction result = + com.google.monitoring.dashboard.v1.Threshold.Direction.forNumber(direction_); + return result == null + ? com.google.monitoring.dashboard.v1.Threshold.Direction.UNRECOGNIZED + : result; } /** + * + * *
                * The direction for the current threshold. Direction is not allowed in a
                * XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; + * * @param value The direction to set. * @return This builder for chaining. */ @@ -1330,12 +1504,15 @@ public Builder setDirection(com.google.monitoring.dashboard.v1.Threshold.Directi return this; } /** + * + * *
                * The direction for the current threshold. Direction is not allowed in a
                * XyChart.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; + * * @return This builder for chaining. */ public Builder clearDirection() { @@ -1347,24 +1524,31 @@ public Builder clearDirection() { private int targetAxis_ = 0; /** + * + * *
                * The target axis to use for plotting the threshold. Target axis is not
                * allowed in a Scorecard.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; + * * @return The enum numeric value on the wire for targetAxis. */ - @java.lang.Override public int getTargetAxisValue() { + @java.lang.Override + public int getTargetAxisValue() { return targetAxis_; } /** + * + * *
                * The target axis to use for plotting the threshold. Target axis is not
                * allowed in a Scorecard.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; + * * @param value The enum numeric value on the wire for targetAxis to set. * @return This builder for chaining. */ @@ -1375,26 +1559,35 @@ public Builder setTargetAxisValue(int value) { return this; } /** + * + * *
                * The target axis to use for plotting the threshold. Target axis is not
                * allowed in a Scorecard.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; + * * @return The targetAxis. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Threshold.TargetAxis getTargetAxis() { - com.google.monitoring.dashboard.v1.Threshold.TargetAxis result = com.google.monitoring.dashboard.v1.Threshold.TargetAxis.forNumber(targetAxis_); - return result == null ? com.google.monitoring.dashboard.v1.Threshold.TargetAxis.UNRECOGNIZED : result; + com.google.monitoring.dashboard.v1.Threshold.TargetAxis result = + com.google.monitoring.dashboard.v1.Threshold.TargetAxis.forNumber(targetAxis_); + return result == null + ? com.google.monitoring.dashboard.v1.Threshold.TargetAxis.UNRECOGNIZED + : result; } /** + * + * *
                * The target axis to use for plotting the threshold. Target axis is not
                * allowed in a Scorecard.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; + * * @param value The targetAxis to set. * @return This builder for chaining. */ @@ -1408,12 +1601,15 @@ public Builder setTargetAxis(com.google.monitoring.dashboard.v1.Threshold.Target return this; } /** + * + * *
                * The target axis to use for plotting the threshold. Target axis is not
                * allowed in a Scorecard.
                * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; + * * @return This builder for chaining. */ public Builder clearTargetAxis() { @@ -1422,9 +1618,9 @@ public Builder clearTargetAxis() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1434,12 +1630,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.Threshold) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Threshold) private static final com.google.monitoring.dashboard.v1.Threshold DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Threshold(); } @@ -1448,27 +1644,27 @@ public static com.google.monitoring.dashboard.v1.Threshold getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Threshold 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Threshold 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; @@ -1483,6 +1679,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.Threshold getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java similarity index 76% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java index 2e156ab0f2a4..90515be83579 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java @@ -1,101 +1,143 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/metrics.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface ThresholdOrBuilder extends +public interface ThresholdOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Threshold) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * A label for the threshold.
              * 
          * * string label = 1; + * * @return The label. */ java.lang.String getLabel(); /** + * + * *
              * A label for the threshold.
              * 
          * * string label = 1; + * * @return The bytes for label. */ - com.google.protobuf.ByteString - getLabelBytes(); + com.google.protobuf.ByteString getLabelBytes(); /** + * + * *
              * The value of the threshold. The value should be defined in the native scale
              * of the metric.
              * 
          * * double value = 2; + * * @return The value. */ double getValue(); /** + * + * *
              * The state color for this threshold. Color is not allowed in a XyChart.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; + * * @return The enum numeric value on the wire for color. */ int getColorValue(); /** + * + * *
              * The state color for this threshold. Color is not allowed in a XyChart.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.Color color = 3; + * * @return The color. */ com.google.monitoring.dashboard.v1.Threshold.Color getColor(); /** + * + * *
              * The direction for the current threshold. Direction is not allowed in a
              * XyChart.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; + * * @return The enum numeric value on the wire for direction. */ int getDirectionValue(); /** + * + * *
              * The direction for the current threshold. Direction is not allowed in a
              * XyChart.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.Direction direction = 4; + * * @return The direction. */ com.google.monitoring.dashboard.v1.Threshold.Direction getDirection(); /** + * + * *
              * The target axis to use for plotting the threshold. Target axis is not
              * allowed in a Scorecard.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; + * * @return The enum numeric value on the wire for targetAxis. */ int getTargetAxisValue(); /** + * + * *
              * The target axis to use for plotting the threshold. Target axis is not
              * allowed in a Scorecard.
              * 
          * * .google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5; + * * @return The targetAxis. */ com.google.monitoring.dashboard.v1.Threshold.TargetAxis getTargetAxis(); diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/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 similarity index 66% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilter.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilter.java index b13f3d29b20d..0cc4b604123e 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/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 @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/metrics.proto @@ -5,6 +20,8 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A filter that defines a subset of time series data that is displayed in a
            * widget. Time series data is fetched using the
          @@ -14,50 +31,57 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesFilter}
            */
          -public final class TimeSeriesFilter extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class TimeSeriesFilter extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TimeSeriesFilter)
               TimeSeriesFilterOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use TimeSeriesFilter.newBuilder() to construct.
             private TimeSeriesFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private TimeSeriesFilter() {
               filter_ = "";
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new TimeSeriesFilter();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.MetricsProto
          +        .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.MetricsProto
          +        .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.TimeSeriesFilter.class, com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder.class);
          +            com.google.monitoring.dashboard.v1.TimeSeriesFilter.class,
          +            com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder.class);
             }
           
             private int bitField0_;
             private int outputFilterCase_ = 0;
          +
             @SuppressWarnings("serial")
             private java.lang.Object outputFilter_;
          +
             public enum OutputFilterCase
          -      implements com.google.protobuf.Internal.EnumLite,
          +      implements
          +          com.google.protobuf.Internal.EnumLite,
                     com.google.protobuf.AbstractMessage.InternalOneOfEnum {
               PICK_TIME_SERIES_FILTER(4),
          -    @java.lang.Deprecated STATISTICAL_TIME_SERIES_FILTER(5),
          +    @java.lang.Deprecated
          +    STATISTICAL_TIME_SERIES_FILTER(5),
               OUTPUTFILTER_NOT_SET(0);
               private final int value;
          +
               private OutputFilterCase(int value) {
                 this.value = value;
               }
          @@ -73,27 +97,33 @@ public static OutputFilterCase valueOf(int value) {
           
               public static OutputFilterCase forNumber(int value) {
                 switch (value) {
          -        case 4: return PICK_TIME_SERIES_FILTER;
          -        case 5: return STATISTICAL_TIME_SERIES_FILTER;
          -        case 0: return OUTPUTFILTER_NOT_SET;
          -        default: return null;
          +        case 4:
          +          return PICK_TIME_SERIES_FILTER;
          +        case 5:
          +          return STATISTICAL_TIME_SERIES_FILTER;
          +        case 0:
          +          return OUTPUTFILTER_NOT_SET;
          +        default:
          +          return null;
                 }
               }
          +
               public int getNumber() {
                 return this.value;
               }
             };
           
          -  public OutputFilterCase
          -  getOutputFilterCase() {
          -    return OutputFilterCase.forNumber(
          -        outputFilterCase_);
          +  public OutputFilterCase getOutputFilterCase() {
          +    return OutputFilterCase.forNumber(outputFilterCase_);
             }
           
             public static final int FILTER_FIELD_NUMBER = 1;
          +
             @SuppressWarnings("serial")
             private volatile java.lang.Object filter_ = "";
             /**
          +   *
          +   *
              * 
              * Required. The [monitoring
              * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -101,6 +131,7 @@ public int getNumber() {
              * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -109,14 +140,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
              * Required. The [monitoring
              * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -124,16 +156,15 @@ public java.lang.String getFilter() {
              * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -144,6 +175,8 @@ public java.lang.String getFilter() { public static final int AGGREGATION_FIELD_NUMBER = 2; private com.google.monitoring.dashboard.v1.Aggregation aggregation_; /** + * + * *
              * By default, the raw time series data is returned.
              * Use this field to combine multiple time series for different views of the
          @@ -151,6 +184,7 @@ public java.lang.String getFilter() {
              * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; + * * @return Whether the aggregation field is set. */ @java.lang.Override @@ -158,6 +192,8 @@ public boolean hasAggregation() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
              * By default, the raw time series data is returned.
              * Use this field to combine multiple time series for different views of the
          @@ -165,13 +201,18 @@ public boolean hasAggregation() {
              * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; + * * @return The aggregation. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Aggregation getAggregation() { - return aggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : aggregation_; + return aggregation_ == null + ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() + : aggregation_; } /** + * + * *
              * By default, the raw time series data is returned.
              * Use this field to combine multiple time series for different views of the
          @@ -182,17 +223,22 @@ public com.google.monitoring.dashboard.v1.Aggregation getAggregation() {
              */
             @java.lang.Override
             public com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrBuilder() {
          -    return aggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : aggregation_;
          +    return aggregation_ == null
          +        ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()
          +        : aggregation_;
             }
           
             public static final int SECONDARY_AGGREGATION_FIELD_NUMBER = 3;
             private com.google.monitoring.dashboard.v1.Aggregation secondaryAggregation_;
             /**
          +   *
          +   *
              * 
              * Apply a second aggregation after `aggregation` is applied.
              * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; + * * @return Whether the secondaryAggregation field is set. */ @java.lang.Override @@ -200,18 +246,25 @@ public boolean hasSecondaryAggregation() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
              * Apply a second aggregation after `aggregation` is applied.
              * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; + * * @return The secondaryAggregation. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Aggregation getSecondaryAggregation() { - return secondaryAggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : secondaryAggregation_; + return secondaryAggregation_ == null + ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() + : secondaryAggregation_; } /** + * + * *
              * Apply a second aggregation after `aggregation` is applied.
              * 
          @@ -219,17 +272,23 @@ public com.google.monitoring.dashboard.v1.Aggregation getSecondaryAggregation() * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.AggregationOrBuilder getSecondaryAggregationOrBuilder() { - return secondaryAggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : secondaryAggregation_; + public com.google.monitoring.dashboard.v1.AggregationOrBuilder + getSecondaryAggregationOrBuilder() { + return secondaryAggregation_ == null + ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() + : secondaryAggregation_; } public static final int PICK_TIME_SERIES_FILTER_FIELD_NUMBER = 4; /** + * + * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * * @return Whether the pickTimeSeriesFilter field is set. */ @java.lang.Override @@ -237,21 +296,26 @@ public boolean hasPickTimeSeriesFilter() { return outputFilterCase_ == 4; } /** + * + * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * * @return The pickTimeSeriesFilter. */ @java.lang.Override public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeriesFilter() { if (outputFilterCase_ == 4) { - return (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_; + return (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_; } return com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance(); } /** + * + * *
              * Ranking based time series filter.
              * 
          @@ -259,64 +323,85 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeries * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickTimeSeriesFilterOrBuilder() { + public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder + getPickTimeSeriesFilterOrBuilder() { if (outputFilterCase_ == 4) { - return (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_; + return (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_; } return com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance(); } public static final int STATISTICAL_TIME_SERIES_FILTER_FIELD_NUMBER = 5; /** + * + * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is deprecated. - * See google/monitoring/dashboard/v1/metrics.proto;l=89 + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is + * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=89 * @return Whether the statisticalTimeSeriesFilter field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasStatisticalTimeSeriesFilter() { + @java.lang.Deprecated + public boolean hasStatisticalTimeSeriesFilter() { return outputFilterCase_ == 5; } /** + * + * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is deprecated. - * See google/monitoring/dashboard/v1/metrics.proto;l=89 + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is + * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=89 * @return The statisticalTimeSeriesFilter. */ @java.lang.Override - @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getStatisticalTimeSeriesFilter() { + @java.lang.Deprecated + public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter + getStatisticalTimeSeriesFilter() { if (outputFilterCase_ == 5) { - return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; + return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; } return com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance(); } /** + * + * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder getStatisticalTimeSeriesFilterOrBuilder() { + @java.lang.Deprecated + public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder + getStatisticalTimeSeriesFilterOrBuilder() { if (outputFilterCase_ == 5) { - return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; + return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; } return com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,8 +413,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); } @@ -340,10 +424,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(3, getSecondaryAggregation()); } if (outputFilterCase_ == 4) { - output.writeMessage(4, (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_); + output.writeMessage( + 4, (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_); } if (outputFilterCase_ == 5) { - output.writeMessage(5, (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_); + output.writeMessage( + 5, (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_); } getUnknownFields().writeTo(output); } @@ -358,20 +444,21 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAggregation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAggregation()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSecondaryAggregation()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSecondaryAggregation()); } if (outputFilterCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_); } if (outputFilterCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -381,34 +468,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.TimeSeriesFilter)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.TimeSeriesFilter other = (com.google.monitoring.dashboard.v1.TimeSeriesFilter) obj; + com.google.monitoring.dashboard.v1.TimeSeriesFilter other = + (com.google.monitoring.dashboard.v1.TimeSeriesFilter) obj; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (hasAggregation() != other.hasAggregation()) return false; if (hasAggregation()) { - if (!getAggregation() - .equals(other.getAggregation())) return false; + if (!getAggregation().equals(other.getAggregation())) return false; } if (hasSecondaryAggregation() != other.hasSecondaryAggregation()) return false; if (hasSecondaryAggregation()) { - if (!getSecondaryAggregation() - .equals(other.getSecondaryAggregation())) return false; + if (!getSecondaryAggregation().equals(other.getSecondaryAggregation())) return false; } if (!getOutputFilterCase().equals(other.getOutputFilterCase())) return false; switch (outputFilterCase_) { case 4: - if (!getPickTimeSeriesFilter() - .equals(other.getPickTimeSeriesFilter())) return false; + if (!getPickTimeSeriesFilter().equals(other.getPickTimeSeriesFilter())) return false; break; case 5: - if (!getStatisticalTimeSeriesFilter() - .equals(other.getStatisticalTimeSeriesFilter())) return false; + if (!getStatisticalTimeSeriesFilter().equals(other.getStatisticalTimeSeriesFilter())) + return false; break; case 0: default: @@ -452,98 +536,103 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TimeSeriesFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.TimeSeriesFilter 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.TimeSeriesFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.TimeSeriesFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.TimeSeriesFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A filter that defines a subset of time series data that is displayed in a
              * widget. Time series data is fetched using the
          @@ -553,21 +642,23 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesFilter}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.TimeSeriesFilter)
                 com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.MetricsProto
          +          .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.MetricsProto
          +          .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.TimeSeriesFilter.class, com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder.class);
          +              com.google.monitoring.dashboard.v1.TimeSeriesFilter.class,
          +              com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.TimeSeriesFilter.newBuilder()
          @@ -575,18 +666,18 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          +
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3
          -              .alwaysUseFieldBuilders) {
          +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                   getAggregationFieldBuilder();
                   getSecondaryAggregationFieldBuilder();
                 }
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -614,9 +705,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.MetricsProto
          +          .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor;
               }
           
               @java.lang.Override
          @@ -635,8 +726,11 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilter build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.TimeSeriesFilter buildPartial() {
          -      com.google.monitoring.dashboard.v1.TimeSeriesFilter result = new com.google.monitoring.dashboard.v1.TimeSeriesFilter(this);
          -      if (bitField0_ != 0) { buildPartial0(result); }
          +      com.google.monitoring.dashboard.v1.TimeSeriesFilter result =
          +          new com.google.monitoring.dashboard.v1.TimeSeriesFilter(this);
          +      if (bitField0_ != 0) {
          +        buildPartial0(result);
          +      }
                 buildPartialOneofs(result);
                 onBuilt();
                 return result;
          @@ -649,15 +743,15 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesFilter r
                 }
                 int to_bitField0_ = 0;
                 if (((from_bitField0_ & 0x00000002) != 0)) {
          -        result.aggregation_ = aggregationBuilder_ == null
          -            ? aggregation_
          -            : aggregationBuilder_.build();
          +        result.aggregation_ =
          +            aggregationBuilder_ == null ? aggregation_ : aggregationBuilder_.build();
                   to_bitField0_ |= 0x00000001;
                 }
                 if (((from_bitField0_ & 0x00000004) != 0)) {
          -        result.secondaryAggregation_ = secondaryAggregationBuilder_ == null
          -            ? secondaryAggregation_
          -            : secondaryAggregationBuilder_.build();
          +        result.secondaryAggregation_ =
          +            secondaryAggregationBuilder_ == null
          +                ? secondaryAggregation_
          +                : secondaryAggregationBuilder_.build();
                   to_bitField0_ |= 0x00000002;
                 }
                 result.bitField0_ |= to_bitField0_;
          @@ -666,12 +760,10 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesFilter r
               private void buildPartialOneofs(com.google.monitoring.dashboard.v1.TimeSeriesFilter result) {
                 result.outputFilterCase_ = outputFilterCase_;
                 result.outputFilter_ = this.outputFilter_;
          -      if (outputFilterCase_ == 4 &&
          -          pickTimeSeriesFilterBuilder_ != null) {
          +      if (outputFilterCase_ == 4 && pickTimeSeriesFilterBuilder_ != null) {
                   result.outputFilter_ = pickTimeSeriesFilterBuilder_.build();
                 }
          -      if (outputFilterCase_ == 5 &&
          -          statisticalTimeSeriesFilterBuilder_ != null) {
          +      if (outputFilterCase_ == 5 && statisticalTimeSeriesFilterBuilder_ != null) {
                   result.outputFilter_ = statisticalTimeSeriesFilterBuilder_.build();
                 }
               }
          @@ -680,38 +772,39 @@ private void buildPartialOneofs(com.google.monitoring.dashboard.v1.TimeSeriesFil
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.TimeSeriesFilter) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesFilter)other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesFilter) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -719,7 +812,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesFilter other) {
          -      if (other == com.google.monitoring.dashboard.v1.TimeSeriesFilter.getDefaultInstance()) return this;
          +      if (other == com.google.monitoring.dashboard.v1.TimeSeriesFilter.getDefaultInstance())
          +        return this;
                 if (!other.getFilter().isEmpty()) {
                   filter_ = other.filter_;
                   bitField0_ |= 0x00000001;
          @@ -732,17 +826,20 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesFilter oth
                   mergeSecondaryAggregation(other.getSecondaryAggregation());
                 }
                 switch (other.getOutputFilterCase()) {
          -        case PICK_TIME_SERIES_FILTER: {
          -          mergePickTimeSeriesFilter(other.getPickTimeSeriesFilter());
          -          break;
          -        }
          -        case STATISTICAL_TIME_SERIES_FILTER: {
          -          mergeStatisticalTimeSeriesFilter(other.getStatisticalTimeSeriesFilter());
          -          break;
          -        }
          -        case OUTPUTFILTER_NOT_SET: {
          -          break;
          -        }
          +        case PICK_TIME_SERIES_FILTER:
          +          {
          +            mergePickTimeSeriesFilter(other.getPickTimeSeriesFilter());
          +            break;
          +          }
          +        case STATISTICAL_TIME_SERIES_FILTER:
          +          {
          +            mergeStatisticalTimeSeriesFilter(other.getStatisticalTimeSeriesFilter());
          +            break;
          +          }
          +        case OUTPUTFILTER_NOT_SET:
          +          {
          +            break;
          +          }
                 }
                 this.mergeUnknownFields(other.getUnknownFields());
                 onChanged();
          @@ -770,45 +867,46 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10: {
          -              filter_ = input.readStringRequireUtf8();
          -              bitField0_ |= 0x00000001;
          -              break;
          -            } // case 10
          -            case 18: {
          -              input.readMessage(
          -                  getAggregationFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              bitField0_ |= 0x00000002;
          -              break;
          -            } // case 18
          -            case 26: {
          -              input.readMessage(
          -                  getSecondaryAggregationFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              bitField0_ |= 0x00000004;
          -              break;
          -            } // case 26
          -            case 34: {
          -              input.readMessage(
          -                  getPickTimeSeriesFilterFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              outputFilterCase_ = 4;
          -              break;
          -            } // case 34
          -            case 42: {
          -              input.readMessage(
          -                  getStatisticalTimeSeriesFilterFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              outputFilterCase_ = 5;
          -              break;
          -            } // case 42
          -            default: {
          -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                done = true; // was an endgroup tag
          -              }
          -              break;
          -            } // default:
          +            case 10:
          +              {
          +                filter_ = input.readStringRequireUtf8();
          +                bitField0_ |= 0x00000001;
          +                break;
          +              } // case 10
          +            case 18:
          +              {
          +                input.readMessage(getAggregationFieldBuilder().getBuilder(), extensionRegistry);
          +                bitField0_ |= 0x00000002;
          +                break;
          +              } // case 18
          +            case 26:
          +              {
          +                input.readMessage(
          +                    getSecondaryAggregationFieldBuilder().getBuilder(), extensionRegistry);
          +                bitField0_ |= 0x00000004;
          +                break;
          +              } // case 26
          +            case 34:
          +              {
          +                input.readMessage(
          +                    getPickTimeSeriesFilterFieldBuilder().getBuilder(), extensionRegistry);
          +                outputFilterCase_ = 4;
          +                break;
          +              } // case 34
          +            case 42:
          +              {
          +                input.readMessage(
          +                    getStatisticalTimeSeriesFilterFieldBuilder().getBuilder(), extensionRegistry);
          +                outputFilterCase_ = 5;
          +                break;
          +              } // case 42
          +            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) {
          @@ -818,12 +916,12 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          +
               private int outputFilterCase_ = 0;
               private java.lang.Object outputFilter_;
          -    public OutputFilterCase
          -        getOutputFilterCase() {
          -      return OutputFilterCase.forNumber(
          -          outputFilterCase_);
          +
          +    public OutputFilterCase getOutputFilterCase() {
          +      return OutputFilterCase.forNumber(outputFilterCase_);
               }
           
               public Builder clearOutputFilter() {
          @@ -837,6 +935,8 @@ public Builder clearOutputFilter() {
           
               private java.lang.Object filter_ = "";
               /**
          +     *
          +     *
                * 
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -844,13 +944,13 @@ public Builder clearOutputFilter() {
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -859,6 +959,8 @@ public java.lang.String getFilter() { } } /** + * + * *
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -866,15 +968,14 @@ public java.lang.String getFilter() {
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -882,6 +983,8 @@ public java.lang.String getFilter() { } } /** + * + * *
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -889,18 +992,22 @@ public java.lang.String getFilter() {
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -908,6 +1015,7 @@ public Builder setFilter(
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -917,6 +1025,8 @@ public Builder clearFilter() { return this; } /** + * + * *
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -924,12 +1034,14 @@ public Builder clearFilter() {
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000001; @@ -939,8 +1051,13 @@ public Builder setFilterBytes( private com.google.monitoring.dashboard.v1.Aggregation aggregation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder> aggregationBuilder_; + com.google.monitoring.dashboard.v1.Aggregation, + com.google.monitoring.dashboard.v1.Aggregation.Builder, + com.google.monitoring.dashboard.v1.AggregationOrBuilder> + aggregationBuilder_; /** + * + * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -948,12 +1065,15 @@ public Builder setFilterBytes(
                * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; + * * @return Whether the aggregation field is set. */ public boolean hasAggregation() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -961,16 +1081,21 @@ public boolean hasAggregation() {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; + * * @return The aggregation. */ public com.google.monitoring.dashboard.v1.Aggregation getAggregation() { if (aggregationBuilder_ == null) { - return aggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : aggregation_; + return aggregation_ == null + ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() + : aggregation_; } else { return aggregationBuilder_.getMessage(); } } /** + * + * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -993,6 +1118,8 @@ public Builder setAggregation(com.google.monitoring.dashboard.v1.Aggregation val
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -1013,6 +1140,8 @@ public Builder setAggregation(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -1023,9 +1152,10 @@ public Builder setAggregation(
                */
               public Builder mergeAggregation(com.google.monitoring.dashboard.v1.Aggregation value) {
                 if (aggregationBuilder_ == null) {
          -        if (((bitField0_ & 0x00000002) != 0) &&
          -          aggregation_ != null &&
          -          aggregation_ != com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()) {
          +        if (((bitField0_ & 0x00000002) != 0)
          +            && aggregation_ != null
          +            && aggregation_
          +                != com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()) {
                     getAggregationBuilder().mergeFrom(value);
                   } else {
                     aggregation_ = value;
          @@ -1040,6 +1170,8 @@ public Builder mergeAggregation(com.google.monitoring.dashboard.v1.Aggregation v
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -1059,6 +1191,8 @@ public Builder clearAggregation() {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -1073,6 +1207,8 @@ public com.google.monitoring.dashboard.v1.Aggregation.Builder getAggregationBuil
                 return getAggregationFieldBuilder().getBuilder();
               }
               /**
          +     *
          +     *
                * 
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -1085,11 +1221,14 @@ public com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrB
                 if (aggregationBuilder_ != null) {
                   return aggregationBuilder_.getMessageOrBuilder();
                 } else {
          -        return aggregation_ == null ?
          -            com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : aggregation_;
          +        return aggregation_ == null
          +            ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()
          +            : aggregation_;
                 }
               }
               /**
          +     *
          +     *
                * 
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -1099,14 +1238,17 @@ public com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrB
                * .google.monitoring.dashboard.v1.Aggregation aggregation = 2;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder> 
          +            com.google.monitoring.dashboard.v1.Aggregation,
          +            com.google.monitoring.dashboard.v1.Aggregation.Builder,
          +            com.google.monitoring.dashboard.v1.AggregationOrBuilder>
                   getAggregationFieldBuilder() {
                 if (aggregationBuilder_ == null) {
          -        aggregationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder>(
          -                getAggregation(),
          -                getParentForChildren(),
          -                isClean());
          +        aggregationBuilder_ =
          +            new com.google.protobuf.SingleFieldBuilderV3<
          +                com.google.monitoring.dashboard.v1.Aggregation,
          +                com.google.monitoring.dashboard.v1.Aggregation.Builder,
          +                com.google.monitoring.dashboard.v1.AggregationOrBuilder>(
          +                getAggregation(), getParentForChildren(), isClean());
                   aggregation_ = null;
                 }
                 return aggregationBuilder_;
          @@ -1114,34 +1256,47 @@ public com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrB
           
               private com.google.monitoring.dashboard.v1.Aggregation secondaryAggregation_;
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder> secondaryAggregationBuilder_;
          +            com.google.monitoring.dashboard.v1.Aggregation,
          +            com.google.monitoring.dashboard.v1.Aggregation.Builder,
          +            com.google.monitoring.dashboard.v1.AggregationOrBuilder>
          +        secondaryAggregationBuilder_;
               /**
          +     *
          +     *
                * 
                * Apply a second aggregation after `aggregation` is applied.
                * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; + * * @return Whether the secondaryAggregation field is set. */ public boolean hasSecondaryAggregation() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                * Apply a second aggregation after `aggregation` is applied.
                * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; + * * @return The secondaryAggregation. */ public com.google.monitoring.dashboard.v1.Aggregation getSecondaryAggregation() { if (secondaryAggregationBuilder_ == null) { - return secondaryAggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : secondaryAggregation_; + return secondaryAggregation_ == null + ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() + : secondaryAggregation_; } else { return secondaryAggregationBuilder_.getMessage(); } } /** + * + * *
                * Apply a second aggregation after `aggregation` is applied.
                * 
          @@ -1162,6 +1317,8 @@ public Builder setSecondaryAggregation(com.google.monitoring.dashboard.v1.Aggreg return this; } /** + * + * *
                * Apply a second aggregation after `aggregation` is applied.
                * 
          @@ -1180,6 +1337,8 @@ public Builder setSecondaryAggregation( return this; } /** + * + * *
                * Apply a second aggregation after `aggregation` is applied.
                * 
          @@ -1188,9 +1347,10 @@ public Builder setSecondaryAggregation( */ public Builder mergeSecondaryAggregation(com.google.monitoring.dashboard.v1.Aggregation value) { if (secondaryAggregationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - secondaryAggregation_ != null && - secondaryAggregation_ != com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && secondaryAggregation_ != null + && secondaryAggregation_ + != com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()) { getSecondaryAggregationBuilder().mergeFrom(value); } else { secondaryAggregation_ = value; @@ -1205,6 +1365,8 @@ public Builder mergeSecondaryAggregation(com.google.monitoring.dashboard.v1.Aggr return this; } /** + * + * *
                * Apply a second aggregation after `aggregation` is applied.
                * 
          @@ -1222,6 +1384,8 @@ public Builder clearSecondaryAggregation() { return this; } /** + * + * *
                * Apply a second aggregation after `aggregation` is applied.
                * 
          @@ -1234,21 +1398,27 @@ public com.google.monitoring.dashboard.v1.Aggregation.Builder getSecondaryAggreg return getSecondaryAggregationFieldBuilder().getBuilder(); } /** + * + * *
                * Apply a second aggregation after `aggregation` is applied.
                * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; */ - public com.google.monitoring.dashboard.v1.AggregationOrBuilder getSecondaryAggregationOrBuilder() { + public com.google.monitoring.dashboard.v1.AggregationOrBuilder + getSecondaryAggregationOrBuilder() { if (secondaryAggregationBuilder_ != null) { return secondaryAggregationBuilder_.getMessageOrBuilder(); } else { - return secondaryAggregation_ == null ? - com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : secondaryAggregation_; + return secondaryAggregation_ == null + ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() + : secondaryAggregation_; } } /** + * + * *
                * Apply a second aggregation after `aggregation` is applied.
                * 
          @@ -1256,27 +1426,37 @@ public com.google.monitoring.dashboard.v1.AggregationOrBuilder getSecondaryAggre * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder> + com.google.monitoring.dashboard.v1.Aggregation, + com.google.monitoring.dashboard.v1.Aggregation.Builder, + com.google.monitoring.dashboard.v1.AggregationOrBuilder> getSecondaryAggregationFieldBuilder() { if (secondaryAggregationBuilder_ == null) { - secondaryAggregationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder>( - getSecondaryAggregation(), - getParentForChildren(), - isClean()); + secondaryAggregationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Aggregation, + com.google.monitoring.dashboard.v1.Aggregation.Builder, + com.google.monitoring.dashboard.v1.AggregationOrBuilder>( + getSecondaryAggregation(), getParentForChildren(), isClean()); secondaryAggregation_ = null; } return secondaryAggregationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder> pickTimeSeriesFilterBuilder_; + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, + com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder> + pickTimeSeriesFilterBuilder_; /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * + * * @return Whether the pickTimeSeriesFilter field is set. */ @java.lang.Override @@ -1284,11 +1464,15 @@ public boolean hasPickTimeSeriesFilter() { return outputFilterCase_ == 4; } /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * + * * @return The pickTimeSeriesFilter. */ @java.lang.Override @@ -1306,13 +1490,17 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeries } } /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * */ - public Builder setPickTimeSeriesFilter(com.google.monitoring.dashboard.v1.PickTimeSeriesFilter value) { + public Builder setPickTimeSeriesFilter( + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter value) { if (pickTimeSeriesFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1326,11 +1514,14 @@ public Builder setPickTimeSeriesFilter(com.google.monitoring.dashboard.v1.PickTi return this; } /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * */ public Builder setPickTimeSeriesFilter( com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder builderForValue) { @@ -1344,18 +1535,26 @@ public Builder setPickTimeSeriesFilter( return this; } /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * */ - public Builder mergePickTimeSeriesFilter(com.google.monitoring.dashboard.v1.PickTimeSeriesFilter value) { + public Builder mergePickTimeSeriesFilter( + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter value) { if (pickTimeSeriesFilterBuilder_ == null) { - if (outputFilterCase_ == 4 && - outputFilter_ != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance()) { - outputFilter_ = com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.newBuilder((com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_) - .mergeFrom(value).buildPartial(); + if (outputFilterCase_ == 4 + && outputFilter_ + != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance()) { + outputFilter_ = + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.newBuilder( + (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_) + .mergeFrom(value) + .buildPartial(); } else { outputFilter_ = value; } @@ -1371,11 +1570,14 @@ public Builder mergePickTimeSeriesFilter(com.google.monitoring.dashboard.v1.Pick return this; } /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * */ public Builder clearPickTimeSeriesFilter() { if (pickTimeSeriesFilterBuilder_ == null) { @@ -1394,24 +1596,32 @@ public Builder clearPickTimeSeriesFilter() { return this; } /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * */ - public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder getPickTimeSeriesFilterBuilder() { + public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder + getPickTimeSeriesFilterBuilder() { return getPickTimeSeriesFilterFieldBuilder().getBuilder(); } /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * */ @java.lang.Override - public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickTimeSeriesFilterOrBuilder() { + public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder + getPickTimeSeriesFilterOrBuilder() { if ((outputFilterCase_ == 4) && (pickTimeSeriesFilterBuilder_ != null)) { return pickTimeSeriesFilterBuilder_.getMessageOrBuilder(); } else { @@ -1422,21 +1632,30 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT } } /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder> + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, + com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder> getPickTimeSeriesFilterFieldBuilder() { if (pickTimeSeriesFilterBuilder_ == null) { if (!(outputFilterCase_ == 4)) { - outputFilter_ = com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance(); + outputFilter_ = + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance(); } - pickTimeSeriesFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder>( + pickTimeSeriesFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, + com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder>( (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_, getParentForChildren(), isClean()); @@ -1448,35 +1667,51 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder> statisticalTimeSeriesFilterBuilder_; + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder> + statisticalTimeSeriesFilterBuilder_; /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is deprecated. - * See google/monitoring/dashboard/v1/metrics.proto;l=89 + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is + * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=89 * @return Whether the statisticalTimeSeriesFilter field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasStatisticalTimeSeriesFilter() { + @java.lang.Deprecated + public boolean hasStatisticalTimeSeriesFilter() { return outputFilterCase_ == 5; } /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is deprecated. - * See google/monitoring/dashboard/v1/metrics.proto;l=89 + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is + * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=89 * @return The statisticalTimeSeriesFilter. */ @java.lang.Override - @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getStatisticalTimeSeriesFilter() { + @java.lang.Deprecated + public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter + getStatisticalTimeSeriesFilter() { if (statisticalTimeSeriesFilterBuilder_ == null) { if (outputFilterCase_ == 5) { return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; @@ -1490,14 +1725,20 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT } } /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setStatisticalTimeSeriesFilter(com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter value) { + @java.lang.Deprecated + public Builder setStatisticalTimeSeriesFilter( + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter value) { if (statisticalTimeSeriesFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1511,14 +1752,19 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT return this; } /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setStatisticalTimeSeriesFilter( + @java.lang.Deprecated + public Builder setStatisticalTimeSeriesFilter( com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder builderForValue) { if (statisticalTimeSeriesFilterBuilder_ == null) { outputFilter_ = builderForValue.build(); @@ -1530,19 +1776,31 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT return this; } /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder mergeStatisticalTimeSeriesFilter(com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter value) { + @java.lang.Deprecated + public Builder mergeStatisticalTimeSeriesFilter( + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter value) { if (statisticalTimeSeriesFilterBuilder_ == null) { - if (outputFilterCase_ == 5 && - outputFilter_ != com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance()) { - outputFilter_ = com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.newBuilder((com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_) - .mergeFrom(value).buildPartial(); + if (outputFilterCase_ == 5 + && outputFilter_ + != com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter + .getDefaultInstance()) { + outputFilter_ = + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.newBuilder( + (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) + outputFilter_) + .mergeFrom(value) + .buildPartial(); } else { outputFilter_ = value; } @@ -1558,14 +1816,19 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT return this; } /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearStatisticalTimeSeriesFilter() { + @java.lang.Deprecated + public Builder clearStatisticalTimeSeriesFilter() { if (statisticalTimeSeriesFilterBuilder_ == null) { if (outputFilterCase_ == 5) { outputFilterCase_ = 0; @@ -1582,26 +1845,38 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT return this; } /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder getStatisticalTimeSeriesFilterBuilder() { + @java.lang.Deprecated + public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder + getStatisticalTimeSeriesFilterBuilder() { return getStatisticalTimeSeriesFilterFieldBuilder().getBuilder(); } /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder getStatisticalTimeSeriesFilterOrBuilder() { + @java.lang.Deprecated + public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder + getStatisticalTimeSeriesFilterOrBuilder() { if ((outputFilterCase_ == 5) && (statisticalTimeSeriesFilterBuilder_ != null)) { return statisticalTimeSeriesFilterBuilder_.getMessageOrBuilder(); } else { @@ -1612,22 +1887,32 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT } } /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder> + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder> getStatisticalTimeSeriesFilterFieldBuilder() { if (statisticalTimeSeriesFilterBuilder_ == null) { if (!(outputFilterCase_ == 5)) { - outputFilter_ = com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance(); + outputFilter_ = + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance(); } - statisticalTimeSeriesFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder>( + statisticalTimeSeriesFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder>( (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_, getParentForChildren(), isClean()); @@ -1637,9 +1922,9 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT onChanged(); return statisticalTimeSeriesFilterBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1649,12 +1934,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.TimeSeriesFilter) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.TimeSeriesFilter) private static final com.google.monitoring.dashboard.v1.TimeSeriesFilter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.TimeSeriesFilter(); } @@ -1663,27 +1948,27 @@ public static com.google.monitoring.dashboard.v1.TimeSeriesFilter getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeriesFilter 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeriesFilter 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; @@ -1698,6 +1983,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.TimeSeriesFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/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 similarity index 70% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java index de394123c2fe..701d2e96d7d1 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/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 @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/metrics.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface TimeSeriesFilterOrBuilder extends +public interface TimeSeriesFilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TimeSeriesFilter) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. The [monitoring
              * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -16,10 +34,13 @@ public interface TimeSeriesFilterOrBuilder extends
              * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
              * Required. The [monitoring
              * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
          @@ -27,12 +48,14 @@ public interface TimeSeriesFilterOrBuilder extends
              * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
              * By default, the raw time series data is returned.
              * Use this field to combine multiple time series for different views of the
          @@ -40,10 +63,13 @@ public interface TimeSeriesFilterOrBuilder extends
              * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; + * * @return Whether the aggregation field is set. */ boolean hasAggregation(); /** + * + * *
              * By default, the raw time series data is returned.
              * Use this field to combine multiple time series for different views of the
          @@ -51,10 +77,13 @@ public interface TimeSeriesFilterOrBuilder extends
              * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; + * * @return The aggregation. */ com.google.monitoring.dashboard.v1.Aggregation getAggregation(); /** + * + * *
              * By default, the raw time series data is returned.
              * Use this field to combine multiple time series for different views of the
          @@ -66,24 +95,32 @@ public interface TimeSeriesFilterOrBuilder extends
             com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrBuilder();
           
             /**
          +   *
          +   *
              * 
              * Apply a second aggregation after `aggregation` is applied.
              * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; + * * @return Whether the secondaryAggregation field is set. */ boolean hasSecondaryAggregation(); /** + * + * *
              * Apply a second aggregation after `aggregation` is applied.
              * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; + * * @return The secondaryAggregation. */ com.google.monitoring.dashboard.v1.Aggregation getSecondaryAggregation(); /** + * + * *
              * Apply a second aggregation after `aggregation` is applied.
              * 
          @@ -93,65 +130,92 @@ public interface TimeSeriesFilterOrBuilder extends com.google.monitoring.dashboard.v1.AggregationOrBuilder getSecondaryAggregationOrBuilder(); /** + * + * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * * @return Whether the pickTimeSeriesFilter field is set. */ boolean hasPickTimeSeriesFilter(); /** + * + * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * * @return The pickTimeSeriesFilter. */ com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeriesFilter(); /** + * + * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ - com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickTimeSeriesFilterOrBuilder(); + com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder + getPickTimeSeriesFilterOrBuilder(); /** + * + * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is deprecated. - * See google/monitoring/dashboard/v1/metrics.proto;l=89 + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is + * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=89 * @return Whether the statisticalTimeSeriesFilter field is set. */ - @java.lang.Deprecated boolean hasStatisticalTimeSeriesFilter(); + @java.lang.Deprecated + boolean hasStatisticalTimeSeriesFilter(); /** + * + * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is deprecated. - * See google/monitoring/dashboard/v1/metrics.proto;l=89 + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is + * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=89 * @return The statisticalTimeSeriesFilter. */ - @java.lang.Deprecated com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getStatisticalTimeSeriesFilter(); + @java.lang.Deprecated + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getStatisticalTimeSeriesFilter(); /** + * + * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder getStatisticalTimeSeriesFilterOrBuilder(); + @java.lang.Deprecated + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder + getStatisticalTimeSeriesFilterOrBuilder(); com.google.monitoring.dashboard.v1.TimeSeriesFilter.OutputFilterCase getOutputFilterCase(); } diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/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 similarity index 67% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatio.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatio.java index 1d89e5059e5d..679ee8cf9a9f 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/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 @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/metrics.proto @@ -5,6 +20,8 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A pair of time series filters that define a ratio computation. The output
            * time series is the pair-wise division of each aligned element from the
          @@ -13,43 +30,47 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesFilterRatio}
            */
          -public final class TimeSeriesFilterRatio extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class TimeSeriesFilterRatio extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TimeSeriesFilterRatio)
               TimeSeriesFilterRatioOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use TimeSeriesFilterRatio.newBuilder() to construct.
             private TimeSeriesFilterRatio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -  private TimeSeriesFilterRatio() {
          -  }
          +
          +  private TimeSeriesFilterRatio() {}
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new TimeSeriesFilterRatio();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.MetricsProto
          +        .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.MetricsProto
          +        .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.class, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder.class);
          +            com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.class,
          +            com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder.class);
             }
           
          -  public interface RatioPartOrBuilder extends
          +  public interface RatioPartOrBuilder
          +      extends
                 // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart)
                 com.google.protobuf.MessageOrBuilder {
           
               /**
          +     *
          +     *
                * 
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -57,10 +78,13 @@ public interface RatioPartOrBuilder extends
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -68,12 +92,14 @@ public interface RatioPartOrBuilder extends
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -81,10 +107,13 @@ public interface RatioPartOrBuilder extends
                * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; + * * @return Whether the aggregation field is set. */ boolean hasAggregation(); /** + * + * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -92,10 +121,13 @@ public interface RatioPartOrBuilder extends
                * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; + * * @return The aggregation. */ com.google.monitoring.dashboard.v1.Aggregation getAggregation(); /** + * + * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -107,6 +139,8 @@ public interface RatioPartOrBuilder extends
               com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrBuilder();
             }
             /**
          +   *
          +   *
              * 
              * Describes a query to build the numerator or denominator of a
              * TimeSeriesFilterRatio.
          @@ -114,44 +148,49 @@ public interface RatioPartOrBuilder extends
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart}
              */
          -  public static final class RatioPart extends
          -      com.google.protobuf.GeneratedMessageV3 implements
          +  public static final class RatioPart extends com.google.protobuf.GeneratedMessageV3
          +      implements
                 // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart)
                 RatioPartOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +    private static final long serialVersionUID = 0L;
               // Use RatioPart.newBuilder() to construct.
               private RatioPart(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
          +
               private RatioPart() {
                 filter_ = "";
               }
           
               @java.lang.Override
               @SuppressWarnings({"unused"})
          -    protected java.lang.Object newInstance(
          -        UnusedPrivateParameter unused) {
          +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new RatioPart();
               }
           
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.MetricsProto
          +          .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.MetricsProto
          +          .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.class, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder.class);
          +              com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.class,
          +              com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder.class);
               }
           
               private int bitField0_;
               public static final int FILTER_FIELD_NUMBER = 1;
          +
               @SuppressWarnings("serial")
               private volatile java.lang.Object filter_ = "";
               /**
          +     *
          +     *
                * 
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -159,6 +198,7 @@ protected java.lang.Object newInstance(
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -167,14 +207,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
                * Required. The [monitoring
                * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -182,16 +223,15 @@ public java.lang.String getFilter() {
                * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -202,6 +242,8 @@ public java.lang.String getFilter() { public static final int AGGREGATION_FIELD_NUMBER = 2; private com.google.monitoring.dashboard.v1.Aggregation aggregation_; /** + * + * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -209,6 +251,7 @@ public java.lang.String getFilter() {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; + * * @return Whether the aggregation field is set. */ @java.lang.Override @@ -216,6 +259,8 @@ public boolean hasAggregation() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -223,13 +268,18 @@ public boolean hasAggregation() {
                * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; + * * @return The aggregation. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Aggregation getAggregation() { - return aggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : aggregation_; + return aggregation_ == null + ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() + : aggregation_; } /** + * + * *
                * By default, the raw time series data is returned.
                * Use this field to combine multiple time series for different views of the
          @@ -240,10 +290,13 @@ public com.google.monitoring.dashboard.v1.Aggregation getAggregation() {
                */
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrBuilder() {
          -      return aggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : aggregation_;
          +      return aggregation_ == null
          +          ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()
          +          : aggregation_;
               }
           
               private byte memoizedIsInitialized = -1;
          +
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
          @@ -255,8 +308,7 @@ public final boolean isInitialized() {
               }
           
               @java.lang.Override
          -    public void writeTo(com.google.protobuf.CodedOutputStream output)
          -                        throws java.io.IOException {
          +    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
                   com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_);
                 }
          @@ -276,8 +328,7 @@ public int getSerializedSize() {
                   size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_);
                 }
                 if (((bitField0_ & 0x00000001) != 0)) {
          -        size += com.google.protobuf.CodedOutputStream
          -          .computeMessageSize(2, getAggregation());
          +        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAggregation());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
          @@ -287,19 +338,18 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
          -       return true;
          +        return true;
                 }
                 if (!(obj instanceof com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart)) {
                   return super.equals(obj);
                 }
          -      com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart other = (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart) obj;
          +      com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart other =
          +          (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart) obj;
           
          -      if (!getFilter()
          -          .equals(other.getFilter())) return false;
          +      if (!getFilter().equals(other.getFilter())) return false;
                 if (hasAggregation() != other.hasAggregation()) return false;
                 if (hasAggregation()) {
          -        if (!getAggregation()
          -            .equals(other.getAggregation())) return false;
          +        if (!getAggregation().equals(other.getAggregation())) return false;
                 }
                 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                 return true;
          @@ -324,89 +374,95 @@ public int hashCode() {
               }
           
               public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseFrom(
          -        java.nio.ByteBuffer data)
          -        throws com.google.protobuf.InvalidProtocolBufferException {
          +        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
          +
               public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseFrom(
          -        java.nio.ByteBuffer data,
          -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        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.TimeSeriesFilterRatio.RatioPart parseFrom(
                   com.google.protobuf.ByteString data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
          +
               public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart 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.TimeSeriesFilterRatio.RatioPart parseFrom(byte[] data)
          -        throws com.google.protobuf.InvalidProtocolBufferException {
          +
          +    public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseFrom(
          +        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
          +
               public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseFrom(
          -        byte[] data,
          -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
          -    public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseFrom(java.io.InputStream input)
          -        throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3
          -          .parseWithIOException(PARSER, input);
          +
          +    public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseFrom(
          +        java.io.InputStream input) throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
               }
          +
               public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseFrom(
          -        java.io.InputStream input,
          -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3
          -          .parseWithIOException(PARSER, input, extensionRegistry);
          +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          +          PARSER, input, extensionRegistry);
               }
           
          -    public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseDelimitedFrom(java.io.InputStream input)
          -        throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3
          -          .parseDelimitedWithIOException(PARSER, input);
          +    public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart
          +        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
               }
           
          -    public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart 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.TimeSeriesFilterRatio.RatioPart
          +        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.TimeSeriesFilterRatio.RatioPart parseFrom(
          -        com.google.protobuf.CodedInputStream input)
          -        throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3
          -          .parseWithIOException(PARSER, input);
          +        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
               }
          +
               public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart parseFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3
          -          .parseWithIOException(PARSER, input, extensionRegistry);
          +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          +          PARSER, input, extensionRegistry);
               }
           
               @java.lang.Override
          -    public Builder newBuilderForType() { return newBuilder(); }
          +    public Builder newBuilderForType() {
          +      return newBuilder();
          +    }
          +
               public static Builder newBuilder() {
                 return DEFAULT_INSTANCE.toBuilder();
               }
          -    public static Builder newBuilder(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart prototype) {
          +
          +    public static Builder newBuilder(
          +        com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart prototype) {
                 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
               }
          +
               @java.lang.Override
               public Builder toBuilder() {
          -      return this == DEFAULT_INSTANCE
          -          ? new Builder() : new Builder().mergeFrom(this);
          +      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
               }
           
               @java.lang.Override
          @@ -416,6 +472,8 @@ protected Builder newBuilderForType(
                 return builder;
               }
               /**
          +     *
          +     *
                * 
                * Describes a query to build the numerator or denominator of a
                * TimeSeriesFilterRatio.
          @@ -423,39 +481,43 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart}
                */
          -    public static final class Builder extends
          -        com.google.protobuf.GeneratedMessageV3.Builder implements
          +    public static final class Builder
          +        extends com.google.protobuf.GeneratedMessageV3.Builder
          +        implements
                   // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart)
                   com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder {
          -      public static final com.google.protobuf.Descriptors.Descriptor
          -          getDescriptor() {
          -        return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor;
          +      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +        return com.google.monitoring.dashboard.v1.MetricsProto
          +            .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor;
                 }
           
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
          -        return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_fieldAccessorTable
          +        return com.google.monitoring.dashboard.v1.MetricsProto
          +            .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
          -                com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.class, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder.class);
          +                com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.class,
          +                com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder.class);
                 }
           
          -      // Construct using com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.newBuilder()
          +      // Construct using
          +      // com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.newBuilder()
                 private Builder() {
                   maybeForceBuilderInitialization();
                 }
           
          -      private Builder(
          -          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   super(parent);
                   maybeForceBuilderInitialization();
                 }
          +
                 private void maybeForceBuilderInitialization() {
          -        if (com.google.protobuf.GeneratedMessageV3
          -                .alwaysUseFieldBuilders) {
          +        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                     getAggregationFieldBuilder();
                   }
                 }
          +
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
          @@ -470,14 +532,16 @@ public Builder clear() {
                 }
           
                 @java.lang.Override
          -      public com.google.protobuf.Descriptors.Descriptor
          -          getDescriptorForType() {
          -        return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor;
          +      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +        return com.google.monitoring.dashboard.v1.MetricsProto
          +            .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor;
                 }
           
                 @java.lang.Override
          -      public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getDefaultInstanceForType() {
          -        return com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance();
          +      public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart
          +          getDefaultInstanceForType() {
          +        return com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart
          +            .getDefaultInstance();
                 }
           
                 @java.lang.Override
          @@ -491,22 +555,25 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart build(
           
                 @java.lang.Override
                 public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart buildPartial() {
          -        com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart result = new com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart(this);
          -        if (bitField0_ != 0) { buildPartial0(result); }
          +        com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart result =
          +            new com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart(this);
          +        if (bitField0_ != 0) {
          +          buildPartial0(result);
          +        }
                   onBuilt();
                   return result;
                 }
           
          -      private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart result) {
          +      private void buildPartial0(
          +          com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart result) {
                   int from_bitField0_ = bitField0_;
                   if (((from_bitField0_ & 0x00000001) != 0)) {
                     result.filter_ = filter_;
                   }
                   int to_bitField0_ = 0;
                   if (((from_bitField0_ & 0x00000002) != 0)) {
          -          result.aggregation_ = aggregationBuilder_ == null
          -              ? aggregation_
          -              : aggregationBuilder_.build();
          +          result.aggregation_ =
          +              aggregationBuilder_ == null ? aggregation_ : aggregationBuilder_.build();
                     to_bitField0_ |= 0x00000001;
                   }
                   result.bitField0_ |= to_bitField0_;
          @@ -516,46 +583,53 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesFilterRa
                 public Builder clone() {
                   return super.clone();
                 }
          +
                 @java.lang.Override
                 public Builder setField(
          -          com.google.protobuf.Descriptors.FieldDescriptor field,
          -          java.lang.Object value) {
          +          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) {
          +      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) {
          +      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) {
          +          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) {
          +          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.TimeSeriesFilterRatio.RatioPart) {
          -          return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart)other);
          +          return mergeFrom(
          +              (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart) other);
                   } else {
                     super.mergeFrom(other);
                     return this;
                   }
                 }
           
          -      public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart other) {
          -        if (other == com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance()) return this;
          +      public Builder mergeFrom(
          +          com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart other) {
          +        if (other
          +            == com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart
          +                .getDefaultInstance()) return this;
                   if (!other.getFilter().isEmpty()) {
                     filter_ = other.filter_;
                     bitField0_ |= 0x00000001;
          @@ -590,24 +664,25 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
          -              case 10: {
          -                filter_ = input.readStringRequireUtf8();
          -                bitField0_ |= 0x00000001;
          -                break;
          -              } // case 10
          -              case 18: {
          -                input.readMessage(
          -                    getAggregationFieldBuilder().getBuilder(),
          -                    extensionRegistry);
          -                bitField0_ |= 0x00000002;
          -                break;
          -              } // case 18
          -              default: {
          -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                  done = true; // was an endgroup tag
          -                }
          -                break;
          -              } // default:
          +              case 10:
          +                {
          +                  filter_ = input.readStringRequireUtf8();
          +                  bitField0_ |= 0x00000001;
          +                  break;
          +                } // case 10
          +              case 18:
          +                {
          +                  input.readMessage(getAggregationFieldBuilder().getBuilder(), extensionRegistry);
          +                  bitField0_ |= 0x00000002;
          +                  break;
          +                } // case 18
          +              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) {
          @@ -617,10 +692,13 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
          +
                 private int bitField0_;
           
                 private java.lang.Object filter_ = "";
                 /**
          +       *
          +       *
                  * 
                  * Required. The [monitoring
                  * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -628,13 +706,13 @@ public Builder mergeFrom(
                  * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -643,6 +721,8 @@ public java.lang.String getFilter() { } } /** + * + * *
                  * Required. The [monitoring
                  * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -650,15 +730,14 @@ public java.lang.String getFilter() {
                  * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -666,6 +745,8 @@ public java.lang.String getFilter() { } } /** + * + * *
                  * Required. The [monitoring
                  * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -673,18 +754,22 @@ public java.lang.String getFilter() {
                  * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                  * Required. The [monitoring
                  * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -692,6 +777,7 @@ public Builder setFilter(
                  * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -701,6 +787,8 @@ public Builder clearFilter() { return this; } /** + * + * *
                  * Required. The [monitoring
                  * filter](https://cloud.google.com/monitoring/api/v3/filters) that
          @@ -708,12 +796,14 @@ public Builder clearFilter() {
                  * 
          * * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000001; @@ -723,8 +813,13 @@ public Builder setFilterBytes( private com.google.monitoring.dashboard.v1.Aggregation aggregation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder> aggregationBuilder_; + com.google.monitoring.dashboard.v1.Aggregation, + com.google.monitoring.dashboard.v1.Aggregation.Builder, + com.google.monitoring.dashboard.v1.AggregationOrBuilder> + aggregationBuilder_; /** + * + * *
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -732,12 +827,15 @@ public Builder setFilterBytes(
                  * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; + * * @return Whether the aggregation field is set. */ public boolean hasAggregation() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -745,16 +843,21 @@ public boolean hasAggregation() {
                  * 
          * * .google.monitoring.dashboard.v1.Aggregation aggregation = 2; + * * @return The aggregation. */ public com.google.monitoring.dashboard.v1.Aggregation getAggregation() { if (aggregationBuilder_ == null) { - return aggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : aggregation_; + return aggregation_ == null + ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() + : aggregation_; } else { return aggregationBuilder_.getMessage(); } } /** + * + * *
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -777,6 +880,8 @@ public Builder setAggregation(com.google.monitoring.dashboard.v1.Aggregation val
                   return this;
                 }
                 /**
          +       *
          +       *
                  * 
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -797,6 +902,8 @@ public Builder setAggregation(
                   return this;
                 }
                 /**
          +       *
          +       *
                  * 
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -807,9 +914,10 @@ public Builder setAggregation(
                  */
                 public Builder mergeAggregation(com.google.monitoring.dashboard.v1.Aggregation value) {
                   if (aggregationBuilder_ == null) {
          -          if (((bitField0_ & 0x00000002) != 0) &&
          -            aggregation_ != null &&
          -            aggregation_ != com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()) {
          +          if (((bitField0_ & 0x00000002) != 0)
          +              && aggregation_ != null
          +              && aggregation_
          +                  != com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()) {
                       getAggregationBuilder().mergeFrom(value);
                     } else {
                       aggregation_ = value;
          @@ -824,6 +932,8 @@ public Builder mergeAggregation(com.google.monitoring.dashboard.v1.Aggregation v
                   return this;
                 }
                 /**
          +       *
          +       *
                  * 
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -843,6 +953,8 @@ public Builder clearAggregation() {
                   return this;
                 }
                 /**
          +       *
          +       *
                  * 
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -857,6 +969,8 @@ public com.google.monitoring.dashboard.v1.Aggregation.Builder getAggregationBuil
                   return getAggregationFieldBuilder().getBuilder();
                 }
                 /**
          +       *
          +       *
                  * 
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -869,11 +983,14 @@ public com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrB
                   if (aggregationBuilder_ != null) {
                     return aggregationBuilder_.getMessageOrBuilder();
                   } else {
          -          return aggregation_ == null ?
          -              com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : aggregation_;
          +          return aggregation_ == null
          +              ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()
          +              : aggregation_;
                   }
                 }
                 /**
          +       *
          +       *
                  * 
                  * By default, the raw time series data is returned.
                  * Use this field to combine multiple time series for different views of the
          @@ -883,18 +1000,22 @@ public com.google.monitoring.dashboard.v1.AggregationOrBuilder getAggregationOrB
                  * .google.monitoring.dashboard.v1.Aggregation aggregation = 2;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
          -          com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder> 
          +              com.google.monitoring.dashboard.v1.Aggregation,
          +              com.google.monitoring.dashboard.v1.Aggregation.Builder,
          +              com.google.monitoring.dashboard.v1.AggregationOrBuilder>
                     getAggregationFieldBuilder() {
                   if (aggregationBuilder_ == null) {
          -          aggregationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          -              com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder>(
          -                  getAggregation(),
          -                  getParentForChildren(),
          -                  isClean());
          +          aggregationBuilder_ =
          +              new com.google.protobuf.SingleFieldBuilderV3<
          +                  com.google.monitoring.dashboard.v1.Aggregation,
          +                  com.google.monitoring.dashboard.v1.Aggregation.Builder,
          +                  com.google.monitoring.dashboard.v1.AggregationOrBuilder>(
          +                  getAggregation(), getParentForChildren(), isClean());
                     aggregation_ = null;
                   }
                   return aggregationBuilder_;
                 }
          +
                 @java.lang.Override
                 public final Builder setUnknownFields(
                     final com.google.protobuf.UnknownFieldSet unknownFields) {
          @@ -907,41 +1028,44 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
           
          -
                 // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart)
               }
           
               // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart)
          -    private static final com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart DEFAULT_INSTANCE;
          +    private static final com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart
          +        DEFAULT_INSTANCE;
          +
               static {
                 DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart();
               }
           
          -    public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getDefaultInstance() {
          +    public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart
          +        getDefaultInstance() {
                 return DEFAULT_INSTANCE;
               }
           
          -    private static final com.google.protobuf.Parser
          -        PARSER = new com.google.protobuf.AbstractParser() {
          -      @java.lang.Override
          -      public RatioPart 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();
          -      }
          -    };
          +    private static final com.google.protobuf.Parser PARSER =
          +        new com.google.protobuf.AbstractParser() {
          +          @java.lang.Override
          +          public RatioPart 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;
          @@ -953,23 +1077,28 @@ public com.google.protobuf.Parser getParserForType() {
               }
           
               @java.lang.Override
          -    public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getDefaultInstanceForType() {
          +    public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart
          +        getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
          -
             }
           
             private int bitField0_;
             private int outputFilterCase_ = 0;
          +
             @SuppressWarnings("serial")
             private java.lang.Object outputFilter_;
          +
             public enum OutputFilterCase
          -      implements com.google.protobuf.Internal.EnumLite,
          +      implements
          +          com.google.protobuf.Internal.EnumLite,
                     com.google.protobuf.AbstractMessage.InternalOneOfEnum {
               PICK_TIME_SERIES_FILTER(4),
          -    @java.lang.Deprecated STATISTICAL_TIME_SERIES_FILTER(5),
          +    @java.lang.Deprecated
          +    STATISTICAL_TIME_SERIES_FILTER(5),
               OUTPUTFILTER_NOT_SET(0);
               private final int value;
          +
               private OutputFilterCase(int value) {
                 this.value = value;
               }
          @@ -985,31 +1114,37 @@ public static OutputFilterCase valueOf(int value) {
           
               public static OutputFilterCase forNumber(int value) {
                 switch (value) {
          -        case 4: return PICK_TIME_SERIES_FILTER;
          -        case 5: return STATISTICAL_TIME_SERIES_FILTER;
          -        case 0: return OUTPUTFILTER_NOT_SET;
          -        default: return null;
          +        case 4:
          +          return PICK_TIME_SERIES_FILTER;
          +        case 5:
          +          return STATISTICAL_TIME_SERIES_FILTER;
          +        case 0:
          +          return OUTPUTFILTER_NOT_SET;
          +        default:
          +          return null;
                 }
               }
          +
               public int getNumber() {
                 return this.value;
               }
             };
           
          -  public OutputFilterCase
          -  getOutputFilterCase() {
          -    return OutputFilterCase.forNumber(
          -        outputFilterCase_);
          +  public OutputFilterCase getOutputFilterCase() {
          +    return OutputFilterCase.forNumber(outputFilterCase_);
             }
           
             public static final int NUMERATOR_FIELD_NUMBER = 1;
             private com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator_;
             /**
          +   *
          +   *
              * 
              * The numerator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; + * * @return Whether the numerator field is set. */ @java.lang.Override @@ -1017,18 +1152,25 @@ public boolean hasNumerator() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
              * The numerator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; + * * @return The numerator. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getNumerator() { - return numerator_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() : numerator_; + return numerator_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() + : numerator_; } /** + * + * *
              * The numerator of the ratio.
              * 
          @@ -1036,18 +1178,24 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getNum * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder getNumeratorOrBuilder() { - return numerator_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() : numerator_; + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder + getNumeratorOrBuilder() { + return numerator_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() + : numerator_; } public static final int DENOMINATOR_FIELD_NUMBER = 2; private com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator_; /** + * + * *
              * The denominator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; + * * @return Whether the denominator field is set. */ @java.lang.Override @@ -1055,18 +1203,25 @@ public boolean hasDenominator() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
              * The denominator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; + * * @return The denominator. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getDenominator() { - return denominator_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() : denominator_; + return denominator_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() + : denominator_; } /** + * + * *
              * The denominator of the ratio.
              * 
          @@ -1074,18 +1229,24 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getDen * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder getDenominatorOrBuilder() { - return denominator_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() : denominator_; + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder + getDenominatorOrBuilder() { + return denominator_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() + : denominator_; } public static final int SECONDARY_AGGREGATION_FIELD_NUMBER = 3; private com.google.monitoring.dashboard.v1.Aggregation secondaryAggregation_; /** + * + * *
              * Apply a second aggregation after the ratio is computed.
              * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; + * * @return Whether the secondaryAggregation field is set. */ @java.lang.Override @@ -1093,18 +1254,25 @@ public boolean hasSecondaryAggregation() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
              * Apply a second aggregation after the ratio is computed.
              * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; + * * @return The secondaryAggregation. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Aggregation getSecondaryAggregation() { - return secondaryAggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : secondaryAggregation_; + return secondaryAggregation_ == null + ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() + : secondaryAggregation_; } /** + * + * *
              * Apply a second aggregation after the ratio is computed.
              * 
          @@ -1112,17 +1280,23 @@ public com.google.monitoring.dashboard.v1.Aggregation getSecondaryAggregation() * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.AggregationOrBuilder getSecondaryAggregationOrBuilder() { - return secondaryAggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : secondaryAggregation_; + public com.google.monitoring.dashboard.v1.AggregationOrBuilder + getSecondaryAggregationOrBuilder() { + return secondaryAggregation_ == null + ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() + : secondaryAggregation_; } public static final int PICK_TIME_SERIES_FILTER_FIELD_NUMBER = 4; /** + * + * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * * @return Whether the pickTimeSeriesFilter field is set. */ @java.lang.Override @@ -1130,21 +1304,26 @@ public boolean hasPickTimeSeriesFilter() { return outputFilterCase_ == 4; } /** + * + * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * * @return The pickTimeSeriesFilter. */ @java.lang.Override public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeriesFilter() { if (outputFilterCase_ == 4) { - return (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_; + return (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_; } return com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance(); } /** + * + * *
              * Ranking based time series filter.
              * 
          @@ -1152,64 +1331,85 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeries * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickTimeSeriesFilterOrBuilder() { + public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder + getPickTimeSeriesFilterOrBuilder() { if (outputFilterCase_ == 4) { - return (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_; + return (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_; } return com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance(); } public static final int STATISTICAL_TIME_SERIES_FILTER_FIELD_NUMBER = 5; /** + * + * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is deprecated. - * See google/monitoring/dashboard/v1/metrics.proto;l=129 + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter + * is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=129 * @return Whether the statisticalTimeSeriesFilter field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasStatisticalTimeSeriesFilter() { + @java.lang.Deprecated + public boolean hasStatisticalTimeSeriesFilter() { return outputFilterCase_ == 5; } /** + * + * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is deprecated. - * See google/monitoring/dashboard/v1/metrics.proto;l=129 + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter + * is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=129 * @return The statisticalTimeSeriesFilter. */ @java.lang.Override - @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getStatisticalTimeSeriesFilter() { + @java.lang.Deprecated + public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter + getStatisticalTimeSeriesFilter() { if (outputFilterCase_ == 5) { - return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; + return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; } return com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance(); } /** + * + * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder getStatisticalTimeSeriesFilterOrBuilder() { + @java.lang.Deprecated + public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder + getStatisticalTimeSeriesFilterOrBuilder() { if (outputFilterCase_ == 5) { - return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; + return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; } return com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1221,8 +1421,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getNumerator()); } @@ -1233,10 +1432,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(3, getSecondaryAggregation()); } if (outputFilterCase_ == 4) { - output.writeMessage(4, (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_); + output.writeMessage( + 4, (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_); } if (outputFilterCase_ == 5) { - output.writeMessage(5, (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_); + output.writeMessage( + 5, (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_); } getUnknownFields().writeTo(output); } @@ -1248,24 +1449,24 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNumerator()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNumerator()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDenominator()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDenominator()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSecondaryAggregation()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSecondaryAggregation()); } if (outputFilterCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_); } if (outputFilterCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1275,37 +1476,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio other = (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) obj; + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio other = + (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) obj; if (hasNumerator() != other.hasNumerator()) return false; if (hasNumerator()) { - if (!getNumerator() - .equals(other.getNumerator())) return false; + if (!getNumerator().equals(other.getNumerator())) return false; } if (hasDenominator() != other.hasDenominator()) return false; if (hasDenominator()) { - if (!getDenominator() - .equals(other.getDenominator())) return false; + if (!getDenominator().equals(other.getDenominator())) return false; } if (hasSecondaryAggregation() != other.hasSecondaryAggregation()) return false; if (hasSecondaryAggregation()) { - if (!getSecondaryAggregation() - .equals(other.getSecondaryAggregation())) return false; + if (!getSecondaryAggregation().equals(other.getSecondaryAggregation())) return false; } if (!getOutputFilterCase().equals(other.getOutputFilterCase())) return false; switch (outputFilterCase_) { case 4: - if (!getPickTimeSeriesFilter() - .equals(other.getPickTimeSeriesFilter())) return false; + if (!getPickTimeSeriesFilter().equals(other.getPickTimeSeriesFilter())) return false; break; case 5: - if (!getStatisticalTimeSeriesFilter() - .equals(other.getStatisticalTimeSeriesFilter())) return false; + if (!getStatisticalTimeSeriesFilter().equals(other.getStatisticalTimeSeriesFilter())) + return false; break; case 0: default: @@ -1351,98 +1549,104 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TimeSeriesFilterRatio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio 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.TimeSeriesFilterRatio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio prototype) { + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A pair of time series filters that define a ratio computation. The output
              * time series is the pair-wise division of each aligned element from the
          @@ -1451,21 +1655,23 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesFilterRatio}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.TimeSeriesFilterRatio)
                 com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.MetricsProto
          +          .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.MetricsProto
          +          .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.class, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder.class);
          +              com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.class,
          +              com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.newBuilder()
          @@ -1473,19 +1679,19 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          +
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3
          -              .alwaysUseFieldBuilders) {
          +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                   getNumeratorFieldBuilder();
                   getDenominatorFieldBuilder();
                   getSecondaryAggregationFieldBuilder();
                 }
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -1517,9 +1723,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.MetricsProto
          +          .internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor;
               }
           
               @java.lang.Override
          @@ -1538,8 +1744,11 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio buildPartial() {
          -      com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio result = new com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio(this);
          -      if (bitField0_ != 0) { buildPartial0(result); }
          +      com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio result =
          +          new com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio(this);
          +      if (bitField0_ != 0) {
          +        buildPartial0(result);
          +      }
                 buildPartialOneofs(result);
                 onBuilt();
                 return result;
          @@ -1549,35 +1758,32 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesFilterRa
                 int from_bitField0_ = bitField0_;
                 int to_bitField0_ = 0;
                 if (((from_bitField0_ & 0x00000001) != 0)) {
          -        result.numerator_ = numeratorBuilder_ == null
          -            ? numerator_
          -            : numeratorBuilder_.build();
          +        result.numerator_ = numeratorBuilder_ == null ? numerator_ : numeratorBuilder_.build();
                   to_bitField0_ |= 0x00000001;
                 }
                 if (((from_bitField0_ & 0x00000002) != 0)) {
          -        result.denominator_ = denominatorBuilder_ == null
          -            ? denominator_
          -            : denominatorBuilder_.build();
          +        result.denominator_ =
          +            denominatorBuilder_ == null ? denominator_ : denominatorBuilder_.build();
                   to_bitField0_ |= 0x00000002;
                 }
                 if (((from_bitField0_ & 0x00000004) != 0)) {
          -        result.secondaryAggregation_ = secondaryAggregationBuilder_ == null
          -            ? secondaryAggregation_
          -            : secondaryAggregationBuilder_.build();
          +        result.secondaryAggregation_ =
          +            secondaryAggregationBuilder_ == null
          +                ? secondaryAggregation_
          +                : secondaryAggregationBuilder_.build();
                   to_bitField0_ |= 0x00000004;
                 }
                 result.bitField0_ |= to_bitField0_;
               }
           
          -    private void buildPartialOneofs(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio result) {
          +    private void buildPartialOneofs(
          +        com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio result) {
                 result.outputFilterCase_ = outputFilterCase_;
                 result.outputFilter_ = this.outputFilter_;
          -      if (outputFilterCase_ == 4 &&
          -          pickTimeSeriesFilterBuilder_ != null) {
          +      if (outputFilterCase_ == 4 && pickTimeSeriesFilterBuilder_ != null) {
                   result.outputFilter_ = pickTimeSeriesFilterBuilder_.build();
                 }
          -      if (outputFilterCase_ == 5 &&
          -          statisticalTimeSeriesFilterBuilder_ != null) {
          +      if (outputFilterCase_ == 5 && statisticalTimeSeriesFilterBuilder_ != null) {
                   result.outputFilter_ = statisticalTimeSeriesFilterBuilder_.build();
                 }
               }
          @@ -1586,38 +1792,39 @@ private void buildPartialOneofs(com.google.monitoring.dashboard.v1.TimeSeriesFil
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.TimeSeriesFilterRatio) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio)other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1625,7 +1832,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio other) {
          -      if (other == com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.getDefaultInstance()) return this;
          +      if (other == com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.getDefaultInstance())
          +        return this;
                 if (other.hasNumerator()) {
                   mergeNumerator(other.getNumerator());
                 }
          @@ -1636,17 +1844,20 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesFilterRati
                   mergeSecondaryAggregation(other.getSecondaryAggregation());
                 }
                 switch (other.getOutputFilterCase()) {
          -        case PICK_TIME_SERIES_FILTER: {
          -          mergePickTimeSeriesFilter(other.getPickTimeSeriesFilter());
          -          break;
          -        }
          -        case STATISTICAL_TIME_SERIES_FILTER: {
          -          mergeStatisticalTimeSeriesFilter(other.getStatisticalTimeSeriesFilter());
          -          break;
          -        }
          -        case OUTPUTFILTER_NOT_SET: {
          -          break;
          -        }
          +        case PICK_TIME_SERIES_FILTER:
          +          {
          +            mergePickTimeSeriesFilter(other.getPickTimeSeriesFilter());
          +            break;
          +          }
          +        case STATISTICAL_TIME_SERIES_FILTER:
          +          {
          +            mergeStatisticalTimeSeriesFilter(other.getStatisticalTimeSeriesFilter());
          +            break;
          +          }
          +        case OUTPUTFILTER_NOT_SET:
          +          {
          +            break;
          +          }
                 }
                 this.mergeUnknownFields(other.getUnknownFields());
                 onChanged();
          @@ -1674,47 +1885,46 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10: {
          -              input.readMessage(
          -                  getNumeratorFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              bitField0_ |= 0x00000001;
          -              break;
          -            } // case 10
          -            case 18: {
          -              input.readMessage(
          -                  getDenominatorFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              bitField0_ |= 0x00000002;
          -              break;
          -            } // case 18
          -            case 26: {
          -              input.readMessage(
          -                  getSecondaryAggregationFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              bitField0_ |= 0x00000004;
          -              break;
          -            } // case 26
          -            case 34: {
          -              input.readMessage(
          -                  getPickTimeSeriesFilterFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              outputFilterCase_ = 4;
          -              break;
          -            } // case 34
          -            case 42: {
          -              input.readMessage(
          -                  getStatisticalTimeSeriesFilterFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              outputFilterCase_ = 5;
          -              break;
          -            } // case 42
          -            default: {
          -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                done = true; // was an endgroup tag
          -              }
          -              break;
          -            } // default:
          +            case 10:
          +              {
          +                input.readMessage(getNumeratorFieldBuilder().getBuilder(), extensionRegistry);
          +                bitField0_ |= 0x00000001;
          +                break;
          +              } // case 10
          +            case 18:
          +              {
          +                input.readMessage(getDenominatorFieldBuilder().getBuilder(), extensionRegistry);
          +                bitField0_ |= 0x00000002;
          +                break;
          +              } // case 18
          +            case 26:
          +              {
          +                input.readMessage(
          +                    getSecondaryAggregationFieldBuilder().getBuilder(), extensionRegistry);
          +                bitField0_ |= 0x00000004;
          +                break;
          +              } // case 26
          +            case 34:
          +              {
          +                input.readMessage(
          +                    getPickTimeSeriesFilterFieldBuilder().getBuilder(), extensionRegistry);
          +                outputFilterCase_ = 4;
          +                break;
          +              } // case 34
          +            case 42:
          +              {
          +                input.readMessage(
          +                    getStatisticalTimeSeriesFilterFieldBuilder().getBuilder(), extensionRegistry);
          +                outputFilterCase_ = 5;
          +                break;
          +              } // case 42
          +            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) {
          @@ -1724,12 +1934,12 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          +
               private int outputFilterCase_ = 0;
               private java.lang.Object outputFilter_;
          -    public OutputFilterCase
          -        getOutputFilterCase() {
          -      return OutputFilterCase.forNumber(
          -          outputFilterCase_);
          +
          +    public OutputFilterCase getOutputFilterCase() {
          +      return OutputFilterCase.forNumber(outputFilterCase_);
               }
           
               public Builder clearOutputFilter() {
          @@ -1743,41 +1953,56 @@ public Builder clearOutputFilter() {
           
               private com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator_;
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder> numeratorBuilder_;
          +            com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart,
          +            com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder,
          +            com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder>
          +        numeratorBuilder_;
               /**
          +     *
          +     *
                * 
                * The numerator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; + * * @return Whether the numerator field is set. */ public boolean hasNumerator() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * The numerator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; + * * @return The numerator. */ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getNumerator() { if (numeratorBuilder_ == null) { - return numerator_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() : numerator_; + return numerator_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart + .getDefaultInstance() + : numerator_; } else { return numeratorBuilder_.getMessage(); } } /** + * + * *
                * The numerator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; */ - public Builder setNumerator(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart value) { + public Builder setNumerator( + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart value) { if (numeratorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1791,6 +2016,8 @@ public Builder setNumerator(com.google.monitoring.dashboard.v1.TimeSeriesFilterR return this; } /** + * + * *
                * The numerator of the ratio.
                * 
          @@ -1798,7 +2025,8 @@ public Builder setNumerator(com.google.monitoring.dashboard.v1.TimeSeriesFilterR * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; */ public Builder setNumerator( - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder builderForValue) { + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder + builderForValue) { if (numeratorBuilder_ == null) { numerator_ = builderForValue.build(); } else { @@ -1809,17 +2037,22 @@ public Builder setNumerator( return this; } /** + * + * *
                * The numerator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; */ - public Builder mergeNumerator(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart value) { + public Builder mergeNumerator( + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart value) { if (numeratorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - numerator_ != null && - numerator_ != com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && numerator_ != null + && numerator_ + != com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart + .getDefaultInstance()) { getNumeratorBuilder().mergeFrom(value); } else { numerator_ = value; @@ -1834,6 +2067,8 @@ public Builder mergeNumerator(com.google.monitoring.dashboard.v1.TimeSeriesFilte return this; } /** + * + * *
                * The numerator of the ratio.
                * 
          @@ -1851,33 +2086,43 @@ public Builder clearNumerator() { return this; } /** + * + * *
                * The numerator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; */ - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder getNumeratorBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder + getNumeratorBuilder() { bitField0_ |= 0x00000001; onChanged(); return getNumeratorFieldBuilder().getBuilder(); } /** + * + * *
                * The numerator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; */ - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder getNumeratorOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder + getNumeratorOrBuilder() { if (numeratorBuilder_ != null) { return numeratorBuilder_.getMessageOrBuilder(); } else { - return numerator_ == null ? - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() : numerator_; + return numerator_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart + .getDefaultInstance() + : numerator_; } } /** + * + * *
                * The numerator of the ratio.
                * 
          @@ -1885,14 +2130,17 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuild * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder> + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder> getNumeratorFieldBuilder() { if (numeratorBuilder_ == null) { - numeratorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder>( - getNumerator(), - getParentForChildren(), - isClean()); + numeratorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder>( + getNumerator(), getParentForChildren(), isClean()); numerator_ = null; } return numeratorBuilder_; @@ -1900,41 +2148,56 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuild private com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder> denominatorBuilder_; + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder> + denominatorBuilder_; /** + * + * *
                * The denominator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; + * * @return Whether the denominator field is set. */ public boolean hasDenominator() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * The denominator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; + * * @return The denominator. */ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getDenominator() { if (denominatorBuilder_ == null) { - return denominator_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() : denominator_; + return denominator_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart + .getDefaultInstance() + : denominator_; } else { return denominatorBuilder_.getMessage(); } } /** + * + * *
                * The denominator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; */ - public Builder setDenominator(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart value) { + public Builder setDenominator( + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart value) { if (denominatorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1948,6 +2211,8 @@ public Builder setDenominator(com.google.monitoring.dashboard.v1.TimeSeriesFilte return this; } /** + * + * *
                * The denominator of the ratio.
                * 
          @@ -1955,7 +2220,8 @@ public Builder setDenominator(com.google.monitoring.dashboard.v1.TimeSeriesFilte * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; */ public Builder setDenominator( - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder builderForValue) { + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder + builderForValue) { if (denominatorBuilder_ == null) { denominator_ = builderForValue.build(); } else { @@ -1966,17 +2232,22 @@ public Builder setDenominator( return this; } /** + * + * *
                * The denominator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; */ - public Builder mergeDenominator(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart value) { + public Builder mergeDenominator( + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart value) { if (denominatorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - denominator_ != null && - denominator_ != com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && denominator_ != null + && denominator_ + != com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart + .getDefaultInstance()) { getDenominatorBuilder().mergeFrom(value); } else { denominator_ = value; @@ -1991,6 +2262,8 @@ public Builder mergeDenominator(com.google.monitoring.dashboard.v1.TimeSeriesFil return this; } /** + * + * *
                * The denominator of the ratio.
                * 
          @@ -2008,33 +2281,43 @@ public Builder clearDenominator() { return this; } /** + * + * *
                * The denominator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; */ - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder getDenominatorBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder + getDenominatorBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDenominatorFieldBuilder().getBuilder(); } /** + * + * *
                * The denominator of the ratio.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; */ - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder getDenominatorOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder + getDenominatorOrBuilder() { if (denominatorBuilder_ != null) { return denominatorBuilder_.getMessageOrBuilder(); } else { - return denominator_ == null ? - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.getDefaultInstance() : denominator_; + return denominator_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart + .getDefaultInstance() + : denominator_; } } /** + * + * *
                * The denominator of the ratio.
                * 
          @@ -2042,14 +2325,17 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuild * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder> + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder> getDenominatorFieldBuilder() { if (denominatorBuilder_ == null) { - denominatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder>( - getDenominator(), - getParentForChildren(), - isClean()); + denominatorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart, + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder>( + getDenominator(), getParentForChildren(), isClean()); denominator_ = null; } return denominatorBuilder_; @@ -2057,34 +2343,47 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuild private com.google.monitoring.dashboard.v1.Aggregation secondaryAggregation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder> secondaryAggregationBuilder_; + com.google.monitoring.dashboard.v1.Aggregation, + com.google.monitoring.dashboard.v1.Aggregation.Builder, + com.google.monitoring.dashboard.v1.AggregationOrBuilder> + secondaryAggregationBuilder_; /** + * + * *
                * Apply a second aggregation after the ratio is computed.
                * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; + * * @return Whether the secondaryAggregation field is set. */ public boolean hasSecondaryAggregation() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                * Apply a second aggregation after the ratio is computed.
                * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; + * * @return The secondaryAggregation. */ public com.google.monitoring.dashboard.v1.Aggregation getSecondaryAggregation() { if (secondaryAggregationBuilder_ == null) { - return secondaryAggregation_ == null ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : secondaryAggregation_; + return secondaryAggregation_ == null + ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() + : secondaryAggregation_; } else { return secondaryAggregationBuilder_.getMessage(); } } /** + * + * *
                * Apply a second aggregation after the ratio is computed.
                * 
          @@ -2105,6 +2404,8 @@ public Builder setSecondaryAggregation(com.google.monitoring.dashboard.v1.Aggreg return this; } /** + * + * *
                * Apply a second aggregation after the ratio is computed.
                * 
          @@ -2123,6 +2424,8 @@ public Builder setSecondaryAggregation( return this; } /** + * + * *
                * Apply a second aggregation after the ratio is computed.
                * 
          @@ -2131,9 +2434,10 @@ public Builder setSecondaryAggregation( */ public Builder mergeSecondaryAggregation(com.google.monitoring.dashboard.v1.Aggregation value) { if (secondaryAggregationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - secondaryAggregation_ != null && - secondaryAggregation_ != com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && secondaryAggregation_ != null + && secondaryAggregation_ + != com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance()) { getSecondaryAggregationBuilder().mergeFrom(value); } else { secondaryAggregation_ = value; @@ -2148,6 +2452,8 @@ public Builder mergeSecondaryAggregation(com.google.monitoring.dashboard.v1.Aggr return this; } /** + * + * *
                * Apply a second aggregation after the ratio is computed.
                * 
          @@ -2165,6 +2471,8 @@ public Builder clearSecondaryAggregation() { return this; } /** + * + * *
                * Apply a second aggregation after the ratio is computed.
                * 
          @@ -2177,21 +2485,27 @@ public com.google.monitoring.dashboard.v1.Aggregation.Builder getSecondaryAggreg return getSecondaryAggregationFieldBuilder().getBuilder(); } /** + * + * *
                * Apply a second aggregation after the ratio is computed.
                * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; */ - public com.google.monitoring.dashboard.v1.AggregationOrBuilder getSecondaryAggregationOrBuilder() { + public com.google.monitoring.dashboard.v1.AggregationOrBuilder + getSecondaryAggregationOrBuilder() { if (secondaryAggregationBuilder_ != null) { return secondaryAggregationBuilder_.getMessageOrBuilder(); } else { - return secondaryAggregation_ == null ? - com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() : secondaryAggregation_; + return secondaryAggregation_ == null + ? com.google.monitoring.dashboard.v1.Aggregation.getDefaultInstance() + : secondaryAggregation_; } } /** + * + * *
                * Apply a second aggregation after the ratio is computed.
                * 
          @@ -2199,27 +2513,37 @@ public com.google.monitoring.dashboard.v1.AggregationOrBuilder getSecondaryAggre * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder> + com.google.monitoring.dashboard.v1.Aggregation, + com.google.monitoring.dashboard.v1.Aggregation.Builder, + com.google.monitoring.dashboard.v1.AggregationOrBuilder> getSecondaryAggregationFieldBuilder() { if (secondaryAggregationBuilder_ == null) { - secondaryAggregationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Aggregation, com.google.monitoring.dashboard.v1.Aggregation.Builder, com.google.monitoring.dashboard.v1.AggregationOrBuilder>( - getSecondaryAggregation(), - getParentForChildren(), - isClean()); + secondaryAggregationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Aggregation, + com.google.monitoring.dashboard.v1.Aggregation.Builder, + com.google.monitoring.dashboard.v1.AggregationOrBuilder>( + getSecondaryAggregation(), getParentForChildren(), isClean()); secondaryAggregation_ = null; } return secondaryAggregationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder> pickTimeSeriesFilterBuilder_; + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, + com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder> + pickTimeSeriesFilterBuilder_; /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * + * * @return Whether the pickTimeSeriesFilter field is set. */ @java.lang.Override @@ -2227,11 +2551,15 @@ public boolean hasPickTimeSeriesFilter() { return outputFilterCase_ == 4; } /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * + * * @return The pickTimeSeriesFilter. */ @java.lang.Override @@ -2249,13 +2577,17 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeries } } /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * */ - public Builder setPickTimeSeriesFilter(com.google.monitoring.dashboard.v1.PickTimeSeriesFilter value) { + public Builder setPickTimeSeriesFilter( + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter value) { if (pickTimeSeriesFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2269,11 +2601,14 @@ public Builder setPickTimeSeriesFilter(com.google.monitoring.dashboard.v1.PickTi return this; } /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * */ public Builder setPickTimeSeriesFilter( com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder builderForValue) { @@ -2287,18 +2622,26 @@ public Builder setPickTimeSeriesFilter( return this; } /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * */ - public Builder mergePickTimeSeriesFilter(com.google.monitoring.dashboard.v1.PickTimeSeriesFilter value) { + public Builder mergePickTimeSeriesFilter( + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter value) { if (pickTimeSeriesFilterBuilder_ == null) { - if (outputFilterCase_ == 4 && - outputFilter_ != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance()) { - outputFilter_ = com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.newBuilder((com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_) - .mergeFrom(value).buildPartial(); + if (outputFilterCase_ == 4 + && outputFilter_ + != com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance()) { + outputFilter_ = + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.newBuilder( + (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_) + .mergeFrom(value) + .buildPartial(); } else { outputFilter_ = value; } @@ -2314,11 +2657,14 @@ public Builder mergePickTimeSeriesFilter(com.google.monitoring.dashboard.v1.Pick return this; } /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * */ public Builder clearPickTimeSeriesFilter() { if (pickTimeSeriesFilterBuilder_ == null) { @@ -2337,24 +2683,32 @@ public Builder clearPickTimeSeriesFilter() { return this; } /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * */ - public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder getPickTimeSeriesFilterBuilder() { + public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder + getPickTimeSeriesFilterBuilder() { return getPickTimeSeriesFilterFieldBuilder().getBuilder(); } /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * */ @java.lang.Override - public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickTimeSeriesFilterOrBuilder() { + public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder + getPickTimeSeriesFilterOrBuilder() { if ((outputFilterCase_ == 4) && (pickTimeSeriesFilterBuilder_ != null)) { return pickTimeSeriesFilterBuilder_.getMessageOrBuilder(); } else { @@ -2365,21 +2719,30 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT } } /** + * + * *
                * Ranking based time series filter.
                * 
          * - * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder> + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, + com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder> getPickTimeSeriesFilterFieldBuilder() { if (pickTimeSeriesFilterBuilder_ == null) { if (!(outputFilterCase_ == 4)) { - outputFilter_ = com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance(); + outputFilter_ = + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.getDefaultInstance(); } - pickTimeSeriesFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder>( + pickTimeSeriesFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter, + com.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Builder, + com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder>( (com.google.monitoring.dashboard.v1.PickTimeSeriesFilter) outputFilter_, getParentForChildren(), isClean()); @@ -2391,35 +2754,53 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder> statisticalTimeSeriesFilterBuilder_; + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder> + statisticalTimeSeriesFilterBuilder_; /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is deprecated. - * See google/monitoring/dashboard/v1/metrics.proto;l=129 + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * + * @deprecated + * google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is + * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=129 * @return Whether the statisticalTimeSeriesFilter field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasStatisticalTimeSeriesFilter() { + @java.lang.Deprecated + public boolean hasStatisticalTimeSeriesFilter() { return outputFilterCase_ == 5; } /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is deprecated. - * See google/monitoring/dashboard/v1/metrics.proto;l=129 + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * + * @deprecated + * google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is + * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=129 * @return The statisticalTimeSeriesFilter. */ @java.lang.Override - @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getStatisticalTimeSeriesFilter() { + @java.lang.Deprecated + public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter + getStatisticalTimeSeriesFilter() { if (statisticalTimeSeriesFilterBuilder_ == null) { if (outputFilterCase_ == 5) { return (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_; @@ -2433,14 +2814,20 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT } } /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setStatisticalTimeSeriesFilter(com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter value) { + @java.lang.Deprecated + public Builder setStatisticalTimeSeriesFilter( + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter value) { if (statisticalTimeSeriesFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2454,14 +2841,19 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT return this; } /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setStatisticalTimeSeriesFilter( + @java.lang.Deprecated + public Builder setStatisticalTimeSeriesFilter( com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder builderForValue) { if (statisticalTimeSeriesFilterBuilder_ == null) { outputFilter_ = builderForValue.build(); @@ -2473,19 +2865,31 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT return this; } /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder mergeStatisticalTimeSeriesFilter(com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter value) { + @java.lang.Deprecated + public Builder mergeStatisticalTimeSeriesFilter( + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter value) { if (statisticalTimeSeriesFilterBuilder_ == null) { - if (outputFilterCase_ == 5 && - outputFilter_ != com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance()) { - outputFilter_ = com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.newBuilder((com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_) - .mergeFrom(value).buildPartial(); + if (outputFilterCase_ == 5 + && outputFilter_ + != com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter + .getDefaultInstance()) { + outputFilter_ = + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.newBuilder( + (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) + outputFilter_) + .mergeFrom(value) + .buildPartial(); } else { outputFilter_ = value; } @@ -2501,14 +2905,19 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT return this; } /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearStatisticalTimeSeriesFilter() { + @java.lang.Deprecated + public Builder clearStatisticalTimeSeriesFilter() { if (statisticalTimeSeriesFilterBuilder_ == null) { if (outputFilterCase_ == 5) { outputFilterCase_ = 0; @@ -2525,26 +2934,38 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT return this; } /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder getStatisticalTimeSeriesFilterBuilder() { + @java.lang.Deprecated + public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder + getStatisticalTimeSeriesFilterBuilder() { return getStatisticalTimeSeriesFilterFieldBuilder().getBuilder(); } /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder getStatisticalTimeSeriesFilterOrBuilder() { + @java.lang.Deprecated + public com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder + getStatisticalTimeSeriesFilterOrBuilder() { if ((outputFilterCase_ == 5) && (statisticalTimeSeriesFilterBuilder_ != null)) { return statisticalTimeSeriesFilterBuilder_.getMessageOrBuilder(); } else { @@ -2555,22 +2976,32 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT } } /** + * + * *
                * Statistics based time series filter.
                * Note: This field is deprecated and completely ignored by the API.
                * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder> + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder> getStatisticalTimeSeriesFilterFieldBuilder() { if (statisticalTimeSeriesFilterBuilder_ == null) { if (!(outputFilterCase_ == 5)) { - outputFilter_ = com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance(); + outputFilter_ = + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.getDefaultInstance(); } - statisticalTimeSeriesFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder>( + statisticalTimeSeriesFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter, + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Builder, + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder>( (com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter) outputFilter_, getParentForChildren(), isClean()); @@ -2580,9 +3011,9 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickT onChanged(); return statisticalTimeSeriesFilterBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2592,12 +3023,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.TimeSeriesFilterRatio) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.TimeSeriesFilterRatio) private static final com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio(); } @@ -2606,27 +3037,27 @@ public static com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeriesFilterRatio 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeriesFilterRatio 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; @@ -2641,6 +3072,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/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 similarity index 68% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatioOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatioOrBuilder.java index 4941f4b93aaa..7944de7f0248 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/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 @@ -1,86 +1,128 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/metrics.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface TimeSeriesFilterRatioOrBuilder extends +public interface TimeSeriesFilterRatioOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TimeSeriesFilterRatio) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * The numerator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; + * * @return Whether the numerator field is set. */ boolean hasNumerator(); /** + * + * *
              * The numerator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; + * * @return The numerator. */ com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getNumerator(); /** + * + * *
              * The numerator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart numerator = 1; */ - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder getNumeratorOrBuilder(); + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder + getNumeratorOrBuilder(); /** + * + * *
              * The denominator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; + * * @return Whether the denominator field is set. */ boolean hasDenominator(); /** + * + * *
              * The denominator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; + * * @return The denominator. */ com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart getDenominator(); /** + * + * *
              * The denominator of the ratio.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart denominator = 2; */ - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder getDenominatorOrBuilder(); + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPartOrBuilder + getDenominatorOrBuilder(); /** + * + * *
              * Apply a second aggregation after the ratio is computed.
              * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; + * * @return Whether the secondaryAggregation field is set. */ boolean hasSecondaryAggregation(); /** + * + * *
              * Apply a second aggregation after the ratio is computed.
              * 
          * * .google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3; + * * @return The secondaryAggregation. */ com.google.monitoring.dashboard.v1.Aggregation getSecondaryAggregation(); /** + * + * *
              * Apply a second aggregation after the ratio is computed.
              * 
          @@ -90,65 +132,92 @@ public interface TimeSeriesFilterRatioOrBuilder extends com.google.monitoring.dashboard.v1.AggregationOrBuilder getSecondaryAggregationOrBuilder(); /** + * + * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * * @return Whether the pickTimeSeriesFilter field is set. */ boolean hasPickTimeSeriesFilter(); /** + * + * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; + * * @return The pickTimeSeriesFilter. */ com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeriesFilter(); /** + * + * *
              * Ranking based time series filter.
              * 
          * * .google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4; */ - com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder getPickTimeSeriesFilterOrBuilder(); + com.google.monitoring.dashboard.v1.PickTimeSeriesFilterOrBuilder + getPickTimeSeriesFilterOrBuilder(); /** + * + * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is deprecated. - * See google/monitoring/dashboard/v1/metrics.proto;l=129 + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter + * is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=129 * @return Whether the statisticalTimeSeriesFilter field is set. */ - @java.lang.Deprecated boolean hasStatisticalTimeSeriesFilter(); + @java.lang.Deprecated + boolean hasStatisticalTimeSeriesFilter(); /** + * + * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; - * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is deprecated. - * See google/monitoring/dashboard/v1/metrics.proto;l=129 + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * + * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter + * is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=129 * @return The statisticalTimeSeriesFilter. */ - @java.lang.Deprecated com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getStatisticalTimeSeriesFilter(); + @java.lang.Deprecated + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter getStatisticalTimeSeriesFilter(); /** + * + * *
              * Statistics based time series filter.
              * Note: This field is deprecated and completely ignored by the API.
              * 
          * - * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * + * .google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder getStatisticalTimeSeriesFilterOrBuilder(); + @java.lang.Deprecated + com.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterOrBuilder + getStatisticalTimeSeriesFilterOrBuilder(); com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.OutputFilterCase getOutputFilterCase(); } diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQuery.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQuery.java similarity index 72% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQuery.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQuery.java index 38c441b42d8a..567583df5ba2 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQuery.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQuery.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/metrics.proto @@ -5,6 +20,8 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * TimeSeriesQuery collects the set of supported methods for querying time
            * series data from the Stackdriver metrics API.
          @@ -12,44 +29,49 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesQuery}
            */
          -public final class TimeSeriesQuery extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class TimeSeriesQuery extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TimeSeriesQuery)
               TimeSeriesQueryOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use TimeSeriesQuery.newBuilder() to construct.
             private TimeSeriesQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private TimeSeriesQuery() {
               unitOverride_ = "";
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new TimeSeriesQuery();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.MetricsProto
          +        .internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.MetricsProto
          +        .internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.TimeSeriesQuery.class, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder.class);
          +            com.google.monitoring.dashboard.v1.TimeSeriesQuery.class,
          +            com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder.class);
             }
           
             private int sourceCase_ = 0;
          +
             @SuppressWarnings("serial")
             private java.lang.Object source_;
          +
             public enum SourceCase
          -      implements com.google.protobuf.Internal.EnumLite,
          +      implements
          +          com.google.protobuf.Internal.EnumLite,
                     com.google.protobuf.AbstractMessage.InternalOneOfEnum {
               TIME_SERIES_FILTER(1),
               TIME_SERIES_FILTER_RATIO(2),
          @@ -57,6 +79,7 @@ public enum SourceCase
               PROMETHEUS_QUERY(6),
               SOURCE_NOT_SET(0);
               private final int value;
          +
               private SourceCase(int value) {
                 this.value = value;
               }
          @@ -72,32 +95,40 @@ public static SourceCase valueOf(int value) {
           
               public static SourceCase forNumber(int value) {
                 switch (value) {
          -        case 1: return TIME_SERIES_FILTER;
          -        case 2: return TIME_SERIES_FILTER_RATIO;
          -        case 3: return TIME_SERIES_QUERY_LANGUAGE;
          -        case 6: return PROMETHEUS_QUERY;
          -        case 0: return SOURCE_NOT_SET;
          -        default: return null;
          +        case 1:
          +          return TIME_SERIES_FILTER;
          +        case 2:
          +          return TIME_SERIES_FILTER_RATIO;
          +        case 3:
          +          return TIME_SERIES_QUERY_LANGUAGE;
          +        case 6:
          +          return PROMETHEUS_QUERY;
          +        case 0:
          +          return SOURCE_NOT_SET;
          +        default:
          +          return null;
                 }
               }
          +
               public int getNumber() {
                 return this.value;
               }
             };
           
          -  public SourceCase
          -  getSourceCase() {
          -    return SourceCase.forNumber(
          -        sourceCase_);
          +  public SourceCase getSourceCase() {
          +    return SourceCase.forNumber(sourceCase_);
             }
           
             public static final int TIME_SERIES_FILTER_FIELD_NUMBER = 1;
             /**
          +   *
          +   *
              * 
              * Filter parameters to fetch time series.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; + * * @return Whether the timeSeriesFilter field is set. */ @java.lang.Override @@ -105,21 +136,26 @@ public boolean hasTimeSeriesFilter() { return sourceCase_ == 1; } /** + * + * *
              * Filter parameters to fetch time series.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; + * * @return The timeSeriesFilter. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesFilter getTimeSeriesFilter() { if (sourceCase_ == 1) { - return (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_; + return (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_; } return com.google.monitoring.dashboard.v1.TimeSeriesFilter.getDefaultInstance(); } /** + * + * *
              * Filter parameters to fetch time series.
              * 
          @@ -127,20 +163,25 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilter getTimeSeriesFilter() * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder getTimeSeriesFilterOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder + getTimeSeriesFilterOrBuilder() { if (sourceCase_ == 1) { - return (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_; + return (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_; } return com.google.monitoring.dashboard.v1.TimeSeriesFilter.getDefaultInstance(); } public static final int TIME_SERIES_FILTER_RATIO_FIELD_NUMBER = 2; /** + * + * *
              * Parameters to fetch a ratio between two time series filters.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * + * * @return Whether the timeSeriesFilterRatio field is set. */ @java.lang.Override @@ -148,53 +189,67 @@ public boolean hasTimeSeriesFilterRatio() { return sourceCase_ == 2; } /** + * + * *
              * Parameters to fetch a ratio between two time series filters.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * + * * @return The timeSeriesFilterRatio. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio getTimeSeriesFilterRatio() { if (sourceCase_ == 2) { - return (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_; + return (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_; } return com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.getDefaultInstance(); } /** + * + * *
              * Parameters to fetch a ratio between two time series filters.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder getTimeSeriesFilterRatioOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder + getTimeSeriesFilterRatioOrBuilder() { if (sourceCase_ == 2) { - return (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_; + return (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_; } return com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.getDefaultInstance(); } public static final int TIME_SERIES_QUERY_LANGUAGE_FIELD_NUMBER = 3; /** + * + * *
              * A query used to fetch time series with MQL.
              * 
          * * string time_series_query_language = 3; + * * @return Whether the timeSeriesQueryLanguage field is set. */ public boolean hasTimeSeriesQueryLanguage() { return sourceCase_ == 3; } /** + * + * *
              * A query used to fetch time series with MQL.
              * 
          * * string time_series_query_language = 3; + * * @return The timeSeriesQueryLanguage. */ public java.lang.String getTimeSeriesQueryLanguage() { @@ -205,8 +260,7 @@ public java.lang.String getTimeSeriesQueryLanguage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 3) { source_ = s; @@ -215,23 +269,24 @@ public java.lang.String getTimeSeriesQueryLanguage() { } } /** + * + * *
              * A query used to fetch time series with MQL.
              * 
          * * string time_series_query_language = 3; + * * @return The bytes for timeSeriesQueryLanguage. */ - public com.google.protobuf.ByteString - getTimeSeriesQueryLanguageBytes() { + public com.google.protobuf.ByteString getTimeSeriesQueryLanguageBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCase_ == 3) { source_ = b; } @@ -243,22 +298,28 @@ public java.lang.String getTimeSeriesQueryLanguage() { public static final int PROMETHEUS_QUERY_FIELD_NUMBER = 6; /** + * + * *
              * A query used to fetch time series with PromQL.
              * 
          * * string prometheus_query = 6; + * * @return Whether the prometheusQuery field is set. */ public boolean hasPrometheusQuery() { return sourceCase_ == 6; } /** + * + * *
              * A query used to fetch time series with PromQL.
              * 
          * * string prometheus_query = 6; + * * @return The prometheusQuery. */ public java.lang.String getPrometheusQuery() { @@ -269,8 +330,7 @@ public java.lang.String getPrometheusQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 6) { source_ = s; @@ -279,23 +339,24 @@ public java.lang.String getPrometheusQuery() { } } /** + * + * *
              * A query used to fetch time series with PromQL.
              * 
          * * string prometheus_query = 6; + * * @return The bytes for prometheusQuery. */ - public com.google.protobuf.ByteString - getPrometheusQueryBytes() { + public com.google.protobuf.ByteString getPrometheusQueryBytes() { java.lang.Object ref = ""; if (sourceCase_ == 6) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCase_ == 6) { source_ = b; } @@ -306,9 +367,12 @@ public java.lang.String getPrometheusQuery() { } public static final int UNIT_OVERRIDE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object unitOverride_ = ""; /** + * + * *
              * The unit of data contained in fetched time series. If non-empty, this
              * unit will override any unit that accompanies fetched data. The format is
          @@ -318,6 +382,7 @@ public java.lang.String getPrometheusQuery() {
              * 
          * * string unit_override = 5; + * * @return The unitOverride. */ @java.lang.Override @@ -326,14 +391,15 @@ public java.lang.String getUnitOverride() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unitOverride_ = s; return s; } } /** + * + * *
              * The unit of data contained in fetched time series. If non-empty, this
              * unit will override any unit that accompanies fetched data. The format is
          @@ -343,16 +409,15 @@ public java.lang.String getUnitOverride() {
              * 
          * * string unit_override = 5; + * * @return The bytes for unitOverride. */ @java.lang.Override - public com.google.protobuf.ByteString - getUnitOverrideBytes() { + public com.google.protobuf.ByteString getUnitOverrideBytes() { java.lang.Object ref = unitOverride_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); unitOverride_ = b; return b; } else { @@ -363,6 +428,8 @@ public java.lang.String getUnitOverride() { public static final int OUTPUT_FULL_DURATION_FIELD_NUMBER = 7; private boolean outputFullDuration_ = false; /** + * + * *
              * Optional. If set, Cloud Monitoring will treat the full query duration as
              * the alignment period so that there will be only 1 output value.
          @@ -374,6 +441,7 @@ public java.lang.String getUnitOverride() {
              * 
          * * bool output_full_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The outputFullDuration. */ @java.lang.Override @@ -382,6 +450,7 @@ public boolean getOutputFullDuration() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -393,8 +462,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sourceCase_ == 1) { output.writeMessage(1, (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_); } @@ -423,12 +491,14 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_); } if (sourceCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_); } if (sourceCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); @@ -440,8 +510,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, source_); } if (outputFullDuration_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, outputFullDuration_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, outputFullDuration_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -451,34 +520,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.TimeSeriesQuery)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.TimeSeriesQuery other = (com.google.monitoring.dashboard.v1.TimeSeriesQuery) obj; + com.google.monitoring.dashboard.v1.TimeSeriesQuery other = + (com.google.monitoring.dashboard.v1.TimeSeriesQuery) obj; - if (!getUnitOverride() - .equals(other.getUnitOverride())) return false; - if (getOutputFullDuration() - != other.getOutputFullDuration()) return false; + if (!getUnitOverride().equals(other.getUnitOverride())) return false; + if (getOutputFullDuration() != other.getOutputFullDuration()) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getTimeSeriesFilter() - .equals(other.getTimeSeriesFilter())) return false; + if (!getTimeSeriesFilter().equals(other.getTimeSeriesFilter())) return false; break; case 2: - if (!getTimeSeriesFilterRatio() - .equals(other.getTimeSeriesFilterRatio())) return false; + if (!getTimeSeriesFilterRatio().equals(other.getTimeSeriesFilterRatio())) return false; break; case 3: - if (!getTimeSeriesQueryLanguage() - .equals(other.getTimeSeriesQueryLanguage())) return false; + if (!getTimeSeriesQueryLanguage().equals(other.getTimeSeriesQueryLanguage())) return false; break; case 6: - if (!getPrometheusQuery() - .equals(other.getPrometheusQuery())) return false; + if (!getPrometheusQuery().equals(other.getPrometheusQuery())) return false; break; case 0: default: @@ -497,8 +561,7 @@ public int hashCode() { hash = (37 * hash) + UNIT_OVERRIDE_FIELD_NUMBER; hash = (53 * hash) + getUnitOverride().hashCode(); hash = (37 * hash) + OUTPUT_FULL_DURATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOutputFullDuration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOutputFullDuration()); switch (sourceCase_) { case 1: hash = (37 * hash) + TIME_SERIES_FILTER_FIELD_NUMBER; @@ -525,98 +588,103 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TimeSeriesQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.TimeSeriesQuery 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.TimeSeriesQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.TimeSeriesQuery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.TimeSeriesQuery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * TimeSeriesQuery collects the set of supported methods for querying time
              * series data from the Stackdriver metrics API.
          @@ -624,33 +692,32 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesQuery}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.TimeSeriesQuery)
                 com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.MetricsProto
          +          .internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.MetricsProto
          +          .internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.TimeSeriesQuery.class, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder.class);
          +              com.google.monitoring.dashboard.v1.TimeSeriesQuery.class,
          +              com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.TimeSeriesQuery.newBuilder()
          -    private Builder() {
          -
          -    }
          +    private Builder() {}
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
          -
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -669,9 +736,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.MetricsProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.MetricsProto
          +          .internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor;
               }
           
               @java.lang.Override
          @@ -690,8 +757,11 @@ public com.google.monitoring.dashboard.v1.TimeSeriesQuery build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.TimeSeriesQuery buildPartial() {
          -      com.google.monitoring.dashboard.v1.TimeSeriesQuery result = new com.google.monitoring.dashboard.v1.TimeSeriesQuery(this);
          -      if (bitField0_ != 0) { buildPartial0(result); }
          +      com.google.monitoring.dashboard.v1.TimeSeriesQuery result =
          +          new com.google.monitoring.dashboard.v1.TimeSeriesQuery(this);
          +      if (bitField0_ != 0) {
          +        buildPartial0(result);
          +      }
                 buildPartialOneofs(result);
                 onBuilt();
                 return result;
          @@ -710,12 +780,10 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesQuery re
               private void buildPartialOneofs(com.google.monitoring.dashboard.v1.TimeSeriesQuery result) {
                 result.sourceCase_ = sourceCase_;
                 result.source_ = this.source_;
          -      if (sourceCase_ == 1 &&
          -          timeSeriesFilterBuilder_ != null) {
          +      if (sourceCase_ == 1 && timeSeriesFilterBuilder_ != null) {
                   result.source_ = timeSeriesFilterBuilder_.build();
                 }
          -      if (sourceCase_ == 2 &&
          -          timeSeriesFilterRatioBuilder_ != null) {
          +      if (sourceCase_ == 2 && timeSeriesFilterRatioBuilder_ != null) {
                   result.source_ = timeSeriesFilterRatioBuilder_.build();
                 }
               }
          @@ -724,38 +792,39 @@ private void buildPartialOneofs(com.google.monitoring.dashboard.v1.TimeSeriesQue
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.TimeSeriesQuery) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesQuery)other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesQuery) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -763,7 +832,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesQuery other) {
          -      if (other == com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance()) return this;
          +      if (other == com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance())
          +        return this;
                 if (!other.getUnitOverride().isEmpty()) {
                   unitOverride_ = other.unitOverride_;
                   bitField0_ |= 0x00000010;
          @@ -773,29 +843,34 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesQuery othe
                   setOutputFullDuration(other.getOutputFullDuration());
                 }
                 switch (other.getSourceCase()) {
          -        case TIME_SERIES_FILTER: {
          -          mergeTimeSeriesFilter(other.getTimeSeriesFilter());
          -          break;
          -        }
          -        case TIME_SERIES_FILTER_RATIO: {
          -          mergeTimeSeriesFilterRatio(other.getTimeSeriesFilterRatio());
          -          break;
          -        }
          -        case TIME_SERIES_QUERY_LANGUAGE: {
          -          sourceCase_ = 3;
          -          source_ = other.source_;
          -          onChanged();
          -          break;
          -        }
          -        case PROMETHEUS_QUERY: {
          -          sourceCase_ = 6;
          -          source_ = other.source_;
          -          onChanged();
          -          break;
          -        }
          -        case SOURCE_NOT_SET: {
          -          break;
          -        }
          +        case TIME_SERIES_FILTER:
          +          {
          +            mergeTimeSeriesFilter(other.getTimeSeriesFilter());
          +            break;
          +          }
          +        case TIME_SERIES_FILTER_RATIO:
          +          {
          +            mergeTimeSeriesFilterRatio(other.getTimeSeriesFilterRatio());
          +            break;
          +          }
          +        case TIME_SERIES_QUERY_LANGUAGE:
          +          {
          +            sourceCase_ = 3;
          +            source_ = other.source_;
          +            onChanged();
          +            break;
          +          }
          +        case PROMETHEUS_QUERY:
          +          {
          +            sourceCase_ = 6;
          +            source_ = other.source_;
          +            onChanged();
          +            break;
          +          }
          +        case SOURCE_NOT_SET:
          +          {
          +            break;
          +          }
                 }
                 this.mergeUnknownFields(other.getUnknownFields());
                 onChanged();
          @@ -823,48 +898,53 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10: {
          -              input.readMessage(
          -                  getTimeSeriesFilterFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              sourceCase_ = 1;
          -              break;
          -            } // case 10
          -            case 18: {
          -              input.readMessage(
          -                  getTimeSeriesFilterRatioFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              sourceCase_ = 2;
          -              break;
          -            } // case 18
          -            case 26: {
          -              java.lang.String s = input.readStringRequireUtf8();
          -              sourceCase_ = 3;
          -              source_ = s;
          -              break;
          -            } // case 26
          -            case 42: {
          -              unitOverride_ = input.readStringRequireUtf8();
          -              bitField0_ |= 0x00000010;
          -              break;
          -            } // case 42
          -            case 50: {
          -              java.lang.String s = input.readStringRequireUtf8();
          -              sourceCase_ = 6;
          -              source_ = s;
          -              break;
          -            } // case 50
          -            case 56: {
          -              outputFullDuration_ = input.readBool();
          -              bitField0_ |= 0x00000020;
          -              break;
          -            } // case 56
          -            default: {
          -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                done = true; // was an endgroup tag
          -              }
          -              break;
          -            } // default:
          +            case 10:
          +              {
          +                input.readMessage(
          +                    getTimeSeriesFilterFieldBuilder().getBuilder(), extensionRegistry);
          +                sourceCase_ = 1;
          +                break;
          +              } // case 10
          +            case 18:
          +              {
          +                input.readMessage(
          +                    getTimeSeriesFilterRatioFieldBuilder().getBuilder(), extensionRegistry);
          +                sourceCase_ = 2;
          +                break;
          +              } // case 18
          +            case 26:
          +              {
          +                java.lang.String s = input.readStringRequireUtf8();
          +                sourceCase_ = 3;
          +                source_ = s;
          +                break;
          +              } // case 26
          +            case 42:
          +              {
          +                unitOverride_ = input.readStringRequireUtf8();
          +                bitField0_ |= 0x00000010;
          +                break;
          +              } // case 42
          +            case 50:
          +              {
          +                java.lang.String s = input.readStringRequireUtf8();
          +                sourceCase_ = 6;
          +                source_ = s;
          +                break;
          +              } // case 50
          +            case 56:
          +              {
          +                outputFullDuration_ = input.readBool();
          +                bitField0_ |= 0x00000020;
          +                break;
          +              } // case 56
          +            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) {
          @@ -874,12 +954,12 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          +
               private int sourceCase_ = 0;
               private java.lang.Object source_;
          -    public SourceCase
          -        getSourceCase() {
          -      return SourceCase.forNumber(
          -          sourceCase_);
          +
          +    public SourceCase getSourceCase() {
          +      return SourceCase.forNumber(sourceCase_);
               }
           
               public Builder clearSource() {
          @@ -892,13 +972,19 @@ public Builder clearSource() {
               private int bitField0_;
           
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.TimeSeriesFilter, com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder> timeSeriesFilterBuilder_;
          +            com.google.monitoring.dashboard.v1.TimeSeriesFilter,
          +            com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder,
          +            com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder>
          +        timeSeriesFilterBuilder_;
               /**
          +     *
          +     *
                * 
                * Filter parameters to fetch time series.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; + * * @return Whether the timeSeriesFilter field is set. */ @java.lang.Override @@ -906,11 +992,14 @@ public boolean hasTimeSeriesFilter() { return sourceCase_ == 1; } /** + * + * *
                * Filter parameters to fetch time series.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; + * * @return The timeSeriesFilter. */ @java.lang.Override @@ -928,6 +1017,8 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilter getTimeSeriesFilter() } } /** + * + * *
                * Filter parameters to fetch time series.
                * 
          @@ -948,6 +1039,8 @@ public Builder setTimeSeriesFilter(com.google.monitoring.dashboard.v1.TimeSeries return this; } /** + * + * *
                * Filter parameters to fetch time series.
                * 
          @@ -966,18 +1059,25 @@ public Builder setTimeSeriesFilter( return this; } /** + * + * *
                * Filter parameters to fetch time series.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; */ - public Builder mergeTimeSeriesFilter(com.google.monitoring.dashboard.v1.TimeSeriesFilter value) { + public Builder mergeTimeSeriesFilter( + com.google.monitoring.dashboard.v1.TimeSeriesFilter value) { if (timeSeriesFilterBuilder_ == null) { - if (sourceCase_ == 1 && - source_ != com.google.monitoring.dashboard.v1.TimeSeriesFilter.getDefaultInstance()) { - source_ = com.google.monitoring.dashboard.v1.TimeSeriesFilter.newBuilder((com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_) - .mergeFrom(value).buildPartial(); + if (sourceCase_ == 1 + && source_ + != com.google.monitoring.dashboard.v1.TimeSeriesFilter.getDefaultInstance()) { + source_ = + com.google.monitoring.dashboard.v1.TimeSeriesFilter.newBuilder( + (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -993,6 +1093,8 @@ public Builder mergeTimeSeriesFilter(com.google.monitoring.dashboard.v1.TimeSeri return this; } /** + * + * *
                * Filter parameters to fetch time series.
                * 
          @@ -1016,16 +1118,21 @@ public Builder clearTimeSeriesFilter() { return this; } /** + * + * *
                * Filter parameters to fetch time series.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; */ - public com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder getTimeSeriesFilterBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder + getTimeSeriesFilterBuilder() { return getTimeSeriesFilterFieldBuilder().getBuilder(); } /** + * + * *
                * Filter parameters to fetch time series.
                * 
          @@ -1033,7 +1140,8 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder getTimeSeries * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder getTimeSeriesFilterOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder + getTimeSeriesFilterOrBuilder() { if ((sourceCase_ == 1) && (timeSeriesFilterBuilder_ != null)) { return timeSeriesFilterBuilder_.getMessageOrBuilder(); } else { @@ -1044,6 +1152,8 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder getTimeSerie } } /** + * + * *
                * Filter parameters to fetch time series.
                * 
          @@ -1051,14 +1161,19 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder getTimeSerie * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilter, com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder> + com.google.monitoring.dashboard.v1.TimeSeriesFilter, + com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder> getTimeSeriesFilterFieldBuilder() { if (timeSeriesFilterBuilder_ == null) { if (!(sourceCase_ == 1)) { source_ = com.google.monitoring.dashboard.v1.TimeSeriesFilter.getDefaultInstance(); } - timeSeriesFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilter, com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder>( + timeSeriesFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesFilter, + com.google.monitoring.dashboard.v1.TimeSeriesFilter.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder>( (com.google.monitoring.dashboard.v1.TimeSeriesFilter) source_, getParentForChildren(), isClean()); @@ -1070,13 +1185,20 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder getTimeSerie } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder> timeSeriesFilterRatioBuilder_; + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio, + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder> + timeSeriesFilterRatioBuilder_; /** + * + * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * + * * @return Whether the timeSeriesFilterRatio field is set. */ @java.lang.Override @@ -1084,11 +1206,15 @@ public boolean hasTimeSeriesFilterRatio() { return sourceCase_ == 2; } /** + * + * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * + * * @return The timeSeriesFilterRatio. */ @java.lang.Override @@ -1106,13 +1232,17 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio getTimeSeriesFil } } /** + * + * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * */ - public Builder setTimeSeriesFilterRatio(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio value) { + public Builder setTimeSeriesFilterRatio( + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio value) { if (timeSeriesFilterRatioBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1126,11 +1256,14 @@ public Builder setTimeSeriesFilterRatio(com.google.monitoring.dashboard.v1.TimeS return this; } /** + * + * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * */ public Builder setTimeSeriesFilterRatio( com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder builderForValue) { @@ -1144,18 +1277,26 @@ public Builder setTimeSeriesFilterRatio( return this; } /** + * + * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * */ - public Builder mergeTimeSeriesFilterRatio(com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio value) { + public Builder mergeTimeSeriesFilterRatio( + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio value) { if (timeSeriesFilterRatioBuilder_ == null) { - if (sourceCase_ == 2 && - source_ != com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.getDefaultInstance()) { - source_ = com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.newBuilder((com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_) - .mergeFrom(value).buildPartial(); + if (sourceCase_ == 2 + && source_ + != com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.getDefaultInstance()) { + source_ = + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.newBuilder( + (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -1171,11 +1312,14 @@ public Builder mergeTimeSeriesFilterRatio(com.google.monitoring.dashboard.v1.Tim return this; } /** + * + * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * */ public Builder clearTimeSeriesFilterRatio() { if (timeSeriesFilterRatioBuilder_ == null) { @@ -1194,24 +1338,32 @@ public Builder clearTimeSeriesFilterRatio() { return this; } /** + * + * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * */ - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder getTimeSeriesFilterRatioBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder + getTimeSeriesFilterRatioBuilder() { return getTimeSeriesFilterRatioFieldBuilder().getBuilder(); } /** + * + * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder getTimeSeriesFilterRatioOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder + getTimeSeriesFilterRatioOrBuilder() { if ((sourceCase_ == 2) && (timeSeriesFilterRatioBuilder_ != null)) { return timeSeriesFilterRatioBuilder_.getMessageOrBuilder(); } else { @@ -1222,21 +1374,29 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder getTime } } /** + * + * *
                * Parameters to fetch a ratio between two time series filters.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder> + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio, + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder> getTimeSeriesFilterRatioFieldBuilder() { if (timeSeriesFilterRatioBuilder_ == null) { if (!(sourceCase_ == 2)) { source_ = com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.getDefaultInstance(); } - timeSeriesFilterRatioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder, com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder>( + timeSeriesFilterRatioBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio, + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder>( (com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio) source_, getParentForChildren(), isClean()); @@ -1248,11 +1408,14 @@ public com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder getTime } /** + * + * *
                * A query used to fetch time series with MQL.
                * 
          * * string time_series_query_language = 3; + * * @return Whether the timeSeriesQueryLanguage field is set. */ @java.lang.Override @@ -1260,11 +1423,14 @@ public boolean hasTimeSeriesQueryLanguage() { return sourceCase_ == 3; } /** + * + * *
                * A query used to fetch time series with MQL.
                * 
          * * string time_series_query_language = 3; + * * @return The timeSeriesQueryLanguage. */ @java.lang.Override @@ -1274,8 +1440,7 @@ public java.lang.String getTimeSeriesQueryLanguage() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 3) { source_ = s; @@ -1286,24 +1451,25 @@ public java.lang.String getTimeSeriesQueryLanguage() { } } /** + * + * *
                * A query used to fetch time series with MQL.
                * 
          * * string time_series_query_language = 3; + * * @return The bytes for timeSeriesQueryLanguage. */ @java.lang.Override - public com.google.protobuf.ByteString - getTimeSeriesQueryLanguageBytes() { + public com.google.protobuf.ByteString getTimeSeriesQueryLanguageBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCase_ == 3) { source_ = b; } @@ -1313,28 +1479,35 @@ public java.lang.String getTimeSeriesQueryLanguage() { } } /** + * + * *
                * A query used to fetch time series with MQL.
                * 
          * * string time_series_query_language = 3; + * * @param value The timeSeriesQueryLanguage to set. * @return This builder for chaining. */ - public Builder setTimeSeriesQueryLanguage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTimeSeriesQueryLanguage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceCase_ = 3; source_ = value; onChanged(); return this; } /** + * + * *
                * A query used to fetch time series with MQL.
                * 
          * * string time_series_query_language = 3; + * * @return This builder for chaining. */ public Builder clearTimeSeriesQueryLanguage() { @@ -1346,17 +1519,21 @@ public Builder clearTimeSeriesQueryLanguage() { return this; } /** + * + * *
                * A query used to fetch time series with MQL.
                * 
          * * string time_series_query_language = 3; + * * @param value The bytes for timeSeriesQueryLanguage to set. * @return This builder for chaining. */ - public Builder setTimeSeriesQueryLanguageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTimeSeriesQueryLanguageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceCase_ = 3; source_ = value; @@ -1365,11 +1542,14 @@ public Builder setTimeSeriesQueryLanguageBytes( } /** + * + * *
                * A query used to fetch time series with PromQL.
                * 
          * * string prometheus_query = 6; + * * @return Whether the prometheusQuery field is set. */ @java.lang.Override @@ -1377,11 +1557,14 @@ public boolean hasPrometheusQuery() { return sourceCase_ == 6; } /** + * + * *
                * A query used to fetch time series with PromQL.
                * 
          * * string prometheus_query = 6; + * * @return The prometheusQuery. */ @java.lang.Override @@ -1391,8 +1574,7 @@ public java.lang.String getPrometheusQuery() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 6) { source_ = s; @@ -1403,24 +1585,25 @@ public java.lang.String getPrometheusQuery() { } } /** + * + * *
                * A query used to fetch time series with PromQL.
                * 
          * * string prometheus_query = 6; + * * @return The bytes for prometheusQuery. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrometheusQueryBytes() { + public com.google.protobuf.ByteString getPrometheusQueryBytes() { java.lang.Object ref = ""; if (sourceCase_ == 6) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCase_ == 6) { source_ = b; } @@ -1430,28 +1613,35 @@ public java.lang.String getPrometheusQuery() { } } /** + * + * *
                * A query used to fetch time series with PromQL.
                * 
          * * string prometheus_query = 6; + * * @param value The prometheusQuery to set. * @return This builder for chaining. */ - public Builder setPrometheusQuery( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrometheusQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceCase_ = 6; source_ = value; onChanged(); return this; } /** + * + * *
                * A query used to fetch time series with PromQL.
                * 
          * * string prometheus_query = 6; + * * @return This builder for chaining. */ public Builder clearPrometheusQuery() { @@ -1463,17 +1653,21 @@ public Builder clearPrometheusQuery() { return this; } /** + * + * *
                * A query used to fetch time series with PromQL.
                * 
          * * string prometheus_query = 6; + * * @param value The bytes for prometheusQuery to set. * @return This builder for chaining. */ - public Builder setPrometheusQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrometheusQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceCase_ = 6; source_ = value; @@ -1483,6 +1677,8 @@ public Builder setPrometheusQueryBytes( private java.lang.Object unitOverride_ = ""; /** + * + * *
                * The unit of data contained in fetched time series. If non-empty, this
                * unit will override any unit that accompanies fetched data. The format is
          @@ -1492,13 +1688,13 @@ public Builder setPrometheusQueryBytes(
                * 
          * * string unit_override = 5; + * * @return The unitOverride. */ public java.lang.String getUnitOverride() { java.lang.Object ref = unitOverride_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unitOverride_ = s; return s; @@ -1507,6 +1703,8 @@ public java.lang.String getUnitOverride() { } } /** + * + * *
                * The unit of data contained in fetched time series. If non-empty, this
                * unit will override any unit that accompanies fetched data. The format is
          @@ -1516,15 +1714,14 @@ public java.lang.String getUnitOverride() {
                * 
          * * string unit_override = 5; + * * @return The bytes for unitOverride. */ - public com.google.protobuf.ByteString - getUnitOverrideBytes() { + public com.google.protobuf.ByteString getUnitOverrideBytes() { java.lang.Object ref = unitOverride_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); unitOverride_ = b; return b; } else { @@ -1532,6 +1729,8 @@ public java.lang.String getUnitOverride() { } } /** + * + * *
                * The unit of data contained in fetched time series. If non-empty, this
                * unit will override any unit that accompanies fetched data. The format is
          @@ -1541,18 +1740,22 @@ public java.lang.String getUnitOverride() {
                * 
          * * string unit_override = 5; + * * @param value The unitOverride to set. * @return This builder for chaining. */ - public Builder setUnitOverride( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnitOverride(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } unitOverride_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
                * The unit of data contained in fetched time series. If non-empty, this
                * unit will override any unit that accompanies fetched data. The format is
          @@ -1562,6 +1765,7 @@ public Builder setUnitOverride(
                * 
          * * string unit_override = 5; + * * @return This builder for chaining. */ public Builder clearUnitOverride() { @@ -1571,6 +1775,8 @@ public Builder clearUnitOverride() { return this; } /** + * + * *
                * The unit of data contained in fetched time series. If non-empty, this
                * unit will override any unit that accompanies fetched data. The format is
          @@ -1580,12 +1786,14 @@ public Builder clearUnitOverride() {
                * 
          * * string unit_override = 5; + * * @param value The bytes for unitOverride to set. * @return This builder for chaining. */ - public Builder setUnitOverrideBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnitOverrideBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); unitOverride_ = value; bitField0_ |= 0x00000010; @@ -1593,8 +1801,10 @@ public Builder setUnitOverrideBytes( return this; } - private boolean outputFullDuration_ ; + private boolean outputFullDuration_; /** + * + * *
                * Optional. If set, Cloud Monitoring will treat the full query duration as
                * the alignment period so that there will be only 1 output value.
          @@ -1606,6 +1816,7 @@ public Builder setUnitOverrideBytes(
                * 
          * * bool output_full_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The outputFullDuration. */ @java.lang.Override @@ -1613,6 +1824,8 @@ public boolean getOutputFullDuration() { return outputFullDuration_; } /** + * + * *
                * Optional. If set, Cloud Monitoring will treat the full query duration as
                * the alignment period so that there will be only 1 output value.
          @@ -1624,6 +1837,7 @@ public boolean getOutputFullDuration() {
                * 
          * * bool output_full_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The outputFullDuration to set. * @return This builder for chaining. */ @@ -1635,6 +1849,8 @@ public Builder setOutputFullDuration(boolean value) { return this; } /** + * + * *
                * Optional. If set, Cloud Monitoring will treat the full query duration as
                * the alignment period so that there will be only 1 output value.
          @@ -1646,6 +1862,7 @@ public Builder setOutputFullDuration(boolean value) {
                * 
          * * bool output_full_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOutputFullDuration() { @@ -1654,9 +1871,9 @@ public Builder clearOutputFullDuration() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1666,12 +1883,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.TimeSeriesQuery) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.TimeSeriesQuery) private static final com.google.monitoring.dashboard.v1.TimeSeriesQuery DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.TimeSeriesQuery(); } @@ -1680,27 +1897,27 @@ public static com.google.monitoring.dashboard.v1.TimeSeriesQuery getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeriesQuery 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeriesQuery 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; @@ -1715,6 +1932,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.TimeSeriesQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQueryOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQueryOrBuilder.java similarity index 79% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQueryOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQueryOrBuilder.java index 76ed3ca3a6dc..a0d965636079 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQueryOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesQueryOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/metrics.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface TimeSeriesQueryOrBuilder extends +public interface TimeSeriesQueryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TimeSeriesQuery) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Filter parameters to fetch time series.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; + * * @return Whether the timeSeriesFilter field is set. */ boolean hasTimeSeriesFilter(); /** + * + * *
              * Filter parameters to fetch time series.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1; + * * @return The timeSeriesFilter. */ com.google.monitoring.dashboard.v1.TimeSeriesFilter getTimeSeriesFilter(); /** + * + * *
              * Filter parameters to fetch time series.
              * 
          @@ -36,91 +60,121 @@ public interface TimeSeriesQueryOrBuilder extends com.google.monitoring.dashboard.v1.TimeSeriesFilterOrBuilder getTimeSeriesFilterOrBuilder(); /** + * + * *
              * Parameters to fetch a ratio between two time series filters.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * + * * @return Whether the timeSeriesFilterRatio field is set. */ boolean hasTimeSeriesFilterRatio(); /** + * + * *
              * Parameters to fetch a ratio between two time series filters.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * + * * @return The timeSeriesFilterRatio. */ com.google.monitoring.dashboard.v1.TimeSeriesFilterRatio getTimeSeriesFilterRatio(); /** + * + * *
              * Parameters to fetch a ratio between two time series filters.
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * .google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2; + * */ - com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder getTimeSeriesFilterRatioOrBuilder(); + com.google.monitoring.dashboard.v1.TimeSeriesFilterRatioOrBuilder + getTimeSeriesFilterRatioOrBuilder(); /** + * + * *
              * A query used to fetch time series with MQL.
              * 
          * * string time_series_query_language = 3; + * * @return Whether the timeSeriesQueryLanguage field is set. */ boolean hasTimeSeriesQueryLanguage(); /** + * + * *
              * A query used to fetch time series with MQL.
              * 
          * * string time_series_query_language = 3; + * * @return The timeSeriesQueryLanguage. */ java.lang.String getTimeSeriesQueryLanguage(); /** + * + * *
              * A query used to fetch time series with MQL.
              * 
          * * string time_series_query_language = 3; + * * @return The bytes for timeSeriesQueryLanguage. */ - com.google.protobuf.ByteString - getTimeSeriesQueryLanguageBytes(); + com.google.protobuf.ByteString getTimeSeriesQueryLanguageBytes(); /** + * + * *
              * A query used to fetch time series with PromQL.
              * 
          * * string prometheus_query = 6; + * * @return Whether the prometheusQuery field is set. */ boolean hasPrometheusQuery(); /** + * + * *
              * A query used to fetch time series with PromQL.
              * 
          * * string prometheus_query = 6; + * * @return The prometheusQuery. */ java.lang.String getPrometheusQuery(); /** + * + * *
              * A query used to fetch time series with PromQL.
              * 
          * * string prometheus_query = 6; + * * @return The bytes for prometheusQuery. */ - com.google.protobuf.ByteString - getPrometheusQueryBytes(); + com.google.protobuf.ByteString getPrometheusQueryBytes(); /** + * + * *
              * The unit of data contained in fetched time series. If non-empty, this
              * unit will override any unit that accompanies fetched data. The format is
          @@ -130,10 +184,13 @@ public interface TimeSeriesQueryOrBuilder extends
              * 
          * * string unit_override = 5; + * * @return The unitOverride. */ java.lang.String getUnitOverride(); /** + * + * *
              * The unit of data contained in fetched time series. If non-empty, this
              * unit will override any unit that accompanies fetched data. The format is
          @@ -143,12 +200,14 @@ public interface TimeSeriesQueryOrBuilder extends
              * 
          * * string unit_override = 5; + * * @return The bytes for unitOverride. */ - com.google.protobuf.ByteString - getUnitOverrideBytes(); + com.google.protobuf.ByteString getUnitOverrideBytes(); /** + * + * *
              * Optional. If set, Cloud Monitoring will treat the full query duration as
              * the alignment period so that there will be only 1 output value.
          @@ -160,6 +219,7 @@ public interface TimeSeriesQueryOrBuilder extends
              * 
          * * bool output_full_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The outputFullDuration. */ boolean getOutputFullDuration(); diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/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 similarity index 63% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java index 4fe59b742d4f..07b23abd1187 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/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 @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/table.proto @@ -5,21 +20,24 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A table that displays time series data.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesTable} */ -public final class TimeSeriesTable extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TimeSeriesTable extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TimeSeriesTable) TimeSeriesTableOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TimeSeriesTable.newBuilder() to construct. private TimeSeriesTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TimeSeriesTable() { dataSets_ = java.util.Collections.emptyList(); metricVisualization_ = 0; @@ -28,34 +46,38 @@ private TimeSeriesTable() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TimeSeriesTable(); } - 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_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 + 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); + com.google.monitoring.dashboard.v1.TimeSeriesTable.class, + 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 { + public enum MetricVisualization implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                * Unspecified state
                * 
          @@ -64,6 +86,8 @@ public enum MetricVisualization */ METRIC_VISUALIZATION_UNSPECIFIED(0), /** + * + * *
                * Default text rendering
                * 
          @@ -72,6 +96,8 @@ public enum MetricVisualization */ NUMBER(1), /** + * + * *
                * Horizontal bar rendering
                * 
          @@ -83,6 +109,8 @@ public enum MetricVisualization ; /** + * + * *
                * Unspecified state
                * 
          @@ -91,6 +119,8 @@ public enum MetricVisualization */ public static final int METRIC_VISUALIZATION_UNSPECIFIED_VALUE = 0; /** + * + * *
                * Default text rendering
                * 
          @@ -99,6 +129,8 @@ public enum MetricVisualization */ public static final int NUMBER_VALUE = 1; /** + * + * *
                * Horizontal bar rendering
                * 
          @@ -107,7 +139,6 @@ public enum MetricVisualization */ public static final int BAR_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -132,10 +163,14 @@ public static MetricVisualization valueOf(int 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; + case 0: + return METRIC_VISUALIZATION_UNSPECIFIED; + case 1: + return NUMBER; + case 2: + return BAR; + default: + return null; } } @@ -143,29 +178,31 @@ public static MetricVisualization forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - MetricVisualization> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MetricVisualization findValueByNumber(int number) { - return MetricVisualization.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + 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() { + + 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); + + 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(); @@ -173,8 +210,7 @@ public MetricVisualization findValueByNumber(int number) { 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."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -191,41 +227,58 @@ private MetricVisualization(int value) { // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization) } - public interface TableDataSetOrBuilder extends + public interface TableDataSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the timeSeriesQuery field is set. */ boolean hasTimeSeriesQuery(); /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The timeSeriesQuery. */ com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery(); /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder(); /** + * + * *
                * Optional. A template string for naming `TimeSeries` in the resulting data
                * set. This should be a string with interpolations of the form
          @@ -234,10 +287,13 @@ public interface TableDataSetOrBuilder extends
                * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The tableTemplate. */ 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
          @@ -246,12 +302,14 @@ public interface TableDataSetOrBuilder extends
                * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for tableTemplate. */ - com.google.protobuf.ByteString - getTableTemplateBytes(); + 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
          @@ -260,11 +318,16 @@ public interface TableDataSetOrBuilder extends
                * 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]; + * + * * @return Whether the minAlignmentPeriod field is set. */ 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
          @@ -273,11 +336,16 @@ public interface TableDataSetOrBuilder extends
                * 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]; + * + * * @return The minAlignmentPeriod. */ 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
          @@ -286,90 +354,116 @@ public interface TableDataSetOrBuilder extends
                * 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]; + * */ com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder(); /** + * + * *
                * Optional. Table display options for configuring how the table is
                * rendered.
                * 
          * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the tableDisplayOptions field is set. */ boolean hasTableDisplayOptions(); /** + * + * *
                * Optional. Table display options for configuring how the table is
                * rendered.
                * 
          * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The tableDisplayOptions. */ com.google.monitoring.dashboard.v1.TableDisplayOptions getTableDisplayOptions(); /** + * + * *
                * Optional. Table display options for configuring how the table is
                * rendered.
                * 
          * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder getTableDisplayOptionsOrBuilder(); + com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder + getTableDisplayOptionsOrBuilder(); } /** + * + * *
              * Groups a time series query definition with table options.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet} */ - public static final class TableDataSet extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TableDataSet extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) TableDataSetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableDataSet.newBuilder() to construct. private TableDataSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TableDataSet() { tableTemplate_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TableDataSet(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.TableProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_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_TableDataSet_fieldAccessorTable + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.class, com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder.class); + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.class, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder.class); } private int bitField0_; public static final int TIME_SERIES_QUERY_FIELD_NUMBER = 1; private com.google.monitoring.dashboard.v1.TimeSeriesQuery timeSeriesQuery_; /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the timeSeriesQuery field is set. */ @java.lang.Override @@ -377,35 +471,52 @@ public boolean hasTimeSeriesQuery() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The timeSeriesQuery. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() { - return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + return timeSeriesQuery_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() + : timeSeriesQuery_; } /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder() { - return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder + getTimeSeriesQueryOrBuilder() { + return timeSeriesQuery_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() + : timeSeriesQuery_; } public static final int TABLE_TEMPLATE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object tableTemplate_ = ""; /** + * + * *
                * Optional. A template string for naming `TimeSeries` in the resulting data
                * set. This should be a string with interpolations of the form
          @@ -414,6 +525,7 @@ public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeries
                * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The tableTemplate. */ @java.lang.Override @@ -422,14 +534,15 @@ public java.lang.String getTableTemplate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableTemplate_ = s; return s; } } /** + * + * *
                * Optional. A template string for naming `TimeSeries` in the resulting data
                * set. This should be a string with interpolations of the form
          @@ -438,16 +551,15 @@ public java.lang.String getTableTemplate() {
                * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for tableTemplate. */ @java.lang.Override - public com.google.protobuf.ByteString - getTableTemplateBytes() { + public com.google.protobuf.ByteString getTableTemplateBytes() { java.lang.Object ref = tableTemplate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tableTemplate_ = b; return b; } else { @@ -458,6 +570,8 @@ public java.lang.String getTableTemplate() { public static final int MIN_ALIGNMENT_PERIOD_FIELD_NUMBER = 3; private com.google.protobuf.Duration minAlignmentPeriod_; /** + * + * *
                * Optional. The lower bound on data point frequency for this data set,
                * implemented by specifying the minimum alignment period to use in a time
          @@ -466,7 +580,10 @@ public java.lang.String getTableTemplate() {
                * 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]; + * + * * @return Whether the minAlignmentPeriod field is set. */ @java.lang.Override @@ -474,6 +591,8 @@ public boolean hasMinAlignmentPeriod() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * Optional. The lower bound on data point frequency for this data set,
                * implemented by specifying the minimum alignment period to use in a time
          @@ -482,14 +601,21 @@ public boolean hasMinAlignmentPeriod() {
                * 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]; + * + * * @return The minAlignmentPeriod. */ @java.lang.Override public com.google.protobuf.Duration getMinAlignmentPeriod() { - return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + return minAlignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minAlignmentPeriod_; } /** + * + * *
                * Optional. The lower bound on data point frequency for this data set,
                * implemented by specifying the minimum alignment period to use in a time
          @@ -498,22 +624,31 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() {
                * 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]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { - return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + return minAlignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minAlignmentPeriod_; } public static final int TABLE_DISPLAY_OPTIONS_FIELD_NUMBER = 4; private com.google.monitoring.dashboard.v1.TableDisplayOptions tableDisplayOptions_; /** + * + * *
                * Optional. Table display options for configuring how the table is
                * rendered.
                * 
          * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the tableDisplayOptions field is set. */ @java.lang.Override @@ -521,32 +656,47 @@ public boolean hasTableDisplayOptions() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                * Optional. Table display options for configuring how the table is
                * rendered.
                * 
          * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The tableDisplayOptions. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TableDisplayOptions getTableDisplayOptions() { - return tableDisplayOptions_ == null ? com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance() : tableDisplayOptions_; + return tableDisplayOptions_ == null + ? com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance() + : tableDisplayOptions_; } /** + * + * *
                * Optional. Table display options for configuring how the table is
                * rendered.
                * 
          * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder getTableDisplayOptionsOrBuilder() { - return tableDisplayOptions_ == null ? com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance() : tableDisplayOptions_; + public com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder + getTableDisplayOptionsOrBuilder() { + return tableDisplayOptions_ == null + ? com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance() + : tableDisplayOptions_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -558,8 +708,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTimeSeriesQuery()); } @@ -582,19 +731,18 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTimeSeriesQuery()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeSeriesQuery()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableTemplate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tableTemplate_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMinAlignmentPeriod()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinAlignmentPeriod()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTableDisplayOptions()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTableDisplayOptions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -604,29 +752,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet other = (com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) obj; + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet other = + (com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) obj; if (hasTimeSeriesQuery() != other.hasTimeSeriesQuery()) return false; if (hasTimeSeriesQuery()) { - if (!getTimeSeriesQuery() - .equals(other.getTimeSeriesQuery())) return false; + if (!getTimeSeriesQuery().equals(other.getTimeSeriesQuery())) return false; } - if (!getTableTemplate() - .equals(other.getTableTemplate())) return false; + if (!getTableTemplate().equals(other.getTableTemplate())) return false; if (hasMinAlignmentPeriod() != other.hasMinAlignmentPeriod()) return false; if (hasMinAlignmentPeriod()) { - if (!getMinAlignmentPeriod() - .equals(other.getMinAlignmentPeriod())) return false; + if (!getMinAlignmentPeriod().equals(other.getMinAlignmentPeriod())) return false; } if (hasTableDisplayOptions() != other.hasTableDisplayOptions()) return false; if (hasTableDisplayOptions()) { - if (!getTableDisplayOptions() - .equals(other.getTableDisplayOptions())) return false; + if (!getTableDisplayOptions().equals(other.getTableDisplayOptions())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -659,89 +804,95 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TableDataSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet 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.TableDataSet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TableDataSet 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.TableDataSet 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.TableDataSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet 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.TableDataSet + 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.TableDataSet 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.TableDataSet + 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.TableDataSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + 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.TableDataSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet prototype) { + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -751,47 +902,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                * Groups a time series query definition with table options.
                * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.TableProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_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_TableDataSet_fieldAccessorTable + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.class, com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder.class); + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.class, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder.class); } - // Construct using com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.newBuilder() + // Construct using + // com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTimeSeriesQueryFieldBuilder(); getMinAlignmentPeriodFieldBuilder(); getTableDisplayOptionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -816,13 +973,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.TableProto.internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor; } @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDefaultInstanceForType() { + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet + getDefaultInstanceForType() { return com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.getDefaultInstance(); } @@ -837,34 +995,39 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet build() { @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet buildPartial() { - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet result = new com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet result = + new com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet result) { + private void buildPartial0( + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.timeSeriesQuery_ = timeSeriesQueryBuilder_ == null - ? timeSeriesQuery_ - : timeSeriesQueryBuilder_.build(); + result.timeSeriesQuery_ = + timeSeriesQueryBuilder_ == null ? timeSeriesQuery_ : timeSeriesQueryBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.tableTemplate_ = tableTemplate_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.minAlignmentPeriod_ = minAlignmentPeriodBuilder_ == null - ? minAlignmentPeriod_ - : minAlignmentPeriodBuilder_.build(); + result.minAlignmentPeriod_ = + minAlignmentPeriodBuilder_ == null + ? minAlignmentPeriod_ + : minAlignmentPeriodBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.tableDisplayOptions_ = tableDisplayOptionsBuilder_ == null - ? tableDisplayOptions_ - : tableDisplayOptionsBuilder_.build(); + result.tableDisplayOptions_ = + tableDisplayOptionsBuilder_ == null + ? tableDisplayOptions_ + : tableDisplayOptionsBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; @@ -874,46 +1037,52 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesTable.Ta public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.TableDataSet) { - return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet)other); + return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet other) { - if (other == com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet other) { + if (other + == com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.getDefaultInstance()) + return this; if (other.hasTimeSeriesQuery()) { mergeTimeSeriesQuery(other.getTimeSeriesQuery()); } @@ -954,38 +1123,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getTimeSeriesQueryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - tableTemplate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getMinAlignmentPeriodFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getTableDisplayOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getTimeSeriesQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + tableTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getMinAlignmentPeriodFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getTableDisplayOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + 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) { @@ -995,46 +1166,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.monitoring.dashboard.v1.TimeSeriesQuery timeSeriesQuery_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> timeSeriesQueryBuilder_; + com.google.monitoring.dashboard.v1.TimeSeriesQuery, + com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> + timeSeriesQueryBuilder_; /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the timeSeriesQuery field is set. */ public boolean hasTimeSeriesQuery() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The timeSeriesQuery. */ public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() { if (timeSeriesQueryBuilder_ == null) { - return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + return timeSeriesQuery_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() + : timeSeriesQuery_; } else { return timeSeriesQueryBuilder_.getMessage(); } } /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { if (timeSeriesQueryBuilder_ == null) { @@ -1050,12 +1241,16 @@ public Builder setTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQ return this; } /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTimeSeriesQuery( com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder builderForValue) { @@ -1069,18 +1264,24 @@ public Builder setTimeSeriesQuery( return this; } /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { + public Builder mergeTimeSeriesQuery( + com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { if (timeSeriesQueryBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - timeSeriesQuery_ != null && - timeSeriesQuery_ != com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && timeSeriesQuery_ != null + && timeSeriesQuery_ + != com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance()) { getTimeSeriesQueryBuilder().mergeFrom(value); } else { timeSeriesQuery_ = value; @@ -1095,12 +1296,16 @@ public Builder mergeTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSerie return this; } /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTimeSeriesQuery() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1113,51 +1318,69 @@ public Builder clearTimeSeriesQuery() { return this; } /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder getTimeSeriesQueryBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder + getTimeSeriesQueryBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTimeSeriesQueryFieldBuilder().getBuilder(); } /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder + getTimeSeriesQueryOrBuilder() { if (timeSeriesQueryBuilder_ != null) { return timeSeriesQueryBuilder_.getMessageOrBuilder(); } else { - return timeSeriesQuery_ == null ? - com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + return timeSeriesQuery_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() + : timeSeriesQuery_; } } /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> + com.google.monitoring.dashboard.v1.TimeSeriesQuery, + com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> getTimeSeriesQueryFieldBuilder() { if (timeSeriesQueryBuilder_ == null) { - timeSeriesQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder>( - getTimeSeriesQuery(), - getParentForChildren(), - isClean()); + timeSeriesQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesQuery, + com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder>( + getTimeSeriesQuery(), getParentForChildren(), isClean()); timeSeriesQuery_ = null; } return timeSeriesQueryBuilder_; @@ -1165,6 +1388,8 @@ public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeries private java.lang.Object tableTemplate_ = ""; /** + * + * *
                  * Optional. A template string for naming `TimeSeries` in the resulting data
                  * set. This should be a string with interpolations of the form
          @@ -1173,13 +1398,13 @@ public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeries
                  * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The tableTemplate. */ public java.lang.String getTableTemplate() { java.lang.Object ref = tableTemplate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableTemplate_ = s; return s; @@ -1188,6 +1413,8 @@ 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
          @@ -1196,15 +1423,14 @@ public java.lang.String getTableTemplate() {
                  * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for tableTemplate. */ - public com.google.protobuf.ByteString - getTableTemplateBytes() { + public com.google.protobuf.ByteString getTableTemplateBytes() { java.lang.Object ref = tableTemplate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tableTemplate_ = b; return b; } else { @@ -1212,6 +1438,8 @@ 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
          @@ -1220,18 +1448,22 @@ public java.lang.String getTableTemplate() {
                  * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The tableTemplate to set. * @return This builder for chaining. */ - public Builder setTableTemplate( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTableTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } tableTemplate_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
                  * Optional. A template string for naming `TimeSeries` in the resulting data
                  * set. This should be a string with interpolations of the form
          @@ -1240,6 +1472,7 @@ public Builder setTableTemplate(
                  * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTableTemplate() { @@ -1249,6 +1482,8 @@ public Builder clearTableTemplate() { return this; } /** + * + * *
                  * Optional. A template string for naming `TimeSeries` in the resulting data
                  * set. This should be a string with interpolations of the form
          @@ -1257,12 +1492,14 @@ public Builder clearTableTemplate() {
                  * 
          * * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for tableTemplate to set. * @return This builder for chaining. */ - public Builder setTableTemplateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTableTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); tableTemplate_ = value; bitField0_ |= 0x00000002; @@ -1272,8 +1509,13 @@ public Builder setTableTemplateBytes( private com.google.protobuf.Duration minAlignmentPeriod_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minAlignmentPeriodBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + minAlignmentPeriodBuilder_; /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1282,13 +1524,18 @@ public Builder setTableTemplateBytes(
                  * 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]; + * + * * @return Whether the minAlignmentPeriod field is set. */ public boolean hasMinAlignmentPeriod() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1297,17 +1544,24 @@ public boolean hasMinAlignmentPeriod() {
                  * 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]; + * + * * @return The minAlignmentPeriod. */ public com.google.protobuf.Duration getMinAlignmentPeriod() { if (minAlignmentPeriodBuilder_ == null) { - return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + return minAlignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minAlignmentPeriod_; } else { return minAlignmentPeriodBuilder_.getMessage(); } } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1316,7 +1570,9 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() {
                  * 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]; + * */ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) { if (minAlignmentPeriodBuilder_ == null) { @@ -1332,6 +1588,8 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) { return this; } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1340,10 +1598,11 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) {
                  * 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]; + * */ - public Builder setMinAlignmentPeriod( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builderForValue) { if (minAlignmentPeriodBuilder_ == null) { minAlignmentPeriod_ = builderForValue.build(); } else { @@ -1354,6 +1613,8 @@ public Builder setMinAlignmentPeriod( return this; } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1362,13 +1623,15 @@ public Builder setMinAlignmentPeriod(
                  * 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]; + * */ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) { if (minAlignmentPeriodBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - minAlignmentPeriod_ != null && - minAlignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && minAlignmentPeriod_ != null + && minAlignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { getMinAlignmentPeriodBuilder().mergeFrom(value); } else { minAlignmentPeriod_ = value; @@ -1383,6 +1646,8 @@ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) { return this; } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1391,7 +1656,9 @@ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) {
                  * 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]; + * */ public Builder clearMinAlignmentPeriod() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1404,6 +1671,8 @@ public Builder clearMinAlignmentPeriod() { return this; } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1412,7 +1681,9 @@ public Builder clearMinAlignmentPeriod() {
                  * 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]; + * */ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() { bitField0_ |= 0x00000004; @@ -1420,6 +1691,8 @@ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() { return getMinAlignmentPeriodFieldBuilder().getBuilder(); } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1428,17 +1701,22 @@ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() {
                  * 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]; + * */ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { if (minAlignmentPeriodBuilder_ != null) { return minAlignmentPeriodBuilder_.getMessageOrBuilder(); } else { - return minAlignmentPeriod_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + return minAlignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minAlignmentPeriod_; } } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1447,17 +1725,22 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() {
                  * 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]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getMinAlignmentPeriodFieldBuilder() { if (minAlignmentPeriodBuilder_ == null) { - minAlignmentPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMinAlignmentPeriod(), - getParentForChildren(), - isClean()); + minAlignmentPeriodBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMinAlignmentPeriod(), getParentForChildren(), isClean()); minAlignmentPeriod_ = null; } return minAlignmentPeriodBuilder_; @@ -1465,44 +1748,64 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { private com.google.monitoring.dashboard.v1.TableDisplayOptions tableDisplayOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TableDisplayOptions, com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder, com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder> tableDisplayOptionsBuilder_; + com.google.monitoring.dashboard.v1.TableDisplayOptions, + com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder, + com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder> + tableDisplayOptionsBuilder_; /** + * + * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the tableDisplayOptions field is set. */ public boolean hasTableDisplayOptions() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The tableDisplayOptions. */ public com.google.monitoring.dashboard.v1.TableDisplayOptions getTableDisplayOptions() { if (tableDisplayOptionsBuilder_ == null) { - return tableDisplayOptions_ == null ? com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance() : tableDisplayOptions_; + return tableDisplayOptions_ == null + ? com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance() + : tableDisplayOptions_; } else { return tableDisplayOptionsBuilder_.getMessage(); } } /** + * + * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setTableDisplayOptions(com.google.monitoring.dashboard.v1.TableDisplayOptions value) { + public Builder setTableDisplayOptions( + com.google.monitoring.dashboard.v1.TableDisplayOptions value) { if (tableDisplayOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1516,12 +1819,16 @@ public Builder setTableDisplayOptions(com.google.monitoring.dashboard.v1.TableDi return this; } /** + * + * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTableDisplayOptions( com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder builderForValue) { @@ -1535,18 +1842,24 @@ public Builder setTableDisplayOptions( return this; } /** + * + * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeTableDisplayOptions(com.google.monitoring.dashboard.v1.TableDisplayOptions value) { + public Builder mergeTableDisplayOptions( + com.google.monitoring.dashboard.v1.TableDisplayOptions value) { if (tableDisplayOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - tableDisplayOptions_ != null && - tableDisplayOptions_ != com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && tableDisplayOptions_ != null + && tableDisplayOptions_ + != com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance()) { getTableDisplayOptionsBuilder().mergeFrom(value); } else { tableDisplayOptions_ = value; @@ -1561,12 +1874,16 @@ public Builder mergeTableDisplayOptions(com.google.monitoring.dashboard.v1.Table return this; } /** + * + * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTableDisplayOptions() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1579,55 +1896,74 @@ public Builder clearTableDisplayOptions() { return this; } /** + * + * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder getTableDisplayOptionsBuilder() { + public com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder + getTableDisplayOptionsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getTableDisplayOptionsFieldBuilder().getBuilder(); } /** + * + * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder getTableDisplayOptionsOrBuilder() { + public com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder + getTableDisplayOptionsOrBuilder() { if (tableDisplayOptionsBuilder_ != null) { return tableDisplayOptionsBuilder_.getMessageOrBuilder(); } else { - return tableDisplayOptions_ == null ? - com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance() : tableDisplayOptions_; + return tableDisplayOptions_ == null + ? com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance() + : tableDisplayOptions_; } } /** + * + * *
                  * Optional. Table display options for configuring how the table is
                  * rendered.
                  * 
          * - * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.TableDisplayOptions table_display_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TableDisplayOptions, com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder, com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder> + com.google.monitoring.dashboard.v1.TableDisplayOptions, + com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder, + com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder> getTableDisplayOptionsFieldBuilder() { if (tableDisplayOptionsBuilder_ == null) { - tableDisplayOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TableDisplayOptions, com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder, com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder>( - getTableDisplayOptions(), - getParentForChildren(), - isClean()); + tableDisplayOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TableDisplayOptions, + com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder, + com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder>( + getTableDisplayOptions(), getParentForChildren(), isClean()); tableDisplayOptions_ = null; } return tableDisplayOptionsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1640,41 +1976,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) - private static final com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet DEFAULT_INSTANCE; + private static final com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet(); } - public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDefaultInstance() { + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableDataSet 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableDataSet 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; @@ -1686,95 +2025,112 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDefaultInstanceForType() { + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ColumnSettingsOrBuilder extends + 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(); + 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(); } /** + * + * *
              * The persistent settings for a table's columns.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings} */ - public static final class ColumnSettings extends - com.google.protobuf.GeneratedMessageV3 implements + 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; + private static final long serialVersionUID = 0L; // Use ColumnSettings.newBuilder() to construct. private ColumnSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ColumnSettings() { column_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ColumnSettings(); } - 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; + 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 + 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); + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.class, + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder.class); } public static final int COLUMN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") 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 @@ -1783,29 +2139,29 @@ public java.lang.String getColumn() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 com.google.protobuf.ByteString - getColumnBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); column_ = b; return b; } else { @@ -1816,11 +2172,14 @@ public java.lang.String getColumn() { public static final int VISIBLE_FIELD_NUMBER = 2; private boolean visible_ = false; /** + * + * *
                * Required. Whether the column should be visible on page load.
                * 
          * * bool visible = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The visible. */ @java.lang.Override @@ -1829,6 +2188,7 @@ public boolean getVisible() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1840,8 +2200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -1861,8 +2220,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, column_); } if (visible_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, visible_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, visible_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1872,17 +2230,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings other = + (com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings) obj; - if (!getColumn() - .equals(other.getColumn())) return false; - if (getVisible() - != other.getVisible()) return false; + if (!getColumn().equals(other.getColumn())) return false; + if (getVisible() != other.getVisible()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1897,97 +2254,102 @@ public int 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 = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVisible()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ColumnSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + 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 static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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 + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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) { + + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1997,39 +2359,42 @@ protected Builder newBuilderForType( 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 + 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; + 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 + 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); + 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() { - - } + // Construct using + // com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2040,14 +2405,16 @@ public Builder clear() { } @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; + 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(); + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings + getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings + .getDefaultInstance(); } @java.lang.Override @@ -2061,13 +2428,17 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings build() @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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings result = + new com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings result) { + private void buildPartial0( + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.column_ = column_; @@ -2081,46 +2452,53 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesTable.Co public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + 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; + 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_; bitField0_ |= 0x00000001; @@ -2155,22 +2533,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - column_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - visible_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + column_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + visible_ = input.readBool(); + bitField0_ |= 0x00000002; + 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) { @@ -2180,22 +2561,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); column_ = s; return s; @@ -2204,20 +2588,21 @@ public java.lang.String getColumn() { } } /** + * + * *
                  * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); column_ = b; return b; } else { @@ -2225,28 +2610,35 @@ public java.lang.String getColumn() { } } /** + * + * *
                  * 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(); } + public Builder setColumn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } column_ = value; bitField0_ |= 0x00000001; 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() { @@ -2256,17 +2648,21 @@ public Builder clearColumn() { 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(); } + public Builder setColumnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); column_ = value; bitField0_ |= 0x00000001; @@ -2274,13 +2670,16 @@ public Builder setColumnBytes( return this; } - private boolean visible_ ; + 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 @@ -2288,11 +2687,14 @@ 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. */ @@ -2304,11 +2706,14 @@ public Builder setVisible(boolean value) { 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() { @@ -2317,6 +2722,7 @@ public Builder clearVisible() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2329,41 +2735,44 @@ public final Builder mergeUnknownFields( 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; + 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() { + 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(); - } - }; + 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; @@ -2375,161 +2784,227 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings getDefaultInstanceForType() { + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int DATA_SETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List getDataSetsList() { + 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + 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]; + * + * 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]; + * + * 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]; + * + * 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) { + 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_ = 0; /** + * + * *
              * Optional. Store rendering strategy
              * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .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() { + @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]; + * + * .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() { - com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization result = com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.forNumber(metricVisualization_); - return result == null ? com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization + getMetricVisualization() { + com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization result = + com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.forNumber( + metricVisualization_); + return result == null + ? com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.UNRECOGNIZED + : result; } public static final int COLUMN_SETTINGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") - private java.util.List columnSettings_; + 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getColumnSettingsList() { + 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + 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]; + * + * 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]; + * + * 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) { + 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]; + * + * 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) { + 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; @@ -2541,12 +3016,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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()) { + 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++) { @@ -2562,16 +3039,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < dataSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, dataSets_.get(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_); + 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 += com.google.protobuf.CodedOutputStream.computeMessageSize(4, columnSettings_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2581,18 +3058,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.monitoring.dashboard.v1.TimeSeriesTable other = + (com.google.monitoring.dashboard.v1.TimeSeriesTable) obj; - if (!getDataSetsList() - .equals(other.getDataSetsList())) return false; + if (!getDataSetsList().equals(other.getDataSetsList())) return false; if (metricVisualization_ != other.metricVisualization_) return false; - if (!getColumnSettingsList() - .equals(other.getColumnSettingsList())) return false; + if (!getColumnSettingsList().equals(other.getColumnSettingsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2620,131 +3096,135 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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) 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) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + 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_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 + 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); + 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() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2768,9 +3248,9 @@ public Builder clear() { } @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 com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor; } @java.lang.Override @@ -2789,14 +3269,18 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable build() { @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); + com.google.monitoring.dashboard.v1.TimeSeriesTable result = + new com.google.monitoring.dashboard.v1.TimeSeriesTable(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.dashboard.v1.TimeSeriesTable result) { + private void buildPartialRepeatedFields( + com.google.monitoring.dashboard.v1.TimeSeriesTable result) { if (dataSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dataSets_ = java.util.Collections.unmodifiableList(dataSets_); @@ -2828,38 +3312,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.TimeSeriesTable re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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); + return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesTable) other); } else { super.mergeFrom(other); return this; @@ -2867,7 +3352,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesTable other) { - if (other == com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance()) return this; + if (other == com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance()) + return this; if (dataSetsBuilder_ == null) { if (!other.dataSets_.isEmpty()) { if (dataSets_.isEmpty()) { @@ -2886,9 +3372,10 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesTable othe dataSetsBuilder_ = null; dataSets_ = other.dataSets_; bitField0_ = (bitField0_ & ~0x00000001); - dataSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataSetsFieldBuilder() : null; + dataSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataSetsFieldBuilder() + : null; } else { dataSetsBuilder_.addAllMessages(other.dataSets_); } @@ -2915,9 +3402,10 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesTable othe columnSettingsBuilder_ = null; columnSettings_ = other.columnSettings_; bitField0_ = (bitField0_ & ~0x00000004); - columnSettingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getColumnSettingsFieldBuilder() : null; + columnSettingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColumnSettingsFieldBuilder() + : null; } else { columnSettingsBuilder_.addAllMessages(other.columnSettings_); } @@ -2949,43 +3437,47 @@ public Builder mergeFrom( 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(); - bitField0_ |= 0x00000002; - 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: + 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(); + bitField0_ |= 0x00000002; + 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) { @@ -2995,28 +3487,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List dataSets_ = - java.util.Collections.emptyList(); + private java.util.List + dataSets_ = java.util.Collections.emptyList(); + private void ensureDataSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - dataSets_ = new java.util.ArrayList(dataSets_); + 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_; + 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getDataSetsList() { + public java.util.List + getDataSetsList() { if (dataSetsBuilder_ == null) { return java.util.Collections.unmodifiableList(dataSets_); } else { @@ -3024,11 +3528,15 @@ public java.util.List * Required. The data displayed in this table. *
          * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getDataSetsCount() { if (dataSetsBuilder_ == null) { @@ -3038,11 +3546,15 @@ public int getDataSetsCount() { } } /** + * + * *
                * Required. The data displayed in this table.
                * 
          * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * 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) { @@ -3052,11 +3564,15 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDataSe } } /** + * + * *
                * Required. The data displayed in this table.
                * 
          * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * 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) { @@ -3073,14 +3589,19 @@ public Builder setDataSets( return this; } /** + * + * *
                * Required. The data displayed in this table.
                * 
          * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * 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) { + int index, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder builderForValue) { if (dataSetsBuilder_ == null) { ensureDataSetsIsMutable(); dataSets_.set(index, builderForValue.build()); @@ -3091,13 +3612,18 @@ public Builder setDataSets( return this; } /** + * + * *
                * Required. The data displayed in this table.
                * 
          * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * 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) { + public Builder addDataSets( + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet value) { if (dataSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3111,11 +3637,15 @@ public Builder addDataSets(com.google.monitoring.dashboard.v1.TimeSeriesTable.Ta return this; } /** + * + * *
                * Required. The data displayed in this table.
                * 
          * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * 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) { @@ -3132,11 +3662,15 @@ public Builder addDataSets( return this; } /** + * + * *
                * Required. The data displayed in this table.
                * 
          * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * 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) { @@ -3150,14 +3684,19 @@ public Builder addDataSets( return this; } /** + * + * *
                * Required. The data displayed in this table.
                * 
          * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * 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) { + int index, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder builderForValue) { if (dataSetsBuilder_ == null) { ensureDataSetsIsMutable(); dataSets_.add(index, builderForValue.build()); @@ -3168,18 +3707,23 @@ public Builder addDataSets( return this; } /** + * + * *
                * Required. The data displayed in this table.
                * 
          * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllDataSets( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet> + values) { if (dataSetsBuilder_ == null) { ensureDataSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dataSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataSets_); onChanged(); } else { dataSetsBuilder_.addAllMessages(values); @@ -3187,11 +3731,15 @@ public Builder addAllDataSets( return this; } /** + * + * *
                * Required. The data displayed in this table.
                * 
          * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDataSets() { if (dataSetsBuilder_ == null) { @@ -3204,11 +3752,15 @@ public Builder clearDataSets() { return this; } /** + * + * *
                * Required. The data displayed in this table.
                * 
          * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeDataSets(int index) { if (dataSetsBuilder_ == null) { @@ -3221,39 +3773,53 @@ public Builder removeDataSets(int 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]; + * + * 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) { + 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]; + * + * 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) { + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder + getDataSetsOrBuilder(int index) { if (dataSetsBuilder_ == null) { - return dataSets_.get(index); } else { + 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getDataSetsOrBuilderList() { + public java.util.List< + ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder> + getDataSetsOrBuilderList() { if (dataSetsBuilder_ != null) { return dataSetsBuilder_.getMessageOrBuilderList(); } else { @@ -3261,49 +3827,68 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder } } /** + * + * *
                * Required. The data displayed in this table.
                * 
          * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * 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()); + 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]; + * + * 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()); + 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getDataSetsBuilderList() { + 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> + 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()); + 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; } return dataSetsBuilder_; @@ -3311,22 +3896,33 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder a private int metricVisualization_ = 0; /** + * + * *
                * Optional. Store rendering strategy
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .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() { + @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]; + * + * .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. */ @@ -3337,28 +3933,44 @@ public Builder setMetricVisualizationValue(int value) { return this; } /** + * + * *
                * Optional. Store rendering strategy
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .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() { - com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization result = com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.forNumber(metricVisualization_); - return result == null ? com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.UNRECOGNIZED : result; + public com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization + getMetricVisualization() { + com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization result = + com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.forNumber( + 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]; + * + * .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) { + public Builder setMetricVisualization( + com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization value) { if (value == null) { throw new NullPointerException(); } @@ -3368,11 +3980,16 @@ public Builder setMetricVisualization(com.google.monitoring.dashboard.v1.TimeSer return this; } /** + * + * *
                * Optional. Store rendering strategy
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearMetricVisualization() { @@ -3382,26 +3999,37 @@ public Builder clearMetricVisualization() { return this; } - private java.util.List columnSettings_ = - java.util.Collections.emptyList(); + private java.util.List + columnSettings_ = java.util.Collections.emptyList(); + private void ensureColumnSettingsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - columnSettings_ = new java.util.ArrayList(columnSettings_); + columnSettings_ = + new java.util.ArrayList< + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings>(columnSettings_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder> columnSettingsBuilder_; + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings, + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder> + columnSettingsBuilder_; /** + * + * *
                * 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getColumnSettingsList() { + public java.util.List + getColumnSettingsList() { if (columnSettingsBuilder_ == null) { return java.util.Collections.unmodifiableList(columnSettings_); } else { @@ -3409,11 +4037,15 @@ public java.util.List * 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getColumnSettingsCount() { if (columnSettingsBuilder_ == null) { @@ -3423,13 +4055,18 @@ public 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings getColumnSettings(int index) { + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings getColumnSettings( + int index) { if (columnSettingsBuilder_ == null) { return columnSettings_.get(index); } else { @@ -3437,11 +4074,15 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings getColu } } /** + * + * *
                * 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setColumnSettings( int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings value) { @@ -3458,14 +4099,19 @@ public Builder setColumnSettings( return this; } /** + * + * *
                * 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setColumnSettings( - int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder builderForValue) { + int index, + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder builderForValue) { if (columnSettingsBuilder_ == null) { ensureColumnSettingsIsMutable(); columnSettings_.set(index, builderForValue.build()); @@ -3476,13 +4122,18 @@ public Builder setColumnSettings( return this; } /** + * + * *
                * 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addColumnSettings(com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings value) { + public Builder addColumnSettings( + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings value) { if (columnSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3496,11 +4147,15 @@ public Builder addColumnSettings(com.google.monitoring.dashboard.v1.TimeSeriesTa return this; } /** + * + * *
                * 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addColumnSettings( int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings value) { @@ -3517,11 +4172,15 @@ public Builder addColumnSettings( return this; } /** + * + * *
                * 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addColumnSettings( com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder builderForValue) { @@ -3535,14 +4194,19 @@ public Builder addColumnSettings( return this; } /** + * + * *
                * 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addColumnSettings( - int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder builderForValue) { + int index, + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder builderForValue) { if (columnSettingsBuilder_ == null) { ensureColumnSettingsIsMutable(); columnSettings_.add(index, builderForValue.build()); @@ -3553,18 +4217,23 @@ public Builder addColumnSettings( return this; } /** + * + * *
                * 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllColumnSettings( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings> + values) { if (columnSettingsBuilder_ == null) { ensureColumnSettingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, columnSettings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columnSettings_); onChanged(); } else { columnSettingsBuilder_.addAllMessages(values); @@ -3572,11 +4241,15 @@ public Builder addAllColumnSettings( return this; } /** + * + * *
                * 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearColumnSettings() { if (columnSettingsBuilder_ == null) { @@ -3589,11 +4262,15 @@ public Builder clearColumnSettings() { return this; } /** + * + * *
                * 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeColumnSettings(int index) { if (columnSettingsBuilder_ == null) { @@ -3606,39 +4283,53 @@ public Builder removeColumnSettings(int index) { return this; } /** + * + * *
                * 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder getColumnSettingsBuilder( - int index) { + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder + getColumnSettingsBuilder(int index) { return getColumnSettingsFieldBuilder().getBuilder(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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder getColumnSettingsOrBuilder( - int index) { + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder + getColumnSettingsOrBuilder(int index) { if (columnSettingsBuilder_ == null) { - return columnSettings_.get(index); } else { + return columnSettings_.get(index); + } else { return columnSettingsBuilder_.getMessageOrBuilder(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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getColumnSettingsOrBuilderList() { + public java.util.List< + ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder> + getColumnSettingsOrBuilderList() { if (columnSettingsBuilder_ != null) { return columnSettingsBuilder_.getMessageOrBuilderList(); } else { @@ -3646,45 +4337,69 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilde } } /** + * + * *
                * 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder addColumnSettingsBuilder() { - return getColumnSettingsFieldBuilder().addBuilder( - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.getDefaultInstance()); + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder + addColumnSettingsBuilder() { + return getColumnSettingsFieldBuilder() + .addBuilder( + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings + .getDefaultInstance()); } /** + * + * *
                * 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder addColumnSettingsBuilder( - int index) { - return getColumnSettingsFieldBuilder().addBuilder( - index, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.getDefaultInstance()); + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder + addColumnSettingsBuilder(int index) { + return getColumnSettingsFieldBuilder() + .addBuilder( + index, + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings + .getDefaultInstance()); } /** + * + * *
                * 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]; + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getColumnSettingsBuilderList() { + public java.util.List + getColumnSettingsBuilderList() { return getColumnSettingsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder> + 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.ColumnSettings, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder>( + columnSettingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings, + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder>( columnSettings_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -3693,9 +4408,9 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder } return columnSettingsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3705,12 +4420,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.TimeSeriesTable) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.TimeSeriesTable) private static final com.google.monitoring.dashboard.v1.TimeSeriesTable DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.TimeSeriesTable(); } @@ -3719,27 +4434,27 @@ public static com.google.monitoring.dashboard.v1.TimeSeriesTable getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeriesTable 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeriesTable 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; @@ -3754,6 +4469,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.TimeSeriesTable getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - 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 new file mode 100644 index 000000000000..77991304d67c --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/table.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public interface TimeSeriesTableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TimeSeriesTable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The data displayed in this table.
          +   * 
          + * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getDataSetsList(); + /** + * + * + *
          +   * Required. The data displayed in this table.
          +   * 
          + * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDataSets(int index); + /** + * + * + *
          +   * Required. The data displayed in this table.
          +   * 
          + * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getDataSetsCount(); + /** + * + * + *
          +   * Required. The data displayed in this table.
          +   * 
          + * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getDataSetsOrBuilderList(); + /** + * + * + *
          +   * Required. The data displayed in this table.
          +   * 
          + * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequest.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequest.java similarity index 63% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequest.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequest.java index 7083bee09101..5f008776bc8a 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequest.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto @@ -5,53 +20,61 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * The `UpdateDashboard` request.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.UpdateDashboardRequest} */ -public final class UpdateDashboardRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateDashboardRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.UpdateDashboardRequest) UpdateDashboardRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateDashboardRequest.newBuilder() to construct. private UpdateDashboardRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateDashboardRequest() { - } + + private UpdateDashboardRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateDashboardRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.UpdateDashboardRequest.class, com.google.monitoring.dashboard.v1.UpdateDashboardRequest.Builder.class); + com.google.monitoring.dashboard.v1.UpdateDashboardRequest.class, + com.google.monitoring.dashboard.v1.UpdateDashboardRequest.Builder.class); } private int bitField0_; public static final int DASHBOARD_FIELD_NUMBER = 1; private com.google.monitoring.dashboard.v1.Dashboard dashboard_; /** + * + * *
              * Required. The dashboard that will replace the existing dashboard.
              * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dashboard field is set. */ @java.lang.Override @@ -59,38 +82,54 @@ public boolean hasDashboard() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
              * Required. The dashboard that will replace the existing dashboard.
              * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dashboard. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Dashboard getDashboard() { - return dashboard_ == null ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() : dashboard_; + return dashboard_ == null + ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() + : dashboard_; } /** + * + * *
              * Required. The dashboard that will replace the existing dashboard.
              * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardOrBuilder() { - return dashboard_ == null ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() : dashboard_; + return dashboard_ == null + ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() + : dashboard_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
              * If set, validate the request and preview the review, but do not actually
              * save it.
              * 
          * * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -99,6 +138,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +150,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getDashboard()); } @@ -128,12 +167,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDashboard()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDashboard()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -143,20 +180,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.UpdateDashboardRequest)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.UpdateDashboardRequest other = (com.google.monitoring.dashboard.v1.UpdateDashboardRequest) obj; + com.google.monitoring.dashboard.v1.UpdateDashboardRequest other = + (com.google.monitoring.dashboard.v1.UpdateDashboardRequest) obj; if (hasDashboard() != other.hasDashboard()) return false; if (hasDashboard()) { - if (!getDashboard() - .equals(other.getDashboard())) return false; + if (!getDashboard().equals(other.getDashboard())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -173,127 +209,134 @@ public int hashCode() { hash = (53 * hash) + getDashboard().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.UpdateDashboardRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest 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.UpdateDashboardRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.dashboard.v1.UpdateDashboardRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.UpdateDashboardRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * The `UpdateDashboard` request.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.UpdateDashboardRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.UpdateDashboardRequest) com.google.monitoring.dashboard.v1.UpdateDashboardRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_fieldAccessorTable + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.UpdateDashboardRequest.class, com.google.monitoring.dashboard.v1.UpdateDashboardRequest.Builder.class); + com.google.monitoring.dashboard.v1.UpdateDashboardRequest.class, + com.google.monitoring.dashboard.v1.UpdateDashboardRequest.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.UpdateDashboardRequest.newBuilder() @@ -301,17 +344,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDashboardFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +369,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.DashboardsServiceProto.internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.DashboardsServiceProto + .internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor; } @java.lang.Override @@ -347,8 +390,11 @@ public com.google.monitoring.dashboard.v1.UpdateDashboardRequest build() { @java.lang.Override public com.google.monitoring.dashboard.v1.UpdateDashboardRequest buildPartial() { - com.google.monitoring.dashboard.v1.UpdateDashboardRequest result = new com.google.monitoring.dashboard.v1.UpdateDashboardRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.UpdateDashboardRequest result = + new com.google.monitoring.dashboard.v1.UpdateDashboardRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -357,9 +403,7 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.UpdateDashboardReq int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.dashboard_ = dashboardBuilder_ == null - ? dashboard_ - : dashboardBuilder_.build(); + result.dashboard_ = dashboardBuilder_ == null ? dashboard_ : dashboardBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -372,38 +416,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.UpdateDashboardReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.UpdateDashboardRequest) { - return mergeFrom((com.google.monitoring.dashboard.v1.UpdateDashboardRequest)other); + return mergeFrom((com.google.monitoring.dashboard.v1.UpdateDashboardRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +456,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.UpdateDashboardRequest other) { - if (other == com.google.monitoring.dashboard.v1.UpdateDashboardRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.dashboard.v1.UpdateDashboardRequest.getDefaultInstance()) + return this; if (other.hasDashboard()) { mergeDashboard(other.getDashboard()); } @@ -444,24 +490,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDashboardFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getDashboardFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + 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) { @@ -471,43 +518,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.monitoring.dashboard.v1.Dashboard dashboard_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder> dashboardBuilder_; + com.google.monitoring.dashboard.v1.Dashboard, + com.google.monitoring.dashboard.v1.Dashboard.Builder, + com.google.monitoring.dashboard.v1.DashboardOrBuilder> + dashboardBuilder_; /** + * + * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dashboard field is set. */ public boolean hasDashboard() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dashboard. */ public com.google.monitoring.dashboard.v1.Dashboard getDashboard() { if (dashboardBuilder_ == null) { - return dashboard_ == null ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() : dashboard_; + return dashboard_ == null + ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() + : dashboard_; } else { return dashboardBuilder_.getMessage(); } } /** + * + * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDashboard(com.google.monitoring.dashboard.v1.Dashboard value) { if (dashboardBuilder_ == null) { @@ -523,11 +590,15 @@ public Builder setDashboard(com.google.monitoring.dashboard.v1.Dashboard value) return this; } /** + * + * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDashboard( com.google.monitoring.dashboard.v1.Dashboard.Builder builderForValue) { @@ -541,17 +612,21 @@ public Builder setDashboard( return this; } /** + * + * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDashboard(com.google.monitoring.dashboard.v1.Dashboard value) { if (dashboardBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - dashboard_ != null && - dashboard_ != com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && dashboard_ != null + && dashboard_ != com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance()) { getDashboardBuilder().mergeFrom(value); } else { dashboard_ = value; @@ -566,11 +641,15 @@ public Builder mergeDashboard(com.google.monitoring.dashboard.v1.Dashboard value return this; } /** + * + * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDashboard() { bitField0_ = (bitField0_ & ~0x00000001); @@ -583,11 +662,15 @@ public Builder clearDashboard() { return this; } /** + * + * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.dashboard.v1.Dashboard.Builder getDashboardBuilder() { bitField0_ |= 0x00000001; @@ -595,49 +678,64 @@ public com.google.monitoring.dashboard.v1.Dashboard.Builder getDashboardBuilder( return getDashboardFieldBuilder().getBuilder(); } /** + * + * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardOrBuilder() { if (dashboardBuilder_ != null) { return dashboardBuilder_.getMessageOrBuilder(); } else { - return dashboard_ == null ? - com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() : dashboard_; + return dashboard_ == null + ? com.google.monitoring.dashboard.v1.Dashboard.getDefaultInstance() + : dashboard_; } } /** + * + * *
                * Required. The dashboard that will replace the existing dashboard.
                * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder> + com.google.monitoring.dashboard.v1.Dashboard, + com.google.monitoring.dashboard.v1.Dashboard.Builder, + com.google.monitoring.dashboard.v1.DashboardOrBuilder> getDashboardFieldBuilder() { if (dashboardBuilder_ == null) { - dashboardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Dashboard, com.google.monitoring.dashboard.v1.Dashboard.Builder, com.google.monitoring.dashboard.v1.DashboardOrBuilder>( - getDashboard(), - getParentForChildren(), - isClean()); + dashboardBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Dashboard, + com.google.monitoring.dashboard.v1.Dashboard.Builder, + com.google.monitoring.dashboard.v1.DashboardOrBuilder>( + getDashboard(), getParentForChildren(), isClean()); dashboard_ = null; } return dashboardBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
                * If set, validate the request and preview the review, but do not actually
                * save it.
                * 
          * * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -645,12 +743,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
                * If set, validate the request and preview the review, but do not actually
                * save it.
                * 
          * * bool validate_only = 3; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -662,12 +763,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
                * If set, validate the request and preview the review, but do not actually
                * save it.
                * 
          * * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -676,9 +780,9 @@ public Builder clearValidateOnly() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -688,12 +792,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.UpdateDashboardRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.UpdateDashboardRequest) private static final com.google.monitoring.dashboard.v1.UpdateDashboardRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.UpdateDashboardRequest(); } @@ -702,27 +806,27 @@ public static com.google.monitoring.dashboard.v1.UpdateDashboardRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDashboardRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDashboardRequest 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; @@ -737,6 +841,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.UpdateDashboardRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequestOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequestOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequestOrBuilder.java index 81d820b879fb..8e5b1bfbd9c6 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequestOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequestOrBuilder.java @@ -1,47 +1,80 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/dashboards_service.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface UpdateDashboardRequestOrBuilder extends +public interface UpdateDashboardRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.UpdateDashboardRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. The dashboard that will replace the existing dashboard.
              * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dashboard field is set. */ boolean hasDashboard(); /** + * + * *
              * Required. The dashboard that will replace the existing dashboard.
              * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dashboard. */ com.google.monitoring.dashboard.v1.Dashboard getDashboard(); /** + * + * *
              * Required. The dashboard that will replace the existing dashboard.
              * 
          * - * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.Dashboard dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardOrBuilder(); /** + * + * *
              * If set, validate the request and preview the review, but do not actually
              * save it.
              * 
          * * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java similarity index 74% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java index f8681f6f6a3c..cc9b2dd3341f 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/widget.proto @@ -5,6 +20,8 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * Widget contains a single dashboard component and configuration of how to
            * present the component in the dashboard.
          @@ -12,15 +29,16 @@
            *
            * Protobuf type {@code google.monitoring.dashboard.v1.Widget}
            */
          -public final class Widget extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class Widget extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.Widget)
               WidgetOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use Widget.newBuilder() to construct.
             private Widget(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private Widget() {
               title_ = "";
               id_ = "";
          @@ -28,29 +46,33 @@ private Widget() {
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new Widget();
             }
           
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.monitoring.dashboard.v1.WidgetProto.internal_static_google_monitoring_dashboard_v1_Widget_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.monitoring.dashboard.v1.WidgetProto
          +        .internal_static_google_monitoring_dashboard_v1_Widget_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.monitoring.dashboard.v1.WidgetProto.internal_static_google_monitoring_dashboard_v1_Widget_fieldAccessorTable
          +    return com.google.monitoring.dashboard.v1.WidgetProto
          +        .internal_static_google_monitoring_dashboard_v1_Widget_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.monitoring.dashboard.v1.Widget.class, com.google.monitoring.dashboard.v1.Widget.Builder.class);
          +            com.google.monitoring.dashboard.v1.Widget.class,
          +            com.google.monitoring.dashboard.v1.Widget.Builder.class);
             }
           
             private int contentCase_ = 0;
          +
             @SuppressWarnings("serial")
             private java.lang.Object content_;
          +
             public enum ContentCase
          -      implements com.google.protobuf.Internal.EnumLite,
          +      implements
          +          com.google.protobuf.Internal.EnumLite,
                     com.google.protobuf.AbstractMessage.InternalOneOfEnum {
               XY_CHART(2),
               SCORECARD(3),
          @@ -67,6 +89,7 @@ public enum ContentCase
               SINGLE_VIEW_GROUP(22),
               CONTENT_NOT_SET(0);
               private final int value;
          +
               private ContentCase(int value) {
                 this.value = value;
               }
          @@ -82,43 +105,61 @@ public static ContentCase valueOf(int value) {
           
               public static ContentCase forNumber(int value) {
                 switch (value) {
          -        case 2: return XY_CHART;
          -        case 3: return SCORECARD;
          -        case 4: return TEXT;
          -        case 5: return BLANK;
          -        case 7: return ALERT_CHART;
          -        case 8: return TIME_SERIES_TABLE;
          -        case 9: return COLLAPSIBLE_GROUP;
          -        case 10: return LOGS_PANEL;
          -        case 12: return INCIDENT_LIST;
          -        case 14: return PIE_CHART;
          -        case 19: return ERROR_REPORTING_PANEL;
          -        case 21: return SECTION_HEADER;
          -        case 22: return SINGLE_VIEW_GROUP;
          -        case 0: return CONTENT_NOT_SET;
          -        default: return null;
          +        case 2:
          +          return XY_CHART;
          +        case 3:
          +          return SCORECARD;
          +        case 4:
          +          return TEXT;
          +        case 5:
          +          return BLANK;
          +        case 7:
          +          return ALERT_CHART;
          +        case 8:
          +          return TIME_SERIES_TABLE;
          +        case 9:
          +          return COLLAPSIBLE_GROUP;
          +        case 10:
          +          return LOGS_PANEL;
          +        case 12:
          +          return INCIDENT_LIST;
          +        case 14:
          +          return PIE_CHART;
          +        case 19:
          +          return ERROR_REPORTING_PANEL;
          +        case 21:
          +          return SECTION_HEADER;
          +        case 22:
          +          return SINGLE_VIEW_GROUP;
          +        case 0:
          +          return CONTENT_NOT_SET;
          +        default:
          +          return null;
                 }
               }
          +
               public int getNumber() {
                 return this.value;
               }
             };
           
          -  public ContentCase
          -  getContentCase() {
          -    return ContentCase.forNumber(
          -        contentCase_);
          +  public ContentCase getContentCase() {
          +    return ContentCase.forNumber(contentCase_);
             }
           
             public static final int TITLE_FIELD_NUMBER = 1;
          +
             @SuppressWarnings("serial")
             private volatile java.lang.Object title_ = "";
             /**
          +   *
          +   *
              * 
              * Optional. The title of the widget.
              * 
          * * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The title. */ @java.lang.Override @@ -127,29 +168,29 @@ public java.lang.String getTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** + * + * *
              * Optional. The title of the widget.
              * 
          * * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for title. */ @java.lang.Override - public com.google.protobuf.ByteString - getTitleBytes() { + public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { @@ -159,11 +200,14 @@ public java.lang.String getTitle() { public static final int XY_CHART_FIELD_NUMBER = 2; /** + * + * *
              * A chart of time series data.
              * 
          * * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + * * @return Whether the xyChart field is set. */ @java.lang.Override @@ -171,21 +215,26 @@ public boolean hasXyChart() { return contentCase_ == 2; } /** + * + * *
              * A chart of time series data.
              * 
          * * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + * * @return The xyChart. */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart getXyChart() { if (contentCase_ == 2) { - return (com.google.monitoring.dashboard.v1.XyChart) content_; + return (com.google.monitoring.dashboard.v1.XyChart) content_; } return com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance(); } /** + * + * *
              * A chart of time series data.
              * 
          @@ -195,18 +244,21 @@ public com.google.monitoring.dashboard.v1.XyChart getXyChart() { @java.lang.Override public com.google.monitoring.dashboard.v1.XyChartOrBuilder getXyChartOrBuilder() { if (contentCase_ == 2) { - return (com.google.monitoring.dashboard.v1.XyChart) content_; + return (com.google.monitoring.dashboard.v1.XyChart) content_; } return com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance(); } public static final int SCORECARD_FIELD_NUMBER = 3; /** + * + * *
              * A scorecard summarizing time series data.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + * * @return Whether the scorecard field is set. */ @java.lang.Override @@ -214,21 +266,26 @@ public boolean hasScorecard() { return contentCase_ == 3; } /** + * + * *
              * A scorecard summarizing time series data.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + * * @return The scorecard. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Scorecard getScorecard() { if (contentCase_ == 3) { - return (com.google.monitoring.dashboard.v1.Scorecard) content_; + return (com.google.monitoring.dashboard.v1.Scorecard) content_; } return com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance(); } /** + * + * *
              * A scorecard summarizing time series data.
              * 
          @@ -238,18 +295,21 @@ public com.google.monitoring.dashboard.v1.Scorecard getScorecard() { @java.lang.Override public com.google.monitoring.dashboard.v1.ScorecardOrBuilder getScorecardOrBuilder() { if (contentCase_ == 3) { - return (com.google.monitoring.dashboard.v1.Scorecard) content_; + return (com.google.monitoring.dashboard.v1.Scorecard) content_; } return com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance(); } public static final int TEXT_FIELD_NUMBER = 4; /** + * + * *
              * A raw string or markdown displaying textual content.
              * 
          * * .google.monitoring.dashboard.v1.Text text = 4; + * * @return Whether the text field is set. */ @java.lang.Override @@ -257,21 +317,26 @@ public boolean hasText() { return contentCase_ == 4; } /** + * + * *
              * A raw string or markdown displaying textual content.
              * 
          * * .google.monitoring.dashboard.v1.Text text = 4; + * * @return The text. */ @java.lang.Override public com.google.monitoring.dashboard.v1.Text getText() { if (contentCase_ == 4) { - return (com.google.monitoring.dashboard.v1.Text) content_; + return (com.google.monitoring.dashboard.v1.Text) content_; } return com.google.monitoring.dashboard.v1.Text.getDefaultInstance(); } /** + * + * *
              * A raw string or markdown displaying textual content.
              * 
          @@ -281,18 +346,21 @@ public com.google.monitoring.dashboard.v1.Text getText() { @java.lang.Override public com.google.monitoring.dashboard.v1.TextOrBuilder getTextOrBuilder() { if (contentCase_ == 4) { - return (com.google.monitoring.dashboard.v1.Text) content_; + return (com.google.monitoring.dashboard.v1.Text) content_; } return com.google.monitoring.dashboard.v1.Text.getDefaultInstance(); } public static final int BLANK_FIELD_NUMBER = 5; /** + * + * *
              * A blank space.
              * 
          * * .google.protobuf.Empty blank = 5; + * * @return Whether the blank field is set. */ @java.lang.Override @@ -300,21 +368,26 @@ public boolean hasBlank() { return contentCase_ == 5; } /** + * + * *
              * A blank space.
              * 
          * * .google.protobuf.Empty blank = 5; + * * @return The blank. */ @java.lang.Override public com.google.protobuf.Empty getBlank() { if (contentCase_ == 5) { - return (com.google.protobuf.Empty) content_; + return (com.google.protobuf.Empty) content_; } return com.google.protobuf.Empty.getDefaultInstance(); } /** + * + * *
              * A blank space.
              * 
          @@ -324,18 +397,21 @@ public com.google.protobuf.Empty getBlank() { @java.lang.Override public com.google.protobuf.EmptyOrBuilder getBlankOrBuilder() { if (contentCase_ == 5) { - return (com.google.protobuf.Empty) content_; + return (com.google.protobuf.Empty) content_; } return com.google.protobuf.Empty.getDefaultInstance(); } public static final int ALERT_CHART_FIELD_NUMBER = 7; /** + * + * *
              * A chart of alert policy data.
              * 
          * * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + * * @return Whether the alertChart field is set. */ @java.lang.Override @@ -343,21 +419,26 @@ public boolean hasAlertChart() { return contentCase_ == 7; } /** + * + * *
              * A chart of alert policy data.
              * 
          * * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + * * @return The alertChart. */ @java.lang.Override public com.google.monitoring.dashboard.v1.AlertChart getAlertChart() { if (contentCase_ == 7) { - return (com.google.monitoring.dashboard.v1.AlertChart) content_; + return (com.google.monitoring.dashboard.v1.AlertChart) content_; } return com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance(); } /** + * + * *
              * A chart of alert policy data.
              * 
          @@ -367,18 +448,21 @@ public com.google.monitoring.dashboard.v1.AlertChart getAlertChart() { @java.lang.Override public com.google.monitoring.dashboard.v1.AlertChartOrBuilder getAlertChartOrBuilder() { if (contentCase_ == 7) { - return (com.google.monitoring.dashboard.v1.AlertChart) content_; + return (com.google.monitoring.dashboard.v1.AlertChart) content_; } return com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance(); } public static final int TIME_SERIES_TABLE_FIELD_NUMBER = 8; /** + * + * *
              * A widget that displays time series data in a tabular format.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + * * @return Whether the timeSeriesTable field is set. */ @java.lang.Override @@ -386,21 +470,26 @@ public boolean hasTimeSeriesTable() { return contentCase_ == 8; } /** + * + * *
              * A widget that displays time series data in a tabular format.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + * * @return The timeSeriesTable. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesTable getTimeSeriesTable() { if (contentCase_ == 8) { - return (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_; + return (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_; } return com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); } /** + * + * *
              * A widget that displays time series data in a tabular format.
              * 
          @@ -410,19 +499,22 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable getTimeSeriesTable() { @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder getTimeSeriesTableOrBuilder() { if (contentCase_ == 8) { - return (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_; + return (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_; } return com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); } public static final int COLLAPSIBLE_GROUP_FIELD_NUMBER = 9; /** + * + * *
              * A widget that groups the other widgets. All widgets that are within
              * the area spanned by the grouping widget are considered member widgets.
              * 
          * * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + * * @return Whether the collapsibleGroup field is set. */ @java.lang.Override @@ -430,22 +522,27 @@ public boolean hasCollapsibleGroup() { return contentCase_ == 9; } /** + * + * *
              * A widget that groups the other widgets. All widgets that are within
              * the area spanned by the grouping widget are considered member widgets.
              * 
          * * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + * * @return The collapsibleGroup. */ @java.lang.Override public com.google.monitoring.dashboard.v1.CollapsibleGroup getCollapsibleGroup() { if (contentCase_ == 9) { - return (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_; + return (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_; } return com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance(); } /** + * + * *
              * A widget that groups the other widgets. All widgets that are within
              * the area spanned by the grouping widget are considered member widgets.
          @@ -454,20 +551,24 @@ public com.google.monitoring.dashboard.v1.CollapsibleGroup getCollapsibleGroup()
              * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9;
              */
             @java.lang.Override
          -  public com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder getCollapsibleGroupOrBuilder() {
          +  public com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder
          +      getCollapsibleGroupOrBuilder() {
               if (contentCase_ == 9) {
          -       return (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_;
          +      return (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_;
               }
               return com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance();
             }
           
             public static final int LOGS_PANEL_FIELD_NUMBER = 10;
             /**
          +   *
          +   *
              * 
              * A widget that shows a stream of logs.
              * 
          * * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + * * @return Whether the logsPanel field is set. */ @java.lang.Override @@ -475,21 +576,26 @@ public boolean hasLogsPanel() { return contentCase_ == 10; } /** + * + * *
              * A widget that shows a stream of logs.
              * 
          * * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + * * @return The logsPanel. */ @java.lang.Override public com.google.monitoring.dashboard.v1.LogsPanel getLogsPanel() { if (contentCase_ == 10) { - return (com.google.monitoring.dashboard.v1.LogsPanel) content_; + return (com.google.monitoring.dashboard.v1.LogsPanel) content_; } return com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance(); } /** + * + * *
              * A widget that shows a stream of logs.
              * 
          @@ -499,18 +605,21 @@ public com.google.monitoring.dashboard.v1.LogsPanel getLogsPanel() { @java.lang.Override public com.google.monitoring.dashboard.v1.LogsPanelOrBuilder getLogsPanelOrBuilder() { if (contentCase_ == 10) { - return (com.google.monitoring.dashboard.v1.LogsPanel) content_; + return (com.google.monitoring.dashboard.v1.LogsPanel) content_; } return com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance(); } public static final int INCIDENT_LIST_FIELD_NUMBER = 12; /** + * + * *
              * A widget that shows list of incidents.
              * 
          * * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + * * @return Whether the incidentList field is set. */ @java.lang.Override @@ -518,21 +627,26 @@ public boolean hasIncidentList() { return contentCase_ == 12; } /** + * + * *
              * A widget that shows list of incidents.
              * 
          * * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + * * @return The incidentList. */ @java.lang.Override public com.google.monitoring.dashboard.v1.IncidentList getIncidentList() { if (contentCase_ == 12) { - return (com.google.monitoring.dashboard.v1.IncidentList) content_; + return (com.google.monitoring.dashboard.v1.IncidentList) content_; } return com.google.monitoring.dashboard.v1.IncidentList.getDefaultInstance(); } /** + * + * *
              * A widget that shows list of incidents.
              * 
          @@ -542,18 +656,21 @@ public com.google.monitoring.dashboard.v1.IncidentList getIncidentList() { @java.lang.Override public com.google.monitoring.dashboard.v1.IncidentListOrBuilder getIncidentListOrBuilder() { if (contentCase_ == 12) { - return (com.google.monitoring.dashboard.v1.IncidentList) content_; + return (com.google.monitoring.dashboard.v1.IncidentList) content_; } return com.google.monitoring.dashboard.v1.IncidentList.getDefaultInstance(); } public static final int PIE_CHART_FIELD_NUMBER = 14; /** + * + * *
              * A widget that displays timeseries data as a pie chart.
              * 
          * * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + * * @return Whether the pieChart field is set. */ @java.lang.Override @@ -561,21 +678,26 @@ public boolean hasPieChart() { return contentCase_ == 14; } /** + * + * *
              * A widget that displays timeseries data as a pie chart.
              * 
          * * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + * * @return The pieChart. */ @java.lang.Override public com.google.monitoring.dashboard.v1.PieChart getPieChart() { if (contentCase_ == 14) { - return (com.google.monitoring.dashboard.v1.PieChart) content_; + return (com.google.monitoring.dashboard.v1.PieChart) content_; } return com.google.monitoring.dashboard.v1.PieChart.getDefaultInstance(); } /** + * + * *
              * A widget that displays timeseries data as a pie chart.
              * 
          @@ -585,18 +707,21 @@ public com.google.monitoring.dashboard.v1.PieChart getPieChart() { @java.lang.Override public com.google.monitoring.dashboard.v1.PieChartOrBuilder getPieChartOrBuilder() { if (contentCase_ == 14) { - return (com.google.monitoring.dashboard.v1.PieChart) content_; + return (com.google.monitoring.dashboard.v1.PieChart) content_; } return com.google.monitoring.dashboard.v1.PieChart.getDefaultInstance(); } public static final int ERROR_REPORTING_PANEL_FIELD_NUMBER = 19; /** + * + * *
              * A widget that displays a list of error groups.
              * 
          * * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + * * @return Whether the errorReportingPanel field is set. */ @java.lang.Override @@ -604,21 +729,26 @@ public boolean hasErrorReportingPanel() { return contentCase_ == 19; } /** + * + * *
              * A widget that displays a list of error groups.
              * 
          * * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + * * @return The errorReportingPanel. */ @java.lang.Override public com.google.monitoring.dashboard.v1.ErrorReportingPanel getErrorReportingPanel() { if (contentCase_ == 19) { - return (com.google.monitoring.dashboard.v1.ErrorReportingPanel) content_; + return (com.google.monitoring.dashboard.v1.ErrorReportingPanel) content_; } return com.google.monitoring.dashboard.v1.ErrorReportingPanel.getDefaultInstance(); } /** + * + * *
              * A widget that displays a list of error groups.
              * 
          @@ -626,21 +756,25 @@ public com.google.monitoring.dashboard.v1.ErrorReportingPanel getErrorReportingP * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder getErrorReportingPanelOrBuilder() { + public com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder + getErrorReportingPanelOrBuilder() { if (contentCase_ == 19) { - return (com.google.monitoring.dashboard.v1.ErrorReportingPanel) content_; + return (com.google.monitoring.dashboard.v1.ErrorReportingPanel) content_; } return com.google.monitoring.dashboard.v1.ErrorReportingPanel.getDefaultInstance(); } public static final int SECTION_HEADER_FIELD_NUMBER = 21; /** + * + * *
              * A widget that defines a section header for easier navigation of the
              * dashboard.
              * 
          * * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + * * @return Whether the sectionHeader field is set. */ @java.lang.Override @@ -648,22 +782,27 @@ public boolean hasSectionHeader() { return contentCase_ == 21; } /** + * + * *
              * A widget that defines a section header for easier navigation of the
              * dashboard.
              * 
          * * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + * * @return The sectionHeader. */ @java.lang.Override public com.google.monitoring.dashboard.v1.SectionHeader getSectionHeader() { if (contentCase_ == 21) { - return (com.google.monitoring.dashboard.v1.SectionHeader) content_; + return (com.google.monitoring.dashboard.v1.SectionHeader) content_; } return com.google.monitoring.dashboard.v1.SectionHeader.getDefaultInstance(); } /** + * + * *
              * A widget that defines a section header for easier navigation of the
              * dashboard.
          @@ -674,18 +813,21 @@ public com.google.monitoring.dashboard.v1.SectionHeader getSectionHeader() {
             @java.lang.Override
             public com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder getSectionHeaderOrBuilder() {
               if (contentCase_ == 21) {
          -       return (com.google.monitoring.dashboard.v1.SectionHeader) content_;
          +      return (com.google.monitoring.dashboard.v1.SectionHeader) content_;
               }
               return com.google.monitoring.dashboard.v1.SectionHeader.getDefaultInstance();
             }
           
             public static final int SINGLE_VIEW_GROUP_FIELD_NUMBER = 22;
             /**
          +   *
          +   *
              * 
              * A widget that groups the other widgets by using a dropdown menu.
              * 
          * * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + * * @return Whether the singleViewGroup field is set. */ @java.lang.Override @@ -693,21 +835,26 @@ public boolean hasSingleViewGroup() { return contentCase_ == 22; } /** + * + * *
              * A widget that groups the other widgets by using a dropdown menu.
              * 
          * * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + * * @return The singleViewGroup. */ @java.lang.Override public com.google.monitoring.dashboard.v1.SingleViewGroup getSingleViewGroup() { if (contentCase_ == 22) { - return (com.google.monitoring.dashboard.v1.SingleViewGroup) content_; + return (com.google.monitoring.dashboard.v1.SingleViewGroup) content_; } return com.google.monitoring.dashboard.v1.SingleViewGroup.getDefaultInstance(); } /** + * + * *
              * A widget that groups the other widgets by using a dropdown menu.
              * 
          @@ -717,21 +864,25 @@ public com.google.monitoring.dashboard.v1.SingleViewGroup getSingleViewGroup() { @java.lang.Override public com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder getSingleViewGroupOrBuilder() { if (contentCase_ == 22) { - return (com.google.monitoring.dashboard.v1.SingleViewGroup) content_; + return (com.google.monitoring.dashboard.v1.SingleViewGroup) content_; } return com.google.monitoring.dashboard.v1.SingleViewGroup.getDefaultInstance(); } public static final int ID_FIELD_NUMBER = 17; + @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** + * + * *
              * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
              * underscores. Widget ids are optional.
              * 
          * * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The id. */ @java.lang.Override @@ -740,30 +891,30 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
              * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
              * underscores. Widget ids are optional.
              * 
          * * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -772,6 +923,7 @@ public java.lang.String getId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -783,8 +935,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); } @@ -843,59 +994,72 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); } if (contentCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.monitoring.dashboard.v1.XyChart) content_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.monitoring.dashboard.v1.XyChart) content_); } if (contentCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.monitoring.dashboard.v1.Scorecard) content_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.monitoring.dashboard.v1.Scorecard) content_); } if (contentCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.monitoring.dashboard.v1.Text) content_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.monitoring.dashboard.v1.Text) content_); } if (contentCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.protobuf.Empty) content_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.protobuf.Empty) content_); } if (contentCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.monitoring.dashboard.v1.AlertChart) content_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.monitoring.dashboard.v1.AlertChart) content_); } if (contentCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_); } if (contentCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_); } if (contentCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (com.google.monitoring.dashboard.v1.LogsPanel) content_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.monitoring.dashboard.v1.LogsPanel) content_); } if (contentCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (com.google.monitoring.dashboard.v1.IncidentList) content_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.monitoring.dashboard.v1.IncidentList) content_); } if (contentCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, (com.google.monitoring.dashboard.v1.PieChart) content_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.monitoring.dashboard.v1.PieChart) content_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, id_); } if (contentCase_ == 19) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, (com.google.monitoring.dashboard.v1.ErrorReportingPanel) content_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 19, (com.google.monitoring.dashboard.v1.ErrorReportingPanel) content_); } if (contentCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, (com.google.monitoring.dashboard.v1.SectionHeader) content_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, (com.google.monitoring.dashboard.v1.SectionHeader) content_); } if (contentCase_ == 22) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, (com.google.monitoring.dashboard.v1.SingleViewGroup) content_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, (com.google.monitoring.dashboard.v1.SingleViewGroup) content_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -905,70 +1069,56 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.Widget)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.Widget other = (com.google.monitoring.dashboard.v1.Widget) obj; + com.google.monitoring.dashboard.v1.Widget other = + (com.google.monitoring.dashboard.v1.Widget) obj; - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getId() - .equals(other.getId())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getId().equals(other.getId())) return false; if (!getContentCase().equals(other.getContentCase())) return false; switch (contentCase_) { case 2: - if (!getXyChart() - .equals(other.getXyChart())) return false; + if (!getXyChart().equals(other.getXyChart())) return false; break; case 3: - if (!getScorecard() - .equals(other.getScorecard())) return false; + if (!getScorecard().equals(other.getScorecard())) return false; break; case 4: - if (!getText() - .equals(other.getText())) return false; + if (!getText().equals(other.getText())) return false; break; case 5: - if (!getBlank() - .equals(other.getBlank())) return false; + if (!getBlank().equals(other.getBlank())) return false; break; case 7: - if (!getAlertChart() - .equals(other.getAlertChart())) return false; + if (!getAlertChart().equals(other.getAlertChart())) return false; break; case 8: - if (!getTimeSeriesTable() - .equals(other.getTimeSeriesTable())) return false; + if (!getTimeSeriesTable().equals(other.getTimeSeriesTable())) return false; break; case 9: - if (!getCollapsibleGroup() - .equals(other.getCollapsibleGroup())) return false; + if (!getCollapsibleGroup().equals(other.getCollapsibleGroup())) return false; break; case 10: - if (!getLogsPanel() - .equals(other.getLogsPanel())) return false; + if (!getLogsPanel().equals(other.getLogsPanel())) return false; break; case 12: - if (!getIncidentList() - .equals(other.getIncidentList())) return false; + if (!getIncidentList().equals(other.getIncidentList())) return false; break; case 14: - if (!getPieChart() - .equals(other.getPieChart())) return false; + if (!getPieChart().equals(other.getPieChart())) return false; break; case 19: - if (!getErrorReportingPanel() - .equals(other.getErrorReportingPanel())) return false; + if (!getErrorReportingPanel().equals(other.getErrorReportingPanel())) return false; break; case 21: - if (!getSectionHeader() - .equals(other.getSectionHeader())) return false; + if (!getSectionHeader().equals(other.getSectionHeader())) return false; break; case 22: - if (!getSingleViewGroup() - .equals(other.getSingleViewGroup())) return false; + if (!getSingleViewGroup().equals(other.getSingleViewGroup())) return false; break; case 0: default: @@ -1049,99 +1199,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.Widget parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.Widget parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Widget parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Widget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Widget 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.Widget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.Widget parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.Widget parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.Widget parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.Widget parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.Widget parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.Widget parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.Widget parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.Widget parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.Widget prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Widget contains a single dashboard component and configuration of how to
              * present the component in the dashboard.
          @@ -1149,33 +1304,32 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.monitoring.dashboard.v1.Widget}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.Widget)
                 com.google.monitoring.dashboard.v1.WidgetOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.monitoring.dashboard.v1.WidgetProto.internal_static_google_monitoring_dashboard_v1_Widget_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.monitoring.dashboard.v1.WidgetProto
          +          .internal_static_google_monitoring_dashboard_v1_Widget_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.monitoring.dashboard.v1.WidgetProto.internal_static_google_monitoring_dashboard_v1_Widget_fieldAccessorTable
          +      return com.google.monitoring.dashboard.v1.WidgetProto
          +          .internal_static_google_monitoring_dashboard_v1_Widget_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.monitoring.dashboard.v1.Widget.class, com.google.monitoring.dashboard.v1.Widget.Builder.class);
          +              com.google.monitoring.dashboard.v1.Widget.class,
          +              com.google.monitoring.dashboard.v1.Widget.Builder.class);
               }
           
               // Construct using com.google.monitoring.dashboard.v1.Widget.newBuilder()
          -    private Builder() {
          -
          -    }
          +    private Builder() {}
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
          -
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -1227,9 +1381,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.monitoring.dashboard.v1.WidgetProto.internal_static_google_monitoring_dashboard_v1_Widget_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.monitoring.dashboard.v1.WidgetProto
          +          .internal_static_google_monitoring_dashboard_v1_Widget_descriptor;
               }
           
               @java.lang.Override
          @@ -1248,8 +1402,11 @@ public com.google.monitoring.dashboard.v1.Widget build() {
           
               @java.lang.Override
               public com.google.monitoring.dashboard.v1.Widget buildPartial() {
          -      com.google.monitoring.dashboard.v1.Widget result = new com.google.monitoring.dashboard.v1.Widget(this);
          -      if (bitField0_ != 0) { buildPartial0(result); }
          +      com.google.monitoring.dashboard.v1.Widget result =
          +          new com.google.monitoring.dashboard.v1.Widget(this);
          +      if (bitField0_ != 0) {
          +        buildPartial0(result);
          +      }
                 buildPartialOneofs(result);
                 onBuilt();
                 return result;
          @@ -1268,56 +1425,43 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.Widget result) {
               private void buildPartialOneofs(com.google.monitoring.dashboard.v1.Widget result) {
                 result.contentCase_ = contentCase_;
                 result.content_ = this.content_;
          -      if (contentCase_ == 2 &&
          -          xyChartBuilder_ != null) {
          +      if (contentCase_ == 2 && xyChartBuilder_ != null) {
                   result.content_ = xyChartBuilder_.build();
                 }
          -      if (contentCase_ == 3 &&
          -          scorecardBuilder_ != null) {
          +      if (contentCase_ == 3 && scorecardBuilder_ != null) {
                   result.content_ = scorecardBuilder_.build();
                 }
          -      if (contentCase_ == 4 &&
          -          textBuilder_ != null) {
          +      if (contentCase_ == 4 && textBuilder_ != null) {
                   result.content_ = textBuilder_.build();
                 }
          -      if (contentCase_ == 5 &&
          -          blankBuilder_ != null) {
          +      if (contentCase_ == 5 && blankBuilder_ != null) {
                   result.content_ = blankBuilder_.build();
                 }
          -      if (contentCase_ == 7 &&
          -          alertChartBuilder_ != null) {
          +      if (contentCase_ == 7 && alertChartBuilder_ != null) {
                   result.content_ = alertChartBuilder_.build();
                 }
          -      if (contentCase_ == 8 &&
          -          timeSeriesTableBuilder_ != null) {
          +      if (contentCase_ == 8 && timeSeriesTableBuilder_ != null) {
                   result.content_ = timeSeriesTableBuilder_.build();
                 }
          -      if (contentCase_ == 9 &&
          -          collapsibleGroupBuilder_ != null) {
          +      if (contentCase_ == 9 && collapsibleGroupBuilder_ != null) {
                   result.content_ = collapsibleGroupBuilder_.build();
                 }
          -      if (contentCase_ == 10 &&
          -          logsPanelBuilder_ != null) {
          +      if (contentCase_ == 10 && logsPanelBuilder_ != null) {
                   result.content_ = logsPanelBuilder_.build();
                 }
          -      if (contentCase_ == 12 &&
          -          incidentListBuilder_ != null) {
          +      if (contentCase_ == 12 && incidentListBuilder_ != null) {
                   result.content_ = incidentListBuilder_.build();
                 }
          -      if (contentCase_ == 14 &&
          -          pieChartBuilder_ != null) {
          +      if (contentCase_ == 14 && pieChartBuilder_ != null) {
                   result.content_ = pieChartBuilder_.build();
                 }
          -      if (contentCase_ == 19 &&
          -          errorReportingPanelBuilder_ != null) {
          +      if (contentCase_ == 19 && errorReportingPanelBuilder_ != null) {
                   result.content_ = errorReportingPanelBuilder_.build();
                 }
          -      if (contentCase_ == 21 &&
          -          sectionHeaderBuilder_ != null) {
          +      if (contentCase_ == 21 && sectionHeaderBuilder_ != null) {
                   result.content_ = sectionHeaderBuilder_.build();
                 }
          -      if (contentCase_ == 22 &&
          -          singleViewGroupBuilder_ != null) {
          +      if (contentCase_ == 22 && singleViewGroupBuilder_ != null) {
                   result.content_ = singleViewGroupBuilder_.build();
                 }
               }
          @@ -1326,38 +1470,39 @@ private void buildPartialOneofs(com.google.monitoring.dashboard.v1.Widget result
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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.Widget) {
          -        return mergeFrom((com.google.monitoring.dashboard.v1.Widget)other);
          +        return mergeFrom((com.google.monitoring.dashboard.v1.Widget) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1377,61 +1522,75 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.Widget other) {
                   onChanged();
                 }
                 switch (other.getContentCase()) {
          -        case XY_CHART: {
          -          mergeXyChart(other.getXyChart());
          -          break;
          -        }
          -        case SCORECARD: {
          -          mergeScorecard(other.getScorecard());
          -          break;
          -        }
          -        case TEXT: {
          -          mergeText(other.getText());
          -          break;
          -        }
          -        case BLANK: {
          -          mergeBlank(other.getBlank());
          -          break;
          -        }
          -        case ALERT_CHART: {
          -          mergeAlertChart(other.getAlertChart());
          -          break;
          -        }
          -        case TIME_SERIES_TABLE: {
          -          mergeTimeSeriesTable(other.getTimeSeriesTable());
          -          break;
          -        }
          -        case COLLAPSIBLE_GROUP: {
          -          mergeCollapsibleGroup(other.getCollapsibleGroup());
          -          break;
          -        }
          -        case LOGS_PANEL: {
          -          mergeLogsPanel(other.getLogsPanel());
          -          break;
          -        }
          -        case INCIDENT_LIST: {
          -          mergeIncidentList(other.getIncidentList());
          -          break;
          -        }
          -        case PIE_CHART: {
          -          mergePieChart(other.getPieChart());
          -          break;
          -        }
          -        case ERROR_REPORTING_PANEL: {
          -          mergeErrorReportingPanel(other.getErrorReportingPanel());
          -          break;
          -        }
          -        case SECTION_HEADER: {
          -          mergeSectionHeader(other.getSectionHeader());
          -          break;
          -        }
          -        case SINGLE_VIEW_GROUP: {
          -          mergeSingleViewGroup(other.getSingleViewGroup());
          -          break;
          -        }
          -        case CONTENT_NOT_SET: {
          -          break;
          -        }
          +        case XY_CHART:
          +          {
          +            mergeXyChart(other.getXyChart());
          +            break;
          +          }
          +        case SCORECARD:
          +          {
          +            mergeScorecard(other.getScorecard());
          +            break;
          +          }
          +        case TEXT:
          +          {
          +            mergeText(other.getText());
          +            break;
          +          }
          +        case BLANK:
          +          {
          +            mergeBlank(other.getBlank());
          +            break;
          +          }
          +        case ALERT_CHART:
          +          {
          +            mergeAlertChart(other.getAlertChart());
          +            break;
          +          }
          +        case TIME_SERIES_TABLE:
          +          {
          +            mergeTimeSeriesTable(other.getTimeSeriesTable());
          +            break;
          +          }
          +        case COLLAPSIBLE_GROUP:
          +          {
          +            mergeCollapsibleGroup(other.getCollapsibleGroup());
          +            break;
          +          }
          +        case LOGS_PANEL:
          +          {
          +            mergeLogsPanel(other.getLogsPanel());
          +            break;
          +          }
          +        case INCIDENT_LIST:
          +          {
          +            mergeIncidentList(other.getIncidentList());
          +            break;
          +          }
          +        case PIE_CHART:
          +          {
          +            mergePieChart(other.getPieChart());
          +            break;
          +          }
          +        case ERROR_REPORTING_PANEL:
          +          {
          +            mergeErrorReportingPanel(other.getErrorReportingPanel());
          +            break;
          +          }
          +        case SECTION_HEADER:
          +          {
          +            mergeSectionHeader(other.getSectionHeader());
          +            break;
          +          }
          +        case SINGLE_VIEW_GROUP:
          +          {
          +            mergeSingleViewGroup(other.getSingleViewGroup());
          +            break;
          +          }
          +        case CONTENT_NOT_SET:
          +          {
          +            break;
          +          }
                 }
                 this.mergeUnknownFields(other.getUnknownFields());
                 onChanged();
          @@ -1459,113 +1618,105 @@ public Builder mergeFrom(
                       case 0:
                         done = true;
                         break;
          -            case 10: {
          -              title_ = input.readStringRequireUtf8();
          -              bitField0_ |= 0x00000001;
          -              break;
          -            } // case 10
          -            case 18: {
          -              input.readMessage(
          -                  getXyChartFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              contentCase_ = 2;
          -              break;
          -            } // case 18
          -            case 26: {
          -              input.readMessage(
          -                  getScorecardFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              contentCase_ = 3;
          -              break;
          -            } // case 26
          -            case 34: {
          -              input.readMessage(
          -                  getTextFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              contentCase_ = 4;
          -              break;
          -            } // case 34
          -            case 42: {
          -              input.readMessage(
          -                  getBlankFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              contentCase_ = 5;
          -              break;
          -            } // case 42
          -            case 58: {
          -              input.readMessage(
          -                  getAlertChartFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              contentCase_ = 7;
          -              break;
          -            } // case 58
          -            case 66: {
          -              input.readMessage(
          -                  getTimeSeriesTableFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              contentCase_ = 8;
          -              break;
          -            } // case 66
          -            case 74: {
          -              input.readMessage(
          -                  getCollapsibleGroupFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              contentCase_ = 9;
          -              break;
          -            } // case 74
          -            case 82: {
          -              input.readMessage(
          -                  getLogsPanelFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              contentCase_ = 10;
          -              break;
          -            } // case 82
          -            case 98: {
          -              input.readMessage(
          -                  getIncidentListFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              contentCase_ = 12;
          -              break;
          -            } // case 98
          -            case 114: {
          -              input.readMessage(
          -                  getPieChartFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              contentCase_ = 14;
          -              break;
          -            } // case 114
          -            case 138: {
          -              id_ = input.readStringRequireUtf8();
          -              bitField0_ |= 0x00004000;
          -              break;
          -            } // case 138
          -            case 154: {
          -              input.readMessage(
          -                  getErrorReportingPanelFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              contentCase_ = 19;
          -              break;
          -            } // case 154
          -            case 170: {
          -              input.readMessage(
          -                  getSectionHeaderFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              contentCase_ = 21;
          -              break;
          -            } // case 170
          -            case 178: {
          -              input.readMessage(
          -                  getSingleViewGroupFieldBuilder().getBuilder(),
          -                  extensionRegistry);
          -              contentCase_ = 22;
          -              break;
          -            } // case 178
          -            default: {
          -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
          -                done = true; // was an endgroup tag
          -              }
          -              break;
          -            } // default:
          +            case 10:
          +              {
          +                title_ = input.readStringRequireUtf8();
          +                bitField0_ |= 0x00000001;
          +                break;
          +              } // case 10
          +            case 18:
          +              {
          +                input.readMessage(getXyChartFieldBuilder().getBuilder(), extensionRegistry);
          +                contentCase_ = 2;
          +                break;
          +              } // case 18
          +            case 26:
          +              {
          +                input.readMessage(getScorecardFieldBuilder().getBuilder(), extensionRegistry);
          +                contentCase_ = 3;
          +                break;
          +              } // case 26
          +            case 34:
          +              {
          +                input.readMessage(getTextFieldBuilder().getBuilder(), extensionRegistry);
          +                contentCase_ = 4;
          +                break;
          +              } // case 34
          +            case 42:
          +              {
          +                input.readMessage(getBlankFieldBuilder().getBuilder(), extensionRegistry);
          +                contentCase_ = 5;
          +                break;
          +              } // case 42
          +            case 58:
          +              {
          +                input.readMessage(getAlertChartFieldBuilder().getBuilder(), extensionRegistry);
          +                contentCase_ = 7;
          +                break;
          +              } // case 58
          +            case 66:
          +              {
          +                input.readMessage(getTimeSeriesTableFieldBuilder().getBuilder(), extensionRegistry);
          +                contentCase_ = 8;
          +                break;
          +              } // case 66
          +            case 74:
          +              {
          +                input.readMessage(
          +                    getCollapsibleGroupFieldBuilder().getBuilder(), extensionRegistry);
          +                contentCase_ = 9;
          +                break;
          +              } // case 74
          +            case 82:
          +              {
          +                input.readMessage(getLogsPanelFieldBuilder().getBuilder(), extensionRegistry);
          +                contentCase_ = 10;
          +                break;
          +              } // case 82
          +            case 98:
          +              {
          +                input.readMessage(getIncidentListFieldBuilder().getBuilder(), extensionRegistry);
          +                contentCase_ = 12;
          +                break;
          +              } // case 98
          +            case 114:
          +              {
          +                input.readMessage(getPieChartFieldBuilder().getBuilder(), extensionRegistry);
          +                contentCase_ = 14;
          +                break;
          +              } // case 114
          +            case 138:
          +              {
          +                id_ = input.readStringRequireUtf8();
          +                bitField0_ |= 0x00004000;
          +                break;
          +              } // case 138
          +            case 154:
          +              {
          +                input.readMessage(
          +                    getErrorReportingPanelFieldBuilder().getBuilder(), extensionRegistry);
          +                contentCase_ = 19;
          +                break;
          +              } // case 154
          +            case 170:
          +              {
          +                input.readMessage(getSectionHeaderFieldBuilder().getBuilder(), extensionRegistry);
          +                contentCase_ = 21;
          +                break;
          +              } // case 170
          +            case 178:
          +              {
          +                input.readMessage(getSingleViewGroupFieldBuilder().getBuilder(), extensionRegistry);
          +                contentCase_ = 22;
          +                break;
          +              } // case 178
          +            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) {
          @@ -1575,12 +1726,12 @@ public Builder mergeFrom(
                 } // finally
                 return this;
               }
          +
               private int contentCase_ = 0;
               private java.lang.Object content_;
          -    public ContentCase
          -        getContentCase() {
          -      return ContentCase.forNumber(
          -          contentCase_);
          +
          +    public ContentCase getContentCase() {
          +      return ContentCase.forNumber(contentCase_);
               }
           
               public Builder clearContent() {
          @@ -1594,18 +1745,20 @@ public Builder clearContent() {
           
               private java.lang.Object title_ = "";
               /**
          +     *
          +     *
                * 
                * Optional. The title of the widget.
                * 
          * * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; @@ -1614,20 +1767,21 @@ public java.lang.String getTitle() { } } /** + * + * *
                * Optional. The title of the widget.
                * 
          * * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for title. */ - public com.google.protobuf.ByteString - getTitleBytes() { + public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { @@ -1635,28 +1789,35 @@ public java.lang.String getTitle() { } } /** + * + * *
                * Optional. The title of the widget.
                * 
          * * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The title to set. * @return This builder for chaining. */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } title_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                * Optional. The title of the widget.
                * 
          * * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTitle() { @@ -1666,17 +1827,21 @@ public Builder clearTitle() { return this; } /** + * + * *
                * Optional. The title of the widget.
                * 
          * * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); title_ = value; bitField0_ |= 0x00000001; @@ -1685,13 +1850,19 @@ public Builder setTitleBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart, com.google.monitoring.dashboard.v1.XyChart.Builder, com.google.monitoring.dashboard.v1.XyChartOrBuilder> xyChartBuilder_; + com.google.monitoring.dashboard.v1.XyChart, + com.google.monitoring.dashboard.v1.XyChart.Builder, + com.google.monitoring.dashboard.v1.XyChartOrBuilder> + xyChartBuilder_; /** + * + * *
                * A chart of time series data.
                * 
          * * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + * * @return Whether the xyChart field is set. */ @java.lang.Override @@ -1699,11 +1870,14 @@ public boolean hasXyChart() { return contentCase_ == 2; } /** + * + * *
                * A chart of time series data.
                * 
          * * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + * * @return The xyChart. */ @java.lang.Override @@ -1721,6 +1895,8 @@ public com.google.monitoring.dashboard.v1.XyChart getXyChart() { } } /** + * + * *
                * A chart of time series data.
                * 
          @@ -1741,14 +1917,15 @@ public Builder setXyChart(com.google.monitoring.dashboard.v1.XyChart value) { return this; } /** + * + * *
                * A chart of time series data.
                * 
          * * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; */ - public Builder setXyChart( - com.google.monitoring.dashboard.v1.XyChart.Builder builderForValue) { + public Builder setXyChart(com.google.monitoring.dashboard.v1.XyChart.Builder builderForValue) { if (xyChartBuilder_ == null) { content_ = builderForValue.build(); onChanged(); @@ -1759,6 +1936,8 @@ public Builder setXyChart( return this; } /** + * + * *
                * A chart of time series data.
                * 
          @@ -1767,10 +1946,13 @@ public Builder setXyChart( */ public Builder mergeXyChart(com.google.monitoring.dashboard.v1.XyChart value) { if (xyChartBuilder_ == null) { - if (contentCase_ == 2 && - content_ != com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance()) { - content_ = com.google.monitoring.dashboard.v1.XyChart.newBuilder((com.google.monitoring.dashboard.v1.XyChart) content_) - .mergeFrom(value).buildPartial(); + if (contentCase_ == 2 + && content_ != com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance()) { + content_ = + com.google.monitoring.dashboard.v1.XyChart.newBuilder( + (com.google.monitoring.dashboard.v1.XyChart) content_) + .mergeFrom(value) + .buildPartial(); } else { content_ = value; } @@ -1786,6 +1968,8 @@ public Builder mergeXyChart(com.google.monitoring.dashboard.v1.XyChart value) { return this; } /** + * + * *
                * A chart of time series data.
                * 
          @@ -1809,6 +1993,8 @@ public Builder clearXyChart() { return this; } /** + * + * *
                * A chart of time series data.
                * 
          @@ -1819,6 +2005,8 @@ public com.google.monitoring.dashboard.v1.XyChart.Builder getXyChartBuilder() { return getXyChartFieldBuilder().getBuilder(); } /** + * + * *
                * A chart of time series data.
                * 
          @@ -1837,6 +2025,8 @@ public com.google.monitoring.dashboard.v1.XyChartOrBuilder getXyChartOrBuilder() } } /** + * + * *
                * A chart of time series data.
                * 
          @@ -1844,14 +2034,19 @@ public com.google.monitoring.dashboard.v1.XyChartOrBuilder getXyChartOrBuilder() * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart, com.google.monitoring.dashboard.v1.XyChart.Builder, com.google.monitoring.dashboard.v1.XyChartOrBuilder> + com.google.monitoring.dashboard.v1.XyChart, + com.google.monitoring.dashboard.v1.XyChart.Builder, + com.google.monitoring.dashboard.v1.XyChartOrBuilder> getXyChartFieldBuilder() { if (xyChartBuilder_ == null) { if (!(contentCase_ == 2)) { content_ = com.google.monitoring.dashboard.v1.XyChart.getDefaultInstance(); } - xyChartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart, com.google.monitoring.dashboard.v1.XyChart.Builder, com.google.monitoring.dashboard.v1.XyChartOrBuilder>( + xyChartBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.XyChart, + com.google.monitoring.dashboard.v1.XyChart.Builder, + com.google.monitoring.dashboard.v1.XyChartOrBuilder>( (com.google.monitoring.dashboard.v1.XyChart) content_, getParentForChildren(), isClean()); @@ -1863,13 +2058,19 @@ public com.google.monitoring.dashboard.v1.XyChartOrBuilder getXyChartOrBuilder() } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard, com.google.monitoring.dashboard.v1.Scorecard.Builder, com.google.monitoring.dashboard.v1.ScorecardOrBuilder> scorecardBuilder_; + com.google.monitoring.dashboard.v1.Scorecard, + com.google.monitoring.dashboard.v1.Scorecard.Builder, + com.google.monitoring.dashboard.v1.ScorecardOrBuilder> + scorecardBuilder_; /** + * + * *
                * A scorecard summarizing time series data.
                * 
          * * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + * * @return Whether the scorecard field is set. */ @java.lang.Override @@ -1877,11 +2078,14 @@ public boolean hasScorecard() { return contentCase_ == 3; } /** + * + * *
                * A scorecard summarizing time series data.
                * 
          * * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + * * @return The scorecard. */ @java.lang.Override @@ -1899,6 +2103,8 @@ public com.google.monitoring.dashboard.v1.Scorecard getScorecard() { } } /** + * + * *
                * A scorecard summarizing time series data.
                * 
          @@ -1919,6 +2125,8 @@ public Builder setScorecard(com.google.monitoring.dashboard.v1.Scorecard value) return this; } /** + * + * *
                * A scorecard summarizing time series data.
                * 
          @@ -1937,6 +2145,8 @@ public Builder setScorecard( return this; } /** + * + * *
                * A scorecard summarizing time series data.
                * 
          @@ -1945,10 +2155,13 @@ public Builder setScorecard( */ public Builder mergeScorecard(com.google.monitoring.dashboard.v1.Scorecard value) { if (scorecardBuilder_ == null) { - if (contentCase_ == 3 && - content_ != com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance()) { - content_ = com.google.monitoring.dashboard.v1.Scorecard.newBuilder((com.google.monitoring.dashboard.v1.Scorecard) content_) - .mergeFrom(value).buildPartial(); + if (contentCase_ == 3 + && content_ != com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance()) { + content_ = + com.google.monitoring.dashboard.v1.Scorecard.newBuilder( + (com.google.monitoring.dashboard.v1.Scorecard) content_) + .mergeFrom(value) + .buildPartial(); } else { content_ = value; } @@ -1964,6 +2177,8 @@ public Builder mergeScorecard(com.google.monitoring.dashboard.v1.Scorecard value return this; } /** + * + * *
                * A scorecard summarizing time series data.
                * 
          @@ -1987,6 +2202,8 @@ public Builder clearScorecard() { return this; } /** + * + * *
                * A scorecard summarizing time series data.
                * 
          @@ -1997,6 +2214,8 @@ public com.google.monitoring.dashboard.v1.Scorecard.Builder getScorecardBuilder( return getScorecardFieldBuilder().getBuilder(); } /** + * + * *
                * A scorecard summarizing time series data.
                * 
          @@ -2015,6 +2234,8 @@ public com.google.monitoring.dashboard.v1.ScorecardOrBuilder getScorecardOrBuild } } /** + * + * *
                * A scorecard summarizing time series data.
                * 
          @@ -2022,14 +2243,19 @@ public com.google.monitoring.dashboard.v1.ScorecardOrBuilder getScorecardOrBuild * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard, com.google.monitoring.dashboard.v1.Scorecard.Builder, com.google.monitoring.dashboard.v1.ScorecardOrBuilder> + com.google.monitoring.dashboard.v1.Scorecard, + com.google.monitoring.dashboard.v1.Scorecard.Builder, + com.google.monitoring.dashboard.v1.ScorecardOrBuilder> getScorecardFieldBuilder() { if (scorecardBuilder_ == null) { if (!(contentCase_ == 3)) { content_ = com.google.monitoring.dashboard.v1.Scorecard.getDefaultInstance(); } - scorecardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Scorecard, com.google.monitoring.dashboard.v1.Scorecard.Builder, com.google.monitoring.dashboard.v1.ScorecardOrBuilder>( + scorecardBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Scorecard, + com.google.monitoring.dashboard.v1.Scorecard.Builder, + com.google.monitoring.dashboard.v1.ScorecardOrBuilder>( (com.google.monitoring.dashboard.v1.Scorecard) content_, getParentForChildren(), isClean()); @@ -2041,13 +2267,19 @@ public com.google.monitoring.dashboard.v1.ScorecardOrBuilder getScorecardOrBuild } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Text, com.google.monitoring.dashboard.v1.Text.Builder, com.google.monitoring.dashboard.v1.TextOrBuilder> textBuilder_; + com.google.monitoring.dashboard.v1.Text, + com.google.monitoring.dashboard.v1.Text.Builder, + com.google.monitoring.dashboard.v1.TextOrBuilder> + textBuilder_; /** + * + * *
                * A raw string or markdown displaying textual content.
                * 
          * * .google.monitoring.dashboard.v1.Text text = 4; + * * @return Whether the text field is set. */ @java.lang.Override @@ -2055,11 +2287,14 @@ public boolean hasText() { return contentCase_ == 4; } /** + * + * *
                * A raw string or markdown displaying textual content.
                * 
          * * .google.monitoring.dashboard.v1.Text text = 4; + * * @return The text. */ @java.lang.Override @@ -2077,6 +2312,8 @@ public com.google.monitoring.dashboard.v1.Text getText() { } } /** + * + * *
                * A raw string or markdown displaying textual content.
                * 
          @@ -2097,14 +2334,15 @@ public Builder setText(com.google.monitoring.dashboard.v1.Text value) { return this; } /** + * + * *
                * A raw string or markdown displaying textual content.
                * 
          * * .google.monitoring.dashboard.v1.Text text = 4; */ - public Builder setText( - com.google.monitoring.dashboard.v1.Text.Builder builderForValue) { + public Builder setText(com.google.monitoring.dashboard.v1.Text.Builder builderForValue) { if (textBuilder_ == null) { content_ = builderForValue.build(); onChanged(); @@ -2115,6 +2353,8 @@ public Builder setText( return this; } /** + * + * *
                * A raw string or markdown displaying textual content.
                * 
          @@ -2123,10 +2363,13 @@ public Builder setText( */ public Builder mergeText(com.google.monitoring.dashboard.v1.Text value) { if (textBuilder_ == null) { - if (contentCase_ == 4 && - content_ != com.google.monitoring.dashboard.v1.Text.getDefaultInstance()) { - content_ = com.google.monitoring.dashboard.v1.Text.newBuilder((com.google.monitoring.dashboard.v1.Text) content_) - .mergeFrom(value).buildPartial(); + if (contentCase_ == 4 + && content_ != com.google.monitoring.dashboard.v1.Text.getDefaultInstance()) { + content_ = + com.google.monitoring.dashboard.v1.Text.newBuilder( + (com.google.monitoring.dashboard.v1.Text) content_) + .mergeFrom(value) + .buildPartial(); } else { content_ = value; } @@ -2142,6 +2385,8 @@ public Builder mergeText(com.google.monitoring.dashboard.v1.Text value) { return this; } /** + * + * *
                * A raw string or markdown displaying textual content.
                * 
          @@ -2165,6 +2410,8 @@ public Builder clearText() { return this; } /** + * + * *
                * A raw string or markdown displaying textual content.
                * 
          @@ -2175,6 +2422,8 @@ public com.google.monitoring.dashboard.v1.Text.Builder getTextBuilder() { return getTextFieldBuilder().getBuilder(); } /** + * + * *
                * A raw string or markdown displaying textual content.
                * 
          @@ -2193,6 +2442,8 @@ public com.google.monitoring.dashboard.v1.TextOrBuilder getTextOrBuilder() { } } /** + * + * *
                * A raw string or markdown displaying textual content.
                * 
          @@ -2200,14 +2451,19 @@ public com.google.monitoring.dashboard.v1.TextOrBuilder getTextOrBuilder() { * .google.monitoring.dashboard.v1.Text text = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Text, com.google.monitoring.dashboard.v1.Text.Builder, com.google.monitoring.dashboard.v1.TextOrBuilder> + com.google.monitoring.dashboard.v1.Text, + com.google.monitoring.dashboard.v1.Text.Builder, + com.google.monitoring.dashboard.v1.TextOrBuilder> getTextFieldBuilder() { if (textBuilder_ == null) { if (!(contentCase_ == 4)) { content_ = com.google.monitoring.dashboard.v1.Text.getDefaultInstance(); } - textBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.Text, com.google.monitoring.dashboard.v1.Text.Builder, com.google.monitoring.dashboard.v1.TextOrBuilder>( + textBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Text, + com.google.monitoring.dashboard.v1.Text.Builder, + com.google.monitoring.dashboard.v1.TextOrBuilder>( (com.google.monitoring.dashboard.v1.Text) content_, getParentForChildren(), isClean()); @@ -2219,13 +2475,19 @@ public com.google.monitoring.dashboard.v1.TextOrBuilder getTextOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> blankBuilder_; + com.google.protobuf.Empty, + com.google.protobuf.Empty.Builder, + com.google.protobuf.EmptyOrBuilder> + blankBuilder_; /** + * + * *
                * A blank space.
                * 
          * * .google.protobuf.Empty blank = 5; + * * @return Whether the blank field is set. */ @java.lang.Override @@ -2233,11 +2495,14 @@ public boolean hasBlank() { return contentCase_ == 5; } /** + * + * *
                * A blank space.
                * 
          * * .google.protobuf.Empty blank = 5; + * * @return The blank. */ @java.lang.Override @@ -2255,6 +2520,8 @@ public com.google.protobuf.Empty getBlank() { } } /** + * + * *
                * A blank space.
                * 
          @@ -2275,14 +2542,15 @@ public Builder setBlank(com.google.protobuf.Empty value) { return this; } /** + * + * *
                * A blank space.
                * 
          * * .google.protobuf.Empty blank = 5; */ - public Builder setBlank( - com.google.protobuf.Empty.Builder builderForValue) { + public Builder setBlank(com.google.protobuf.Empty.Builder builderForValue) { if (blankBuilder_ == null) { content_ = builderForValue.build(); onChanged(); @@ -2293,6 +2561,8 @@ public Builder setBlank( return this; } /** + * + * *
                * A blank space.
                * 
          @@ -2301,10 +2571,11 @@ public Builder setBlank( */ public Builder mergeBlank(com.google.protobuf.Empty value) { if (blankBuilder_ == null) { - if (contentCase_ == 5 && - content_ != com.google.protobuf.Empty.getDefaultInstance()) { - content_ = com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) content_) - .mergeFrom(value).buildPartial(); + if (contentCase_ == 5 && content_ != com.google.protobuf.Empty.getDefaultInstance()) { + content_ = + com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) content_) + .mergeFrom(value) + .buildPartial(); } else { content_ = value; } @@ -2320,6 +2591,8 @@ public Builder mergeBlank(com.google.protobuf.Empty value) { return this; } /** + * + * *
                * A blank space.
                * 
          @@ -2343,6 +2616,8 @@ public Builder clearBlank() { return this; } /** + * + * *
                * A blank space.
                * 
          @@ -2353,6 +2628,8 @@ public com.google.protobuf.Empty.Builder getBlankBuilder() { return getBlankFieldBuilder().getBuilder(); } /** + * + * *
                * A blank space.
                * 
          @@ -2371,6 +2648,8 @@ public com.google.protobuf.EmptyOrBuilder getBlankOrBuilder() { } } /** + * + * *
                * A blank space.
                * 
          @@ -2378,17 +2657,20 @@ public com.google.protobuf.EmptyOrBuilder getBlankOrBuilder() { * .google.protobuf.Empty blank = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> + com.google.protobuf.Empty, + com.google.protobuf.Empty.Builder, + com.google.protobuf.EmptyOrBuilder> getBlankFieldBuilder() { if (blankBuilder_ == null) { if (!(contentCase_ == 5)) { content_ = com.google.protobuf.Empty.getDefaultInstance(); } - blankBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder>( - (com.google.protobuf.Empty) content_, - getParentForChildren(), - isClean()); + blankBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, + com.google.protobuf.Empty.Builder, + com.google.protobuf.EmptyOrBuilder>( + (com.google.protobuf.Empty) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 5; @@ -2397,13 +2679,19 @@ public com.google.protobuf.EmptyOrBuilder getBlankOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.AlertChart, com.google.monitoring.dashboard.v1.AlertChart.Builder, com.google.monitoring.dashboard.v1.AlertChartOrBuilder> alertChartBuilder_; + com.google.monitoring.dashboard.v1.AlertChart, + com.google.monitoring.dashboard.v1.AlertChart.Builder, + com.google.monitoring.dashboard.v1.AlertChartOrBuilder> + alertChartBuilder_; /** + * + * *
                * A chart of alert policy data.
                * 
          * * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + * * @return Whether the alertChart field is set. */ @java.lang.Override @@ -2411,11 +2699,14 @@ public boolean hasAlertChart() { return contentCase_ == 7; } /** + * + * *
                * A chart of alert policy data.
                * 
          * * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + * * @return The alertChart. */ @java.lang.Override @@ -2433,6 +2724,8 @@ public com.google.monitoring.dashboard.v1.AlertChart getAlertChart() { } } /** + * + * *
                * A chart of alert policy data.
                * 
          @@ -2453,6 +2746,8 @@ public Builder setAlertChart(com.google.monitoring.dashboard.v1.AlertChart value return this; } /** + * + * *
                * A chart of alert policy data.
                * 
          @@ -2471,6 +2766,8 @@ public Builder setAlertChart( return this; } /** + * + * *
                * A chart of alert policy data.
                * 
          @@ -2479,10 +2776,13 @@ public Builder setAlertChart( */ public Builder mergeAlertChart(com.google.monitoring.dashboard.v1.AlertChart value) { if (alertChartBuilder_ == null) { - if (contentCase_ == 7 && - content_ != com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance()) { - content_ = com.google.monitoring.dashboard.v1.AlertChart.newBuilder((com.google.monitoring.dashboard.v1.AlertChart) content_) - .mergeFrom(value).buildPartial(); + if (contentCase_ == 7 + && content_ != com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance()) { + content_ = + com.google.monitoring.dashboard.v1.AlertChart.newBuilder( + (com.google.monitoring.dashboard.v1.AlertChart) content_) + .mergeFrom(value) + .buildPartial(); } else { content_ = value; } @@ -2498,6 +2798,8 @@ public Builder mergeAlertChart(com.google.monitoring.dashboard.v1.AlertChart val return this; } /** + * + * *
                * A chart of alert policy data.
                * 
          @@ -2521,6 +2823,8 @@ public Builder clearAlertChart() { return this; } /** + * + * *
                * A chart of alert policy data.
                * 
          @@ -2531,6 +2835,8 @@ public com.google.monitoring.dashboard.v1.AlertChart.Builder getAlertChartBuilde return getAlertChartFieldBuilder().getBuilder(); } /** + * + * *
                * A chart of alert policy data.
                * 
          @@ -2549,6 +2855,8 @@ public com.google.monitoring.dashboard.v1.AlertChartOrBuilder getAlertChartOrBui } } /** + * + * *
                * A chart of alert policy data.
                * 
          @@ -2556,14 +2864,19 @@ public com.google.monitoring.dashboard.v1.AlertChartOrBuilder getAlertChartOrBui * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.AlertChart, com.google.monitoring.dashboard.v1.AlertChart.Builder, com.google.monitoring.dashboard.v1.AlertChartOrBuilder> + com.google.monitoring.dashboard.v1.AlertChart, + com.google.monitoring.dashboard.v1.AlertChart.Builder, + com.google.monitoring.dashboard.v1.AlertChartOrBuilder> getAlertChartFieldBuilder() { if (alertChartBuilder_ == null) { if (!(contentCase_ == 7)) { content_ = com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance(); } - alertChartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.AlertChart, com.google.monitoring.dashboard.v1.AlertChart.Builder, com.google.monitoring.dashboard.v1.AlertChartOrBuilder>( + alertChartBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.AlertChart, + com.google.monitoring.dashboard.v1.AlertChart.Builder, + com.google.monitoring.dashboard.v1.AlertChartOrBuilder>( (com.google.monitoring.dashboard.v1.AlertChart) content_, getParentForChildren(), isClean()); @@ -2575,13 +2888,19 @@ public com.google.monitoring.dashboard.v1.AlertChartOrBuilder getAlertChartOrBui } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesTable, com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder, com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder> timeSeriesTableBuilder_; + com.google.monitoring.dashboard.v1.TimeSeriesTable, + com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder> + timeSeriesTableBuilder_; /** + * + * *
                * A widget that displays time series data in a tabular format.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + * * @return Whether the timeSeriesTable field is set. */ @java.lang.Override @@ -2589,11 +2908,14 @@ public boolean hasTimeSeriesTable() { return contentCase_ == 8; } /** + * + * *
                * A widget that displays time series data in a tabular format.
                * 
          * * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + * * @return The timeSeriesTable. */ @java.lang.Override @@ -2611,6 +2933,8 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable getTimeSeriesTable() { } } /** + * + * *
                * A widget that displays time series data in a tabular format.
                * 
          @@ -2631,6 +2955,8 @@ public Builder setTimeSeriesTable(com.google.monitoring.dashboard.v1.TimeSeriesT return this; } /** + * + * *
                * A widget that displays time series data in a tabular format.
                * 
          @@ -2649,6 +2975,8 @@ public Builder setTimeSeriesTable( return this; } /** + * + * *
                * A widget that displays time series data in a tabular format.
                * 
          @@ -2657,10 +2985,14 @@ public Builder setTimeSeriesTable( */ public Builder mergeTimeSeriesTable(com.google.monitoring.dashboard.v1.TimeSeriesTable value) { if (timeSeriesTableBuilder_ == null) { - if (contentCase_ == 8 && - content_ != com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance()) { - content_ = com.google.monitoring.dashboard.v1.TimeSeriesTable.newBuilder((com.google.monitoring.dashboard.v1.TimeSeriesTable) content_) - .mergeFrom(value).buildPartial(); + if (contentCase_ == 8 + && content_ + != com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance()) { + content_ = + com.google.monitoring.dashboard.v1.TimeSeriesTable.newBuilder( + (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_) + .mergeFrom(value) + .buildPartial(); } else { content_ = value; } @@ -2676,6 +3008,8 @@ public Builder mergeTimeSeriesTable(com.google.monitoring.dashboard.v1.TimeSerie return this; } /** + * + * *
                * A widget that displays time series data in a tabular format.
                * 
          @@ -2699,6 +3033,8 @@ public Builder clearTimeSeriesTable() { return this; } /** + * + * *
                * A widget that displays time series data in a tabular format.
                * 
          @@ -2709,6 +3045,8 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder getTimeSeriesT return getTimeSeriesTableFieldBuilder().getBuilder(); } /** + * + * *
                * A widget that displays time series data in a tabular format.
                * 
          @@ -2716,7 +3054,8 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder getTimeSeriesT * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder getTimeSeriesTableOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder + getTimeSeriesTableOrBuilder() { if ((contentCase_ == 8) && (timeSeriesTableBuilder_ != null)) { return timeSeriesTableBuilder_.getMessageOrBuilder(); } else { @@ -2727,6 +3066,8 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder getTimeSeries } } /** + * + * *
                * A widget that displays time series data in a tabular format.
                * 
          @@ -2734,14 +3075,19 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder getTimeSeries * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesTable, com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder, com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder> + com.google.monitoring.dashboard.v1.TimeSeriesTable, + com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder> getTimeSeriesTableFieldBuilder() { if (timeSeriesTableBuilder_ == null) { if (!(contentCase_ == 8)) { content_ = com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); } - timeSeriesTableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesTable, com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder, com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder>( + timeSeriesTableBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesTable, + com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder>( (com.google.monitoring.dashboard.v1.TimeSeriesTable) content_, getParentForChildren(), isClean()); @@ -2753,14 +3099,20 @@ public com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder getTimeSeries } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.CollapsibleGroup, com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder, com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder> collapsibleGroupBuilder_; + com.google.monitoring.dashboard.v1.CollapsibleGroup, + com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder, + com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder> + collapsibleGroupBuilder_; /** + * + * *
                * A widget that groups the other widgets. All widgets that are within
                * the area spanned by the grouping widget are considered member widgets.
                * 
          * * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + * * @return Whether the collapsibleGroup field is set. */ @java.lang.Override @@ -2768,12 +3120,15 @@ public boolean hasCollapsibleGroup() { return contentCase_ == 9; } /** + * + * *
                * A widget that groups the other widgets. All widgets that are within
                * the area spanned by the grouping widget are considered member widgets.
                * 
          * * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + * * @return The collapsibleGroup. */ @java.lang.Override @@ -2791,6 +3146,8 @@ public com.google.monitoring.dashboard.v1.CollapsibleGroup getCollapsibleGroup() } } /** + * + * *
                * A widget that groups the other widgets. All widgets that are within
                * the area spanned by the grouping widget are considered member widgets.
          @@ -2812,6 +3169,8 @@ public Builder setCollapsibleGroup(com.google.monitoring.dashboard.v1.Collapsibl
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * A widget that groups the other widgets. All widgets that are within
                * the area spanned by the grouping widget are considered member widgets.
          @@ -2831,6 +3190,8 @@ public Builder setCollapsibleGroup(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * A widget that groups the other widgets. All widgets that are within
                * the area spanned by the grouping widget are considered member widgets.
          @@ -2838,12 +3199,17 @@ public Builder setCollapsibleGroup(
                *
                * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9;
                */
          -    public Builder mergeCollapsibleGroup(com.google.monitoring.dashboard.v1.CollapsibleGroup value) {
          +    public Builder mergeCollapsibleGroup(
          +        com.google.monitoring.dashboard.v1.CollapsibleGroup value) {
                 if (collapsibleGroupBuilder_ == null) {
          -        if (contentCase_ == 9 &&
          -            content_ != com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance()) {
          -          content_ = com.google.monitoring.dashboard.v1.CollapsibleGroup.newBuilder((com.google.monitoring.dashboard.v1.CollapsibleGroup) content_)
          -              .mergeFrom(value).buildPartial();
          +        if (contentCase_ == 9
          +            && content_
          +                != com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance()) {
          +          content_ =
          +              com.google.monitoring.dashboard.v1.CollapsibleGroup.newBuilder(
          +                      (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_)
          +                  .mergeFrom(value)
          +                  .buildPartial();
                   } else {
                     content_ = value;
                   }
          @@ -2859,6 +3225,8 @@ public Builder mergeCollapsibleGroup(com.google.monitoring.dashboard.v1.Collapsi
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * A widget that groups the other widgets. All widgets that are within
                * the area spanned by the grouping widget are considered member widgets.
          @@ -2883,6 +3251,8 @@ public Builder clearCollapsibleGroup() {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * A widget that groups the other widgets. All widgets that are within
                * the area spanned by the grouping widget are considered member widgets.
          @@ -2890,10 +3260,13 @@ public Builder clearCollapsibleGroup() {
                *
                * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9;
                */
          -    public com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder getCollapsibleGroupBuilder() {
          +    public com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder
          +        getCollapsibleGroupBuilder() {
                 return getCollapsibleGroupFieldBuilder().getBuilder();
               }
               /**
          +     *
          +     *
                * 
                * A widget that groups the other widgets. All widgets that are within
                * the area spanned by the grouping widget are considered member widgets.
          @@ -2902,7 +3275,8 @@ public com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder getCollapsibl
                * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9;
                */
               @java.lang.Override
          -    public com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder getCollapsibleGroupOrBuilder() {
          +    public com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder
          +        getCollapsibleGroupOrBuilder() {
                 if ((contentCase_ == 9) && (collapsibleGroupBuilder_ != null)) {
                   return collapsibleGroupBuilder_.getMessageOrBuilder();
                 } else {
          @@ -2913,6 +3287,8 @@ public com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder getCollapsib
                 }
               }
               /**
          +     *
          +     *
                * 
                * A widget that groups the other widgets. All widgets that are within
                * the area spanned by the grouping widget are considered member widgets.
          @@ -2921,14 +3297,19 @@ public com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder getCollapsib
                * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.CollapsibleGroup, com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder, com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder> 
          +            com.google.monitoring.dashboard.v1.CollapsibleGroup,
          +            com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder,
          +            com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder>
                   getCollapsibleGroupFieldBuilder() {
                 if (collapsibleGroupBuilder_ == null) {
                   if (!(contentCase_ == 9)) {
                     content_ = com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance();
                   }
          -        collapsibleGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.CollapsibleGroup, com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder, com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder>(
          +        collapsibleGroupBuilder_ =
          +            new com.google.protobuf.SingleFieldBuilderV3<
          +                com.google.monitoring.dashboard.v1.CollapsibleGroup,
          +                com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder,
          +                com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder>(
                           (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_,
                           getParentForChildren(),
                           isClean());
          @@ -2940,13 +3321,19 @@ public com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder getCollapsib
               }
           
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.LogsPanel, com.google.monitoring.dashboard.v1.LogsPanel.Builder, com.google.monitoring.dashboard.v1.LogsPanelOrBuilder> logsPanelBuilder_;
          +            com.google.monitoring.dashboard.v1.LogsPanel,
          +            com.google.monitoring.dashboard.v1.LogsPanel.Builder,
          +            com.google.monitoring.dashboard.v1.LogsPanelOrBuilder>
          +        logsPanelBuilder_;
               /**
          +     *
          +     *
                * 
                * A widget that shows a stream of logs.
                * 
          * * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + * * @return Whether the logsPanel field is set. */ @java.lang.Override @@ -2954,11 +3341,14 @@ public boolean hasLogsPanel() { return contentCase_ == 10; } /** + * + * *
                * A widget that shows a stream of logs.
                * 
          * * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + * * @return The logsPanel. */ @java.lang.Override @@ -2976,6 +3366,8 @@ public com.google.monitoring.dashboard.v1.LogsPanel getLogsPanel() { } } /** + * + * *
                * A widget that shows a stream of logs.
                * 
          @@ -2996,6 +3388,8 @@ public Builder setLogsPanel(com.google.monitoring.dashboard.v1.LogsPanel value) return this; } /** + * + * *
                * A widget that shows a stream of logs.
                * 
          @@ -3014,6 +3408,8 @@ public Builder setLogsPanel( return this; } /** + * + * *
                * A widget that shows a stream of logs.
                * 
          @@ -3022,10 +3418,13 @@ public Builder setLogsPanel( */ public Builder mergeLogsPanel(com.google.monitoring.dashboard.v1.LogsPanel value) { if (logsPanelBuilder_ == null) { - if (contentCase_ == 10 && - content_ != com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance()) { - content_ = com.google.monitoring.dashboard.v1.LogsPanel.newBuilder((com.google.monitoring.dashboard.v1.LogsPanel) content_) - .mergeFrom(value).buildPartial(); + if (contentCase_ == 10 + && content_ != com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance()) { + content_ = + com.google.monitoring.dashboard.v1.LogsPanel.newBuilder( + (com.google.monitoring.dashboard.v1.LogsPanel) content_) + .mergeFrom(value) + .buildPartial(); } else { content_ = value; } @@ -3041,6 +3440,8 @@ public Builder mergeLogsPanel(com.google.monitoring.dashboard.v1.LogsPanel value return this; } /** + * + * *
                * A widget that shows a stream of logs.
                * 
          @@ -3064,6 +3465,8 @@ public Builder clearLogsPanel() { return this; } /** + * + * *
                * A widget that shows a stream of logs.
                * 
          @@ -3074,6 +3477,8 @@ public com.google.monitoring.dashboard.v1.LogsPanel.Builder getLogsPanelBuilder( return getLogsPanelFieldBuilder().getBuilder(); } /** + * + * *
                * A widget that shows a stream of logs.
                * 
          @@ -3092,6 +3497,8 @@ public com.google.monitoring.dashboard.v1.LogsPanelOrBuilder getLogsPanelOrBuild } } /** + * + * *
                * A widget that shows a stream of logs.
                * 
          @@ -3099,14 +3506,19 @@ public com.google.monitoring.dashboard.v1.LogsPanelOrBuilder getLogsPanelOrBuild * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.LogsPanel, com.google.monitoring.dashboard.v1.LogsPanel.Builder, com.google.monitoring.dashboard.v1.LogsPanelOrBuilder> + com.google.monitoring.dashboard.v1.LogsPanel, + com.google.monitoring.dashboard.v1.LogsPanel.Builder, + com.google.monitoring.dashboard.v1.LogsPanelOrBuilder> getLogsPanelFieldBuilder() { if (logsPanelBuilder_ == null) { if (!(contentCase_ == 10)) { content_ = com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance(); } - logsPanelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.LogsPanel, com.google.monitoring.dashboard.v1.LogsPanel.Builder, com.google.monitoring.dashboard.v1.LogsPanelOrBuilder>( + logsPanelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.LogsPanel, + com.google.monitoring.dashboard.v1.LogsPanel.Builder, + com.google.monitoring.dashboard.v1.LogsPanelOrBuilder>( (com.google.monitoring.dashboard.v1.LogsPanel) content_, getParentForChildren(), isClean()); @@ -3118,13 +3530,19 @@ public com.google.monitoring.dashboard.v1.LogsPanelOrBuilder getLogsPanelOrBuild } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.IncidentList, com.google.monitoring.dashboard.v1.IncidentList.Builder, com.google.monitoring.dashboard.v1.IncidentListOrBuilder> incidentListBuilder_; + com.google.monitoring.dashboard.v1.IncidentList, + com.google.monitoring.dashboard.v1.IncidentList.Builder, + com.google.monitoring.dashboard.v1.IncidentListOrBuilder> + incidentListBuilder_; /** + * + * *
                * A widget that shows list of incidents.
                * 
          * * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + * * @return Whether the incidentList field is set. */ @java.lang.Override @@ -3132,11 +3550,14 @@ public boolean hasIncidentList() { return contentCase_ == 12; } /** + * + * *
                * A widget that shows list of incidents.
                * 
          * * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + * * @return The incidentList. */ @java.lang.Override @@ -3154,6 +3575,8 @@ public com.google.monitoring.dashboard.v1.IncidentList getIncidentList() { } } /** + * + * *
                * A widget that shows list of incidents.
                * 
          @@ -3174,6 +3597,8 @@ public Builder setIncidentList(com.google.monitoring.dashboard.v1.IncidentList v return this; } /** + * + * *
                * A widget that shows list of incidents.
                * 
          @@ -3192,6 +3617,8 @@ public Builder setIncidentList( return this; } /** + * + * *
                * A widget that shows list of incidents.
                * 
          @@ -3200,10 +3627,13 @@ public Builder setIncidentList( */ public Builder mergeIncidentList(com.google.monitoring.dashboard.v1.IncidentList value) { if (incidentListBuilder_ == null) { - if (contentCase_ == 12 && - content_ != com.google.monitoring.dashboard.v1.IncidentList.getDefaultInstance()) { - content_ = com.google.monitoring.dashboard.v1.IncidentList.newBuilder((com.google.monitoring.dashboard.v1.IncidentList) content_) - .mergeFrom(value).buildPartial(); + if (contentCase_ == 12 + && content_ != com.google.monitoring.dashboard.v1.IncidentList.getDefaultInstance()) { + content_ = + com.google.monitoring.dashboard.v1.IncidentList.newBuilder( + (com.google.monitoring.dashboard.v1.IncidentList) content_) + .mergeFrom(value) + .buildPartial(); } else { content_ = value; } @@ -3219,6 +3649,8 @@ public Builder mergeIncidentList(com.google.monitoring.dashboard.v1.IncidentList return this; } /** + * + * *
                * A widget that shows list of incidents.
                * 
          @@ -3242,6 +3674,8 @@ public Builder clearIncidentList() { return this; } /** + * + * *
                * A widget that shows list of incidents.
                * 
          @@ -3252,6 +3686,8 @@ public com.google.monitoring.dashboard.v1.IncidentList.Builder getIncidentListBu return getIncidentListFieldBuilder().getBuilder(); } /** + * + * *
                * A widget that shows list of incidents.
                * 
          @@ -3270,6 +3706,8 @@ public com.google.monitoring.dashboard.v1.IncidentListOrBuilder getIncidentListO } } /** + * + * *
                * A widget that shows list of incidents.
                * 
          @@ -3277,14 +3715,19 @@ public com.google.monitoring.dashboard.v1.IncidentListOrBuilder getIncidentListO * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.IncidentList, com.google.monitoring.dashboard.v1.IncidentList.Builder, com.google.monitoring.dashboard.v1.IncidentListOrBuilder> + com.google.monitoring.dashboard.v1.IncidentList, + com.google.monitoring.dashboard.v1.IncidentList.Builder, + com.google.monitoring.dashboard.v1.IncidentListOrBuilder> getIncidentListFieldBuilder() { if (incidentListBuilder_ == null) { if (!(contentCase_ == 12)) { content_ = com.google.monitoring.dashboard.v1.IncidentList.getDefaultInstance(); } - incidentListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.IncidentList, com.google.monitoring.dashboard.v1.IncidentList.Builder, com.google.monitoring.dashboard.v1.IncidentListOrBuilder>( + incidentListBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.IncidentList, + com.google.monitoring.dashboard.v1.IncidentList.Builder, + com.google.monitoring.dashboard.v1.IncidentListOrBuilder>( (com.google.monitoring.dashboard.v1.IncidentList) content_, getParentForChildren(), isClean()); @@ -3296,13 +3739,19 @@ public com.google.monitoring.dashboard.v1.IncidentListOrBuilder getIncidentListO } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.PieChart, com.google.monitoring.dashboard.v1.PieChart.Builder, com.google.monitoring.dashboard.v1.PieChartOrBuilder> pieChartBuilder_; + com.google.monitoring.dashboard.v1.PieChart, + com.google.monitoring.dashboard.v1.PieChart.Builder, + com.google.monitoring.dashboard.v1.PieChartOrBuilder> + pieChartBuilder_; /** + * + * *
                * A widget that displays timeseries data as a pie chart.
                * 
          * * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + * * @return Whether the pieChart field is set. */ @java.lang.Override @@ -3310,11 +3759,14 @@ public boolean hasPieChart() { return contentCase_ == 14; } /** + * + * *
                * A widget that displays timeseries data as a pie chart.
                * 
          * * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + * * @return The pieChart. */ @java.lang.Override @@ -3332,6 +3784,8 @@ public com.google.monitoring.dashboard.v1.PieChart getPieChart() { } } /** + * + * *
                * A widget that displays timeseries data as a pie chart.
                * 
          @@ -3352,6 +3806,8 @@ public Builder setPieChart(com.google.monitoring.dashboard.v1.PieChart value) { return this; } /** + * + * *
                * A widget that displays timeseries data as a pie chart.
                * 
          @@ -3370,6 +3826,8 @@ public Builder setPieChart( return this; } /** + * + * *
                * A widget that displays timeseries data as a pie chart.
                * 
          @@ -3378,10 +3836,13 @@ public Builder setPieChart( */ public Builder mergePieChart(com.google.monitoring.dashboard.v1.PieChart value) { if (pieChartBuilder_ == null) { - if (contentCase_ == 14 && - content_ != com.google.monitoring.dashboard.v1.PieChart.getDefaultInstance()) { - content_ = com.google.monitoring.dashboard.v1.PieChart.newBuilder((com.google.monitoring.dashboard.v1.PieChart) content_) - .mergeFrom(value).buildPartial(); + if (contentCase_ == 14 + && content_ != com.google.monitoring.dashboard.v1.PieChart.getDefaultInstance()) { + content_ = + com.google.monitoring.dashboard.v1.PieChart.newBuilder( + (com.google.monitoring.dashboard.v1.PieChart) content_) + .mergeFrom(value) + .buildPartial(); } else { content_ = value; } @@ -3397,6 +3858,8 @@ public Builder mergePieChart(com.google.monitoring.dashboard.v1.PieChart value) return this; } /** + * + * *
                * A widget that displays timeseries data as a pie chart.
                * 
          @@ -3420,6 +3883,8 @@ public Builder clearPieChart() { return this; } /** + * + * *
                * A widget that displays timeseries data as a pie chart.
                * 
          @@ -3430,6 +3895,8 @@ public com.google.monitoring.dashboard.v1.PieChart.Builder getPieChartBuilder() return getPieChartFieldBuilder().getBuilder(); } /** + * + * *
                * A widget that displays timeseries data as a pie chart.
                * 
          @@ -3448,6 +3915,8 @@ public com.google.monitoring.dashboard.v1.PieChartOrBuilder getPieChartOrBuilder } } /** + * + * *
                * A widget that displays timeseries data as a pie chart.
                * 
          @@ -3455,14 +3924,19 @@ public com.google.monitoring.dashboard.v1.PieChartOrBuilder getPieChartOrBuilder * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.PieChart, com.google.monitoring.dashboard.v1.PieChart.Builder, com.google.monitoring.dashboard.v1.PieChartOrBuilder> + com.google.monitoring.dashboard.v1.PieChart, + com.google.monitoring.dashboard.v1.PieChart.Builder, + com.google.monitoring.dashboard.v1.PieChartOrBuilder> getPieChartFieldBuilder() { if (pieChartBuilder_ == null) { if (!(contentCase_ == 14)) { content_ = com.google.monitoring.dashboard.v1.PieChart.getDefaultInstance(); } - pieChartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.PieChart, com.google.monitoring.dashboard.v1.PieChart.Builder, com.google.monitoring.dashboard.v1.PieChartOrBuilder>( + pieChartBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.PieChart, + com.google.monitoring.dashboard.v1.PieChart.Builder, + com.google.monitoring.dashboard.v1.PieChartOrBuilder>( (com.google.monitoring.dashboard.v1.PieChart) content_, getParentForChildren(), isClean()); @@ -3474,13 +3948,19 @@ public com.google.monitoring.dashboard.v1.PieChartOrBuilder getPieChartOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.ErrorReportingPanel, com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder, com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder> errorReportingPanelBuilder_; + com.google.monitoring.dashboard.v1.ErrorReportingPanel, + com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder, + com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder> + errorReportingPanelBuilder_; /** + * + * *
                * A widget that displays a list of error groups.
                * 
          * * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + * * @return Whether the errorReportingPanel field is set. */ @java.lang.Override @@ -3488,11 +3968,14 @@ public boolean hasErrorReportingPanel() { return contentCase_ == 19; } /** + * + * *
                * A widget that displays a list of error groups.
                * 
          * * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + * * @return The errorReportingPanel. */ @java.lang.Override @@ -3510,13 +3993,16 @@ public com.google.monitoring.dashboard.v1.ErrorReportingPanel getErrorReportingP } } /** + * + * *
                * A widget that displays a list of error groups.
                * 
          * * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; */ - public Builder setErrorReportingPanel(com.google.monitoring.dashboard.v1.ErrorReportingPanel value) { + public Builder setErrorReportingPanel( + com.google.monitoring.dashboard.v1.ErrorReportingPanel value) { if (errorReportingPanelBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3530,6 +4016,8 @@ public Builder setErrorReportingPanel(com.google.monitoring.dashboard.v1.ErrorRe return this; } /** + * + * *
                * A widget that displays a list of error groups.
                * 
          @@ -3548,18 +4036,25 @@ public Builder setErrorReportingPanel( return this; } /** + * + * *
                * A widget that displays a list of error groups.
                * 
          * * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; */ - public Builder mergeErrorReportingPanel(com.google.monitoring.dashboard.v1.ErrorReportingPanel value) { + public Builder mergeErrorReportingPanel( + com.google.monitoring.dashboard.v1.ErrorReportingPanel value) { if (errorReportingPanelBuilder_ == null) { - if (contentCase_ == 19 && - content_ != com.google.monitoring.dashboard.v1.ErrorReportingPanel.getDefaultInstance()) { - content_ = com.google.monitoring.dashboard.v1.ErrorReportingPanel.newBuilder((com.google.monitoring.dashboard.v1.ErrorReportingPanel) content_) - .mergeFrom(value).buildPartial(); + if (contentCase_ == 19 + && content_ + != com.google.monitoring.dashboard.v1.ErrorReportingPanel.getDefaultInstance()) { + content_ = + com.google.monitoring.dashboard.v1.ErrorReportingPanel.newBuilder( + (com.google.monitoring.dashboard.v1.ErrorReportingPanel) content_) + .mergeFrom(value) + .buildPartial(); } else { content_ = value; } @@ -3575,6 +4070,8 @@ public Builder mergeErrorReportingPanel(com.google.monitoring.dashboard.v1.Error return this; } /** + * + * *
                * A widget that displays a list of error groups.
                * 
          @@ -3598,16 +4095,21 @@ public Builder clearErrorReportingPanel() { return this; } /** + * + * *
                * A widget that displays a list of error groups.
                * 
          * * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; */ - public com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder getErrorReportingPanelBuilder() { + public com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder + getErrorReportingPanelBuilder() { return getErrorReportingPanelFieldBuilder().getBuilder(); } /** + * + * *
                * A widget that displays a list of error groups.
                * 
          @@ -3615,7 +4117,8 @@ public com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder getErrorRe * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder getErrorReportingPanelOrBuilder() { + public com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder + getErrorReportingPanelOrBuilder() { if ((contentCase_ == 19) && (errorReportingPanelBuilder_ != null)) { return errorReportingPanelBuilder_.getMessageOrBuilder(); } else { @@ -3626,6 +4129,8 @@ public com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder getErrorR } } /** + * + * *
                * A widget that displays a list of error groups.
                * 
          @@ -3633,14 +4138,19 @@ public com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder getErrorR * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.ErrorReportingPanel, com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder, com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder> + com.google.monitoring.dashboard.v1.ErrorReportingPanel, + com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder, + com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder> getErrorReportingPanelFieldBuilder() { if (errorReportingPanelBuilder_ == null) { if (!(contentCase_ == 19)) { content_ = com.google.monitoring.dashboard.v1.ErrorReportingPanel.getDefaultInstance(); } - errorReportingPanelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.ErrorReportingPanel, com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder, com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder>( + errorReportingPanelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.ErrorReportingPanel, + com.google.monitoring.dashboard.v1.ErrorReportingPanel.Builder, + com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder>( (com.google.monitoring.dashboard.v1.ErrorReportingPanel) content_, getParentForChildren(), isClean()); @@ -3652,14 +4162,20 @@ public com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder getErrorR } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.SectionHeader, com.google.monitoring.dashboard.v1.SectionHeader.Builder, com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder> sectionHeaderBuilder_; + com.google.monitoring.dashboard.v1.SectionHeader, + com.google.monitoring.dashboard.v1.SectionHeader.Builder, + com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder> + sectionHeaderBuilder_; /** + * + * *
                * A widget that defines a section header for easier navigation of the
                * dashboard.
                * 
          * * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + * * @return Whether the sectionHeader field is set. */ @java.lang.Override @@ -3667,12 +4183,15 @@ public boolean hasSectionHeader() { return contentCase_ == 21; } /** + * + * *
                * A widget that defines a section header for easier navigation of the
                * dashboard.
                * 
          * * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + * * @return The sectionHeader. */ @java.lang.Override @@ -3690,6 +4209,8 @@ public com.google.monitoring.dashboard.v1.SectionHeader getSectionHeader() { } } /** + * + * *
                * A widget that defines a section header for easier navigation of the
                * dashboard.
          @@ -3711,6 +4232,8 @@ public Builder setSectionHeader(com.google.monitoring.dashboard.v1.SectionHeader
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * A widget that defines a section header for easier navigation of the
                * dashboard.
          @@ -3730,6 +4253,8 @@ public Builder setSectionHeader(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * A widget that defines a section header for easier navigation of the
                * dashboard.
          @@ -3739,10 +4264,13 @@ public Builder setSectionHeader(
                */
               public Builder mergeSectionHeader(com.google.monitoring.dashboard.v1.SectionHeader value) {
                 if (sectionHeaderBuilder_ == null) {
          -        if (contentCase_ == 21 &&
          -            content_ != com.google.monitoring.dashboard.v1.SectionHeader.getDefaultInstance()) {
          -          content_ = com.google.monitoring.dashboard.v1.SectionHeader.newBuilder((com.google.monitoring.dashboard.v1.SectionHeader) content_)
          -              .mergeFrom(value).buildPartial();
          +        if (contentCase_ == 21
          +            && content_ != com.google.monitoring.dashboard.v1.SectionHeader.getDefaultInstance()) {
          +          content_ =
          +              com.google.monitoring.dashboard.v1.SectionHeader.newBuilder(
          +                      (com.google.monitoring.dashboard.v1.SectionHeader) content_)
          +                  .mergeFrom(value)
          +                  .buildPartial();
                   } else {
                     content_ = value;
                   }
          @@ -3758,6 +4286,8 @@ public Builder mergeSectionHeader(com.google.monitoring.dashboard.v1.SectionHead
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * A widget that defines a section header for easier navigation of the
                * dashboard.
          @@ -3782,6 +4312,8 @@ public Builder clearSectionHeader() {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * A widget that defines a section header for easier navigation of the
                * dashboard.
          @@ -3793,6 +4325,8 @@ public com.google.monitoring.dashboard.v1.SectionHeader.Builder getSectionHeader
                 return getSectionHeaderFieldBuilder().getBuilder();
               }
               /**
          +     *
          +     *
                * 
                * A widget that defines a section header for easier navigation of the
                * dashboard.
          @@ -3812,6 +4346,8 @@ public com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder getSectionHeade
                 }
               }
               /**
          +     *
          +     *
                * 
                * A widget that defines a section header for easier navigation of the
                * dashboard.
          @@ -3820,14 +4356,19 @@ public com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder getSectionHeade
                * .google.monitoring.dashboard.v1.SectionHeader section_header = 21;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.SectionHeader, com.google.monitoring.dashboard.v1.SectionHeader.Builder, com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder> 
          +            com.google.monitoring.dashboard.v1.SectionHeader,
          +            com.google.monitoring.dashboard.v1.SectionHeader.Builder,
          +            com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder>
                   getSectionHeaderFieldBuilder() {
                 if (sectionHeaderBuilder_ == null) {
                   if (!(contentCase_ == 21)) {
                     content_ = com.google.monitoring.dashboard.v1.SectionHeader.getDefaultInstance();
                   }
          -        sectionHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.monitoring.dashboard.v1.SectionHeader, com.google.monitoring.dashboard.v1.SectionHeader.Builder, com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder>(
          +        sectionHeaderBuilder_ =
          +            new com.google.protobuf.SingleFieldBuilderV3<
          +                com.google.monitoring.dashboard.v1.SectionHeader,
          +                com.google.monitoring.dashboard.v1.SectionHeader.Builder,
          +                com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder>(
                           (com.google.monitoring.dashboard.v1.SectionHeader) content_,
                           getParentForChildren(),
                           isClean());
          @@ -3839,13 +4380,19 @@ public com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder getSectionHeade
               }
           
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.SingleViewGroup, com.google.monitoring.dashboard.v1.SingleViewGroup.Builder, com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder> singleViewGroupBuilder_;
          +            com.google.monitoring.dashboard.v1.SingleViewGroup,
          +            com.google.monitoring.dashboard.v1.SingleViewGroup.Builder,
          +            com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder>
          +        singleViewGroupBuilder_;
               /**
          +     *
          +     *
                * 
                * A widget that groups the other widgets by using a dropdown menu.
                * 
          * * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + * * @return Whether the singleViewGroup field is set. */ @java.lang.Override @@ -3853,11 +4400,14 @@ public boolean hasSingleViewGroup() { return contentCase_ == 22; } /** + * + * *
                * A widget that groups the other widgets by using a dropdown menu.
                * 
          * * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + * * @return The singleViewGroup. */ @java.lang.Override @@ -3875,6 +4425,8 @@ public com.google.monitoring.dashboard.v1.SingleViewGroup getSingleViewGroup() { } } /** + * + * *
                * A widget that groups the other widgets by using a dropdown menu.
                * 
          @@ -3895,6 +4447,8 @@ public Builder setSingleViewGroup(com.google.monitoring.dashboard.v1.SingleViewG return this; } /** + * + * *
                * A widget that groups the other widgets by using a dropdown menu.
                * 
          @@ -3913,6 +4467,8 @@ public Builder setSingleViewGroup( return this; } /** + * + * *
                * A widget that groups the other widgets by using a dropdown menu.
                * 
          @@ -3921,10 +4477,14 @@ public Builder setSingleViewGroup( */ public Builder mergeSingleViewGroup(com.google.monitoring.dashboard.v1.SingleViewGroup value) { if (singleViewGroupBuilder_ == null) { - if (contentCase_ == 22 && - content_ != com.google.monitoring.dashboard.v1.SingleViewGroup.getDefaultInstance()) { - content_ = com.google.monitoring.dashboard.v1.SingleViewGroup.newBuilder((com.google.monitoring.dashboard.v1.SingleViewGroup) content_) - .mergeFrom(value).buildPartial(); + if (contentCase_ == 22 + && content_ + != com.google.monitoring.dashboard.v1.SingleViewGroup.getDefaultInstance()) { + content_ = + com.google.monitoring.dashboard.v1.SingleViewGroup.newBuilder( + (com.google.monitoring.dashboard.v1.SingleViewGroup) content_) + .mergeFrom(value) + .buildPartial(); } else { content_ = value; } @@ -3940,6 +4500,8 @@ public Builder mergeSingleViewGroup(com.google.monitoring.dashboard.v1.SingleVie return this; } /** + * + * *
                * A widget that groups the other widgets by using a dropdown menu.
                * 
          @@ -3963,6 +4525,8 @@ public Builder clearSingleViewGroup() { return this; } /** + * + * *
                * A widget that groups the other widgets by using a dropdown menu.
                * 
          @@ -3973,6 +4537,8 @@ public com.google.monitoring.dashboard.v1.SingleViewGroup.Builder getSingleViewG return getSingleViewGroupFieldBuilder().getBuilder(); } /** + * + * *
                * A widget that groups the other widgets by using a dropdown menu.
                * 
          @@ -3980,7 +4546,8 @@ public com.google.monitoring.dashboard.v1.SingleViewGroup.Builder getSingleViewG * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder getSingleViewGroupOrBuilder() { + public com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder + getSingleViewGroupOrBuilder() { if ((contentCase_ == 22) && (singleViewGroupBuilder_ != null)) { return singleViewGroupBuilder_.getMessageOrBuilder(); } else { @@ -3991,6 +4558,8 @@ public com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder getSingleView } } /** + * + * *
                * A widget that groups the other widgets by using a dropdown menu.
                * 
          @@ -3998,14 +4567,19 @@ public com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder getSingleView * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.SingleViewGroup, com.google.monitoring.dashboard.v1.SingleViewGroup.Builder, com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder> + com.google.monitoring.dashboard.v1.SingleViewGroup, + com.google.monitoring.dashboard.v1.SingleViewGroup.Builder, + com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder> getSingleViewGroupFieldBuilder() { if (singleViewGroupBuilder_ == null) { if (!(contentCase_ == 22)) { content_ = com.google.monitoring.dashboard.v1.SingleViewGroup.getDefaultInstance(); } - singleViewGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.SingleViewGroup, com.google.monitoring.dashboard.v1.SingleViewGroup.Builder, com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder>( + singleViewGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.SingleViewGroup, + com.google.monitoring.dashboard.v1.SingleViewGroup.Builder, + com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder>( (com.google.monitoring.dashboard.v1.SingleViewGroup) content_, getParentForChildren(), isClean()); @@ -4018,19 +4592,21 @@ public com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder getSingleView private java.lang.Object id_ = ""; /** + * + * *
                * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
                * underscores. Widget ids are optional.
                * 
          * * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -4039,21 +4615,22 @@ public java.lang.String getId() { } } /** + * + * *
                * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
                * underscores. Widget ids are optional.
                * 
          * * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -4061,30 +4638,37 @@ public java.lang.String getId() { } } /** + * + * *
                * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
                * underscores. Widget ids are optional.
                * 
          * * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } id_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** + * + * *
                * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
                * underscores. Widget ids are optional.
                * 
          * * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearId() { @@ -4094,27 +4678,31 @@ public Builder clearId() { return this; } /** + * + * *
                * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
                * underscores. Widget ids are optional.
                * 
          * * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4124,12 +4712,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.Widget) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.Widget) private static final com.google.monitoring.dashboard.v1.Widget DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.Widget(); } @@ -4138,27 +4726,27 @@ public static com.google.monitoring.dashboard.v1.Widget getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Widget 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Widget 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; @@ -4173,6 +4761,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.Widget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java similarity index 89% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java index e8bf9558b539..597fb3f7dc8d 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java @@ -1,52 +1,81 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/widget.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface WidgetOrBuilder extends +public interface WidgetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.Widget) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Optional. The title of the widget.
              * 
          * * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The title. */ java.lang.String getTitle(); /** + * + * *
              * Optional. The title of the widget.
              * 
          * * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for title. */ - com.google.protobuf.ByteString - getTitleBytes(); + com.google.protobuf.ByteString getTitleBytes(); /** + * + * *
              * A chart of time series data.
              * 
          * * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + * * @return Whether the xyChart field is set. */ boolean hasXyChart(); /** + * + * *
              * A chart of time series data.
              * 
          * * .google.monitoring.dashboard.v1.XyChart xy_chart = 2; + * * @return The xyChart. */ com.google.monitoring.dashboard.v1.XyChart getXyChart(); /** + * + * *
              * A chart of time series data.
              * 
          @@ -56,24 +85,32 @@ public interface WidgetOrBuilder extends com.google.monitoring.dashboard.v1.XyChartOrBuilder getXyChartOrBuilder(); /** + * + * *
              * A scorecard summarizing time series data.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + * * @return Whether the scorecard field is set. */ boolean hasScorecard(); /** + * + * *
              * A scorecard summarizing time series data.
              * 
          * * .google.monitoring.dashboard.v1.Scorecard scorecard = 3; + * * @return The scorecard. */ com.google.monitoring.dashboard.v1.Scorecard getScorecard(); /** + * + * *
              * A scorecard summarizing time series data.
              * 
          @@ -83,24 +120,32 @@ public interface WidgetOrBuilder extends com.google.monitoring.dashboard.v1.ScorecardOrBuilder getScorecardOrBuilder(); /** + * + * *
              * A raw string or markdown displaying textual content.
              * 
          * * .google.monitoring.dashboard.v1.Text text = 4; + * * @return Whether the text field is set. */ boolean hasText(); /** + * + * *
              * A raw string or markdown displaying textual content.
              * 
          * * .google.monitoring.dashboard.v1.Text text = 4; + * * @return The text. */ com.google.monitoring.dashboard.v1.Text getText(); /** + * + * *
              * A raw string or markdown displaying textual content.
              * 
          @@ -110,24 +155,32 @@ public interface WidgetOrBuilder extends com.google.monitoring.dashboard.v1.TextOrBuilder getTextOrBuilder(); /** + * + * *
              * A blank space.
              * 
          * * .google.protobuf.Empty blank = 5; + * * @return Whether the blank field is set. */ boolean hasBlank(); /** + * + * *
              * A blank space.
              * 
          * * .google.protobuf.Empty blank = 5; + * * @return The blank. */ com.google.protobuf.Empty getBlank(); /** + * + * *
              * A blank space.
              * 
          @@ -137,24 +190,32 @@ public interface WidgetOrBuilder extends com.google.protobuf.EmptyOrBuilder getBlankOrBuilder(); /** + * + * *
              * A chart of alert policy data.
              * 
          * * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + * * @return Whether the alertChart field is set. */ boolean hasAlertChart(); /** + * + * *
              * A chart of alert policy data.
              * 
          * * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7; + * * @return The alertChart. */ com.google.monitoring.dashboard.v1.AlertChart getAlertChart(); /** + * + * *
              * A chart of alert policy data.
              * 
          @@ -164,24 +225,32 @@ public interface WidgetOrBuilder extends com.google.monitoring.dashboard.v1.AlertChartOrBuilder getAlertChartOrBuilder(); /** + * + * *
              * A widget that displays time series data in a tabular format.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + * * @return Whether the timeSeriesTable field is set. */ boolean hasTimeSeriesTable(); /** + * + * *
              * A widget that displays time series data in a tabular format.
              * 
          * * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + * * @return The timeSeriesTable. */ com.google.monitoring.dashboard.v1.TimeSeriesTable getTimeSeriesTable(); /** + * + * *
              * A widget that displays time series data in a tabular format.
              * 
          @@ -191,26 +260,34 @@ public interface WidgetOrBuilder extends com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder getTimeSeriesTableOrBuilder(); /** + * + * *
              * A widget that groups the other widgets. All widgets that are within
              * the area spanned by the grouping widget are considered member widgets.
              * 
          * * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + * * @return Whether the collapsibleGroup field is set. */ boolean hasCollapsibleGroup(); /** + * + * *
              * A widget that groups the other widgets. All widgets that are within
              * the area spanned by the grouping widget are considered member widgets.
              * 
          * * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + * * @return The collapsibleGroup. */ com.google.monitoring.dashboard.v1.CollapsibleGroup getCollapsibleGroup(); /** + * + * *
              * A widget that groups the other widgets. All widgets that are within
              * the area spanned by the grouping widget are considered member widgets.
          @@ -221,24 +298,32 @@ public interface WidgetOrBuilder extends
             com.google.monitoring.dashboard.v1.CollapsibleGroupOrBuilder getCollapsibleGroupOrBuilder();
           
             /**
          +   *
          +   *
              * 
              * A widget that shows a stream of logs.
              * 
          * * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + * * @return Whether the logsPanel field is set. */ boolean hasLogsPanel(); /** + * + * *
              * A widget that shows a stream of logs.
              * 
          * * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + * * @return The logsPanel. */ com.google.monitoring.dashboard.v1.LogsPanel getLogsPanel(); /** + * + * *
              * A widget that shows a stream of logs.
              * 
          @@ -248,24 +333,32 @@ public interface WidgetOrBuilder extends com.google.monitoring.dashboard.v1.LogsPanelOrBuilder getLogsPanelOrBuilder(); /** + * + * *
              * A widget that shows list of incidents.
              * 
          * * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + * * @return Whether the incidentList field is set. */ boolean hasIncidentList(); /** + * + * *
              * A widget that shows list of incidents.
              * 
          * * .google.monitoring.dashboard.v1.IncidentList incident_list = 12; + * * @return The incidentList. */ com.google.monitoring.dashboard.v1.IncidentList getIncidentList(); /** + * + * *
              * A widget that shows list of incidents.
              * 
          @@ -275,24 +368,32 @@ public interface WidgetOrBuilder extends com.google.monitoring.dashboard.v1.IncidentListOrBuilder getIncidentListOrBuilder(); /** + * + * *
              * A widget that displays timeseries data as a pie chart.
              * 
          * * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + * * @return Whether the pieChart field is set. */ boolean hasPieChart(); /** + * + * *
              * A widget that displays timeseries data as a pie chart.
              * 
          * * .google.monitoring.dashboard.v1.PieChart pie_chart = 14; + * * @return The pieChart. */ com.google.monitoring.dashboard.v1.PieChart getPieChart(); /** + * + * *
              * A widget that displays timeseries data as a pie chart.
              * 
          @@ -302,24 +403,32 @@ public interface WidgetOrBuilder extends com.google.monitoring.dashboard.v1.PieChartOrBuilder getPieChartOrBuilder(); /** + * + * *
              * A widget that displays a list of error groups.
              * 
          * * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + * * @return Whether the errorReportingPanel field is set. */ boolean hasErrorReportingPanel(); /** + * + * *
              * A widget that displays a list of error groups.
              * 
          * * .google.monitoring.dashboard.v1.ErrorReportingPanel error_reporting_panel = 19; + * * @return The errorReportingPanel. */ com.google.monitoring.dashboard.v1.ErrorReportingPanel getErrorReportingPanel(); /** + * + * *
              * A widget that displays a list of error groups.
              * 
          @@ -329,26 +438,34 @@ public interface WidgetOrBuilder extends com.google.monitoring.dashboard.v1.ErrorReportingPanelOrBuilder getErrorReportingPanelOrBuilder(); /** + * + * *
              * A widget that defines a section header for easier navigation of the
              * dashboard.
              * 
          * * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + * * @return Whether the sectionHeader field is set. */ boolean hasSectionHeader(); /** + * + * *
              * A widget that defines a section header for easier navigation of the
              * dashboard.
              * 
          * * .google.monitoring.dashboard.v1.SectionHeader section_header = 21; + * * @return The sectionHeader. */ com.google.monitoring.dashboard.v1.SectionHeader getSectionHeader(); /** + * + * *
              * A widget that defines a section header for easier navigation of the
              * dashboard.
          @@ -359,24 +476,32 @@ public interface WidgetOrBuilder extends
             com.google.monitoring.dashboard.v1.SectionHeaderOrBuilder getSectionHeaderOrBuilder();
           
             /**
          +   *
          +   *
              * 
              * A widget that groups the other widgets by using a dropdown menu.
              * 
          * * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + * * @return Whether the singleViewGroup field is set. */ boolean hasSingleViewGroup(); /** + * + * *
              * A widget that groups the other widgets by using a dropdown menu.
              * 
          * * .google.monitoring.dashboard.v1.SingleViewGroup single_view_group = 22; + * * @return The singleViewGroup. */ com.google.monitoring.dashboard.v1.SingleViewGroup getSingleViewGroup(); /** + * + * *
              * A widget that groups the other widgets by using a dropdown menu.
              * 
          @@ -386,26 +511,31 @@ public interface WidgetOrBuilder extends com.google.monitoring.dashboard.v1.SingleViewGroupOrBuilder getSingleViewGroupOrBuilder(); /** + * + * *
              * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
              * underscores. Widget ids are optional.
              * 
          * * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The id. */ java.lang.String getId(); /** + * + * *
              * Optional. The widget id. Ids may be made up of alphanumerics, dashes and
              * underscores. Widget ids are optional.
              * 
          * * string id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); com.google.monitoring.dashboard.v1.Widget.ContentCase getContentCase(); } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java new file mode 100644 index 000000000000..8b6be21c6d73 --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java @@ -0,0 +1,158 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/widget.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class WidgetProto { + private WidgetProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_Widget_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_Widget_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/monitoring/dashboard/v1/widget." + + "proto\022\036google.monitoring.dashboard.v1\032\037g" + + "oogle/api/field_behavior.proto\032/google/m" + + "onitoring/dashboard/v1/alertchart.proto\032" + + "6google/monitoring/dashboard/v1/collapsi" + + "ble_group.proto\032:google/monitoring/dashb" + + "oard/v1/error_reporting_panel.proto\0322goo" + + "gle/monitoring/dashboard/v1/incident_lis" + + "t.proto\032/google/monitoring/dashboard/v1/" + + "logs_panel.proto\032-google/monitoring/dash" + + "board/v1/piechart.proto\032.google/monitori" + + "ng/dashboard/v1/scorecard.proto\0323google/" + + "monitoring/dashboard/v1/section_header.p" + + "roto\0326google/monitoring/dashboard/v1/sin" + + "gle_view_group.proto\032*google/monitoring/" + + "dashboard/v1/table.proto\032)google/monitor" + + "ing/dashboard/v1/text.proto\032,google/moni" + + "toring/dashboard/v1/xychart.proto\032\033googl" + + "e/protobuf/empty.proto\"\250\007\n\006Widget\022\022\n\005tit" + + "le\030\001 \001(\tB\003\340A\001\022;\n\010xy_chart\030\002 \001(\0132\'.google" + + ".monitoring.dashboard.v1.XyChartH\000\022>\n\tsc" + + "orecard\030\003 \001(\0132).google.monitoring.dashbo" + + "ard.v1.ScorecardH\000\0224\n\004text\030\004 \001(\0132$.googl" + + "e.monitoring.dashboard.v1.TextH\000\022\'\n\005blan" + + "k\030\005 \001(\0132\026.google.protobuf.EmptyH\000\022A\n\013ale" + + "rt_chart\030\007 \001(\0132*.google.monitoring.dashb" + + "oard.v1.AlertChartH\000\022L\n\021time_series_tabl" + + "e\030\010 \001(\0132/.google.monitoring.dashboard.v1" + + ".TimeSeriesTableH\000\022M\n\021collapsible_group\030" + + "\t \001(\01320.google.monitoring.dashboard.v1.C" + + "ollapsibleGroupH\000\022?\n\nlogs_panel\030\n \001(\0132)." + + "google.monitoring.dashboard.v1.LogsPanel" + + "H\000\022E\n\rincident_list\030\014 \001(\0132,.google.monit" + + "oring.dashboard.v1.IncidentListH\000\022=\n\tpie" + + "_chart\030\016 \001(\0132(.google.monitoring.dashboa" + + "rd.v1.PieChartH\000\022T\n\025error_reporting_pane" + + "l\030\023 \001(\01323.google.monitoring.dashboard.v1" + + ".ErrorReportingPanelH\000\022G\n\016section_header" + + "\030\025 \001(\0132-.google.monitoring.dashboard.v1." + + "SectionHeaderH\000\022L\n\021single_view_group\030\026 \001" + + "(\0132/.google.monitoring.dashboard.v1.Sing" + + "leViewGroupH\000\022\017\n\002id\030\021 \001(\tB\003\340A\001B\t\n\007conten" + + "tB\364\001\n\"com.google.monitoring.dashboard.v1" + + "B\013WidgetProtoP\001ZFcloud.google.com/go/mon" + + "itoring/dashboard/apiv1/dashboardpb;dash" + + "boardpb\252\002$Google.Cloud.Monitoring.Dashbo" + + "ard.V1\312\002$Google\\Cloud\\Monitoring\\Dashboa" + + "rd\\V1\352\002(Google::Cloud::Monitoring::Dashb" + + "oard::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.monitoring.dashboard.v1.AlertChartProto.getDescriptor(), + com.google.monitoring.dashboard.v1.CollapsibleGroupProto.getDescriptor(), + com.google.monitoring.dashboard.v1.ErrorReportingPanelProto.getDescriptor(), + com.google.monitoring.dashboard.v1.IncidentListProto.getDescriptor(), + com.google.monitoring.dashboard.v1.LogsPanelProto.getDescriptor(), + com.google.monitoring.dashboard.v1.PieChartProto.getDescriptor(), + com.google.monitoring.dashboard.v1.ScorecardProto.getDescriptor(), + com.google.monitoring.dashboard.v1.SectionHeaderProto.getDescriptor(), + com.google.monitoring.dashboard.v1.SingleViewGroupProto.getDescriptor(), + com.google.monitoring.dashboard.v1.TableProto.getDescriptor(), + com.google.monitoring.dashboard.v1.TextProto.getDescriptor(), + com.google.monitoring.dashboard.v1.XyChartProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_Widget_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_Widget_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_Widget_descriptor, + new java.lang.String[] { + "Title", + "XyChart", + "Scorecard", + "Text", + "Blank", + "AlertChart", + "TimeSeriesTable", + "CollapsibleGroup", + "LogsPanel", + "IncidentList", + "PieChart", + "ErrorReportingPanel", + "SectionHeader", + "SingleViewGroup", + "Id", + "Content", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.monitoring.dashboard.v1.AlertChartProto.getDescriptor(); + com.google.monitoring.dashboard.v1.CollapsibleGroupProto.getDescriptor(); + com.google.monitoring.dashboard.v1.ErrorReportingPanelProto.getDescriptor(); + com.google.monitoring.dashboard.v1.IncidentListProto.getDescriptor(); + com.google.monitoring.dashboard.v1.LogsPanelProto.getDescriptor(); + com.google.monitoring.dashboard.v1.PieChartProto.getDescriptor(); + com.google.monitoring.dashboard.v1.ScorecardProto.getDescriptor(); + com.google.monitoring.dashboard.v1.SectionHeaderProto.getDescriptor(); + com.google.monitoring.dashboard.v1.SingleViewGroupProto.getDescriptor(); + com.google.monitoring.dashboard.v1.TableProto.getDescriptor(); + com.google.monitoring.dashboard.v1.TextProto.getDescriptor(); + com.google.monitoring.dashboard.v1.XyChartProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/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 similarity index 70% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java index 709c50381eca..ba07e62fd7c0 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/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 @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/xychart.proto @@ -5,21 +20,24 @@ package com.google.monitoring.dashboard.v1; /** + * + * *
            * A chart that displays data on a 2D (X and Y axes) plane.
            * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.XyChart} */ -public final class XyChart extends - com.google.protobuf.GeneratedMessageV3 implements +public final class XyChart extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.XyChart) XyChartOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use XyChart.newBuilder() to construct. private XyChart(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private XyChart() { dataSets_ = java.util.Collections.emptyList(); thresholds_ = java.util.Collections.emptyList(); @@ -27,78 +45,102 @@ private XyChart() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new XyChart(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_XyChart_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_fieldAccessorTable + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_XyChart_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.XyChart.class, com.google.monitoring.dashboard.v1.XyChart.Builder.class); + com.google.monitoring.dashboard.v1.XyChart.class, + com.google.monitoring.dashboard.v1.XyChart.Builder.class); } - public interface DataSetOrBuilder extends + public interface DataSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.XyChart.DataSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the timeSeriesQuery field is set. */ boolean hasTimeSeriesQuery(); /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The timeSeriesQuery. */ com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery(); /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder(); /** + * + * *
                * How this data should be plotted on the chart.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; + * * @return The enum numeric value on the wire for plotType. */ int getPlotTypeValue(); /** + * + * *
                * How this data should be plotted on the chart.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; + * * @return The plotType. */ com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType getPlotType(); /** + * + * *
                * A template string for naming `TimeSeries` in the resulting data set.
                * This should be a string with interpolations of the form `${label_name}`,
          @@ -106,10 +148,13 @@ public interface DataSetOrBuilder extends
                * 
          * * string legend_template = 3; + * * @return The legendTemplate. */ java.lang.String getLegendTemplate(); /** + * + * *
                * A template string for naming `TimeSeries` in the resulting data set.
                * This should be a string with interpolations of the form `${label_name}`,
          @@ -117,12 +162,14 @@ public interface DataSetOrBuilder extends
                * 
          * * string legend_template = 3; + * * @return The bytes for legendTemplate. */ - com.google.protobuf.ByteString - getLegendTemplateBytes(); + 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
          @@ -131,11 +178,16 @@ public interface DataSetOrBuilder extends
                * 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]; + * + * * @return Whether the minAlignmentPeriod field is set. */ 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
          @@ -144,11 +196,16 @@ public interface DataSetOrBuilder extends
                * 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]; + * + * * @return The minAlignmentPeriod. */ 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
          @@ -157,45 +214,60 @@ public interface DataSetOrBuilder extends
                * 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]; + * */ com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder(); /** + * + * *
                * Optional. The target axis to use for plotting the metric.
                * 
          * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for targetAxis. */ int getTargetAxisValue(); /** + * + * *
                * Optional. The target axis to use for plotting the metric.
                * 
          * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The targetAxis. */ com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis getTargetAxis(); } /** + * + * *
              * Groups a time series query definition with charting options.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.XyChart.DataSet} */ - public static final class DataSet extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DataSet extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.XyChart.DataSet) DataSetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DataSet.newBuilder() to construct. private DataSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DataSet() { plotType_ = 0; legendTemplate_ = ""; @@ -204,34 +276,38 @@ private DataSet() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DataSet(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_fieldAccessorTable + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.XyChart.DataSet.class, com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder.class); + com.google.monitoring.dashboard.v1.XyChart.DataSet.class, + com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder.class); } /** + * + * *
                * The types of plotting strategies for data sets.
                * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.XyChart.DataSet.PlotType} */ - public enum PlotType - implements com.google.protobuf.ProtocolMessageEnum { + public enum PlotType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                  * Plot type is unspecified. The view will default to `LINE`.
                  * 
          @@ -240,6 +316,8 @@ public enum PlotType */ PLOT_TYPE_UNSPECIFIED(0), /** + * + * *
                  * The data is plotted as a set of lines (one line per series).
                  * 
          @@ -248,6 +326,8 @@ public enum PlotType */ LINE(1), /** + * + * *
                  * The data is plotted as a set of filled areas (one area per series),
                  * with the areas stacked vertically (the base of each area is the top of
          @@ -259,6 +339,8 @@ public enum PlotType
                  */
                 STACKED_AREA(2),
                 /**
          +       *
          +       *
                  * 
                  * The data is plotted as a set of rectangular boxes (one box per series),
                  * with the boxes stacked vertically (the base of each box is the top of
          @@ -270,6 +352,8 @@ public enum PlotType
                  */
                 STACKED_BAR(3),
                 /**
          +       *
          +       *
                  * 
                  * The data is plotted as a heatmap. The series being plotted must have a
                  * `DISTRIBUTION` value type. The value of each bucket in the distribution
          @@ -284,6 +368,8 @@ public enum PlotType
                 ;
           
                 /**
          +       *
          +       *
                  * 
                  * Plot type is unspecified. The view will default to `LINE`.
                  * 
          @@ -292,6 +378,8 @@ public enum PlotType */ public static final int PLOT_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
                  * The data is plotted as a set of lines (one line per series).
                  * 
          @@ -300,6 +388,8 @@ public enum PlotType */ public static final int LINE_VALUE = 1; /** + * + * *
                  * The data is plotted as a set of filled areas (one area per series),
                  * with the areas stacked vertically (the base of each area is the top of
          @@ -311,6 +401,8 @@ public enum PlotType
                  */
                 public static final int STACKED_AREA_VALUE = 2;
                 /**
          +       *
          +       *
                  * 
                  * The data is plotted as a set of rectangular boxes (one box per series),
                  * with the boxes stacked vertically (the base of each box is the top of
          @@ -322,6 +414,8 @@ public enum PlotType
                  */
                 public static final int STACKED_BAR_VALUE = 3;
                 /**
          +       *
          +       *
                  * 
                  * The data is plotted as a heatmap. The series being plotted must have a
                  * `DISTRIBUTION` value type. The value of each bucket in the distribution
          @@ -333,7 +427,6 @@ public enum PlotType
                  */
                 public static final int HEATMAP_VALUE = 4;
           
          -
                 public final int getNumber() {
                   if (this == UNRECOGNIZED) {
                     throw new java.lang.IllegalArgumentException(
          @@ -358,51 +451,55 @@ public static PlotType valueOf(int value) {
                  */
                 public static PlotType forNumber(int value) {
                   switch (value) {
          -          case 0: return PLOT_TYPE_UNSPECIFIED;
          -          case 1: return LINE;
          -          case 2: return STACKED_AREA;
          -          case 3: return STACKED_BAR;
          -          case 4: return HEATMAP;
          -          default: return null;
          +          case 0:
          +            return PLOT_TYPE_UNSPECIFIED;
          +          case 1:
          +            return LINE;
          +          case 2:
          +            return STACKED_AREA;
          +          case 3:
          +            return STACKED_BAR;
          +          case 4:
          +            return HEATMAP;
          +          default:
          +            return null;
                   }
                 }
           
          -      public static com.google.protobuf.Internal.EnumLiteMap
          -          internalGetValueMap() {
          +      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
                   return internalValueMap;
                 }
          -      private static final com.google.protobuf.Internal.EnumLiteMap<
          -          PlotType> internalValueMap =
          -            new com.google.protobuf.Internal.EnumLiteMap() {
          -              public PlotType findValueByNumber(int number) {
          -                return PlotType.forNumber(number);
          -              }
          -            };
           
          -      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          -          getValueDescriptor() {
          +      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
          +          new com.google.protobuf.Internal.EnumLiteMap() {
          +            public PlotType findValueByNumber(int number) {
          +              return PlotType.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() {
          +
          +      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.XyChart.DataSet.getDescriptor().getEnumTypes().get(0);
          +
          +      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
          +        return com.google.monitoring.dashboard.v1.XyChart.DataSet.getDescriptor()
          +            .getEnumTypes()
          +            .get(0);
                 }
           
                 private static final PlotType[] VALUES = values();
           
          -      public static PlotType valueOf(
          -          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          +      public static PlotType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                   if (desc.getType() != getDescriptor()) {
          -          throw new java.lang.IllegalArgumentException(
          -            "EnumValueDescriptor is not for this type.");
          +          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                   }
                   if (desc.getIndex() == -1) {
                     return UNRECOGNIZED;
          @@ -420,15 +517,18 @@ private PlotType(int value) {
               }
           
               /**
          +     *
          +     *
                * 
                * An axis identifier.
                * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis} */ - public enum TargetAxis - implements com.google.protobuf.ProtocolMessageEnum { + public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                  * The target axis was not specified. Defaults to Y1.
                  * 
          @@ -437,6 +537,8 @@ public enum TargetAxis */ TARGET_AXIS_UNSPECIFIED(0), /** + * + * *
                  * The y_axis (the right axis of chart).
                  * 
          @@ -445,6 +547,8 @@ public enum TargetAxis */ Y1(1), /** + * + * *
                  * The y2_axis (the left axis of chart).
                  * 
          @@ -456,6 +560,8 @@ public enum TargetAxis ; /** + * + * *
                  * The target axis was not specified. Defaults to Y1.
                  * 
          @@ -464,6 +570,8 @@ public enum TargetAxis */ public static final int TARGET_AXIS_UNSPECIFIED_VALUE = 0; /** + * + * *
                  * The y_axis (the right axis of chart).
                  * 
          @@ -472,6 +580,8 @@ public enum TargetAxis */ public static final int Y1_VALUE = 1; /** + * + * *
                  * The y2_axis (the left axis of chart).
                  * 
          @@ -480,7 +590,6 @@ public enum TargetAxis */ public static final int Y2_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -505,49 +614,51 @@ public static TargetAxis valueOf(int value) { */ public static TargetAxis forNumber(int value) { switch (value) { - case 0: return TARGET_AXIS_UNSPECIFIED; - case 1: return Y1; - case 2: return Y2; - default: return null; + case 0: + return TARGET_AXIS_UNSPECIFIED; + case 1: + return Y1; + case 2: + return Y2; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - TargetAxis> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TargetAxis findValueByNumber(int number) { - return TargetAxis.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TargetAxis findValueByNumber(int number) { + return TargetAxis.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() { + + 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.XyChart.DataSet.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChart.DataSet.getDescriptor() + .getEnumTypes() + .get(1); } private static final TargetAxis[] VALUES = values(); - public static TargetAxis valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TargetAxis valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -568,12 +679,17 @@ private TargetAxis(int value) { public static final int TIME_SERIES_QUERY_FIELD_NUMBER = 1; private com.google.monitoring.dashboard.v1.TimeSeriesQuery timeSeriesQuery_; /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the timeSeriesQuery field is set. */ @java.lang.Override @@ -581,61 +697,89 @@ public boolean hasTimeSeriesQuery() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The timeSeriesQuery. */ @java.lang.Override public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() { - return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + return timeSeriesQuery_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() + : timeSeriesQuery_; } /** + * + * *
                * Required. Fields for querying time series data from the
                * Stackdriver metrics API.
                * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder() { - return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder + getTimeSeriesQueryOrBuilder() { + return timeSeriesQuery_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() + : timeSeriesQuery_; } public static final int PLOT_TYPE_FIELD_NUMBER = 2; private int plotType_ = 0; /** + * + * *
                * How this data should be plotted on the chart.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; + * * @return The enum numeric value on the wire for plotType. */ - @java.lang.Override public int getPlotTypeValue() { + @java.lang.Override + public int getPlotTypeValue() { return plotType_; } /** + * + * *
                * How this data should be plotted on the chart.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; + * * @return The plotType. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType getPlotType() { - com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType result = com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.forNumber(plotType_); - return result == null ? com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType getPlotType() { + com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType result = + com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.forNumber(plotType_); + return result == null + ? com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.UNRECOGNIZED + : result; } public static final int LEGEND_TEMPLATE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object legendTemplate_ = ""; /** + * + * *
                * A template string for naming `TimeSeries` in the resulting data set.
                * This should be a string with interpolations of the form `${label_name}`,
          @@ -643,6 +787,7 @@ public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeries
                * 
          * * string legend_template = 3; + * * @return The legendTemplate. */ @java.lang.Override @@ -651,14 +796,15 @@ public java.lang.String getLegendTemplate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); legendTemplate_ = s; return s; } } /** + * + * *
                * A template string for naming `TimeSeries` in the resulting data set.
                * This should be a string with interpolations of the form `${label_name}`,
          @@ -666,16 +812,15 @@ public java.lang.String getLegendTemplate() {
                * 
          * * string legend_template = 3; + * * @return The bytes for legendTemplate. */ @java.lang.Override - public com.google.protobuf.ByteString - getLegendTemplateBytes() { + public com.google.protobuf.ByteString getLegendTemplateBytes() { java.lang.Object ref = legendTemplate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); legendTemplate_ = b; return b; } else { @@ -686,6 +831,8 @@ public java.lang.String getLegendTemplate() { public static final int MIN_ALIGNMENT_PERIOD_FIELD_NUMBER = 4; private com.google.protobuf.Duration minAlignmentPeriod_; /** + * + * *
                * Optional. The lower bound on data point frequency for this data set,
                * implemented by specifying the minimum alignment period to use in a time
          @@ -694,7 +841,10 @@ public java.lang.String getLegendTemplate() {
                * 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]; + * + * * @return Whether the minAlignmentPeriod field is set. */ @java.lang.Override @@ -702,6 +852,8 @@ public boolean hasMinAlignmentPeriod() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * Optional. The lower bound on data point frequency for this data set,
                * implemented by specifying the minimum alignment period to use in a time
          @@ -710,14 +862,21 @@ public boolean hasMinAlignmentPeriod() {
                * 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]; + * + * * @return The minAlignmentPeriod. */ @java.lang.Override public com.google.protobuf.Duration getMinAlignmentPeriod() { - return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + return minAlignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minAlignmentPeriod_; } /** + * + * *
                * Optional. The lower bound on data point frequency for this data set,
                * implemented by specifying the minimum alignment period to use in a time
          @@ -726,40 +885,60 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() {
                * 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]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { - return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + return minAlignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minAlignmentPeriod_; } public static final int TARGET_AXIS_FIELD_NUMBER = 5; private int targetAxis_ = 0; /** + * + * *
                * Optional. The target axis to use for plotting the metric.
                * 
          * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for targetAxis. */ - @java.lang.Override public int getTargetAxisValue() { + @java.lang.Override + public int getTargetAxisValue() { return targetAxis_; } /** + * + * *
                * Optional. The target axis to use for plotting the metric.
                * 
          * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The targetAxis. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis getTargetAxis() { - com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis result = com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.forNumber(targetAxis_); - return result == null ? com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis getTargetAxis() { + com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis result = + com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.forNumber(targetAxis_); + return result == null + ? com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -771,12 +950,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTimeSeriesQuery()); } - if (plotType_ != com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.PLOT_TYPE_UNSPECIFIED.getNumber()) { + if (plotType_ + != com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.PLOT_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, plotType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(legendTemplate_)) { @@ -785,7 +965,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getMinAlignmentPeriod()); } - if (targetAxis_ != com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.TARGET_AXIS_UNSPECIFIED.getNumber()) { + if (targetAxis_ + != com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.TARGET_AXIS_UNSPECIFIED + .getNumber()) { output.writeEnum(5, targetAxis_); } getUnknownFields().writeTo(output); @@ -798,23 +980,24 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTimeSeriesQuery()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeSeriesQuery()); } - if (plotType_ != com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.PLOT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, plotType_); + if (plotType_ + != com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.PLOT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, plotType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(legendTemplate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, legendTemplate_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getMinAlignmentPeriod()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMinAlignmentPeriod()); } - if (targetAxis_ != com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.TARGET_AXIS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, targetAxis_); + if (targetAxis_ + != com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.TARGET_AXIS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, targetAxis_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -824,25 +1007,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.XyChart.DataSet)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.XyChart.DataSet other = (com.google.monitoring.dashboard.v1.XyChart.DataSet) obj; + com.google.monitoring.dashboard.v1.XyChart.DataSet other = + (com.google.monitoring.dashboard.v1.XyChart.DataSet) obj; if (hasTimeSeriesQuery() != other.hasTimeSeriesQuery()) return false; if (hasTimeSeriesQuery()) { - if (!getTimeSeriesQuery() - .equals(other.getTimeSeriesQuery())) return false; + if (!getTimeSeriesQuery().equals(other.getTimeSeriesQuery())) return false; } if (plotType_ != other.plotType_) return false; - if (!getLegendTemplate() - .equals(other.getLegendTemplate())) return false; + if (!getLegendTemplate().equals(other.getLegendTemplate())) return false; if (hasMinAlignmentPeriod() != other.hasMinAlignmentPeriod()) return false; if (hasMinAlignmentPeriod()) { - if (!getMinAlignmentPeriod() - .equals(other.getMinAlignmentPeriod())) return false; + if (!getMinAlignmentPeriod().equals(other.getMinAlignmentPeriod())) return false; } if (targetAxis_ != other.targetAxis_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -876,89 +1057,93 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.XyChart.DataSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.XyChart.DataSet 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.XyChart.DataSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.XyChart.DataSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.XyChart.DataSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -968,27 +1153,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                * Groups a time series query definition with charting options.
                * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.XyChart.DataSet} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.XyChart.DataSet) com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_fieldAccessorTable + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.XyChart.DataSet.class, com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder.class); + com.google.monitoring.dashboard.v1.XyChart.DataSet.class, + com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.XyChart.DataSet.newBuilder() @@ -996,18 +1186,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTimeSeriesQueryFieldBuilder(); getMinAlignmentPeriodFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1029,9 +1219,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor; } @java.lang.Override @@ -1050,8 +1240,11 @@ public com.google.monitoring.dashboard.v1.XyChart.DataSet build() { @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.DataSet buildPartial() { - com.google.monitoring.dashboard.v1.XyChart.DataSet result = new com.google.monitoring.dashboard.v1.XyChart.DataSet(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.XyChart.DataSet result = + new com.google.monitoring.dashboard.v1.XyChart.DataSet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1060,9 +1253,8 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.XyChart.DataSet re int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.timeSeriesQuery_ = timeSeriesQueryBuilder_ == null - ? timeSeriesQuery_ - : timeSeriesQueryBuilder_.build(); + result.timeSeriesQuery_ = + timeSeriesQueryBuilder_ == null ? timeSeriesQuery_ : timeSeriesQueryBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -1072,9 +1264,10 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.XyChart.DataSet re result.legendTemplate_ = legendTemplate_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.minAlignmentPeriod_ = minAlignmentPeriodBuilder_ == null - ? minAlignmentPeriod_ - : minAlignmentPeriodBuilder_.build(); + result.minAlignmentPeriod_ = + minAlignmentPeriodBuilder_ == null + ? minAlignmentPeriod_ + : minAlignmentPeriodBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { @@ -1087,38 +1280,41 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.XyChart.DataSet re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.XyChart.DataSet) { - return mergeFrom((com.google.monitoring.dashboard.v1.XyChart.DataSet)other); + return mergeFrom((com.google.monitoring.dashboard.v1.XyChart.DataSet) other); } else { super.mergeFrom(other); return this; @@ -1126,7 +1322,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.XyChart.DataSet other) { - if (other == com.google.monitoring.dashboard.v1.XyChart.DataSet.getDefaultInstance()) return this; + if (other == com.google.monitoring.dashboard.v1.XyChart.DataSet.getDefaultInstance()) + return this; if (other.hasTimeSeriesQuery()) { mergeTimeSeriesQuery(other.getTimeSeriesQuery()); } @@ -1170,41 +1367,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getTimeSeriesQueryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - plotType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - legendTemplate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getMinAlignmentPeriodFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - targetAxis_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getTimeSeriesQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + plotType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + legendTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getMinAlignmentPeriodFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + targetAxis_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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) { @@ -1214,46 +1415,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.monitoring.dashboard.v1.TimeSeriesQuery timeSeriesQuery_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> timeSeriesQueryBuilder_; + com.google.monitoring.dashboard.v1.TimeSeriesQuery, + com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> + timeSeriesQueryBuilder_; /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the timeSeriesQuery field is set. */ public boolean hasTimeSeriesQuery() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The timeSeriesQuery. */ public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() { if (timeSeriesQueryBuilder_ == null) { - return timeSeriesQuery_ == null ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + return timeSeriesQuery_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() + : timeSeriesQuery_; } else { return timeSeriesQueryBuilder_.getMessage(); } } /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { if (timeSeriesQueryBuilder_ == null) { @@ -1269,12 +1490,16 @@ public Builder setTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQ return this; } /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTimeSeriesQuery( com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder builderForValue) { @@ -1288,18 +1513,24 @@ public Builder setTimeSeriesQuery( return this; } /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { + public Builder mergeTimeSeriesQuery( + com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { if (timeSeriesQueryBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - timeSeriesQuery_ != null && - timeSeriesQuery_ != com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && timeSeriesQuery_ != null + && timeSeriesQuery_ + != com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance()) { getTimeSeriesQueryBuilder().mergeFrom(value); } else { timeSeriesQuery_ = value; @@ -1314,12 +1545,16 @@ public Builder mergeTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSerie return this; } /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTimeSeriesQuery() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1332,51 +1567,69 @@ public Builder clearTimeSeriesQuery() { return this; } /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder getTimeSeriesQueryBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder + getTimeSeriesQueryBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTimeSeriesQueryFieldBuilder().getBuilder(); } /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder() { + public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder + getTimeSeriesQueryOrBuilder() { if (timeSeriesQueryBuilder_ != null) { return timeSeriesQueryBuilder_.getMessageOrBuilder(); } else { - return timeSeriesQuery_ == null ? - com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() : timeSeriesQuery_; + return timeSeriesQuery_ == null + ? com.google.monitoring.dashboard.v1.TimeSeriesQuery.getDefaultInstance() + : timeSeriesQuery_; } } /** + * + * *
                  * Required. Fields for querying time series data from the
                  * Stackdriver metrics API.
                  * 
          * - * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> + com.google.monitoring.dashboard.v1.TimeSeriesQuery, + com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder> getTimeSeriesQueryFieldBuilder() { if (timeSeriesQueryBuilder_ == null) { - timeSeriesQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesQuery, com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder>( - getTimeSeriesQuery(), - getParentForChildren(), - isClean()); + timeSeriesQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesQuery, + com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder>( + getTimeSeriesQuery(), getParentForChildren(), isClean()); timeSeriesQuery_ = null; } return timeSeriesQueryBuilder_; @@ -1384,22 +1637,29 @@ public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder getTimeSeries private int plotType_ = 0; /** + * + * *
                  * How this data should be plotted on the chart.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; + * * @return The enum numeric value on the wire for plotType. */ - @java.lang.Override public int getPlotTypeValue() { + @java.lang.Override + public int getPlotTypeValue() { return plotType_; } /** + * + * *
                  * How this data should be plotted on the chart.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; + * * @param value The enum numeric value on the wire for plotType to set. * @return This builder for chaining. */ @@ -1410,28 +1670,38 @@ public Builder setPlotTypeValue(int value) { return this; } /** + * + * *
                  * How this data should be plotted on the chart.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; + * * @return The plotType. */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType getPlotType() { - com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType result = com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.forNumber(plotType_); - return result == null ? com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.UNRECOGNIZED : result; + com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType result = + com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.forNumber(plotType_); + return result == null + ? com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType.UNRECOGNIZED + : result; } /** + * + * *
                  * How this data should be plotted on the chart.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; + * * @param value The plotType to set. * @return This builder for chaining. */ - public Builder setPlotType(com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType value) { + public Builder setPlotType( + com.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType value) { if (value == null) { throw new NullPointerException(); } @@ -1441,11 +1711,14 @@ public Builder setPlotType(com.google.monitoring.dashboard.v1.XyChart.DataSet.Pl return this; } /** + * + * *
                  * How this data should be plotted on the chart.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2; + * * @return This builder for chaining. */ public Builder clearPlotType() { @@ -1457,6 +1730,8 @@ public Builder clearPlotType() { private java.lang.Object legendTemplate_ = ""; /** + * + * *
                  * A template string for naming `TimeSeries` in the resulting data set.
                  * This should be a string with interpolations of the form `${label_name}`,
          @@ -1464,13 +1739,13 @@ public Builder clearPlotType() {
                  * 
          * * string legend_template = 3; + * * @return The legendTemplate. */ public java.lang.String getLegendTemplate() { java.lang.Object ref = legendTemplate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); legendTemplate_ = s; return s; @@ -1479,6 +1754,8 @@ public java.lang.String getLegendTemplate() { } } /** + * + * *
                  * A template string for naming `TimeSeries` in the resulting data set.
                  * This should be a string with interpolations of the form `${label_name}`,
          @@ -1486,15 +1763,14 @@ public java.lang.String getLegendTemplate() {
                  * 
          * * string legend_template = 3; + * * @return The bytes for legendTemplate. */ - public com.google.protobuf.ByteString - getLegendTemplateBytes() { + public com.google.protobuf.ByteString getLegendTemplateBytes() { java.lang.Object ref = legendTemplate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); legendTemplate_ = b; return b; } else { @@ -1502,6 +1778,8 @@ public java.lang.String getLegendTemplate() { } } /** + * + * *
                  * A template string for naming `TimeSeries` in the resulting data set.
                  * This should be a string with interpolations of the form `${label_name}`,
          @@ -1509,18 +1787,22 @@ public java.lang.String getLegendTemplate() {
                  * 
          * * string legend_template = 3; + * * @param value The legendTemplate to set. * @return This builder for chaining. */ - public Builder setLegendTemplate( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLegendTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } legendTemplate_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
                  * A template string for naming `TimeSeries` in the resulting data set.
                  * This should be a string with interpolations of the form `${label_name}`,
          @@ -1528,6 +1810,7 @@ public Builder setLegendTemplate(
                  * 
          * * string legend_template = 3; + * * @return This builder for chaining. */ public Builder clearLegendTemplate() { @@ -1537,6 +1820,8 @@ public Builder clearLegendTemplate() { return this; } /** + * + * *
                  * A template string for naming `TimeSeries` in the resulting data set.
                  * This should be a string with interpolations of the form `${label_name}`,
          @@ -1544,12 +1829,14 @@ public Builder clearLegendTemplate() {
                  * 
          * * string legend_template = 3; + * * @param value The bytes for legendTemplate to set. * @return This builder for chaining. */ - public Builder setLegendTemplateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLegendTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); legendTemplate_ = value; bitField0_ |= 0x00000004; @@ -1559,8 +1846,13 @@ public Builder setLegendTemplateBytes( private com.google.protobuf.Duration minAlignmentPeriod_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minAlignmentPeriodBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + minAlignmentPeriodBuilder_; /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1569,13 +1861,18 @@ public Builder setLegendTemplateBytes(
                  * 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]; + * + * * @return Whether the minAlignmentPeriod field is set. */ public boolean hasMinAlignmentPeriod() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1584,17 +1881,24 @@ public boolean hasMinAlignmentPeriod() {
                  * 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]; + * + * * @return The minAlignmentPeriod. */ public com.google.protobuf.Duration getMinAlignmentPeriod() { if (minAlignmentPeriodBuilder_ == null) { - return minAlignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + return minAlignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minAlignmentPeriod_; } else { return minAlignmentPeriodBuilder_.getMessage(); } } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1603,7 +1907,9 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() {
                  * 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]; + * */ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) { if (minAlignmentPeriodBuilder_ == null) { @@ -1619,6 +1925,8 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) { return this; } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1627,10 +1935,11 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) {
                  * 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]; + * */ - public Builder setMinAlignmentPeriod( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builderForValue) { if (minAlignmentPeriodBuilder_ == null) { minAlignmentPeriod_ = builderForValue.build(); } else { @@ -1641,6 +1950,8 @@ public Builder setMinAlignmentPeriod( return this; } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1649,13 +1960,15 @@ public Builder setMinAlignmentPeriod(
                  * 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]; + * */ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) { if (minAlignmentPeriodBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - minAlignmentPeriod_ != null && - minAlignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && minAlignmentPeriod_ != null + && minAlignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { getMinAlignmentPeriodBuilder().mergeFrom(value); } else { minAlignmentPeriod_ = value; @@ -1670,6 +1983,8 @@ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) { return this; } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1678,7 +1993,9 @@ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) {
                  * 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]; + * */ public Builder clearMinAlignmentPeriod() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1691,6 +2008,8 @@ public Builder clearMinAlignmentPeriod() { return this; } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1699,7 +2018,9 @@ public Builder clearMinAlignmentPeriod() {
                  * 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]; + * */ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() { bitField0_ |= 0x00000008; @@ -1707,6 +2028,8 @@ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() { return getMinAlignmentPeriodFieldBuilder().getBuilder(); } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1715,17 +2038,22 @@ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() {
                  * 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]; + * */ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { if (minAlignmentPeriodBuilder_ != null) { return minAlignmentPeriodBuilder_.getMessageOrBuilder(); } else { - return minAlignmentPeriod_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : minAlignmentPeriod_; + return minAlignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minAlignmentPeriod_; } } /** + * + * *
                  * Optional. The lower bound on data point frequency for this data set,
                  * implemented by specifying the minimum alignment period to use in a time
          @@ -1734,17 +2062,22 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() {
                  * 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]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getMinAlignmentPeriodFieldBuilder() { if (minAlignmentPeriodBuilder_ == null) { - minAlignmentPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMinAlignmentPeriod(), - getParentForChildren(), - isClean()); + minAlignmentPeriodBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMinAlignmentPeriod(), getParentForChildren(), isClean()); minAlignmentPeriod_ = null; } return minAlignmentPeriodBuilder_; @@ -1752,22 +2085,33 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { private int targetAxis_ = 0; /** + * + * *
                  * Optional. The target axis to use for plotting the metric.
                  * 
          * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for targetAxis. */ - @java.lang.Override public int getTargetAxisValue() { + @java.lang.Override + public int getTargetAxisValue() { return targetAxis_; } /** + * + * *
                  * Optional. The target axis to use for plotting the metric.
                  * 
          * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for targetAxis to set. * @return This builder for chaining. */ @@ -1778,28 +2122,42 @@ public Builder setTargetAxisValue(int value) { return this; } /** + * + * *
                  * Optional. The target axis to use for plotting the metric.
                  * 
          * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The targetAxis. */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis getTargetAxis() { - com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis result = com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.forNumber(targetAxis_); - return result == null ? com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.UNRECOGNIZED : result; + com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis result = + com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.forNumber(targetAxis_); + return result == null + ? com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.UNRECOGNIZED + : result; } /** + * + * *
                  * Optional. The target axis to use for plotting the metric.
                  * 
          * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The targetAxis to set. * @return This builder for chaining. */ - public Builder setTargetAxis(com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis value) { + public Builder setTargetAxis( + com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis value) { if (value == null) { throw new NullPointerException(); } @@ -1809,11 +2167,16 @@ public Builder setTargetAxis(com.google.monitoring.dashboard.v1.XyChart.DataSet. return this; } /** + * + * *
                  * Optional. The target axis to use for plotting the metric.
                  * 
          * - * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearTargetAxis() { @@ -1822,6 +2185,7 @@ public Builder clearTargetAxis() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1834,12 +2198,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.XyChart.DataSet) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.XyChart.DataSet) private static final com.google.monitoring.dashboard.v1.XyChart.DataSet DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.XyChart.DataSet(); } @@ -1848,27 +2212,28 @@ public static com.google.monitoring.dashboard.v1.XyChart.DataSet getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataSet 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataSet 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; @@ -1883,68 +2248,82 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.XyChart.DataSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface AxisOrBuilder extends + public interface AxisOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.XyChart.Axis) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * The label of the axis.
                * 
          * * string label = 1; + * * @return The label. */ java.lang.String getLabel(); /** + * + * *
                * The label of the axis.
                * 
          * * string label = 1; + * * @return The bytes for label. */ - com.google.protobuf.ByteString - getLabelBytes(); + com.google.protobuf.ByteString getLabelBytes(); /** + * + * *
                * The axis scale. By default, a linear scale is used.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; + * * @return The enum numeric value on the wire for scale. */ int getScaleValue(); /** + * + * *
                * The axis scale. By default, a linear scale is used.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; + * * @return The scale. */ com.google.monitoring.dashboard.v1.XyChart.Axis.Scale getScale(); } /** + * + * *
              * A chart axis.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.XyChart.Axis} */ - public static final class Axis extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Axis extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.XyChart.Axis) AxisOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Axis.newBuilder() to construct. private Axis(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Axis() { label_ = ""; scale_ = 0; @@ -1952,34 +2331,38 @@ private Axis() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Axis(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_Axis_fieldAccessorTable + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_XyChart_Axis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.XyChart.Axis.class, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder.class); + com.google.monitoring.dashboard.v1.XyChart.Axis.class, + com.google.monitoring.dashboard.v1.XyChart.Axis.Builder.class); } /** + * + * *
                * Types of scales used in axes.
                * 
          * * Protobuf enum {@code google.monitoring.dashboard.v1.XyChart.Axis.Scale} */ - public enum Scale - implements com.google.protobuf.ProtocolMessageEnum { + public enum Scale implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                  * Scale is unspecified. The view will default to `LINEAR`.
                  * 
          @@ -1988,6 +2371,8 @@ public enum Scale */ SCALE_UNSPECIFIED(0), /** + * + * *
                  * Linear scale.
                  * 
          @@ -1996,6 +2381,8 @@ public enum Scale */ LINEAR(1), /** + * + * *
                  * Logarithmic scale (base 10).
                  * 
          @@ -2007,6 +2394,8 @@ public enum Scale ; /** + * + * *
                  * Scale is unspecified. The view will default to `LINEAR`.
                  * 
          @@ -2015,6 +2404,8 @@ public enum Scale */ public static final int SCALE_UNSPECIFIED_VALUE = 0; /** + * + * *
                  * Linear scale.
                  * 
          @@ -2023,6 +2414,8 @@ public enum Scale */ public static final int LINEAR_VALUE = 1; /** + * + * *
                  * Logarithmic scale (base 10).
                  * 
          @@ -2031,7 +2424,6 @@ public enum Scale */ public static final int LOG10_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -2056,49 +2448,51 @@ public static Scale valueOf(int value) { */ public static Scale forNumber(int value) { switch (value) { - case 0: return SCALE_UNSPECIFIED; - case 1: return LINEAR; - case 2: return LOG10; - default: return null; + case 0: + return SCALE_UNSPECIFIED; + case 1: + return LINEAR; + case 2: + return LOG10; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Scale> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Scale findValueByNumber(int number) { - return Scale.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Scale findValueByNumber(int number) { + return Scale.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() { + + 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.XyChart.Axis.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChart.Axis.getDescriptor() + .getEnumTypes() + .get(0); } private static final Scale[] VALUES = values(); - public static Scale valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Scale valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -2116,14 +2510,18 @@ private Scale(int value) { } public static final int LABEL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object label_ = ""; /** + * + * *
                * The label of the axis.
                * 
          * * string label = 1; + * * @return The label. */ @java.lang.Override @@ -2132,29 +2530,29 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** + * + * *
                * The label of the axis.
                * 
          * * string label = 1; + * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -2165,30 +2563,42 @@ public java.lang.String getLabel() { public static final int SCALE_FIELD_NUMBER = 2; private int scale_ = 0; /** + * + * *
                * The axis scale. By default, a linear scale is used.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; + * * @return The enum numeric value on the wire for scale. */ - @java.lang.Override public int getScaleValue() { + @java.lang.Override + public int getScaleValue() { return scale_; } /** + * + * *
                * The axis scale. By default, a linear scale is used.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; + * * @return The scale. */ - @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.Axis.Scale getScale() { - com.google.monitoring.dashboard.v1.XyChart.Axis.Scale result = com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.forNumber(scale_); - return result == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.dashboard.v1.XyChart.Axis.Scale getScale() { + com.google.monitoring.dashboard.v1.XyChart.Axis.Scale result = + com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.forNumber(scale_); + return result == null + ? com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2200,12 +2610,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } - if (scale_ != com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.SCALE_UNSPECIFIED.getNumber()) { + if (scale_ + != com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.SCALE_UNSPECIFIED.getNumber()) { output.writeEnum(2, scale_); } getUnknownFields().writeTo(output); @@ -2220,9 +2630,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); } - if (scale_ != com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.SCALE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, scale_); + if (scale_ + != com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.SCALE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, scale_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2232,15 +2642,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.XyChart.Axis)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.XyChart.Axis other = (com.google.monitoring.dashboard.v1.XyChart.Axis) obj; + com.google.monitoring.dashboard.v1.XyChart.Axis other = + (com.google.monitoring.dashboard.v1.XyChart.Axis) obj; - if (!getLabel() - .equals(other.getLabel())) return false; + if (!getLabel().equals(other.getLabel())) return false; if (scale_ != other.scale_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2263,89 +2673,93 @@ public int hashCode() { } public static com.google.monitoring.dashboard.v1.XyChart.Axis parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.XyChart.Axis parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.XyChart.Axis parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.XyChart.Axis 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.XyChart.Axis parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.XyChart.Axis parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.XyChart.Axis parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.dashboard.v1.XyChart.Axis parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.XyChart.Axis parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.XyChart.Axis parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.XyChart.Axis parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.XyChart.Axis parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.XyChart.Axis parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.XyChart.Axis parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.XyChart.Axis prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2355,39 +2769,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                * A chart axis.
                * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.XyChart.Axis} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.XyChart.Axis) com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_Axis_fieldAccessorTable + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_XyChart_Axis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.XyChart.Axis.class, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder.class); + com.google.monitoring.dashboard.v1.XyChart.Axis.class, + com.google.monitoring.dashboard.v1.XyChart.Axis.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.XyChart.Axis.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2398,9 +2814,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor; } @java.lang.Override @@ -2419,8 +2835,11 @@ public com.google.monitoring.dashboard.v1.XyChart.Axis build() { @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.Axis buildPartial() { - com.google.monitoring.dashboard.v1.XyChart.Axis result = new com.google.monitoring.dashboard.v1.XyChart.Axis(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.dashboard.v1.XyChart.Axis result = + new com.google.monitoring.dashboard.v1.XyChart.Axis(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -2439,38 +2858,41 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.XyChart.Axis resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.XyChart.Axis) { - return mergeFrom((com.google.monitoring.dashboard.v1.XyChart.Axis)other); + return mergeFrom((com.google.monitoring.dashboard.v1.XyChart.Axis) other); } else { super.mergeFrom(other); return this; @@ -2478,7 +2900,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.dashboard.v1.XyChart.Axis other) { - if (other == com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance()) return this; + if (other == com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance()) + return this; if (!other.getLabel().isEmpty()) { label_ = other.label_; bitField0_ |= 0x00000001; @@ -2513,22 +2936,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - label_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - scale_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + label_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + scale_ = input.readEnum(); + bitField0_ |= 0x00000002; + 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) { @@ -2538,22 +2964,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object label_ = ""; /** + * + * *
                  * The label of the axis.
                  * 
          * * string label = 1; + * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -2562,20 +2991,21 @@ public java.lang.String getLabel() { } } /** + * + * *
                  * The label of the axis.
                  * 
          * * string label = 1; + * * @return The bytes for label. */ - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -2583,28 +3013,35 @@ public java.lang.String getLabel() { } } /** + * + * *
                  * The label of the axis.
                  * 
          * * string label = 1; + * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } label_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                  * The label of the axis.
                  * 
          * * string label = 1; + * * @return This builder for chaining. */ public Builder clearLabel() { @@ -2614,17 +3051,21 @@ public Builder clearLabel() { return this; } /** + * + * *
                  * The label of the axis.
                  * 
          * * string label = 1; + * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); label_ = value; bitField0_ |= 0x00000001; @@ -2634,22 +3075,29 @@ public Builder setLabelBytes( private int scale_ = 0; /** + * + * *
                  * The axis scale. By default, a linear scale is used.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; + * * @return The enum numeric value on the wire for scale. */ - @java.lang.Override public int getScaleValue() { + @java.lang.Override + public int getScaleValue() { return scale_; } /** + * + * *
                  * The axis scale. By default, a linear scale is used.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; + * * @param value The enum numeric value on the wire for scale to set. * @return This builder for chaining. */ @@ -2660,24 +3108,33 @@ public Builder setScaleValue(int value) { return this; } /** + * + * *
                  * The axis scale. By default, a linear scale is used.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; + * * @return The scale. */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.Axis.Scale getScale() { - com.google.monitoring.dashboard.v1.XyChart.Axis.Scale result = com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.forNumber(scale_); - return result == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.UNRECOGNIZED : result; + com.google.monitoring.dashboard.v1.XyChart.Axis.Scale result = + com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.forNumber(scale_); + return result == null + ? com.google.monitoring.dashboard.v1.XyChart.Axis.Scale.UNRECOGNIZED + : result; } /** + * + * *
                  * The axis scale. By default, a linear scale is used.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; + * * @param value The scale to set. * @return This builder for chaining. */ @@ -2691,11 +3148,14 @@ public Builder setScale(com.google.monitoring.dashboard.v1.XyChart.Axis.Scale va return this; } /** + * + * *
                  * The axis scale. By default, a linear scale is used.
                  * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2; + * * @return This builder for chaining. */ public Builder clearScale() { @@ -2704,6 +3164,7 @@ public Builder clearScale() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2716,12 +3177,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.XyChart.Axis) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.XyChart.Axis) private static final com.google.monitoring.dashboard.v1.XyChart.Axis DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.XyChart.Axis(); } @@ -2730,27 +3191,28 @@ public static com.google.monitoring.dashboard.v1.XyChart.Axis getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Axis 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Axis 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; @@ -2765,64 +3227,84 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.XyChart.Axis getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; public static final int DATA_SETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List dataSets_; /** + * + * *
              * Required. The data displayed in this chart.
              * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getDataSetsList() { return dataSets_; } /** + * + * *
              * Required. The data displayed in this chart.
              * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getDataSetsOrBuilderList() { return dataSets_; } /** + * + * *
              * Required. The data displayed in this chart.
              * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getDataSetsCount() { return dataSets_.size(); } /** + * + * *
              * Required. The data displayed in this chart.
              * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.DataSet getDataSets(int index) { return dataSets_.get(index); } /** + * + * *
              * Required. The data displayed in this chart.
              * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOrBuilder( @@ -2833,6 +3315,8 @@ public com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOr public static final int TIMESHIFT_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration timeshiftDuration_; /** + * + * *
              * The duration used to display a comparison chart. A comparison chart
              * simultaneously shows values from two similar-length time periods
          @@ -2842,6 +3326,7 @@ public com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOr
              * 
          * * .google.protobuf.Duration timeshift_duration = 4; + * * @return Whether the timeshiftDuration field is set. */ @java.lang.Override @@ -2849,6 +3334,8 @@ public boolean hasTimeshiftDuration() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
              * The duration used to display a comparison chart. A comparison chart
              * simultaneously shows values from two similar-length time periods
          @@ -2858,13 +3345,18 @@ public boolean hasTimeshiftDuration() {
              * 
          * * .google.protobuf.Duration timeshift_duration = 4; + * * @return The timeshiftDuration. */ @java.lang.Override public com.google.protobuf.Duration getTimeshiftDuration() { - return timeshiftDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeshiftDuration_; + return timeshiftDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeshiftDuration_; } /** + * + * *
              * The duration used to display a comparison chart. A comparison chart
              * simultaneously shows values from two similar-length time periods
          @@ -2877,13 +3369,18 @@ public com.google.protobuf.Duration getTimeshiftDuration() {
              */
             @java.lang.Override
             public com.google.protobuf.DurationOrBuilder getTimeshiftDurationOrBuilder() {
          -    return timeshiftDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeshiftDuration_;
          +    return timeshiftDuration_ == null
          +        ? com.google.protobuf.Duration.getDefaultInstance()
          +        : timeshiftDuration_;
             }
           
             public static final int THRESHOLDS_FIELD_NUMBER = 5;
          +
             @SuppressWarnings("serial")
             private java.util.List thresholds_;
             /**
          +   *
          +   *
              * 
              * Threshold lines drawn horizontally across the chart.
              * 
          @@ -2895,6 +3392,8 @@ public java.util.List getThreshold return thresholds_; } /** + * + * *
              * Threshold lines drawn horizontally across the chart.
              * 
          @@ -2902,11 +3401,13 @@ public java.util.List getThreshold * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ @java.lang.Override - public java.util.List + public java.util.List getThresholdsOrBuilderList() { return thresholds_; } /** + * + * *
              * Threshold lines drawn horizontally across the chart.
              * 
          @@ -2918,6 +3419,8 @@ public int getThresholdsCount() { return thresholds_.size(); } /** + * + * *
              * Threshold lines drawn horizontally across the chart.
              * 
          @@ -2929,6 +3432,8 @@ public com.google.monitoring.dashboard.v1.Threshold getThresholds(int index) { return thresholds_.get(index); } /** + * + * *
              * Threshold lines drawn horizontally across the chart.
              * 
          @@ -2936,19 +3441,21 @@ public com.google.monitoring.dashboard.v1.Threshold getThresholds(int index) { * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ @java.lang.Override - public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder( - int index) { + public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(int index) { return thresholds_.get(index); } public static final int X_AXIS_FIELD_NUMBER = 6; private com.google.monitoring.dashboard.v1.XyChart.Axis xAxis_; /** + * + * *
              * The properties applied to the x-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; + * * @return Whether the xAxis field is set. */ @java.lang.Override @@ -2956,18 +3463,25 @@ public boolean hasXAxis() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
              * The properties applied to the x-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; + * * @return The xAxis. */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.Axis getXAxis() { - return xAxis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : xAxis_; + return xAxis_ == null + ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() + : xAxis_; } /** + * + * *
              * The properties applied to the x-axis.
              * 
          @@ -2976,17 +3490,22 @@ public com.google.monitoring.dashboard.v1.XyChart.Axis getXAxis() { */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getXAxisOrBuilder() { - return xAxis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : xAxis_; + return xAxis_ == null + ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() + : xAxis_; } public static final int Y_AXIS_FIELD_NUMBER = 7; private com.google.monitoring.dashboard.v1.XyChart.Axis yAxis_; /** + * + * *
              * The properties applied to the y-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; + * * @return Whether the yAxis field is set. */ @java.lang.Override @@ -2994,18 +3513,25 @@ public boolean hasYAxis() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
              * The properties applied to the y-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; + * * @return The yAxis. */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.Axis getYAxis() { - return yAxis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : yAxis_; + return yAxis_ == null + ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() + : yAxis_; } /** + * + * *
              * The properties applied to the y-axis.
              * 
          @@ -3014,17 +3540,22 @@ public com.google.monitoring.dashboard.v1.XyChart.Axis getYAxis() { */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getYAxisOrBuilder() { - return yAxis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : yAxis_; + return yAxis_ == null + ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() + : yAxis_; } public static final int Y2_AXIS_FIELD_NUMBER = 9; private com.google.monitoring.dashboard.v1.XyChart.Axis y2Axis_; /** + * + * *
              * The properties applied to the y2-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; + * * @return Whether the y2Axis field is set. */ @java.lang.Override @@ -3032,18 +3563,25 @@ public boolean hasY2Axis() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
              * The properties applied to the y2-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; + * * @return The y2Axis. */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.Axis getY2Axis() { - return y2Axis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : y2Axis_; + return y2Axis_ == null + ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() + : y2Axis_; } /** + * + * *
              * The properties applied to the y2-axis.
              * 
          @@ -3052,17 +3590,22 @@ public com.google.monitoring.dashboard.v1.XyChart.Axis getY2Axis() { */ @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getY2AxisOrBuilder() { - return y2Axis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : y2Axis_; + return y2Axis_ == null + ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() + : y2Axis_; } public static final int CHART_OPTIONS_FIELD_NUMBER = 8; private com.google.monitoring.dashboard.v1.ChartOptions chartOptions_; /** + * + * *
              * Display options for the chart.
              * 
          * * .google.monitoring.dashboard.v1.ChartOptions chart_options = 8; + * * @return Whether the chartOptions field is set. */ @java.lang.Override @@ -3070,18 +3613,25 @@ public boolean hasChartOptions() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
              * Display options for the chart.
              * 
          * * .google.monitoring.dashboard.v1.ChartOptions chart_options = 8; + * * @return The chartOptions. */ @java.lang.Override public com.google.monitoring.dashboard.v1.ChartOptions getChartOptions() { - return chartOptions_ == null ? com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance() : chartOptions_; + return chartOptions_ == null + ? com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance() + : chartOptions_; } /** + * + * *
              * Display options for the chart.
              * 
          @@ -3090,10 +3640,13 @@ public com.google.monitoring.dashboard.v1.ChartOptions getChartOptions() { */ @java.lang.Override public com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder getChartOptionsOrBuilder() { - return chartOptions_ == null ? com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance() : chartOptions_; + return chartOptions_ == null + ? com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance() + : chartOptions_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3105,8 +3658,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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)); } @@ -3138,32 +3690,25 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < dataSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, dataSets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataSets_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTimeshiftDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTimeshiftDuration()); } for (int i = 0; i < thresholds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, thresholds_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, thresholds_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getXAxis()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getXAxis()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getYAxis()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getYAxis()); } if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getChartOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getChartOptions()); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getY2Axis()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getY2Axis()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3173,41 +3718,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.dashboard.v1.XyChart)) { return super.equals(obj); } - com.google.monitoring.dashboard.v1.XyChart other = (com.google.monitoring.dashboard.v1.XyChart) obj; + com.google.monitoring.dashboard.v1.XyChart other = + (com.google.monitoring.dashboard.v1.XyChart) obj; - if (!getDataSetsList() - .equals(other.getDataSetsList())) return false; + if (!getDataSetsList().equals(other.getDataSetsList())) return false; if (hasTimeshiftDuration() != other.hasTimeshiftDuration()) return false; if (hasTimeshiftDuration()) { - if (!getTimeshiftDuration() - .equals(other.getTimeshiftDuration())) return false; + if (!getTimeshiftDuration().equals(other.getTimeshiftDuration())) return false; } - if (!getThresholdsList() - .equals(other.getThresholdsList())) return false; + if (!getThresholdsList().equals(other.getThresholdsList())) return false; if (hasXAxis() != other.hasXAxis()) return false; if (hasXAxis()) { - if (!getXAxis() - .equals(other.getXAxis())) return false; + if (!getXAxis().equals(other.getXAxis())) return false; } if (hasYAxis() != other.hasYAxis()) return false; if (hasYAxis()) { - if (!getYAxis() - .equals(other.getYAxis())) return false; + if (!getYAxis().equals(other.getYAxis())) return false; } if (hasY2Axis() != other.hasY2Axis()) return false; if (hasY2Axis()) { - if (!getY2Axis() - .equals(other.getY2Axis())) return false; + if (!getY2Axis().equals(other.getY2Axis())) return false; } if (hasChartOptions() != other.hasChartOptions()) return false; if (hasChartOptions()) { - if (!getChartOptions() - .equals(other.getChartOptions())) return false; + if (!getChartOptions().equals(other.getChartOptions())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3253,120 +3792,127 @@ public int hashCode() { return hash; } - public static com.google.monitoring.dashboard.v1.XyChart parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.dashboard.v1.XyChart parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.XyChart parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.XyChart parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.XyChart 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.XyChart parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.dashboard.v1.XyChart parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.XyChart parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.XyChart parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.dashboard.v1.XyChart parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.dashboard.v1.XyChart parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.dashboard.v1.XyChart parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.dashboard.v1.XyChart parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.dashboard.v1.XyChart parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.dashboard.v1.XyChart prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A chart that displays data on a 2D (X and Y axes) plane.
              * 
          * * Protobuf type {@code google.monitoring.dashboard.v1.XyChart} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.XyChart) com.google.monitoring.dashboard.v1.XyChartOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_XyChart_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_fieldAccessorTable + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_XyChart_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.XyChart.class, com.google.monitoring.dashboard.v1.XyChart.Builder.class); + com.google.monitoring.dashboard.v1.XyChart.class, + com.google.monitoring.dashboard.v1.XyChart.Builder.class); } // Construct using com.google.monitoring.dashboard.v1.XyChart.newBuilder() @@ -3374,14 +3920,13 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDataSetsFieldBuilder(); getTimeshiftDurationFieldBuilder(); getThresholdsFieldBuilder(); @@ -3391,6 +3936,7 @@ private void maybeForceBuilderInitialization() { getChartOptionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -3438,9 +3984,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.dashboard.v1.XyChartProto.internal_static_google_monitoring_dashboard_v1_XyChart_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.XyChartProto + .internal_static_google_monitoring_dashboard_v1_XyChart_descriptor; } @java.lang.Override @@ -3459,9 +4005,12 @@ public com.google.monitoring.dashboard.v1.XyChart build() { @java.lang.Override public com.google.monitoring.dashboard.v1.XyChart buildPartial() { - com.google.monitoring.dashboard.v1.XyChart result = new com.google.monitoring.dashboard.v1.XyChart(this); + com.google.monitoring.dashboard.v1.XyChart result = + new com.google.monitoring.dashboard.v1.XyChart(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -3491,33 +4040,27 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.XyChart result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.timeshiftDuration_ = timeshiftDurationBuilder_ == null - ? timeshiftDuration_ - : timeshiftDurationBuilder_.build(); + result.timeshiftDuration_ = + timeshiftDurationBuilder_ == null + ? timeshiftDuration_ + : timeshiftDurationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.xAxis_ = xAxisBuilder_ == null - ? xAxis_ - : xAxisBuilder_.build(); + result.xAxis_ = xAxisBuilder_ == null ? xAxis_ : xAxisBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.yAxis_ = yAxisBuilder_ == null - ? yAxis_ - : yAxisBuilder_.build(); + result.yAxis_ = yAxisBuilder_ == null ? yAxis_ : yAxisBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.y2Axis_ = y2AxisBuilder_ == null - ? y2Axis_ - : y2AxisBuilder_.build(); + result.y2Axis_ = y2AxisBuilder_ == null ? y2Axis_ : y2AxisBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.chartOptions_ = chartOptionsBuilder_ == null - ? chartOptions_ - : chartOptionsBuilder_.build(); + result.chartOptions_ = + chartOptionsBuilder_ == null ? chartOptions_ : chartOptionsBuilder_.build(); to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; @@ -3527,38 +4070,39 @@ private void buildPartial0(com.google.monitoring.dashboard.v1.XyChart result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.XyChart) { - return mergeFrom((com.google.monitoring.dashboard.v1.XyChart)other); + return mergeFrom((com.google.monitoring.dashboard.v1.XyChart) other); } else { super.mergeFrom(other); return this; @@ -3585,9 +4129,10 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.XyChart other) { dataSetsBuilder_ = null; dataSets_ = other.dataSets_; bitField0_ = (bitField0_ & ~0x00000001); - dataSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataSetsFieldBuilder() : null; + dataSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataSetsFieldBuilder() + : null; } else { dataSetsBuilder_.addAllMessages(other.dataSets_); } @@ -3614,9 +4159,10 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.XyChart other) { thresholdsBuilder_ = null; thresholds_ = other.thresholds_; bitField0_ = (bitField0_ & ~0x00000004); - thresholdsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getThresholdsFieldBuilder() : null; + thresholdsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getThresholdsFieldBuilder() + : null; } else { thresholdsBuilder_.addAllMessages(other.thresholds_); } @@ -3660,73 +4206,71 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.monitoring.dashboard.v1.XyChart.DataSet m = - input.readMessage( - com.google.monitoring.dashboard.v1.XyChart.DataSet.parser(), - extensionRegistry); - if (dataSetsBuilder_ == null) { - ensureDataSetsIsMutable(); - dataSets_.add(m); - } else { - dataSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 34: { - input.readMessage( - getTimeshiftDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 34 - case 42: { - com.google.monitoring.dashboard.v1.Threshold m = - input.readMessage( - com.google.monitoring.dashboard.v1.Threshold.parser(), - extensionRegistry); - if (thresholdsBuilder_ == null) { - ensureThresholdsIsMutable(); - thresholds_.add(m); - } else { - thresholdsBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: { - input.readMessage( - getXAxisFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 50 - case 58: { - input.readMessage( - getYAxisFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 58 - case 66: { - input.readMessage( - getChartOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 74: { - input.readMessage( - getY2AxisFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.monitoring.dashboard.v1.XyChart.DataSet m = + input.readMessage( + com.google.monitoring.dashboard.v1.XyChart.DataSet.parser(), + extensionRegistry); + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + dataSets_.add(m); + } else { + dataSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 34: + { + input.readMessage( + getTimeshiftDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: + { + com.google.monitoring.dashboard.v1.Threshold m = + input.readMessage( + com.google.monitoring.dashboard.v1.Threshold.parser(), extensionRegistry); + if (thresholdsBuilder_ == null) { + ensureThresholdsIsMutable(); + thresholds_.add(m); + } else { + thresholdsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + input.readMessage(getXAxisFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 58: + { + input.readMessage(getYAxisFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 66: + { + input.readMessage(getChartOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + input.readMessage(getY2AxisFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 74 + 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) { @@ -3736,26 +4280,36 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List dataSets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDataSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - dataSets_ = new java.util.ArrayList(dataSets_); + dataSets_ = + new java.util.ArrayList(dataSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.DataSet, com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder, com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder> dataSetsBuilder_; + com.google.monitoring.dashboard.v1.XyChart.DataSet, + com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder, + com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder> + dataSetsBuilder_; /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getDataSetsList() { if (dataSetsBuilder_ == null) { @@ -3765,11 +4319,15 @@ public java.util.List getDat } } /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getDataSetsCount() { if (dataSetsBuilder_ == null) { @@ -3779,11 +4337,15 @@ public int getDataSetsCount() { } } /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.dashboard.v1.XyChart.DataSet getDataSets(int index) { if (dataSetsBuilder_ == null) { @@ -3793,11 +4355,15 @@ public com.google.monitoring.dashboard.v1.XyChart.DataSet getDataSets(int index) } } /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDataSets( int index, com.google.monitoring.dashboard.v1.XyChart.DataSet value) { @@ -3814,11 +4380,15 @@ public Builder setDataSets( return this; } /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDataSets( int index, com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder builderForValue) { @@ -3832,11 +4402,15 @@ public Builder setDataSets( return this; } /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addDataSets(com.google.monitoring.dashboard.v1.XyChart.DataSet value) { if (dataSetsBuilder_ == null) { @@ -3852,11 +4426,15 @@ public Builder addDataSets(com.google.monitoring.dashboard.v1.XyChart.DataSet va return this; } /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addDataSets( int index, com.google.monitoring.dashboard.v1.XyChart.DataSet value) { @@ -3873,11 +4451,15 @@ public Builder addDataSets( return this; } /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addDataSets( com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder builderForValue) { @@ -3891,11 +4473,15 @@ public Builder addDataSets( return this; } /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addDataSets( int index, com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder builderForValue) { @@ -3909,18 +4495,21 @@ public Builder addDataSets( return this; } /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllDataSets( java.lang.Iterable values) { if (dataSetsBuilder_ == null) { ensureDataSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dataSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataSets_); onChanged(); } else { dataSetsBuilder_.addAllMessages(values); @@ -3928,11 +4517,15 @@ public Builder addAllDataSets( return this; } /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDataSets() { if (dataSetsBuilder_ == null) { @@ -3945,11 +4538,15 @@ public Builder clearDataSets() { return this; } /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeDataSets(int index) { if (dataSetsBuilder_ == null) { @@ -3962,39 +4559,52 @@ public Builder removeDataSets(int index) { return this; } /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder getDataSetsBuilder( int index) { return getDataSetsFieldBuilder().getBuilder(index); } /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOrBuilder( int index) { if (dataSetsBuilder_ == null) { - return dataSets_.get(index); } else { + return dataSets_.get(index); + } else { return dataSetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getDataSetsOrBuilderList() { + public java.util.List + getDataSetsOrBuilderList() { if (dataSetsBuilder_ != null) { return dataSetsBuilder_.getMessageOrBuilderList(); } else { @@ -4002,49 +4612,65 @@ public com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOr } } /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder addDataSetsBuilder() { - return getDataSetsFieldBuilder().addBuilder( - com.google.monitoring.dashboard.v1.XyChart.DataSet.getDefaultInstance()); + return getDataSetsFieldBuilder() + .addBuilder(com.google.monitoring.dashboard.v1.XyChart.DataSet.getDefaultInstance()); } /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder addDataSetsBuilder( int index) { - return getDataSetsFieldBuilder().addBuilder( - index, com.google.monitoring.dashboard.v1.XyChart.DataSet.getDefaultInstance()); + return getDataSetsFieldBuilder() + .addBuilder( + index, com.google.monitoring.dashboard.v1.XyChart.DataSet.getDefaultInstance()); } /** + * + * *
                * Required. The data displayed in this chart.
                * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getDataSetsBuilderList() { + public java.util.List + getDataSetsBuilderList() { return getDataSetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.DataSet, com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder, com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder> + com.google.monitoring.dashboard.v1.XyChart.DataSet, + com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder, + com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder> getDataSetsFieldBuilder() { if (dataSetsBuilder_ == null) { - dataSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.DataSet, com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder, com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder>( - dataSets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + dataSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.XyChart.DataSet, + com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder, + com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder>( + dataSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); dataSets_ = null; } return dataSetsBuilder_; @@ -4052,8 +4678,13 @@ public com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder addDataSetsBui private com.google.protobuf.Duration timeshiftDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeshiftDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + timeshiftDurationBuilder_; /** + * + * *
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4063,12 +4694,15 @@ public com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder addDataSetsBui
                * 
          * * .google.protobuf.Duration timeshift_duration = 4; + * * @return Whether the timeshiftDuration field is set. */ public boolean hasTimeshiftDuration() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4078,16 +4712,21 @@ public boolean hasTimeshiftDuration() {
                * 
          * * .google.protobuf.Duration timeshift_duration = 4; + * * @return The timeshiftDuration. */ public com.google.protobuf.Duration getTimeshiftDuration() { if (timeshiftDurationBuilder_ == null) { - return timeshiftDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeshiftDuration_; + return timeshiftDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeshiftDuration_; } else { return timeshiftDurationBuilder_.getMessage(); } } /** + * + * *
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4112,6 +4751,8 @@ public Builder setTimeshiftDuration(com.google.protobuf.Duration value) {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4122,8 +4763,7 @@ public Builder setTimeshiftDuration(com.google.protobuf.Duration value) {
                *
                * .google.protobuf.Duration timeshift_duration = 4;
                */
          -    public Builder setTimeshiftDuration(
          -        com.google.protobuf.Duration.Builder builderForValue) {
          +    public Builder setTimeshiftDuration(com.google.protobuf.Duration.Builder builderForValue) {
                 if (timeshiftDurationBuilder_ == null) {
                   timeshiftDuration_ = builderForValue.build();
                 } else {
          @@ -4134,6 +4774,8 @@ public Builder setTimeshiftDuration(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4146,9 +4788,9 @@ public Builder setTimeshiftDuration(
                */
               public Builder mergeTimeshiftDuration(com.google.protobuf.Duration value) {
                 if (timeshiftDurationBuilder_ == null) {
          -        if (((bitField0_ & 0x00000002) != 0) &&
          -          timeshiftDuration_ != null &&
          -          timeshiftDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
          +        if (((bitField0_ & 0x00000002) != 0)
          +            && timeshiftDuration_ != null
          +            && timeshiftDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
                     getTimeshiftDurationBuilder().mergeFrom(value);
                   } else {
                     timeshiftDuration_ = value;
          @@ -4163,6 +4805,8 @@ public Builder mergeTimeshiftDuration(com.google.protobuf.Duration value) {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4184,6 +4828,8 @@ public Builder clearTimeshiftDuration() {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4200,6 +4846,8 @@ public com.google.protobuf.Duration.Builder getTimeshiftDurationBuilder() {
                 return getTimeshiftDurationFieldBuilder().getBuilder();
               }
               /**
          +     *
          +     *
                * 
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4214,11 +4862,14 @@ public com.google.protobuf.DurationOrBuilder getTimeshiftDurationOrBuilder() {
                 if (timeshiftDurationBuilder_ != null) {
                   return timeshiftDurationBuilder_.getMessageOrBuilder();
                 } else {
          -        return timeshiftDuration_ == null ?
          -            com.google.protobuf.Duration.getDefaultInstance() : timeshiftDuration_;
          +        return timeshiftDuration_ == null
          +            ? com.google.protobuf.Duration.getDefaultInstance()
          +            : timeshiftDuration_;
                 }
               }
               /**
          +     *
          +     *
                * 
                * The duration used to display a comparison chart. A comparison chart
                * simultaneously shows values from two similar-length time periods
          @@ -4230,32 +4881,42 @@ public com.google.protobuf.DurationOrBuilder getTimeshiftDurationOrBuilder() {
                * .google.protobuf.Duration timeshift_duration = 4;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
          +            com.google.protobuf.Duration,
          +            com.google.protobuf.Duration.Builder,
          +            com.google.protobuf.DurationOrBuilder>
                   getTimeshiftDurationFieldBuilder() {
                 if (timeshiftDurationBuilder_ == null) {
          -        timeshiftDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
          -                getTimeshiftDuration(),
          -                getParentForChildren(),
          -                isClean());
          +        timeshiftDurationBuilder_ =
          +            new com.google.protobuf.SingleFieldBuilderV3<
          +                com.google.protobuf.Duration,
          +                com.google.protobuf.Duration.Builder,
          +                com.google.protobuf.DurationOrBuilder>(
          +                getTimeshiftDuration(), getParentForChildren(), isClean());
                   timeshiftDuration_ = null;
                 }
                 return timeshiftDurationBuilder_;
               }
           
               private java.util.List thresholds_ =
          -      java.util.Collections.emptyList();
          +        java.util.Collections.emptyList();
          +
               private void ensureThresholdsIsMutable() {
                 if (!((bitField0_ & 0x00000004) != 0)) {
          -        thresholds_ = new java.util.ArrayList(thresholds_);
          +        thresholds_ =
          +            new java.util.ArrayList(thresholds_);
                   bitField0_ |= 0x00000004;
          -       }
          +      }
               }
           
               private com.google.protobuf.RepeatedFieldBuilderV3<
          -        com.google.monitoring.dashboard.v1.Threshold, com.google.monitoring.dashboard.v1.Threshold.Builder, com.google.monitoring.dashboard.v1.ThresholdOrBuilder> thresholdsBuilder_;
          +            com.google.monitoring.dashboard.v1.Threshold,
          +            com.google.monitoring.dashboard.v1.Threshold.Builder,
          +            com.google.monitoring.dashboard.v1.ThresholdOrBuilder>
          +        thresholdsBuilder_;
           
               /**
          +     *
          +     *
                * 
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -4270,6 +4931,8 @@ public java.util.List getThreshold } } /** + * + * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -4284,6 +4947,8 @@ public int getThresholdsCount() { } } /** + * + * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -4298,14 +4963,15 @@ public com.google.monitoring.dashboard.v1.Threshold getThresholds(int index) { } } /** + * + * *
                * Threshold lines drawn horizontally across the chart.
                * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - public Builder setThresholds( - int index, com.google.monitoring.dashboard.v1.Threshold value) { + public Builder setThresholds(int index, com.google.monitoring.dashboard.v1.Threshold value) { if (thresholdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4319,6 +4985,8 @@ public Builder setThresholds( return this; } /** + * + * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -4337,6 +5005,8 @@ public Builder setThresholds( return this; } /** + * + * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -4357,14 +5027,15 @@ public Builder addThresholds(com.google.monitoring.dashboard.v1.Threshold value) return this; } /** + * + * *
                * Threshold lines drawn horizontally across the chart.
                * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - public Builder addThresholds( - int index, com.google.monitoring.dashboard.v1.Threshold value) { + public Builder addThresholds(int index, com.google.monitoring.dashboard.v1.Threshold value) { if (thresholdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4378,6 +5049,8 @@ public Builder addThresholds( return this; } /** + * + * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -4396,6 +5069,8 @@ public Builder addThresholds( return this; } /** + * + * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -4414,6 +5089,8 @@ public Builder addThresholds( return this; } /** + * + * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -4424,8 +5101,7 @@ public Builder addAllThresholds( java.lang.Iterable values) { if (thresholdsBuilder_ == null) { ensureThresholdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, thresholds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, thresholds_); onChanged(); } else { thresholdsBuilder_.addAllMessages(values); @@ -4433,6 +5109,8 @@ public Builder addAllThresholds( return this; } /** + * + * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -4450,6 +5128,8 @@ public Builder clearThresholds() { return this; } /** + * + * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -4467,39 +5147,44 @@ public Builder removeThresholds(int index) { return this; } /** + * + * *
                * Threshold lines drawn horizontally across the chart.
                * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - public com.google.monitoring.dashboard.v1.Threshold.Builder getThresholdsBuilder( - int index) { + public com.google.monitoring.dashboard.v1.Threshold.Builder getThresholdsBuilder(int index) { return getThresholdsFieldBuilder().getBuilder(index); } /** + * + * *
                * Threshold lines drawn horizontally across the chart.
                * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder( - int index) { + public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(int index) { if (thresholdsBuilder_ == null) { - return thresholds_.get(index); } else { + return thresholds_.get(index); + } else { return thresholdsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * Threshold lines drawn horizontally across the chart.
                * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - public java.util.List - getThresholdsOrBuilderList() { + public java.util.List + getThresholdsOrBuilderList() { if (thresholdsBuilder_ != null) { return thresholdsBuilder_.getMessageOrBuilderList(); } else { @@ -4507,6 +5192,8 @@ public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuil } } /** + * + * *
                * Threshold lines drawn horizontally across the chart.
                * 
          @@ -4514,42 +5201,48 @@ public com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuil * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder() { - return getThresholdsFieldBuilder().addBuilder( - com.google.monitoring.dashboard.v1.Threshold.getDefaultInstance()); + return getThresholdsFieldBuilder() + .addBuilder(com.google.monitoring.dashboard.v1.Threshold.getDefaultInstance()); } /** + * + * *
                * Threshold lines drawn horizontally across the chart.
                * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder( - int index) { - return getThresholdsFieldBuilder().addBuilder( - index, com.google.monitoring.dashboard.v1.Threshold.getDefaultInstance()); + public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder(int index) { + return getThresholdsFieldBuilder() + .addBuilder(index, com.google.monitoring.dashboard.v1.Threshold.getDefaultInstance()); } /** + * + * *
                * Threshold lines drawn horizontally across the chart.
                * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - public java.util.List - getThresholdsBuilderList() { + public java.util.List + getThresholdsBuilderList() { return getThresholdsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Threshold, com.google.monitoring.dashboard.v1.Threshold.Builder, com.google.monitoring.dashboard.v1.ThresholdOrBuilder> + com.google.monitoring.dashboard.v1.Threshold, + com.google.monitoring.dashboard.v1.Threshold.Builder, + com.google.monitoring.dashboard.v1.ThresholdOrBuilder> getThresholdsFieldBuilder() { if (thresholdsBuilder_ == null) { - thresholdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.Threshold, com.google.monitoring.dashboard.v1.Threshold.Builder, com.google.monitoring.dashboard.v1.ThresholdOrBuilder>( - thresholds_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + thresholdsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.Threshold, + com.google.monitoring.dashboard.v1.Threshold.Builder, + com.google.monitoring.dashboard.v1.ThresholdOrBuilder>( + thresholds_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); thresholds_ = null; } return thresholdsBuilder_; @@ -4557,34 +5250,47 @@ public com.google.monitoring.dashboard.v1.Threshold.Builder addThresholdsBuilder private com.google.monitoring.dashboard.v1.XyChart.Axis xAxis_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> xAxisBuilder_; + com.google.monitoring.dashboard.v1.XyChart.Axis, + com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, + com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> + xAxisBuilder_; /** + * + * *
                * The properties applied to the x-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; + * * @return Whether the xAxis field is set. */ public boolean hasXAxis() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
                * The properties applied to the x-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; + * * @return The xAxis. */ public com.google.monitoring.dashboard.v1.XyChart.Axis getXAxis() { if (xAxisBuilder_ == null) { - return xAxis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : xAxis_; + return xAxis_ == null + ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() + : xAxis_; } else { return xAxisBuilder_.getMessage(); } } /** + * + * *
                * The properties applied to the x-axis.
                * 
          @@ -4605,6 +5311,8 @@ public Builder setXAxis(com.google.monitoring.dashboard.v1.XyChart.Axis value) { return this; } /** + * + * *
                * The properties applied to the x-axis.
                * 
          @@ -4623,6 +5331,8 @@ public Builder setXAxis( return this; } /** + * + * *
                * The properties applied to the x-axis.
                * 
          @@ -4631,9 +5341,9 @@ public Builder setXAxis( */ public Builder mergeXAxis(com.google.monitoring.dashboard.v1.XyChart.Axis value) { if (xAxisBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - xAxis_ != null && - xAxis_ != com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && xAxis_ != null + && xAxis_ != com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance()) { getXAxisBuilder().mergeFrom(value); } else { xAxis_ = value; @@ -4648,6 +5358,8 @@ public Builder mergeXAxis(com.google.monitoring.dashboard.v1.XyChart.Axis value) return this; } /** + * + * *
                * The properties applied to the x-axis.
                * 
          @@ -4665,6 +5377,8 @@ public Builder clearXAxis() { return this; } /** + * + * *
                * The properties applied to the x-axis.
                * 
          @@ -4677,6 +5391,8 @@ public com.google.monitoring.dashboard.v1.XyChart.Axis.Builder getXAxisBuilder() return getXAxisFieldBuilder().getBuilder(); } /** + * + * *
                * The properties applied to the x-axis.
                * 
          @@ -4687,11 +5403,14 @@ public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getXAxisOrBuilde if (xAxisBuilder_ != null) { return xAxisBuilder_.getMessageOrBuilder(); } else { - return xAxis_ == null ? - com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : xAxis_; + return xAxis_ == null + ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() + : xAxis_; } } /** + * + * *
                * The properties applied to the x-axis.
                * 
          @@ -4699,14 +5418,17 @@ public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getXAxisOrBuilde * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> + com.google.monitoring.dashboard.v1.XyChart.Axis, + com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, + com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> getXAxisFieldBuilder() { if (xAxisBuilder_ == null) { - xAxisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder>( - getXAxis(), - getParentForChildren(), - isClean()); + xAxisBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.XyChart.Axis, + com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, + com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder>( + getXAxis(), getParentForChildren(), isClean()); xAxis_ = null; } return xAxisBuilder_; @@ -4714,34 +5436,47 @@ public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getXAxisOrBuilde private com.google.monitoring.dashboard.v1.XyChart.Axis yAxis_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> yAxisBuilder_; + com.google.monitoring.dashboard.v1.XyChart.Axis, + com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, + com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> + yAxisBuilder_; /** + * + * *
                * The properties applied to the y-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; + * * @return Whether the yAxis field is set. */ public boolean hasYAxis() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
                * The properties applied to the y-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; + * * @return The yAxis. */ public com.google.monitoring.dashboard.v1.XyChart.Axis getYAxis() { if (yAxisBuilder_ == null) { - return yAxis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : yAxis_; + return yAxis_ == null + ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() + : yAxis_; } else { return yAxisBuilder_.getMessage(); } } /** + * + * *
                * The properties applied to the y-axis.
                * 
          @@ -4762,6 +5497,8 @@ public Builder setYAxis(com.google.monitoring.dashboard.v1.XyChart.Axis value) { return this; } /** + * + * *
                * The properties applied to the y-axis.
                * 
          @@ -4780,6 +5517,8 @@ public Builder setYAxis( return this; } /** + * + * *
                * The properties applied to the y-axis.
                * 
          @@ -4788,9 +5527,9 @@ public Builder setYAxis( */ public Builder mergeYAxis(com.google.monitoring.dashboard.v1.XyChart.Axis value) { if (yAxisBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - yAxis_ != null && - yAxis_ != com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && yAxis_ != null + && yAxis_ != com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance()) { getYAxisBuilder().mergeFrom(value); } else { yAxis_ = value; @@ -4805,6 +5544,8 @@ public Builder mergeYAxis(com.google.monitoring.dashboard.v1.XyChart.Axis value) return this; } /** + * + * *
                * The properties applied to the y-axis.
                * 
          @@ -4822,6 +5563,8 @@ public Builder clearYAxis() { return this; } /** + * + * *
                * The properties applied to the y-axis.
                * 
          @@ -4834,6 +5577,8 @@ public com.google.monitoring.dashboard.v1.XyChart.Axis.Builder getYAxisBuilder() return getYAxisFieldBuilder().getBuilder(); } /** + * + * *
                * The properties applied to the y-axis.
                * 
          @@ -4844,11 +5589,14 @@ public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getYAxisOrBuilde if (yAxisBuilder_ != null) { return yAxisBuilder_.getMessageOrBuilder(); } else { - return yAxis_ == null ? - com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : yAxis_; + return yAxis_ == null + ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() + : yAxis_; } } /** + * + * *
                * The properties applied to the y-axis.
                * 
          @@ -4856,14 +5604,17 @@ public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getYAxisOrBuilde * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> + com.google.monitoring.dashboard.v1.XyChart.Axis, + com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, + com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> getYAxisFieldBuilder() { if (yAxisBuilder_ == null) { - yAxisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder>( - getYAxis(), - getParentForChildren(), - isClean()); + yAxisBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.XyChart.Axis, + com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, + com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder>( + getYAxis(), getParentForChildren(), isClean()); yAxis_ = null; } return yAxisBuilder_; @@ -4871,34 +5622,47 @@ public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getYAxisOrBuilde private com.google.monitoring.dashboard.v1.XyChart.Axis y2Axis_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> y2AxisBuilder_; + com.google.monitoring.dashboard.v1.XyChart.Axis, + com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, + com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> + y2AxisBuilder_; /** + * + * *
                * The properties applied to the y2-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; + * * @return Whether the y2Axis field is set. */ public boolean hasY2Axis() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
                * The properties applied to the y2-axis.
                * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; + * * @return The y2Axis. */ public com.google.monitoring.dashboard.v1.XyChart.Axis getY2Axis() { if (y2AxisBuilder_ == null) { - return y2Axis_ == null ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : y2Axis_; + return y2Axis_ == null + ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() + : y2Axis_; } else { return y2AxisBuilder_.getMessage(); } } /** + * + * *
                * The properties applied to the y2-axis.
                * 
          @@ -4919,6 +5683,8 @@ public Builder setY2Axis(com.google.monitoring.dashboard.v1.XyChart.Axis value) return this; } /** + * + * *
                * The properties applied to the y2-axis.
                * 
          @@ -4937,6 +5703,8 @@ public Builder setY2Axis( return this; } /** + * + * *
                * The properties applied to the y2-axis.
                * 
          @@ -4945,9 +5713,9 @@ public Builder setY2Axis( */ public Builder mergeY2Axis(com.google.monitoring.dashboard.v1.XyChart.Axis value) { if (y2AxisBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - y2Axis_ != null && - y2Axis_ != com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && y2Axis_ != null + && y2Axis_ != com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance()) { getY2AxisBuilder().mergeFrom(value); } else { y2Axis_ = value; @@ -4962,6 +5730,8 @@ public Builder mergeY2Axis(com.google.monitoring.dashboard.v1.XyChart.Axis value return this; } /** + * + * *
                * The properties applied to the y2-axis.
                * 
          @@ -4979,6 +5749,8 @@ public Builder clearY2Axis() { return this; } /** + * + * *
                * The properties applied to the y2-axis.
                * 
          @@ -4991,6 +5763,8 @@ public com.google.monitoring.dashboard.v1.XyChart.Axis.Builder getY2AxisBuilder( return getY2AxisFieldBuilder().getBuilder(); } /** + * + * *
                * The properties applied to the y2-axis.
                * 
          @@ -5001,11 +5775,14 @@ public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getY2AxisOrBuild if (y2AxisBuilder_ != null) { return y2AxisBuilder_.getMessageOrBuilder(); } else { - return y2Axis_ == null ? - com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() : y2Axis_; + return y2Axis_ == null + ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() + : y2Axis_; } } /** + * + * *
                * The properties applied to the y2-axis.
                * 
          @@ -5013,14 +5790,17 @@ public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getY2AxisOrBuild * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> + com.google.monitoring.dashboard.v1.XyChart.Axis, + com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, + com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder> getY2AxisFieldBuilder() { if (y2AxisBuilder_ == null) { - y2AxisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.XyChart.Axis, com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder>( - getY2Axis(), - getParentForChildren(), - isClean()); + y2AxisBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.XyChart.Axis, + com.google.monitoring.dashboard.v1.XyChart.Axis.Builder, + com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder>( + getY2Axis(), getParentForChildren(), isClean()); y2Axis_ = null; } return y2AxisBuilder_; @@ -5028,34 +5808,47 @@ public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getY2AxisOrBuild private com.google.monitoring.dashboard.v1.ChartOptions chartOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.ChartOptions, com.google.monitoring.dashboard.v1.ChartOptions.Builder, com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder> chartOptionsBuilder_; + com.google.monitoring.dashboard.v1.ChartOptions, + com.google.monitoring.dashboard.v1.ChartOptions.Builder, + com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder> + chartOptionsBuilder_; /** + * + * *
                * Display options for the chart.
                * 
          * * .google.monitoring.dashboard.v1.ChartOptions chart_options = 8; + * * @return Whether the chartOptions field is set. */ public boolean hasChartOptions() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
                * Display options for the chart.
                * 
          * * .google.monitoring.dashboard.v1.ChartOptions chart_options = 8; + * * @return The chartOptions. */ public com.google.monitoring.dashboard.v1.ChartOptions getChartOptions() { if (chartOptionsBuilder_ == null) { - return chartOptions_ == null ? com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance() : chartOptions_; + return chartOptions_ == null + ? com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance() + : chartOptions_; } else { return chartOptionsBuilder_.getMessage(); } } /** + * + * *
                * Display options for the chart.
                * 
          @@ -5076,6 +5869,8 @@ public Builder setChartOptions(com.google.monitoring.dashboard.v1.ChartOptions v return this; } /** + * + * *
                * Display options for the chart.
                * 
          @@ -5094,6 +5889,8 @@ public Builder setChartOptions( return this; } /** + * + * *
                * Display options for the chart.
                * 
          @@ -5102,9 +5899,10 @@ public Builder setChartOptions( */ public Builder mergeChartOptions(com.google.monitoring.dashboard.v1.ChartOptions value) { if (chartOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - chartOptions_ != null && - chartOptions_ != com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && chartOptions_ != null + && chartOptions_ + != com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance()) { getChartOptionsBuilder().mergeFrom(value); } else { chartOptions_ = value; @@ -5119,6 +5917,8 @@ public Builder mergeChartOptions(com.google.monitoring.dashboard.v1.ChartOptions return this; } /** + * + * *
                * Display options for the chart.
                * 
          @@ -5136,6 +5936,8 @@ public Builder clearChartOptions() { return this; } /** + * + * *
                * Display options for the chart.
                * 
          @@ -5148,6 +5950,8 @@ public com.google.monitoring.dashboard.v1.ChartOptions.Builder getChartOptionsBu return getChartOptionsFieldBuilder().getBuilder(); } /** + * + * *
                * Display options for the chart.
                * 
          @@ -5158,11 +5962,14 @@ public com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder getChartOptionsO if (chartOptionsBuilder_ != null) { return chartOptionsBuilder_.getMessageOrBuilder(); } else { - return chartOptions_ == null ? - com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance() : chartOptions_; + return chartOptions_ == null + ? com.google.monitoring.dashboard.v1.ChartOptions.getDefaultInstance() + : chartOptions_; } } /** + * + * *
                * Display options for the chart.
                * 
          @@ -5170,21 +5977,24 @@ public com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder getChartOptionsO * .google.monitoring.dashboard.v1.ChartOptions chart_options = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.ChartOptions, com.google.monitoring.dashboard.v1.ChartOptions.Builder, com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder> + com.google.monitoring.dashboard.v1.ChartOptions, + com.google.monitoring.dashboard.v1.ChartOptions.Builder, + com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder> getChartOptionsFieldBuilder() { if (chartOptionsBuilder_ == null) { - chartOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.dashboard.v1.ChartOptions, com.google.monitoring.dashboard.v1.ChartOptions.Builder, com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder>( - getChartOptions(), - getParentForChildren(), - isClean()); + chartOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.ChartOptions, + com.google.monitoring.dashboard.v1.ChartOptions.Builder, + com.google.monitoring.dashboard.v1.ChartOptionsOrBuilder>( + getChartOptions(), getParentForChildren(), isClean()); chartOptions_ = null; } return chartOptionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5194,12 +6004,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.XyChart) } // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.XyChart) private static final com.google.monitoring.dashboard.v1.XyChart DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.XyChart(); } @@ -5208,27 +6018,27 @@ public static com.google.monitoring.dashboard.v1.XyChart getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public XyChart 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public XyChart 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; @@ -5243,6 +6053,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.dashboard.v1.XyChart getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java similarity index 77% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java index 29bec8874c84..d548ec3b8d7d 100644 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java @@ -1,58 +1,94 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/dashboard/v1/xychart.proto // Protobuf Java Version: 3.25.2 package com.google.monitoring.dashboard.v1; -public interface XyChartOrBuilder extends +public interface XyChartOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.XyChart) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. The data displayed in this chart.
              * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getDataSetsList(); + java.util.List getDataSetsList(); /** + * + * *
              * Required. The data displayed in this chart.
              * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.dashboard.v1.XyChart.DataSet getDataSets(int index); /** + * + * *
              * Required. The data displayed in this chart.
              * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getDataSetsCount(); /** + * + * *
              * Required. The data displayed in this chart.
              * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getDataSetsOrBuilderList(); /** + * + * *
              * Required. The data displayed in this chart.
              * 
          * - * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOrBuilder( - int index); + com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOrBuilder(int index); /** + * + * *
              * The duration used to display a comparison chart. A comparison chart
              * simultaneously shows values from two similar-length time periods
          @@ -62,10 +98,13 @@ com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOrBuilder
              * 
          * * .google.protobuf.Duration timeshift_duration = 4; + * * @return Whether the timeshiftDuration field is set. */ boolean hasTimeshiftDuration(); /** + * + * *
              * The duration used to display a comparison chart. A comparison chart
              * simultaneously shows values from two similar-length time periods
          @@ -75,10 +114,13 @@ com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOrBuilder
              * 
          * * .google.protobuf.Duration timeshift_duration = 4; + * * @return The timeshiftDuration. */ com.google.protobuf.Duration getTimeshiftDuration(); /** + * + * *
              * The duration used to display a comparison chart. A comparison chart
              * simultaneously shows values from two similar-length time periods
          @@ -92,15 +134,18 @@ com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOrBuilder
             com.google.protobuf.DurationOrBuilder getTimeshiftDurationOrBuilder();
           
             /**
          +   *
          +   *
              * 
              * Threshold lines drawn horizontally across the chart.
              * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - java.util.List - getThresholdsList(); + java.util.List getThresholdsList(); /** + * + * *
              * Threshold lines drawn horizontally across the chart.
              * 
          @@ -109,6 +154,8 @@ com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOrBuilder */ com.google.monitoring.dashboard.v1.Threshold getThresholds(int index); /** + * + * *
              * Threshold lines drawn horizontally across the chart.
              * 
          @@ -117,43 +164,54 @@ com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder getDataSetsOrBuilder */ int getThresholdsCount(); /** + * + * *
              * Threshold lines drawn horizontally across the chart.
              * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - java.util.List + java.util.List getThresholdsOrBuilderList(); /** + * + * *
              * Threshold lines drawn horizontally across the chart.
              * 
          * * repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5; */ - com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder( - int index); + com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder(int index); /** + * + * *
              * The properties applied to the x-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; + * * @return Whether the xAxis field is set. */ boolean hasXAxis(); /** + * + * *
              * The properties applied to the x-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6; + * * @return The xAxis. */ com.google.monitoring.dashboard.v1.XyChart.Axis getXAxis(); /** + * + * *
              * The properties applied to the x-axis.
              * 
          @@ -163,24 +221,32 @@ com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder( com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getXAxisOrBuilder(); /** + * + * *
              * The properties applied to the y-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; + * * @return Whether the yAxis field is set. */ boolean hasYAxis(); /** + * + * *
              * The properties applied to the y-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7; + * * @return The yAxis. */ com.google.monitoring.dashboard.v1.XyChart.Axis getYAxis(); /** + * + * *
              * The properties applied to the y-axis.
              * 
          @@ -190,24 +256,32 @@ com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder( com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getYAxisOrBuilder(); /** + * + * *
              * The properties applied to the y2-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; + * * @return Whether the y2Axis field is set. */ boolean hasY2Axis(); /** + * + * *
              * The properties applied to the y2-axis.
              * 
          * * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; + * * @return The y2Axis. */ com.google.monitoring.dashboard.v1.XyChart.Axis getY2Axis(); /** + * + * *
              * The properties applied to the y2-axis.
              * 
          @@ -217,24 +291,32 @@ com.google.monitoring.dashboard.v1.ThresholdOrBuilder getThresholdsOrBuilder( com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getY2AxisOrBuilder(); /** + * + * *
              * Display options for the chart.
              * 
          * * .google.monitoring.dashboard.v1.ChartOptions chart_options = 8; + * * @return Whether the chartOptions field is set. */ boolean hasChartOptions(); /** + * + * *
              * Display options for the chart.
              * 
          * * .google.monitoring.dashboard.v1.ChartOptions chart_options = 8; + * * @return The chartOptions. */ com.google.monitoring.dashboard.v1.ChartOptions getChartOptions(); /** + * + * *
              * Display options for the chart.
              * 
          diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java new file mode 100644 index 000000000000..238bcf98f30d --- /dev/null +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java @@ -0,0 +1,157 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/dashboard/v1/xychart.proto + +// Protobuf Java Version: 3.25.2 +package com.google.monitoring.dashboard.v1; + +public final class XyChartProto { + private XyChartProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_XyChart_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_XyChart_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_XyChart_Axis_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_ChartOptions_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/monitoring/dashboard/v1/xychart" + + ".proto\022\036google.monitoring.dashboard.v1\032\037" + + "google/api/field_behavior.proto\032,google/" + + "monitoring/dashboard/v1/metrics.proto\032\036g" + + "oogle/protobuf/duration.proto\"\315\010\n\007XyChar" + + "t\022G\n\tdata_sets\030\001 \003(\0132/.google.monitoring" + + ".dashboard.v1.XyChart.DataSetB\003\340A\002\0225\n\022ti" + + "meshift_duration\030\004 \001(\0132\031.google.protobuf" + + ".Duration\022=\n\nthresholds\030\005 \003(\0132).google.m" + + "onitoring.dashboard.v1.Threshold\022<\n\006x_ax" + + "is\030\006 \001(\0132,.google.monitoring.dashboard.v" + + "1.XyChart.Axis\022<\n\006y_axis\030\007 \001(\0132,.google." + + "monitoring.dashboard.v1.XyChart.Axis\022=\n\007" + + "y2_axis\030\t \001(\0132,.google.monitoring.dashbo" + + "ard.v1.XyChart.Axis\022C\n\rchart_options\030\010 \001" + + "(\0132,.google.monitoring.dashboard.v1.Char" + + "tOptions\032\360\003\n\007DataSet\022O\n\021time_series_quer" + + "y\030\001 \001(\0132/.google.monitoring.dashboard.v1" + + ".TimeSeriesQueryB\003\340A\002\022K\n\tplot_type\030\002 \001(\016" + + "28.google.monitoring.dashboard.v1.XyChar" + + "t.DataSet.PlotType\022\027\n\017legend_template\030\003 " + + "\001(\t\022<\n\024min_alignment_period\030\004 \001(\0132\031.goog" + + "le.protobuf.DurationB\003\340A\001\022T\n\013target_axis" + + "\030\005 \001(\0162:.google.monitoring.dashboard.v1." + + "XyChart.DataSet.TargetAxisB\003\340A\001\"_\n\010PlotT" + + "ype\022\031\n\025PLOT_TYPE_UNSPECIFIED\020\000\022\010\n\004LINE\020\001" + + "\022\020\n\014STACKED_AREA\020\002\022\017\n\013STACKED_BAR\020\003\022\013\n\007H" + + "EATMAP\020\004\"9\n\nTargetAxis\022\033\n\027TARGET_AXIS_UN" + + "SPECIFIED\020\000\022\006\n\002Y1\020\001\022\006\n\002Y2\020\002\032\217\001\n\004Axis\022\r\n\005" + + "label\030\001 \001(\t\022A\n\005scale\030\002 \001(\01622.google.moni" + + "toring.dashboard.v1.XyChart.Axis.Scale\"5" + + "\n\005Scale\022\025\n\021SCALE_UNSPECIFIED\020\000\022\n\n\006LINEAR" + + "\020\001\022\t\n\005LOG10\020\002\"\216\001\n\014ChartOptions\022?\n\004mode\030\001" + + " \001(\01621.google.monitoring.dashboard.v1.Ch" + + "artOptions.Mode\"=\n\004Mode\022\024\n\020MODE_UNSPECIF" + + "IED\020\000\022\t\n\005COLOR\020\001\022\t\n\005X_RAY\020\002\022\t\n\005STATS\020\003B\365" + + "\001\n\"com.google.monitoring.dashboard.v1B\014X" + + "yChartProtoP\001ZFcloud.google.com/go/monit" + + "oring/dashboard/apiv1/dashboardpb;dashbo" + + "ardpb\252\002$Google.Cloud.Monitoring.Dashboar" + + "d.V1\312\002$Google\\Cloud\\Monitoring\\Dashboard" + + "\\V1\352\002(Google::Cloud::Monitoring::Dashboa" + + "rd::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_monitoring_dashboard_v1_XyChart_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_dashboard_v1_XyChart_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_XyChart_descriptor, + new java.lang.String[] { + "DataSets", + "TimeshiftDuration", + "Thresholds", + "XAxis", + "YAxis", + "Y2Axis", + "ChartOptions", + }); + internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor = + internal_static_google_monitoring_dashboard_v1_XyChart_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor, + new java.lang.String[] { + "TimeSeriesQuery", "PlotType", "LegendTemplate", "MinAlignmentPeriod", "TargetAxis", + }); + internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor = + internal_static_google_monitoring_dashboard_v1_XyChart_descriptor.getNestedTypes().get(1); + internal_static_google_monitoring_dashboard_v1_XyChart_Axis_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor, + new java.lang.String[] { + "Label", "Scale", + }); + internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_dashboard_v1_ChartOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor, + new java.lang.String[] { + "Mode", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/collapsible_group.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/collapsible_group.proto similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/collapsible_group.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/collapsible_group.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/common.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/common.proto similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/common.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/common.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard.proto similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard_filter.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard_filter.proto similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard_filter.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard_filter.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/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 similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/drilldowns.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/drilldowns.proto similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/drilldowns.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/drilldowns.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/error_reporting_panel.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/error_reporting_panel.proto similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/error_reporting_panel.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/error_reporting_panel.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/incident_list.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/incident_list.proto similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/incident_list.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/incident_list.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/layouts.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/layouts.proto similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/layouts.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/layouts.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/logs_panel.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/logs_panel.proto similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/logs_panel.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/logs_panel.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/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 similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/piechart.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/piechart.proto similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/piechart.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/piechart.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/scorecard.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/scorecard.proto similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/scorecard.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/scorecard.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/section_header.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/section_header.proto similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/section_header.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/section_header.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/service.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/service.proto similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/service.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/service.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/single_view_group.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/single_view_group.proto similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/single_view_group.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/single_view_group.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/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 similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/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 similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/text.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/text.proto similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/text.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/text.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/widget.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/widget.proto similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/widget.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/widget.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/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 similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/xychart.proto rename to java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/xychart.proto diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider1.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider1.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetEndpoint.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetEndpoint.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/AsyncCreateDashboard.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/AsyncCreateDashboard.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/AsyncCreateDashboard.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/AsyncCreateDashboard.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboard.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboard.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboard.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboard.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardProjectnameDashboard.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardProjectnameDashboard.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardProjectnameDashboard.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardProjectnameDashboard.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardStringDashboard.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardStringDashboard.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardStringDashboard.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/createdashboard/SyncCreateDashboardStringDashboard.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/AsyncDeleteDashboard.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/AsyncDeleteDashboard.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/AsyncDeleteDashboard.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/AsyncDeleteDashboard.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboard.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboard.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboard.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboard.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardDashboardname.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardDashboardname.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardDashboardname.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardDashboardname.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardString.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardString.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardString.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/deletedashboard/SyncDeleteDashboardString.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/AsyncGetDashboard.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/AsyncGetDashboard.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/AsyncGetDashboard.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/AsyncGetDashboard.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboard.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboard.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboard.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboard.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardDashboardname.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardDashboardname.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardDashboardname.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardDashboardname.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardString.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardString.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardString.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/getdashboard/SyncGetDashboardString.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboards.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboards.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboards.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboards.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboardsPaged.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboardsPaged.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboardsPaged.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/AsyncListDashboardsPaged.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboards.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboards.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboards.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboards.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsProjectname.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsProjectname.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsProjectname.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsProjectname.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsString.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsString.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsString.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/listdashboards/SyncListDashboardsString.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/AsyncUpdateDashboard.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/AsyncUpdateDashboard.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/AsyncUpdateDashboard.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/AsyncUpdateDashboard.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/SyncUpdateDashboard.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/SyncUpdateDashboard.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/SyncUpdateDashboard.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/updatedashboard/SyncUpdateDashboard.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservicesettings/createdashboard/SyncCreateDashboard.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservicesettings/createdashboard/SyncCreateDashboard.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservicesettings/createdashboard/SyncCreateDashboard.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservicesettings/createdashboard/SyncCreateDashboard.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/stub/dashboardsservicestubsettings/createdashboard/SyncCreateDashboard.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/stub/dashboardsservicestubsettings/createdashboard/SyncCreateDashboard.java similarity index 100% rename from owl-bot-staging/java-monitoring-dashboards/v1/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/stub/dashboardsservicestubsettings/createdashboard/SyncCreateDashboard.java rename to java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/stub/dashboardsservicestubsettings/createdashboard/SyncCreateDashboard.java diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java deleted file mode 100644 index f1becdffebd1..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/alertchart.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class AlertChartProto { - private AlertChartProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n/google/monitoring/dashboard/v1/alertch" + - "art.proto\022\036google.monitoring.dashboard.v" + - "1\032\037google/api/field_behavior.proto\032\031goog" + - "le/api/resource.proto\"|\n\nAlertChart\022\021\n\004n" + - "ame\030\001 \001(\tB\003\340A\002:[\352AX\n%monitoring.googleap" + - "is.com/AlertPolicy\022/projects/{project}/a" + - "lertPolicies/{alert_policy}B\370\001\n\"com.goog" + - "le.monitoring.dashboard.v1B\017AlertChartPr" + - "otoP\001ZFcloud.google.com/go/monitoring/da" + - "shboard/apiv1/dashboardpb;dashboardpb\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" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor, - new java.lang.String[] { "Name", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java deleted file mode 100644 index f8fdc39e3f38..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java +++ /dev/null @@ -1,20 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/collapsible_group.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public interface CollapsibleGroupOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.CollapsibleGroup) - com.google.protobuf.MessageOrBuilder { - - /** - *
          -   * The collapsed state of the widget on first page load.
          -   * 
          - * - * bool collapsed = 1; - * @return The collapsed. - */ - boolean getCollapsed(); -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java deleted file mode 100644 index aa0a38cb5a54..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/collapsible_group.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class CollapsibleGroupProto { - private CollapsibleGroupProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n6google/monitoring/dashboard/v1/collaps" + - "ible_group.proto\022\036google.monitoring.dash" + - "board.v1\"%\n\020CollapsibleGroup\022\021\n\tcollapse" + - "d\030\001 \001(\010B\376\001\n\"com.google.monitoring.dashbo" + - "ard.v1B\025CollapsibleGroupProtoP\001ZFcloud.g" + - "oogle.com/go/monitoring/dashboard/apiv1/" + - "dashboardpb;dashboardpb\252\002$Google.Cloud.M" + - "onitoring.Dashboard.V1\312\002$Google\\Cloud\\Mo" + - "nitoring\\Dashboard\\V1\352\002(Google::Cloud::M" + - "onitoring::Dashboard::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_CollapsibleGroup_descriptor, - new java.lang.String[] { "Collapsed", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CommonProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CommonProto.java deleted file mode 100644 index 9ff79edebb5f..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CommonProto.java +++ /dev/null @@ -1,123 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/common.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class CommonProto { - private CommonProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Aggregation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n+google/monitoring/dashboard/v1/common." + - "proto\022\036google.monitoring.dashboard.v1\032\036g" + - "oogle/protobuf/duration.proto\032\032google/ty" + - "pe/interval.proto\"\301\007\n\013Aggregation\0223\n\020ali" + - "gnment_period\030\001 \001(\0132\031.google.protobuf.Du" + - "ration\022O\n\022per_series_aligner\030\002 \001(\01623.goo" + - "gle.monitoring.dashboard.v1.Aggregation." + - "Aligner\022Q\n\024cross_series_reducer\030\004 \001(\01623." + - "google.monitoring.dashboard.v1.Aggregati" + - "on.Reducer\022\027\n\017group_by_fields\030\005 \003(\t\"\213\003\n\007" + - "Aligner\022\016\n\nALIGN_NONE\020\000\022\017\n\013ALIGN_DELTA\020\001" + - "\022\016\n\nALIGN_RATE\020\002\022\025\n\021ALIGN_INTERPOLATE\020\003\022" + - "\024\n\020ALIGN_NEXT_OLDER\020\004\022\r\n\tALIGN_MIN\020\n\022\r\n\t" + - "ALIGN_MAX\020\013\022\016\n\nALIGN_MEAN\020\014\022\017\n\013ALIGN_COU" + - "NT\020\r\022\r\n\tALIGN_SUM\020\016\022\020\n\014ALIGN_STDDEV\020\017\022\024\n" + - "\020ALIGN_COUNT_TRUE\020\020\022\025\n\021ALIGN_COUNT_FALSE" + - "\020\030\022\027\n\023ALIGN_FRACTION_TRUE\020\021\022\027\n\023ALIGN_PER" + - "CENTILE_99\020\022\022\027\n\023ALIGN_PERCENTILE_95\020\023\022\027\n" + - "\023ALIGN_PERCENTILE_50\020\024\022\027\n\023ALIGN_PERCENTI" + - "LE_05\020\025\022\030\n\024ALIGN_PERCENT_CHANGE\020\027\"\261\002\n\007Re" + - "ducer\022\017\n\013REDUCE_NONE\020\000\022\017\n\013REDUCE_MEAN\020\001\022" + - "\016\n\nREDUCE_MIN\020\002\022\016\n\nREDUCE_MAX\020\003\022\016\n\nREDUC" + - "E_SUM\020\004\022\021\n\rREDUCE_STDDEV\020\005\022\020\n\014REDUCE_COU" + - "NT\020\006\022\025\n\021REDUCE_COUNT_TRUE\020\007\022\026\n\022REDUCE_CO" + - "UNT_FALSE\020\017\022\030\n\024REDUCE_FRACTION_TRUE\020\010\022\030\n" + - "\024REDUCE_PERCENTILE_99\020\t\022\030\n\024REDUCE_PERCEN" + - "TILE_95\020\n\022\030\n\024REDUCE_PERCENTILE_50\020\013\022\030\n\024R" + - "EDUCE_PERCENTILE_05\020\014\"\263\003\n\024PickTimeSeries" + - "Filter\022S\n\016ranking_method\030\001 \001(\0162;.google." + - "monitoring.dashboard.v1.PickTimeSeriesFi" + - "lter.Method\022\027\n\017num_time_series\030\002 \001(\005\022Q\n\t" + - "direction\030\003 \001(\0162>.google.monitoring.dash" + - "board.v1.PickTimeSeriesFilter.Direction\022" + - "\'\n\010interval\030\004 \001(\0132\025.google.type.Interval" + - "\"t\n\006Method\022\026\n\022METHOD_UNSPECIFIED\020\000\022\017\n\013ME" + - "THOD_MEAN\020\001\022\016\n\nMETHOD_MAX\020\002\022\016\n\nMETHOD_MI" + - "N\020\003\022\016\n\nMETHOD_SUM\020\004\022\021\n\rMETHOD_LATEST\020\005\";" + - "\n\tDirection\022\031\n\025DIRECTION_UNSPECIFIED\020\000\022\007" + - "\n\003TOP\020\001\022\n\n\006BOTTOM\020\002\"\320\001\n\033StatisticalTimeS" + - "eriesFilter\022Z\n\016ranking_method\030\001 \001(\0162B.go" + - "ogle.monitoring.dashboard.v1.Statistical" + - "TimeSeriesFilter.Method\022\027\n\017num_time_seri" + - "es\030\002 \001(\005\"<\n\006Method\022\026\n\022METHOD_UNSPECIFIED" + - "\020\000\022\032\n\026METHOD_CLUSTER_OUTLIER\020\001B\364\001\n\"com.g" + - "oogle.monitoring.dashboard.v1B\013CommonPro" + - "toP\001ZFcloud.google.com/go/monitoring/das" + - "hboard/apiv1/dashboardpb;dashboardpb\252\002$G" + - "oogle.Cloud.Monitoring.Dashboard.V1\312\002$Go" + - "ogle\\Cloud\\Monitoring\\Dashboard\\V1\352\002(Goo" + - "gle::Cloud::Monitoring::Dashboard::V1b\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - com.google.type.IntervalProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_Aggregation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Aggregation_descriptor, - new java.lang.String[] { "AlignmentPeriod", "PerSeriesAligner", "CrossSeriesReducer", "GroupByFields", }); - internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_PickTimeSeriesFilter_descriptor, - new java.lang.String[] { "RankingMethod", "NumTimeSeries", "Direction", "Interval", }); - internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_StatisticalTimeSeriesFilter_descriptor, - new java.lang.String[] { "RankingMethod", "NumTimeSeries", }); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.type.IntervalProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java deleted file mode 100644 index 06e09719d52f..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java +++ /dev/null @@ -1,72 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/dashboard_filter.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class DashboardFilterProto { - private DashboardFilterProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_DashboardFilter_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n5google/monitoring/dashboard/v1/dashboa" + - "rd_filter.proto\022\036google.monitoring.dashb" + - "oard.v1\032\037google/api/field_behavior.proto" + - "\"\317\002\n\017DashboardFilter\022\026\n\tlabel_key\030\001 \001(\tB" + - "\003\340A\002\022\031\n\021template_variable\030\003 \001(\t\022\026\n\014strin" + - "g_value\030\004 \001(\tH\000\022O\n\013filter_type\030\005 \001(\0162:.g" + - "oogle.monitoring.dashboard.v1.DashboardF" + - "ilter.FilterType\"\216\001\n\nFilterType\022\033\n\027FILTE" + - "R_TYPE_UNSPECIFIED\020\000\022\022\n\016RESOURCE_LABEL\020\001" + - "\022\020\n\014METRIC_LABEL\020\002\022\027\n\023USER_METADATA_LABE" + - "L\020\003\022\031\n\025SYSTEM_METADATA_LABEL\020\004\022\t\n\005GROUP\020" + - "\005B\017\n\rdefault_valueB\375\001\n\"com.google.monito" + - "ring.dashboard.v1B\024DashboardFilterProtoP" + - "\001ZFcloud.google.com/go/monitoring/dashbo" + - "ard/apiv1/dashboardpb;dashboardpb\252\002$Goog" + - "le.Cloud.Monitoring.Dashboard.V1\312\002$Googl" + - "e\\Cloud\\Monitoring\\Dashboard\\V1\352\002(Google" + - "::Cloud::Monitoring::Dashboard::V1b\006prot" + - "o3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_DashboardFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_DashboardFilter_descriptor, - new java.lang.String[] { "LabelKey", "TemplateVariable", "StringValue", "FilterType", "DefaultValue", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java deleted file mode 100644 index a93c2787e4a1..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java +++ /dev/null @@ -1,100 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/dashboard.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class DashboardsProto { - private DashboardsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Dashboard_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n.google/monitoring/dashboard/v1/dashboa" + - "rd.proto\022\036google.monitoring.dashboard.v1" + - "\032\037google/api/field_behavior.proto\032\031googl" + - "e/api/resource.proto\0325google/monitoring/" + - "dashboard/v1/dashboard_filter.proto\032,goo" + - "gle/monitoring/dashboard/v1/layouts.prot" + - "o\"\372\004\n\tDashboard\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\031\n\014di" + - "splay_name\030\002 \001(\tB\003\340A\002\022\014\n\004etag\030\004 \001(\t\022A\n\013g" + - "rid_layout\030\005 \001(\0132*.google.monitoring.das" + - "hboard.v1.GridLayoutH\000\022E\n\rmosaic_layout\030" + - "\006 \001(\0132,.google.monitoring.dashboard.v1.M" + - "osaicLayoutH\000\022?\n\nrow_layout\030\010 \001(\0132).goog" + - "le.monitoring.dashboard.v1.RowLayoutH\000\022E" + - "\n\rcolumn_layout\030\t \001(\0132,.google.monitorin" + - "g.dashboard.v1.ColumnLayoutH\000\022J\n\021dashboa" + - "rd_filters\030\013 \003(\0132/.google.monitoring.das" + - "hboard.v1.DashboardFilter\022E\n\006labels\030\014 \003(" + - "\01325.google.monitoring.dashboard.v1.Dashb" + - "oard.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001" + - " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:S\352AP\n#monitoring" + - ".googleapis.com/Dashboard\022)projects/{pro" + - "ject}/dashboards/{dashboard}B\010\n\006layoutB\370" + - "\001\n\"com.google.monitoring.dashboard.v1B\017D" + - "ashboardsProtoP\001ZFcloud.google.com/go/mo" + - "nitoring/dashboard/apiv1/dashboardpb;das" + - "hboardpb\252\002$Google.Cloud.Monitoring.Dashb" + - "oard.V1\312\002$Google\\Cloud\\Monitoring\\Dashbo" + - "ard\\V1\352\002(Google::Cloud::Monitoring::Dash" + - "board::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.dashboard.v1.DashboardFilterProto.getDescriptor(), - com.google.monitoring.dashboard.v1.LayoutsProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_Dashboard_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Etag", "GridLayout", "MosaicLayout", "RowLayout", "ColumnLayout", "DashboardFilters", "Labels", "Layout", }); - internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_descriptor = - internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Dashboard_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.dashboard.v1.DashboardFilterProto.getDescriptor(); - com.google.monitoring.dashboard.v1.LayoutsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java deleted file mode 100644 index 63041a271930..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java +++ /dev/null @@ -1,183 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/dashboards_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class DashboardsServiceProto { - private DashboardsServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n7google/monitoring/dashboard/v1/dashboa" + - "rds_service.proto\022\036google.monitoring.das" + - "hboard.v1\032\034google/api/annotations.proto\032" + - "\027google/api/client.proto\032\037google/api/fie" + - "ld_behavior.proto\032\031google/api/resource.p" + - "roto\032.google/monitoring/dashboard/v1/das" + - "hboard.proto\032\033google/protobuf/empty.prot" + - "o\"\267\001\n\026CreateDashboardRequest\022C\n\006parent\030\001" + - " \001(\tB3\340A\002\372A-\n+cloudresourcemanager.googl" + - "eapis.com/Project\022A\n\tdashboard\030\002 \001(\0132).g" + - "oogle.monitoring.dashboard.v1.DashboardB" + - "\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\"\210\001\n\025ListDash" + - "boardsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+c" + - "loudresourcemanager.googleapis.com/Proje" + - "ct\022\021\n\tpage_size\030\002 \001(\005\022\027\n\npage_token\030\003 \001(" + - "\tB\003\340A\001\"p\n\026ListDashboardsResponse\022=\n\ndash" + - "boards\030\001 \003(\0132).google.monitoring.dashboa" + - "rd.v1.Dashboard\022\027\n\017next_page_token\030\002 \001(\t" + - "\"P\n\023GetDashboardRequest\0229\n\004name\030\001 \001(\tB+\340" + - "A\002\372A%\n#monitoring.googleapis.com/Dashboa" + - "rd\"S\n\026DeleteDashboardRequest\0229\n\004name\030\001 \001" + - "(\tB+\340A\002\372A%\n#monitoring.googleapis.com/Da" + - "shboard\"r\n\026UpdateDashboardRequest\022A\n\tdas" + - "hboard\030\001 \001(\0132).google.monitoring.dashboa" + - "rd.v1.DashboardB\003\340A\002\022\025\n\rvalidate_only\030\003 " + - "\001(\0102\333\010\n\021DashboardsService\022\276\001\n\017CreateDash" + - "board\0226.google.monitoring.dashboard.v1.C" + - "reateDashboardRequest\032).google.monitorin" + - "g.dashboard.v1.Dashboard\"H\332A\020parent,dash" + - "board\202\323\344\223\002/\"\"/v1/{parent=projects/*}/das" + - "hboards:\tdashboard\022\264\001\n\016ListDashboards\0225." + - "google.monitoring.dashboard.v1.ListDashb" + - "oardsRequest\0326.google.monitoring.dashboa" + - "rd.v1.ListDashboardsResponse\"3\332A\006parent\202" + - "\323\344\223\002$\022\"/v1/{parent=projects/*}/dashboard" + - "s\022\241\001\n\014GetDashboard\0223.google.monitoring.d" + - "ashboard.v1.GetDashboardRequest\032).google" + - ".monitoring.dashboard.v1.Dashboard\"1\332A\004n" + - "ame\202\323\344\223\002$\022\"/v1/{name=projects/*/dashboar" + - "ds/*}\022\224\001\n\017DeleteDashboard\0226.google.monit" + - "oring.dashboard.v1.DeleteDashboardReques" + - "t\032\026.google.protobuf.Empty\"1\332A\004name\202\323\344\223\002$" + - "*\"/v1/{name=projects/*/dashboards/*}\022\265\001\n" + - "\017UpdateDashboard\0226.google.monitoring.das" + - "hboard.v1.UpdateDashboardRequest\032).googl" + - "e.monitoring.dashboard.v1.Dashboard\"?\202\323\344" + - "\223\00292,/v1/{dashboard.name=projects/*/dash" + - "boards/*}:\tdashboard\032\332\001\312A\031monitoring.goo" + - "gleapis.com\322A\272\001https://www.googleapis.co" + - "m/auth/cloud-platform,https://www.google" + - "apis.com/auth/monitoring,https://www.goo" + - "gleapis.com/auth/monitoring.read,https:/" + - "/www.googleapis.com/auth/monitoring.writ" + - "eB\377\001\n\"com.google.monitoring.dashboard.v1" + - "B\026DashboardsServiceProtoP\001ZFcloud.google" + - ".com/go/monitoring/dashboard/apiv1/dashb" + - "oardpb;dashboardpb\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(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.dashboard.v1.DashboardsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor, - new java.lang.String[] { "Parent", "Dashboard", "ValidateOnly", }); - internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_ListDashboardsResponse_descriptor, - new java.lang.String[] { "Dashboards", "NextPageToken", }); - internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_GetDashboardRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_DeleteDashboardRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor, - new java.lang.String[] { "Dashboard", "ValidateOnly", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.dashboard.v1.DashboardsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequestOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequestOrBuilder.java deleted file mode 100644 index a72bccaa3f15..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DeleteDashboardRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/dashboards_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public interface DeleteDashboardRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.DeleteDashboardRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
          -   * Required. The resource name of the Dashboard. The format is:
          -   *
          -   *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
          -   * 
          - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
          -   * Required. The resource name of the Dashboard. The format is:
          -   *
          -   *     projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]
          -   * 
          - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DrilldownsProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DrilldownsProto.java deleted file mode 100644 index 6c8008bdc36a..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DrilldownsProto.java +++ /dev/null @@ -1,44 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/drilldowns.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class DrilldownsProto { - private DrilldownsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n/google/monitoring/dashboard/v1/drilldo" + - "wns.proto\022\036google.monitoring.dashboard.v" + - "1B\370\001\n\"com.google.monitoring.dashboard.v1" + - "B\017DrilldownsProtoP\001ZFcloud.google.com/go" + - "/monitoring/dashboard/apiv1/dashboardpb;" + - "dashboardpb\252\002$Google.Cloud.Monitoring.Da" + - "shboard.V1\312\002$Google\\Cloud\\Monitoring\\Das" + - "hboard\\V1\352\002(Google::Cloud::Monitoring::D" + - "ashboard::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelProto.java deleted file mode 100644 index 875b2a3ccb59..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ErrorReportingPanelProto.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/error_reporting_panel.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class ErrorReportingPanelProto { - private ErrorReportingPanelProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n:google/monitoring/dashboard/v1/error_r" + - "eporting_panel.proto\022\036google.monitoring." + - "dashboard.v1\"P\n\023ErrorReportingPanel\022\025\n\rp" + - "roject_names\030\001 \003(\t\022\020\n\010services\030\002 \003(\t\022\020\n\010" + - "versions\030\003 \003(\tB\326\001\n\"com.google.monitoring" + - ".dashboard.v1B\030ErrorReportingPanelProtoP" + - "\001ZFcloud.google.com/go/monitoring/dashbo" + - "ard/apiv1/dashboardpb;dashboardpb\252\002$Goog" + - "le.Cloud.Monitoring.Dashboard.V1\312\002$Googl" + - "e\\Cloud\\Monitoring\\Dashboard\\V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_ErrorReportingPanel_descriptor, - new java.lang.String[] { "ProjectNames", "Services", "Versions", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListProto.java deleted file mode 100644 index 1109917c82eb..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/IncidentListProto.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/incident_list.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class IncidentListProto { - private IncidentListProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_IncidentList_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/monitoring/dashboard/v1/inciden" + - "t_list.proto\022\036google.monitoring.dashboar" + - "d.v1\032\037google/api/field_behavior.proto\032#g" + - "oogle/api/monitored_resource.proto\"j\n\014In" + - "cidentList\022?\n\023monitored_resources\030\001 \003(\0132" + - "\035.google.api.MonitoredResourceB\003\340A\001\022\031\n\014p" + - "olicy_names\030\002 \003(\tB\003\340A\001B\372\001\n\"com.google.mo" + - "nitoring.dashboard.v1B\021IncidentListProto" + - "P\001ZFcloud.google.com/go/monitoring/dashb" + - "oard/apiv1/dashboardpb;dashboardpb\252\002$Goo" + - "gle.Cloud.Monitoring.Dashboard.V1\312\002$Goog" + - "le\\Cloud\\Monitoring\\Dashboard\\V1\352\002(Googl" + - "e::Cloud::Monitoring::Dashboard::V1b\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.MonitoredResourceProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_IncidentList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_IncidentList_descriptor, - new java.lang.String[] { "MonitoredResources", "PolicyNames", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.MonitoredResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java deleted file mode 100644 index 0111a0d2571b..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java +++ /dev/null @@ -1,140 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/layouts.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class LayoutsProto { - private LayoutsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_GridLayout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_RowLayout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_RowLayout_Row_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_ColumnLayout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/monitoring/dashboard/v1/layouts" + - ".proto\022\036google.monitoring.dashboard.v1\032+" + - "google/monitoring/dashboard/v1/widget.pr" + - "oto\"V\n\nGridLayout\022\017\n\007columns\030\001 \001(\003\0227\n\007wi" + - "dgets\030\002 \003(\0132&.google.monitoring.dashboar" + - "d.v1.Widget\"\336\001\n\014MosaicLayout\022\017\n\007columns\030" + - "\001 \001(\005\022@\n\005tiles\030\003 \003(\01321.google.monitoring" + - ".dashboard.v1.MosaicLayout.Tile\032{\n\004Tile\022" + - "\r\n\005x_pos\030\001 \001(\005\022\r\n\005y_pos\030\002 \001(\005\022\r\n\005width\030\003" + - " \001(\005\022\016\n\006height\030\004 \001(\005\0226\n\006widget\030\005 \001(\0132&.g" + - "oogle.monitoring.dashboard.v1.Widget\"\230\001\n" + - "\tRowLayout\022;\n\004rows\030\001 \003(\0132-.google.monito" + - "ring.dashboard.v1.RowLayout.Row\032N\n\003Row\022\016" + - "\n\006weight\030\001 \001(\003\0227\n\007widgets\030\002 \003(\0132&.google" + - ".monitoring.dashboard.v1.Widget\"\247\001\n\014Colu" + - "mnLayout\022D\n\007columns\030\001 \003(\01323.google.monit" + - "oring.dashboard.v1.ColumnLayout.Column\032Q" + - "\n\006Column\022\016\n\006weight\030\001 \001(\003\0227\n\007widgets\030\002 \003(" + - "\0132&.google.monitoring.dashboard.v1.Widge" + - "tB\365\001\n\"com.google.monitoring.dashboard.v1" + - "B\014LayoutsProtoP\001ZFcloud.google.com/go/mo" + - "nitoring/dashboard/apiv1/dashboardpb;das" + - "hboardpb\252\002$Google.Cloud.Monitoring.Dashb" + - "oard.V1\312\002$Google\\Cloud\\Monitoring\\Dashbo" + - "ard\\V1\352\002(Google::Cloud::Monitoring::Dash" + - "board::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.monitoring.dashboard.v1.WidgetProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_GridLayout_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor, - new java.lang.String[] { "Columns", "Widgets", }); - internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor, - new java.lang.String[] { "Columns", "Tiles", }); - internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor = - internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor, - new java.lang.String[] { "XPos", "YPos", "Width", "Height", "Widget", }); - internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_dashboard_v1_RowLayout_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor, - new java.lang.String[] { "Rows", }); - internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor = - internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_dashboard_v1_RowLayout_Row_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_RowLayout_Row_descriptor, - new java.lang.String[] { "Weight", "Widgets", }); - internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_dashboard_v1_ColumnLayout_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor, - new java.lang.String[] { "Columns", }); - internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor = - internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_ColumnLayout_Column_descriptor, - new java.lang.String[] { "Weight", "Widgets", }); - com.google.monitoring.dashboard.v1.WidgetProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java deleted file mode 100644 index 63c2c7960a49..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/logs_panel.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class LogsPanelProto { - private LogsPanelProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_LogsPanel_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n/google/monitoring/dashboard/v1/logs_pa" + - "nel.proto\022\036google.monitoring.dashboard.v" + - "1\"3\n\tLogsPanel\022\016\n\006filter\030\001 \001(\t\022\026\n\016resour" + - "ce_names\030\002 \003(\tB\367\001\n\"com.google.monitoring" + - ".dashboard.v1B\016LogsPanelProtoP\001ZFcloud.g" + - "oogle.com/go/monitoring/dashboard/apiv1/" + - "dashboardpb;dashboardpb\252\002$Google.Cloud.M" + - "onitoring.Dashboard.V1\312\002$Google\\Cloud\\Mo" + - "nitoring\\Dashboard\\V1\352\002(Google::Cloud::M" + - "onitoring::Dashboard::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_LogsPanel_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_LogsPanel_descriptor, - new java.lang.String[] { "Filter", "ResourceNames", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java deleted file mode 100644 index 40662a049b3d..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java +++ /dev/null @@ -1,155 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/metrics.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class MetricsProto { - private MetricsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Threshold_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Threshold_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/monitoring/dashboard/v1/metrics" + - ".proto\022\036google.monitoring.dashboard.v1\032\037" + - "google/api/field_behavior.proto\032+google/" + - "monitoring/dashboard/v1/common.proto\"\302\002\n" + - "\017TimeSeriesQuery\022N\n\022time_series_filter\030\001" + - " \001(\01320.google.monitoring.dashboard.v1.Ti" + - "meSeriesFilterH\000\022Y\n\030time_series_filter_r" + - "atio\030\002 \001(\01325.google.monitoring.dashboard" + - ".v1.TimeSeriesFilterRatioH\000\022$\n\032time_seri" + - "es_query_language\030\003 \001(\tH\000\022\032\n\020prometheus_" + - "query\030\006 \001(\tH\000\022\025\n\runit_override\030\005 \001(\t\022!\n\024" + - "output_full_duration\030\007 \001(\010B\003\340A\001B\010\n\006sourc" + - "e\"\212\003\n\020TimeSeriesFilter\022\023\n\006filter\030\001 \001(\tB\003" + - "\340A\002\022@\n\013aggregation\030\002 \001(\0132+.google.monito" + - "ring.dashboard.v1.Aggregation\022J\n\025seconda" + - "ry_aggregation\030\003 \001(\0132+.google.monitoring" + - ".dashboard.v1.Aggregation\022W\n\027pick_time_s" + - "eries_filter\030\004 \001(\01324.google.monitoring.d" + - "ashboard.v1.PickTimeSeriesFilterH\000\022i\n\036st" + - "atistical_time_series_filter\030\005 \001(\0132;.goo" + - "gle.monitoring.dashboard.v1.StatisticalT" + - "imeSeriesFilterB\002\030\001H\000B\017\n\routput_filter\"\306" + - "\004\n\025TimeSeriesFilterRatio\022R\n\tnumerator\030\001 " + - "\001(\0132?.google.monitoring.dashboard.v1.Tim" + - "eSeriesFilterRatio.RatioPart\022T\n\013denomina" + - "tor\030\002 \001(\0132?.google.monitoring.dashboard." + - "v1.TimeSeriesFilterRatio.RatioPart\022J\n\025se" + - "condary_aggregation\030\003 \001(\0132+.google.monit" + - "oring.dashboard.v1.Aggregation\022W\n\027pick_t" + - "ime_series_filter\030\004 \001(\01324.google.monitor" + - "ing.dashboard.v1.PickTimeSeriesFilterH\000\022" + - "i\n\036statistical_time_series_filter\030\005 \001(\0132" + - ";.google.monitoring.dashboard.v1.Statist" + - "icalTimeSeriesFilterB\002\030\001H\000\032b\n\tRatioPart\022" + - "\023\n\006filter\030\001 \001(\tB\003\340A\002\022@\n\013aggregation\030\002 \001(" + - "\0132+.google.monitoring.dashboard.v1.Aggre" + - "gationB\017\n\routput_filter\"\252\003\n\tThreshold\022\r\n" + - "\005label\030\001 \001(\t\022\r\n\005value\030\002 \001(\001\022>\n\005color\030\003 \001" + - "(\0162/.google.monitoring.dashboard.v1.Thre" + - "shold.Color\022F\n\tdirection\030\004 \001(\01623.google." + - "monitoring.dashboard.v1.Threshold.Direct" + - "ion\022I\n\013target_axis\030\005 \001(\01624.google.monito" + - "ring.dashboard.v1.Threshold.TargetAxis\"3" + - "\n\005Color\022\025\n\021COLOR_UNSPECIFIED\020\000\022\n\n\006YELLOW" + - "\020\004\022\007\n\003RED\020\006\"<\n\tDirection\022\031\n\025DIRECTION_UN" + - "SPECIFIED\020\000\022\t\n\005ABOVE\020\001\022\t\n\005BELOW\020\002\"9\n\nTar" + - "getAxis\022\033\n\027TARGET_AXIS_UNSPECIFIED\020\000\022\006\n\002" + - "Y1\020\001\022\006\n\002Y2\020\002*Q\n\016SparkChartType\022 \n\034SPARK_" + - "CHART_TYPE_UNSPECIFIED\020\000\022\016\n\nSPARK_LINE\020\001" + - "\022\r\n\tSPARK_BAR\020\002B\365\001\n\"com.google.monitorin" + - "g.dashboard.v1B\014MetricsProtoP\001ZFcloud.go" + - "ogle.com/go/monitoring/dashboard/apiv1/d" + - "ashboardpb;dashboardpb\252\002$Google.Cloud.Mo" + - "nitoring.Dashboard.V1\312\002$Google\\Cloud\\Mon" + - "itoring\\Dashboard\\V1\352\002(Google::Cloud::Mo" + - "nitoring::Dashboard::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.monitoring.dashboard.v1.CommonProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_TimeSeriesQuery_descriptor, - new java.lang.String[] { "TimeSeriesFilter", "TimeSeriesFilterRatio", "TimeSeriesQueryLanguage", "PrometheusQuery", "UnitOverride", "OutputFullDuration", "Source", }); - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilter_descriptor, - new java.lang.String[] { "Filter", "Aggregation", "SecondaryAggregation", "PickTimeSeriesFilter", "StatisticalTimeSeriesFilter", "OutputFilter", }); - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor, - new java.lang.String[] { "Numerator", "Denominator", "SecondaryAggregation", "PickTimeSeriesFilter", "StatisticalTimeSeriesFilter", "OutputFilter", }); - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor = - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_TimeSeriesFilterRatio_RatioPart_descriptor, - new java.lang.String[] { "Filter", "Aggregation", }); - internal_static_google_monitoring_dashboard_v1_Threshold_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_dashboard_v1_Threshold_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Threshold_descriptor, - new java.lang.String[] { "Label", "Value", "Color", "Direction", "TargetAxis", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.monitoring.dashboard.v1.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartOrBuilder.java deleted file mode 100644 index c2521ee5b6dd..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartOrBuilder.java +++ /dev/null @@ -1,83 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/piechart.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public interface PieChartOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.PieChart) - com.google.protobuf.MessageOrBuilder { - - /** - *
          -   * Required. The queries for the chart's data.
          -   * 
          - * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getDataSetsList(); - /** - *
          -   * Required. The queries for the chart's data.
          -   * 
          - * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet getDataSets(int index); - /** - *
          -   * Required. The queries for the chart's data.
          -   * 
          - * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - int getDataSetsCount(); - /** - *
          -   * Required. The queries for the chart's data.
          -   * 
          - * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getDataSetsOrBuilderList(); - /** - *
          -   * Required. The queries for the chart's data.
          -   * 
          - * - * repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder getDataSetsOrBuilder( - int index); - - /** - *
          -   * Required. Indicates the visualization type for the PieChart.
          -   * 
          - * - * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for chartType. - */ - int getChartTypeValue(); - /** - *
          -   * Required. Indicates the visualization type for the PieChart.
          -   * 
          - * - * .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The chartType. - */ - com.google.monitoring.dashboard.v1.PieChart.PieChartType getChartType(); - - /** - *
          -   * Optional. Indicates whether or not the pie chart should show slices' labels
          -   * 
          - * - * bool show_labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The showLabels. - */ - boolean getShowLabels(); -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartProto.java deleted file mode 100644 index 9bd47834cc89..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PieChartProto.java +++ /dev/null @@ -1,91 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/piechart.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class PieChartProto { - private PieChartProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_PieChart_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_PieChart_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n-google/monitoring/dashboard/v1/piechar" + - "t.proto\022\036google.monitoring.dashboard.v1\032" + - "\037google/api/field_behavior.proto\032,google" + - "/monitoring/dashboard/v1/metrics.proto\032\036" + - "google/protobuf/duration.proto\"\317\003\n\010PieCh" + - "art\022P\n\tdata_sets\030\001 \003(\01328.google.monitori" + - "ng.dashboard.v1.PieChart.PieChartDataSet" + - "B\003\340A\002\022N\n\nchart_type\030\002 \001(\01625.google.monit" + - "oring.dashboard.v1.PieChart.PieChartType" + - "B\003\340A\002\022\030\n\013show_labels\030\004 \001(\010B\003\340A\001\032\302\001\n\017PieC" + - "hartDataSet\022O\n\021time_series_query\030\001 \001(\0132/" + - ".google.monitoring.dashboard.v1.TimeSeri" + - "esQueryB\003\340A\002\022 \n\023slice_name_template\030\002 \001(" + - "\tB\003\340A\001\022<\n\024min_alignment_period\030\003 \001(\0132\031.g" + - "oogle.protobuf.DurationB\003\340A\001\"B\n\014PieChart" + - "Type\022\036\n\032PIE_CHART_TYPE_UNSPECIFIED\020\000\022\007\n\003" + - "PIE\020\001\022\t\n\005DONUT\020\002B\366\001\n\"com.google.monitori" + - "ng.dashboard.v1B\rPieChartProtoP\001ZFcloud." + - "google.com/go/monitoring/dashboard/apiv1" + - "/dashboardpb;dashboardpb\252\002$Google.Cloud." + - "Monitoring.Dashboard.V1\312\002$Google\\Cloud\\M" + - "onitoring\\Dashboard\\V1\352\002(Google::Cloud::" + - "Monitoring::Dashboard::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_PieChart_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_PieChart_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_PieChart_descriptor, - new java.lang.String[] { "DataSets", "ChartType", "ShowLabels", }); - internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor = - internal_static_google_monitoring_dashboard_v1_PieChart_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_PieChart_PieChartDataSet_descriptor, - new java.lang.String[] { "TimeSeriesQuery", "SliceNameTemplate", "MinAlignmentPeriod", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java deleted file mode 100644 index 624b18022afc..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java +++ /dev/null @@ -1,108 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/scorecard.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class ScorecardProto { - private ScorecardProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Scorecard_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n.google/monitoring/dashboard/v1/scoreca" + - "rd.proto\022\036google.monitoring.dashboard.v1" + - "\032\037google/api/field_behavior.proto\032,googl" + - "e/monitoring/dashboard/v1/metrics.proto\032" + - "\036google/protobuf/duration.proto\032\033google/" + - "protobuf/empty.proto\"\311\004\n\tScorecard\022O\n\021ti" + - "me_series_query\030\001 \001(\0132/.google.monitorin" + - "g.dashboard.v1.TimeSeriesQueryB\003\340A\002\022I\n\ng" + - "auge_view\030\004 \001(\01323.google.monitoring.dash" + - "board.v1.Scorecard.GaugeViewH\000\022T\n\020spark_" + - "chart_view\030\005 \001(\01328.google.monitoring.das" + - "hboard.v1.Scorecard.SparkChartViewH\000\022,\n\n" + - "blank_view\030\007 \001(\0132\026.google.protobuf.Empty" + - "H\000\022=\n\nthresholds\030\006 \003(\0132).google.monitori" + - "ng.dashboard.v1.Threshold\0325\n\tGaugeView\022\023" + - "\n\013lower_bound\030\001 \001(\001\022\023\n\013upper_bound\030\002 \001(\001" + - "\032\230\001\n\016SparkChartView\022M\n\020spark_chart_type\030" + - "\001 \001(\0162..google.monitoring.dashboard.v1.S" + - "parkChartTypeB\003\340A\002\0227\n\024min_alignment_peri" + - "od\030\002 \001(\0132\031.google.protobuf.DurationB\013\n\td" + - "ata_viewB\367\001\n\"com.google.monitoring.dashb" + - "oard.v1B\016ScorecardProtoP\001ZFcloud.google." + - "com/go/monitoring/dashboard/apiv1/dashbo" + - "ardpb;dashboardpb\252\002$Google.Cloud.Monitor" + - "ing.Dashboard.V1\312\002$Google\\Cloud\\Monitori" + - "ng\\Dashboard\\V1\352\002(Google::Cloud::Monitor" + - "ing::Dashboard::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_Scorecard_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor, - new java.lang.String[] { "TimeSeriesQuery", "GaugeView", "SparkChartView", "BlankView", "Thresholds", "DataView", }); - internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor = - internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Scorecard_GaugeView_descriptor, - new java.lang.String[] { "LowerBound", "UpperBound", }); - internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor = - internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor.getNestedTypes().get(1); - internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Scorecard_SparkChartView_descriptor, - new java.lang.String[] { "SparkChartType", "MinAlignmentPeriod", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderProto.java deleted file mode 100644 index e8b3a26b8b46..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SectionHeaderProto.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/section_header.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class SectionHeaderProto { - private SectionHeaderProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_SectionHeader_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/monitoring/dashboard/v1/section" + - "_header.proto\022\036google.monitoring.dashboa" + - "rd.v1\"8\n\rSectionHeader\022\020\n\010subtitle\030\001 \001(\t" + - "\022\025\n\rdivider_below\030\002 \001(\010B\373\001\n\"com.google.m" + - "onitoring.dashboard.v1B\022SectionHeaderPro" + - "toP\001ZFcloud.google.com/go/monitoring/das" + - "hboard/apiv1/dashboardpb;dashboardpb\252\002$G" + - "oogle.Cloud.Monitoring.Dashboard.V1\312\002$Go" + - "ogle\\Cloud\\Monitoring\\Dashboard\\V1\352\002(Goo" + - "gle::Cloud::Monitoring::Dashboard::V1b\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_SectionHeader_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_SectionHeader_descriptor, - new java.lang.String[] { "Subtitle", "DividerBelow", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ServiceMonitoringProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ServiceMonitoringProto.java deleted file mode 100644 index 9935b1ee2882..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ServiceMonitoringProto.java +++ /dev/null @@ -1,44 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class ServiceMonitoringProto { - private ServiceMonitoringProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/monitoring/dashboard/v1/service" + - ".proto\022\036google.monitoring.dashboard.v1B\377" + - "\001\n\"com.google.monitoring.dashboard.v1B\026S" + - "erviceMonitoringProtoP\001ZFcloud.google.co" + - "m/go/monitoring/dashboard/apiv1/dashboar" + - "dpb;dashboardpb\252\002$Google.Cloud.Monitorin" + - "g.Dashboard.V1\312\002$Google\\Cloud\\Monitoring" + - "\\Dashboard\\V1\352\002(Google::Cloud::Monitorin" + - "g::Dashboard::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupOrBuilder.java deleted file mode 100644 index f25620a50d29..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/single_view_group.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public interface SingleViewGroupOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.SingleViewGroup) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupProto.java deleted file mode 100644 index fd82afe4569a..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/SingleViewGroupProto.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/single_view_group.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class SingleViewGroupProto { - private SingleViewGroupProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_SingleViewGroup_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n6google/monitoring/dashboard/v1/single_" + - "view_group.proto\022\036google.monitoring.dash" + - "board.v1\"\021\n\017SingleViewGroupB\375\001\n\"com.goog" + - "le.monitoring.dashboard.v1B\024SingleViewGr" + - "oupProtoP\001ZFcloud.google.com/go/monitori" + - "ng/dashboard/apiv1/dashboardpb;dashboard" + - "pb\252\002$Google.Cloud.Monitoring.Dashboard.V" + - "1\312\002$Google\\Cloud\\Monitoring\\Dashboard\\V1" + - "\352\002(Google::Cloud::Monitoring::Dashboard:" + - ":V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_SingleViewGroup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_SingleViewGroup_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java deleted file mode 100644 index 20adb515581b..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/table_display_options.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public interface TableDisplayOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TableDisplayOptions) - com.google.protobuf.MessageOrBuilder { - - /** - *
          -   * 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]; - * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. - * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 - * @return A list containing the shownColumns. - */ - @java.lang.Deprecated java.util.List - getShownColumnsList(); - /** - *
          -   * 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]; - * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. - * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 - * @return The count of shownColumns. - */ - @java.lang.Deprecated int getShownColumnsCount(); - /** - *
          -   * 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]; - * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. - * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 - * @param index The index of the element to return. - * @return The shownColumns at the given index. - */ - @java.lang.Deprecated java.lang.String getShownColumns(int index); - /** - *
          -   * 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]; - * @deprecated google.monitoring.dashboard.v1.TableDisplayOptions.shown_columns is deprecated. - * See google/monitoring/dashboard/v1/table_display_options.proto;l=32 - * @param index The index of the value to return. - * @return The bytes of the shownColumns at the given index. - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getShownColumnsBytes(int index); -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java deleted file mode 100644 index c1aaa7b21251..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java +++ /dev/null @@ -1,65 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/table_display_options.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class TableDisplayOptionsProto { - private TableDisplayOptionsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n:google/monitoring/dashboard/v1/table_d" + - "isplay_options.proto\022\036google.monitoring." + - "dashboard.v1\032\037google/api/field_behavior." + - "proto\"3\n\023TableDisplayOptions\022\034\n\rshown_co" + - "lumns\030\001 \003(\tB\005\030\001\340A\001B\201\002\n\"com.google.monito" + - "ring.dashboard.v1B\030TableDisplayOptionsPr" + - "otoP\001ZFcloud.google.com/go/monitoring/da" + - "shboard/apiv1/dashboardpb;dashboardpb\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" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_TableDisplayOptions_descriptor, - new java.lang.String[] { "ShownColumns", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java deleted file mode 100644 index 7f3e2a0ef638..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java +++ /dev/null @@ -1,112 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/table.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class TableProto { - private TableProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - 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; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*google/monitoring/dashboard/v1/table.p" + - "roto\022\036google.monitoring.dashboard.v1\032\037go" + - "ogle/api/field_behavior.proto\032,google/mo" + - "nitoring/dashboard/v1/metrics.proto\032:goo" + - "gle/monitoring/dashboard/v1/table_displa" + - "y_options.proto\032\036google/protobuf/duratio" + - "n.proto\"\322\005\n\017TimeSeriesTable\022T\n\tdata_sets" + - "\030\001 \003(\0132<.google.monitoring.dashboard.v1." + - "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\363\001\n\"com.google.monitoring.d" + - "ashboard.v1B\nTableProtoP\001ZFcloud.google." + - "com/go/monitoring/dashboard/apiv1/dashbo" + - "ardpb;dashboardpb\252\002$Google.Cloud.Monitor" + - "ing.Dashboard.V1\312\002$Google\\Cloud\\Monitori" + - "ng\\Dashboard\\V1\352\002(Google::Cloud::Monitor" + - "ing::Dashboard::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(), - com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor, - new java.lang.String[] { "DataSets", "MetricVisualization", "ColumnSettings", }); - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor = - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor, - 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); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(); - com.google.monitoring.dashboard.v1.TableDisplayOptionsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextProto.java deleted file mode 100644 index 10762c67cb9f..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TextProto.java +++ /dev/null @@ -1,101 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/text.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class TextProto { - private TextProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Text_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Text_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Text_TextStyle_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/monitoring/dashboard/v1/text.pr" + - "oto\022\036google.monitoring.dashboard.v1\"\370\n\n\004" + - "Text\022\017\n\007content\030\001 \001(\t\022;\n\006format\030\002 \001(\0162+." + - "google.monitoring.dashboard.v1.Text.Form" + - "at\022=\n\005style\030\003 \001(\0132..google.monitoring.da" + - "shboard.v1.Text.TextStyle\032\251\t\n\tTextStyle\022" + - "\030\n\020background_color\030\001 \001(\t\022\022\n\ntext_color\030" + - "\002 \001(\t\022`\n\024horizontal_alignment\030\003 \001(\0162B.go" + - "ogle.monitoring.dashboard.v1.Text.TextSt" + - "yle.HorizontalAlignment\022\\\n\022vertical_alig" + - "nment\030\004 \001(\0162@.google.monitoring.dashboar" + - "d.v1.Text.TextStyle.VerticalAlignment\022K\n" + - "\007padding\030\005 \001(\0162:.google.monitoring.dashb" + - "oard.v1.Text.TextStyle.PaddingSize\022J\n\tfo" + - "nt_size\030\006 \001(\01627.google.monitoring.dashbo" + - "ard.v1.Text.TextStyle.FontSize\022X\n\020pointe" + - "r_location\030\007 \001(\0162>.google.monitoring.das" + - "hboard.v1.Text.TextStyle.PointerLocation" + - "\"b\n\023HorizontalAlignment\022$\n HORIZONTAL_AL" + - "IGNMENT_UNSPECIFIED\020\000\022\n\n\006H_LEFT\020\001\022\014\n\010H_C" + - "ENTER\020\002\022\013\n\007H_RIGHT\020\003\"^\n\021VerticalAlignmen" + - "t\022\"\n\036VERTICAL_ALIGNMENT_UNSPECIFIED\020\000\022\t\n" + - "\005V_TOP\020\001\022\014\n\010V_CENTER\020\002\022\014\n\010V_BOTTOM\020\003\"y\n\013" + - "PaddingSize\022\034\n\030PADDING_SIZE_UNSPECIFIED\020" + - "\000\022\021\n\rP_EXTRA_SMALL\020\001\022\013\n\007P_SMALL\020\002\022\014\n\010P_M" + - "EDIUM\020\003\022\013\n\007P_LARGE\020\004\022\021\n\rP_EXTRA_LARGE\020\005\"" + - "x\n\010FontSize\022\031\n\025FONT_SIZE_UNSPECIFIED\020\000\022\022" + - "\n\016FS_EXTRA_SMALL\020\001\022\014\n\010FS_SMALL\020\002\022\r\n\tFS_M" + - "EDIUM\020\003\022\014\n\010FS_LARGE\020\004\022\022\n\016FS_EXTRA_LARGE\020" + - "\005\"\201\002\n\017PointerLocation\022 \n\034POINTER_LOCATIO" + - "N_UNSPECIFIED\020\000\022\n\n\006PL_TOP\020\001\022\014\n\010PL_RIGHT\020" + - "\002\022\r\n\tPL_BOTTOM\020\003\022\013\n\007PL_LEFT\020\004\022\017\n\013PL_TOP_" + - "LEFT\020\005\022\020\n\014PL_TOP_RIGHT\020\006\022\020\n\014PL_RIGHT_TOP" + - "\020\007\022\023\n\017PL_RIGHT_BOTTOM\020\010\022\023\n\017PL_BOTTOM_RIG" + - "HT\020\t\022\022\n\016PL_BOTTOM_LEFT\020\n\022\022\n\016PL_LEFT_BOTT" + - "OM\020\013\022\017\n\013PL_LEFT_TOP\020\014\"7\n\006Format\022\026\n\022FORMA" + - "T_UNSPECIFIED\020\000\022\014\n\010MARKDOWN\020\001\022\007\n\003RAW\020\002B\362" + - "\001\n\"com.google.monitoring.dashboard.v1B\tT" + - "extProtoP\001ZFcloud.google.com/go/monitori" + - "ng/dashboard/apiv1/dashboardpb;dashboard" + - "pb\252\002$Google.Cloud.Monitoring.Dashboard.V" + - "1\312\002$Google\\Cloud\\Monitoring\\Dashboard\\V1" + - "\352\002(Google::Cloud::Monitoring::Dashboard:" + - ":V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_monitoring_dashboard_v1_Text_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_Text_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Text_descriptor, - new java.lang.String[] { "Content", "Format", "Style", }); - internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor = - internal_static_google_monitoring_dashboard_v1_Text_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_dashboard_v1_Text_TextStyle_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Text_TextStyle_descriptor, - new java.lang.String[] { "BackgroundColor", "TextColor", "HorizontalAlignment", "VerticalAlignment", "Padding", "FontSize", "PointerLocation", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java deleted file mode 100644 index eea13364e370..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java +++ /dev/null @@ -1,117 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/table.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public interface TimeSeriesTableOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TimeSeriesTable) - com.google.protobuf.MessageOrBuilder { - - /** - *
          -   * Required. The data displayed in this table.
          -   * 
          - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getDataSetsList(); - /** - *
          -   * Required. The data displayed in this table.
          -   * 
          - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDataSets(int index); - /** - *
          -   * Required. The data displayed in this table.
          -   * 
          - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - int getDataSetsCount(); - /** - *
          -   * Required. The data displayed in this table.
          -   * 
          - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getDataSetsOrBuilderList(); - /** - *
          -   * Required. The data displayed in this table.
          -   * 
          - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - 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 - 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/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java deleted file mode 100644 index 1235b74999a6..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java +++ /dev/null @@ -1,128 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/widget.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class WidgetProto { - private WidgetProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_Widget_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_Widget_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n+google/monitoring/dashboard/v1/widget." + - "proto\022\036google.monitoring.dashboard.v1\032\037g" + - "oogle/api/field_behavior.proto\032/google/m" + - "onitoring/dashboard/v1/alertchart.proto\032" + - "6google/monitoring/dashboard/v1/collapsi" + - "ble_group.proto\032:google/monitoring/dashb" + - "oard/v1/error_reporting_panel.proto\0322goo" + - "gle/monitoring/dashboard/v1/incident_lis" + - "t.proto\032/google/monitoring/dashboard/v1/" + - "logs_panel.proto\032-google/monitoring/dash" + - "board/v1/piechart.proto\032.google/monitori" + - "ng/dashboard/v1/scorecard.proto\0323google/" + - "monitoring/dashboard/v1/section_header.p" + - "roto\0326google/monitoring/dashboard/v1/sin" + - "gle_view_group.proto\032*google/monitoring/" + - "dashboard/v1/table.proto\032)google/monitor" + - "ing/dashboard/v1/text.proto\032,google/moni" + - "toring/dashboard/v1/xychart.proto\032\033googl" + - "e/protobuf/empty.proto\"\250\007\n\006Widget\022\022\n\005tit" + - "le\030\001 \001(\tB\003\340A\001\022;\n\010xy_chart\030\002 \001(\0132\'.google" + - ".monitoring.dashboard.v1.XyChartH\000\022>\n\tsc" + - "orecard\030\003 \001(\0132).google.monitoring.dashbo" + - "ard.v1.ScorecardH\000\0224\n\004text\030\004 \001(\0132$.googl" + - "e.monitoring.dashboard.v1.TextH\000\022\'\n\005blan" + - "k\030\005 \001(\0132\026.google.protobuf.EmptyH\000\022A\n\013ale" + - "rt_chart\030\007 \001(\0132*.google.monitoring.dashb" + - "oard.v1.AlertChartH\000\022L\n\021time_series_tabl" + - "e\030\010 \001(\0132/.google.monitoring.dashboard.v1" + - ".TimeSeriesTableH\000\022M\n\021collapsible_group\030" + - "\t \001(\01320.google.monitoring.dashboard.v1.C" + - "ollapsibleGroupH\000\022?\n\nlogs_panel\030\n \001(\0132)." + - "google.monitoring.dashboard.v1.LogsPanel" + - "H\000\022E\n\rincident_list\030\014 \001(\0132,.google.monit" + - "oring.dashboard.v1.IncidentListH\000\022=\n\tpie" + - "_chart\030\016 \001(\0132(.google.monitoring.dashboa" + - "rd.v1.PieChartH\000\022T\n\025error_reporting_pane" + - "l\030\023 \001(\01323.google.monitoring.dashboard.v1" + - ".ErrorReportingPanelH\000\022G\n\016section_header" + - "\030\025 \001(\0132-.google.monitoring.dashboard.v1." + - "SectionHeaderH\000\022L\n\021single_view_group\030\026 \001" + - "(\0132/.google.monitoring.dashboard.v1.Sing" + - "leViewGroupH\000\022\017\n\002id\030\021 \001(\tB\003\340A\001B\t\n\007conten" + - "tB\364\001\n\"com.google.monitoring.dashboard.v1" + - "B\013WidgetProtoP\001ZFcloud.google.com/go/mon" + - "itoring/dashboard/apiv1/dashboardpb;dash" + - "boardpb\252\002$Google.Cloud.Monitoring.Dashbo" + - "ard.V1\312\002$Google\\Cloud\\Monitoring\\Dashboa" + - "rd\\V1\352\002(Google::Cloud::Monitoring::Dashb" + - "oard::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.monitoring.dashboard.v1.AlertChartProto.getDescriptor(), - com.google.monitoring.dashboard.v1.CollapsibleGroupProto.getDescriptor(), - com.google.monitoring.dashboard.v1.ErrorReportingPanelProto.getDescriptor(), - com.google.monitoring.dashboard.v1.IncidentListProto.getDescriptor(), - com.google.monitoring.dashboard.v1.LogsPanelProto.getDescriptor(), - com.google.monitoring.dashboard.v1.PieChartProto.getDescriptor(), - com.google.monitoring.dashboard.v1.ScorecardProto.getDescriptor(), - com.google.monitoring.dashboard.v1.SectionHeaderProto.getDescriptor(), - com.google.monitoring.dashboard.v1.SingleViewGroupProto.getDescriptor(), - com.google.monitoring.dashboard.v1.TableProto.getDescriptor(), - com.google.monitoring.dashboard.v1.TextProto.getDescriptor(), - com.google.monitoring.dashboard.v1.XyChartProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_Widget_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_Widget_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_Widget_descriptor, - new java.lang.String[] { "Title", "XyChart", "Scorecard", "Text", "Blank", "AlertChart", "TimeSeriesTable", "CollapsibleGroup", "LogsPanel", "IncidentList", "PieChart", "ErrorReportingPanel", "SectionHeader", "SingleViewGroup", "Id", "Content", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.monitoring.dashboard.v1.AlertChartProto.getDescriptor(); - com.google.monitoring.dashboard.v1.CollapsibleGroupProto.getDescriptor(); - com.google.monitoring.dashboard.v1.ErrorReportingPanelProto.getDescriptor(); - com.google.monitoring.dashboard.v1.IncidentListProto.getDescriptor(); - com.google.monitoring.dashboard.v1.LogsPanelProto.getDescriptor(); - com.google.monitoring.dashboard.v1.PieChartProto.getDescriptor(); - com.google.monitoring.dashboard.v1.ScorecardProto.getDescriptor(); - com.google.monitoring.dashboard.v1.SectionHeaderProto.getDescriptor(); - com.google.monitoring.dashboard.v1.SingleViewGroupProto.getDescriptor(); - com.google.monitoring.dashboard.v1.TableProto.getDescriptor(); - com.google.monitoring.dashboard.v1.TextProto.getDescriptor(); - com.google.monitoring.dashboard.v1.XyChartProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java b/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java deleted file mode 100644 index 5122c86b8624..000000000000 --- a/owl-bot-staging/java-monitoring-dashboards/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java +++ /dev/null @@ -1,133 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/dashboard/v1/xychart.proto - -// Protobuf Java Version: 3.25.2 -package com.google.monitoring.dashboard.v1; - -public final class XyChartProto { - private XyChartProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_XyChart_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_XyChart_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_XyChart_Axis_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_dashboard_v1_ChartOptions_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/monitoring/dashboard/v1/xychart" + - ".proto\022\036google.monitoring.dashboard.v1\032\037" + - "google/api/field_behavior.proto\032,google/" + - "monitoring/dashboard/v1/metrics.proto\032\036g" + - "oogle/protobuf/duration.proto\"\315\010\n\007XyChar" + - "t\022G\n\tdata_sets\030\001 \003(\0132/.google.monitoring" + - ".dashboard.v1.XyChart.DataSetB\003\340A\002\0225\n\022ti" + - "meshift_duration\030\004 \001(\0132\031.google.protobuf" + - ".Duration\022=\n\nthresholds\030\005 \003(\0132).google.m" + - "onitoring.dashboard.v1.Threshold\022<\n\006x_ax" + - "is\030\006 \001(\0132,.google.monitoring.dashboard.v" + - "1.XyChart.Axis\022<\n\006y_axis\030\007 \001(\0132,.google." + - "monitoring.dashboard.v1.XyChart.Axis\022=\n\007" + - "y2_axis\030\t \001(\0132,.google.monitoring.dashbo" + - "ard.v1.XyChart.Axis\022C\n\rchart_options\030\010 \001" + - "(\0132,.google.monitoring.dashboard.v1.Char" + - "tOptions\032\360\003\n\007DataSet\022O\n\021time_series_quer" + - "y\030\001 \001(\0132/.google.monitoring.dashboard.v1" + - ".TimeSeriesQueryB\003\340A\002\022K\n\tplot_type\030\002 \001(\016" + - "28.google.monitoring.dashboard.v1.XyChar" + - "t.DataSet.PlotType\022\027\n\017legend_template\030\003 " + - "\001(\t\022<\n\024min_alignment_period\030\004 \001(\0132\031.goog" + - "le.protobuf.DurationB\003\340A\001\022T\n\013target_axis" + - "\030\005 \001(\0162:.google.monitoring.dashboard.v1." + - "XyChart.DataSet.TargetAxisB\003\340A\001\"_\n\010PlotT" + - "ype\022\031\n\025PLOT_TYPE_UNSPECIFIED\020\000\022\010\n\004LINE\020\001" + - "\022\020\n\014STACKED_AREA\020\002\022\017\n\013STACKED_BAR\020\003\022\013\n\007H" + - "EATMAP\020\004\"9\n\nTargetAxis\022\033\n\027TARGET_AXIS_UN" + - "SPECIFIED\020\000\022\006\n\002Y1\020\001\022\006\n\002Y2\020\002\032\217\001\n\004Axis\022\r\n\005" + - "label\030\001 \001(\t\022A\n\005scale\030\002 \001(\01622.google.moni" + - "toring.dashboard.v1.XyChart.Axis.Scale\"5" + - "\n\005Scale\022\025\n\021SCALE_UNSPECIFIED\020\000\022\n\n\006LINEAR" + - "\020\001\022\t\n\005LOG10\020\002\"\216\001\n\014ChartOptions\022?\n\004mode\030\001" + - " \001(\01621.google.monitoring.dashboard.v1.Ch" + - "artOptions.Mode\"=\n\004Mode\022\024\n\020MODE_UNSPECIF" + - "IED\020\000\022\t\n\005COLOR\020\001\022\t\n\005X_RAY\020\002\022\t\n\005STATS\020\003B\365" + - "\001\n\"com.google.monitoring.dashboard.v1B\014X" + - "yChartProtoP\001ZFcloud.google.com/go/monit" + - "oring/dashboard/apiv1/dashboardpb;dashbo" + - "ardpb\252\002$Google.Cloud.Monitoring.Dashboar" + - "d.V1\312\002$Google\\Cloud\\Monitoring\\Dashboard" + - "\\V1\352\002(Google::Cloud::Monitoring::Dashboa" + - "rd::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_monitoring_dashboard_v1_XyChart_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_dashboard_v1_XyChart_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_XyChart_descriptor, - new java.lang.String[] { "DataSets", "TimeshiftDuration", "Thresholds", "XAxis", "YAxis", "Y2Axis", "ChartOptions", }); - internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor = - internal_static_google_monitoring_dashboard_v1_XyChart_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor, - new java.lang.String[] { "TimeSeriesQuery", "PlotType", "LegendTemplate", "MinAlignmentPeriod", "TargetAxis", }); - internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor = - internal_static_google_monitoring_dashboard_v1_XyChart_descriptor.getNestedTypes().get(1); - internal_static_google_monitoring_dashboard_v1_XyChart_Axis_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_XyChart_Axis_descriptor, - new java.lang.String[] { "Label", "Scale", }); - internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_dashboard_v1_ChartOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_dashboard_v1_ChartOptions_descriptor, - new java.lang.String[] { "Mode", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}