From bad789e2e0e645197b34516aa3596d05061cba81 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 29 Mar 2022 23:12:11 +0000 Subject: [PATCH 1/8] chore(main): release 2.2.7-SNAPSHOT (#581) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-monitoring-dashboard-bom/pom.xml | 8 ++++---- google-cloud-monitoring-dashboard/pom.xml | 4 ++-- grpc-google-cloud-monitoring-dashboard-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-monitoring-dashboard-v1/pom.xml | 4 ++-- versions.txt | 6 +++--- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/google-cloud-monitoring-dashboard-bom/pom.xml b/google-cloud-monitoring-dashboard-bom/pom.xml index f7db18ef..9d966517 100644 --- a/google-cloud-monitoring-dashboard-bom/pom.xml +++ b/google-cloud-monitoring-dashboard-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-monitoring-dashboard-bom - 2.2.6 + 2.2.7-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-monitoring-dashboard - 2.2.6 + 2.2.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.2.6 + 2.2.7-SNAPSHOT com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.2.6 + 2.2.7-SNAPSHOT diff --git a/google-cloud-monitoring-dashboard/pom.xml b/google-cloud-monitoring-dashboard/pom.xml index ed87c1a7..e9d995c4 100644 --- a/google-cloud-monitoring-dashboard/pom.xml +++ b/google-cloud-monitoring-dashboard/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-monitoring-dashboard - 2.2.6 + 2.2.7-SNAPSHOT jar Google Cloud Monitoring Dashboard https://github.com/googleapis/java-monitoring-dashboards @@ -11,7 +11,7 @@ com.google.cloud google-cloud-monitoring-dashboard-parent - 2.2.6 + 2.2.7-SNAPSHOT google-cloud-monitoring-dashboard diff --git a/grpc-google-cloud-monitoring-dashboard-v1/pom.xml b/grpc-google-cloud-monitoring-dashboard-v1/pom.xml index 507399b4..05c20d52 100644 --- a/grpc-google-cloud-monitoring-dashboard-v1/pom.xml +++ b/grpc-google-cloud-monitoring-dashboard-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.2.6 + 2.2.7-SNAPSHOT grpc-google-cloud-monitoring-dashboard-v1 GRPC library for grpc-google-cloud-monitoring-dashboard-v1 com.google.cloud google-cloud-monitoring-dashboard-parent - 2.2.6 + 2.2.7-SNAPSHOT diff --git a/pom.xml b/pom.xml index 5a337ddc..550c9527 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-monitoring-dashboard-parent pom - 2.2.6 + 2.2.7-SNAPSHOT Google Cloud Monitoring Dashboard Parent https://github.com/googleapis/java-monitoring-dashboards @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.2.6 + 2.2.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.2.6 + 2.2.7-SNAPSHOT com.google.cloud google-cloud-monitoring-dashboard - 2.2.6 + 2.2.7-SNAPSHOT diff --git a/proto-google-cloud-monitoring-dashboard-v1/pom.xml b/proto-google-cloud-monitoring-dashboard-v1/pom.xml index 53663a4b..34699b98 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/pom.xml +++ b/proto-google-cloud-monitoring-dashboard-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.2.6 + 2.2.7-SNAPSHOT proto-google-cloud-monitoring-dashboard-v1 PROTO library for proto-google-cloud-monitoring-dashboard-v1 com.google.cloud google-cloud-monitoring-dashboard-parent - 2.2.6 + 2.2.7-SNAPSHOT diff --git a/versions.txt b/versions.txt index 98f6bf3b..6f5fefef 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-monitoring-dashboard:2.2.6:2.2.6 -grpc-google-cloud-monitoring-dashboard-v1:2.2.6:2.2.6 -proto-google-cloud-monitoring-dashboard-v1:2.2.6:2.2.6 +google-cloud-monitoring-dashboard:2.2.6:2.2.7-SNAPSHOT +grpc-google-cloud-monitoring-dashboard-v1:2.2.6:2.2.7-SNAPSHOT +proto-google-cloud-monitoring-dashboard-v1:2.2.6:2.2.7-SNAPSHOT From 056f66459618cce572efda1cedc2da4df751aa25 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Apr 2022 18:40:15 +0200 Subject: [PATCH 2/8] chore(deps): update dependency com.google.cloud:libraries-bom to v25.1.0 (#584) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.0.0` -> `25.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/compatibility-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/confidence-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-monitoring-dashboards). --- README.md | 6 +++--- samples/snippets/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 54b9fd1c..ef7a7681 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-monitoring-dashboard - 2.2.5 + 2.2.6 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.2.5' +implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.2.6' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.2.5" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.2.6" ``` ## Authentication diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 109fa0fa..f28ac405 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.0.0 + 25.1.0 pom import From f4ca426cbc5dbff420e0398b77bbcb10729bb942 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Apr 2022 18:40:23 +0200 Subject: [PATCH 3/8] chore(deps): update dependency com.google.cloud:google-cloud-monitoring-dashboard to v2.2.6 (#583) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-monitoring-dashboard](https://togithub.com/googleapis/java-monitoring-dashboards) | `2.2.5` -> `2.2.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-monitoring-dashboard/2.2.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-monitoring-dashboard/2.2.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-monitoring-dashboard/2.2.6/compatibility-slim/2.2.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-monitoring-dashboard/2.2.6/confidence-slim/2.2.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-monitoring-dashboards ### [`v2.2.6`](https://togithub.com/googleapis/java-monitoring-dashboards/blob/HEAD/CHANGELOG.md#​226-httpsgithubcomgoogleapisjava-monitoring-dashboardscomparev225v226-2022-03-29) [Compare Source](https://togithub.com/googleapis/java-monitoring-dashboards/compare/v2.2.5...v2.2.6)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-monitoring-dashboards). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 82d042c2..56462b4d 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-monitoring-dashboard - 2.2.5 + 2.2.6 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ba28651a..d4b7c073 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-monitoring-dashboard - 2.2.5 + 2.2.6 From 866d2a10fabe98e3f906d37a84a5c4b31109bd93 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 4 Apr 2022 21:02:21 +0200 Subject: [PATCH 4/8] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.2.2 (#573) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.2.1` -> `3.2.2` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/compatibility-slim/3.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/confidence-slim/3.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-monitoring-dashboards). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 550c9527..43ffa3e9 100644 --- a/pom.xml +++ b/pom.xml @@ -120,7 +120,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.2.1 + 3.2.2 From c90af2d75a491acf8685ffef1857669e6a205358 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 11 Apr 2022 14:14:25 +0000 Subject: [PATCH 5/8] feat: Sync public protos with latests public api state. This adds support for collapsible groups, filters, labels, drilldowns, logs panels and tables (#586) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 440139643 Source-Link: https://github.com/googleapis/googleapis/commit/2bff0f31f05f5d49ef33a11297cf3640c13ec2ac Source-Link: https://github.com/googleapis/googleapis-gen/commit/8c92aa77466a1fe5016e25d806dd4eb45b62e5a2 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGM5MmFhNzc0NjZhMWZlNTAxNmUyNWQ4MDZkZDRlYjQ1YjYyZTVhMiJ9 --- .../v1/DashboardsServiceClientTest.java | 9 + .../dashboard/v1/CollapsibleGroup.java | 548 ++++ .../v1/CollapsibleGroupOrBuilder.java | 38 + .../dashboard/v1/CollapsibleGroupProto.java | 68 + .../monitoring/dashboard/v1/Dashboard.java | 832 ++++- .../dashboard/v1/DashboardFilter.java | 1523 +++++++++ .../v1/DashboardFilterOrBuilder.java | 143 + .../dashboard/v1/DashboardFilterProto.java | 86 + .../dashboard/v1/DashboardOrBuilder.java | 107 + .../dashboard/v1/DashboardsProto.java | 62 +- .../dashboard/v1/DashboardsServiceProto.java | 12 +- .../monitoring/dashboard/v1/LogsPanel.java | 948 ++++++ .../dashboard/v1/LogsPanelOrBuilder.java | 111 + .../dashboard/v1/LogsPanelProto.java | 68 + .../monitoring/dashboard/v1/MetricsProto.java | 32 +- .../dashboard/v1/TableDisplayOptions.java | 751 +++++ .../v1/TableDisplayOptionsOrBuilder.java | 80 + .../v1/TableDisplayOptionsProto.java | 79 + .../monitoring/dashboard/v1/TableProto.java | 110 + .../monitoring/dashboard/v1/Threshold.java | 322 ++ .../dashboard/v1/ThresholdOrBuilder.java | 27 + .../dashboard/v1/TimeSeriesTable.java | 2826 +++++++++++++++++ .../v1/TimeSeriesTableOrBuilder.java | 88 + .../monitoring/dashboard/v1/Widget.java | 942 ++++++ .../dashboard/v1/WidgetOrBuilder.java | 108 + .../monitoring/dashboard/v1/WidgetProto.java | 65 +- .../monitoring/dashboard/v1/XyChart.java | 639 ++++ .../dashboard/v1/XyChartOrBuilder.java | 35 + .../monitoring/dashboard/v1/XyChartProto.java | 69 +- .../monitoring/dashboard/v1/alertchart.proto | 2 +- .../dashboard/v1/collapsible_group.proto | 32 + .../monitoring/dashboard/v1/common.proto | 2 +- .../monitoring/dashboard/v1/dashboard.proto | 9 +- .../dashboard/v1/dashboard_filter.proto | 68 + .../dashboard/v1/dashboards_service.proto | 4 +- .../monitoring/dashboard/v1/drilldowns.proto | 2 +- .../monitoring/dashboard/v1/layouts.proto | 2 +- .../monitoring/dashboard/v1/logs_panel.proto | 38 + .../monitoring/dashboard/v1/metrics.proto | 18 +- .../monitoring/dashboard/v1/scorecard.proto | 2 +- .../monitoring/dashboard/v1/service.proto | 2 +- .../monitoring/dashboard/v1/table.proto | 59 + .../dashboard/v1/table_display_options.proto | 34 + .../google/monitoring/dashboard/v1/text.proto | 2 +- .../monitoring/dashboard/v1/widget.proto | 15 +- .../monitoring/dashboard/v1/xychart.proto | 20 +- 46 files changed, 10936 insertions(+), 103 deletions(-) create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/collapsible_group.proto create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard_filter.proto create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/logs_panel.proto create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto create mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto diff --git a/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientTest.java b/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientTest.java index 6ed3805f..5a9dd604 100644 --- a/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientTest.java +++ b/google-cloud-monitoring-dashboard/src/test/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClientTest.java @@ -28,6 +28,7 @@ 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; @@ -39,7 +40,9 @@ import com.google.protobuf.Empty; import io.grpc.StatusRuntimeException; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.UUID; import javax.annotation.Generated; @@ -95,6 +98,8 @@ public void createDashboardTest() throws Exception { .setName(DashboardName.of("[PROJECT]", "[DASHBOARD]").toString()) .setDisplayName("displayName1714148973") .setEtag("etag3123477") + .addAllDashboardFilters(new ArrayList()) + .putAllLabels(new HashMap()) .build(); mockDashboardsService.addResponse(expectedResponse); @@ -203,6 +208,8 @@ public void getDashboardTest() throws Exception { .setName(DashboardName.of("[PROJECT]", "[DASHBOARD]").toString()) .setDisplayName("displayName1714148973") .setEtag("etag3123477") + .addAllDashboardFilters(new ArrayList()) + .putAllLabels(new HashMap()) .build(); mockDashboardsService.addResponse(expectedResponse); @@ -289,6 +296,8 @@ public void updateDashboardTest() throws Exception { .setName(DashboardName.of("[PROJECT]", "[DASHBOARD]").toString()) .setDisplayName("displayName1714148973") .setEtag("etag3123477") + .addAllDashboardFilters(new ArrayList()) + .putAllLabels(new HashMap()) .build(); mockDashboardsService.addResponse(expectedResponse); diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java new file mode 100644 index 00000000..ecdccf9e --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroup.java @@ -0,0 +1,548 @@ +/* + * Copyright 2020 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 + +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.
+ * 
+ * + * Protobuf type {@code google.monitoring.dashboard.v1.CollapsibleGroup} + */ +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; + // Use CollapsibleGroup.newBuilder() to construct. + private CollapsibleGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CollapsibleGroup() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CollapsibleGroup(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CollapsibleGroup( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + collapsed_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + 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 + .ensureFieldAccessorsInitialized( + 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_; + /** + * + * + *
+   * The collapsed state of the widget on first page load.
+   * 
+ * + * bool collapsed = 1; + * + * @return The collapsed. + */ + @java.lang.Override + public boolean getCollapsed() { + return collapsed_; + } + + 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 (collapsed_ != false) { + output.writeBool(1, collapsed_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (collapsed_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, collapsed_); + } + size += unknownFields.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.CollapsibleGroup)) { + return super.equals(obj); + } + com.google.monitoring.dashboard.v1.CollapsibleGroup other = + (com.google.monitoring.dashboard.v1.CollapsibleGroup) obj; + + if (getCollapsed() != other.getCollapsed()) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + COLLAPSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCollapsed()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.dashboard.v1.CollapsibleGroup parseFrom( + 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) + 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) + 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, 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.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) + throws java.io.IOException { + 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); + } + + 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); + } + + @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.CollapsibleGroup 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. All widgets that are within
+   * the area spanned by the grouping widget are considered member widgets.
+   * 
+ * + * Protobuf type {@code google.monitoring.dashboard.v1.CollapsibleGroup} + */ + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + collapsed_ = false; + + return this; + } + + @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; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.CollapsibleGroup getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.CollapsibleGroup build() { + com.google.monitoring.dashboard.v1.CollapsibleGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.collapsed_ = collapsed_; + 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.CollapsibleGroup) { + return mergeFrom((com.google.monitoring.dashboard.v1.CollapsibleGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.dashboard.v1.CollapsibleGroup other) { + if (other == com.google.monitoring.dashboard.v1.CollapsibleGroup.getDefaultInstance()) + return this; + if (other.getCollapsed() != false) { + setCollapsed(other.getCollapsed()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.monitoring.dashboard.v1.CollapsibleGroup parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.monitoring.dashboard.v1.CollapsibleGroup) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean collapsed_; + /** + * + * + *
+     * The collapsed state of the widget on first page load.
+     * 
+ * + * bool collapsed = 1; + * + * @return The collapsed. + */ + @java.lang.Override + 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. + */ + public Builder setCollapsed(boolean value) { + + collapsed_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The collapsed state of the widget on first page load.
+     * 
+ * + * bool collapsed = 1; + * + * @return This builder for chaining. + */ + public Builder clearCollapsed() { + + collapsed_ = 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.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(); + } + + public static com.google.monitoring.dashboard.v1.CollapsibleGroup getDefaultInstance() { + 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 { + return new CollapsibleGroup(input, extensionRegistry); + } + }; + + 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.CollapsibleGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java new file mode 100644 index 00000000..dec5c79b --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 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 + +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/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java new file mode 100644 index 00000000..eb361c9b --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CollapsibleGroupProto.java @@ -0,0 +1,68 @@ +/* + * Copyright 2020 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 + +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\377\001\n\"com.google.monitoring.dashbo" + + "ard.v1B\025CollapsibleGroupProtoP\001ZGgoogle." + + "golang.org/genproto/googleapis/monitorin" + + "g/dashboard/v1;dashboard\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[] {}); + 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/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java index 13ee6614..c6db2077 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Dashboard.java @@ -42,6 +42,7 @@ private Dashboard() { name_ = ""; displayName_ = ""; etag_ = ""; + dashboardFilters_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -63,6 +64,7 @@ private Dashboard( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -160,6 +162,32 @@ private Dashboard( layoutCase_ = 9; break; } + case 90: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + dashboardFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + dashboardFilters_.add( + input.readMessage( + com.google.monitoring.dashboard.v1.DashboardFilter.parser(), + extensionRegistry)); + break; + } + case 98: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -174,6 +202,9 @@ private Dashboard( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + dashboardFilters_ = java.util.Collections.unmodifiableList(dashboardFilters_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -184,6 +215,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 12: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -622,6 +664,175 @@ public com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder getColumnLayoutO return com.google.monitoring.dashboard.v1.ColumnLayout.getDefaultInstance(); } + public static final int DASHBOARD_FILTERS_FIELD_NUMBER = 11; + private java.util.List dashboardFilters_; + /** + * + * + *
+   * Filters to reduce the amount of data charted based on the filter criteria.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + @java.lang.Override + public java.util.List + getDashboardFiltersList() { + return dashboardFilters_; + } + /** + * + * + *
+   * Filters to reduce the amount of data charted based on the filter criteria.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + @java.lang.Override + public java.util.List + getDashboardFiltersOrBuilderList() { + return dashboardFilters_; + } + /** + * + * + *
+   * Filters to reduce the amount of data charted based on the filter criteria.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + @java.lang.Override + public int getDashboardFiltersCount() { + return dashboardFilters_.size(); + } + /** + * + * + *
+   * Filters to reduce the amount of data charted based on the filter criteria.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.DashboardFilter getDashboardFilters(int index) { + return dashboardFilters_.get(index); + } + /** + * + * + *
+   * Filters to reduce the amount of data charted based on the filter criteria.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder getDashboardFiltersOrBuilder( + int index) { + return dashboardFilters_.get(index); + } + + 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, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * Labels applied to the dashboard
+   * 
+ * + * map<string, string> labels = 12; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * Labels applied to the dashboard
+   * 
+ * + * map<string, string> labels = 12; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Labels applied to the dashboard
+   * 
+ * + * map<string, string> labels = 12; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Labels applied to the dashboard
+   * 
+ * + * map<string, string> labels = 12; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -657,6 +868,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (layoutCase_ == 9) { output.writeMessage(9, (com.google.monitoring.dashboard.v1.ColumnLayout) layout_); } + for (int i = 0; i < dashboardFilters_.size(); i++) { + output.writeMessage(11, dashboardFilters_.get(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 12); unknownFields.writeTo(output); } @@ -695,6 +911,20 @@ public int getSerializedSize() { 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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -714,6 +944,8 @@ public boolean equals(final java.lang.Object 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: @@ -748,6 +980,14 @@ public int hashCode() { hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); + if (getDashboardFiltersCount() > 0) { + hash = (37 * hash) + DASHBOARD_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getDashboardFiltersList().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } switch (layoutCase_) { case 5: hash = (37 * hash) + GRID_LAYOUT_FIELD_NUMBER; @@ -887,6 +1127,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 12: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 12: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -908,7 +1168,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDashboardFiltersFieldBuilder(); + } } @java.lang.Override @@ -920,6 +1182,13 @@ public Builder clear() { etag_ = ""; + if (dashboardFiltersBuilder_ == null) { + dashboardFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + dashboardFiltersBuilder_.clear(); + } + internalGetMutableLabels().clear(); layoutCase_ = 0; layout_ = null; return this; @@ -949,6 +1218,7 @@ public com.google.monitoring.dashboard.v1.Dashboard build() { public com.google.monitoring.dashboard.v1.Dashboard buildPartial() { com.google.monitoring.dashboard.v1.Dashboard result = new com.google.monitoring.dashboard.v1.Dashboard(this); + int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; result.etag_ = etag_; @@ -980,6 +1250,17 @@ public com.google.monitoring.dashboard.v1.Dashboard buildPartial() { result.layout_ = columnLayoutBuilder_.build(); } } + if (dashboardFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dashboardFilters_ = java.util.Collections.unmodifiableList(dashboardFilters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dashboardFilters_ = dashboardFilters_; + } else { + result.dashboardFilters_ = dashboardFiltersBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); result.layoutCase_ = layoutCase_; onBuilt(); return result; @@ -1042,6 +1323,34 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.Dashboard other) { etag_ = other.etag_; onChanged(); } + if (dashboardFiltersBuilder_ == null) { + if (!other.dashboardFilters_.isEmpty()) { + if (dashboardFilters_.isEmpty()) { + dashboardFilters_ = other.dashboardFilters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDashboardFiltersIsMutable(); + dashboardFilters_.addAll(other.dashboardFilters_); + } + onChanged(); + } + } else { + if (!other.dashboardFilters_.isEmpty()) { + if (dashboardFiltersBuilder_.isEmpty()) { + dashboardFiltersBuilder_.dispose(); + dashboardFiltersBuilder_ = null; + dashboardFilters_ = other.dashboardFilters_; + bitField0_ = (bitField0_ & ~0x00000001); + dashboardFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDashboardFiltersFieldBuilder() + : null; + } else { + dashboardFiltersBuilder_.addAllMessages(other.dashboardFilters_); + } + } + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); switch (other.getLayoutCase()) { case GRID_LAYOUT: { @@ -1111,6 +1420,8 @@ public Builder clearLayout() { return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -2331,6 +2642,525 @@ public com.google.monitoring.dashboard.v1.ColumnLayoutOrBuilder getColumnLayoutO return columnLayoutBuilder_; } + private java.util.List dashboardFilters_ = + java.util.Collections.emptyList(); + + private void ensureDashboardFiltersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dashboardFilters_ = + new java.util.ArrayList( + dashboardFilters_); + bitField0_ |= 0x00000001; + } + } + + 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_; + + /** + * + * + *
+     * 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() { + if (dashboardFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(dashboardFilters_); + } else { + return dashboardFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Filters to reduce the amount of data charted based on the filter criteria.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + public int getDashboardFiltersCount() { + if (dashboardFiltersBuilder_ == null) { + return dashboardFilters_.size(); + } else { + return dashboardFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Filters to reduce the amount of data charted based on the filter criteria.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + public com.google.monitoring.dashboard.v1.DashboardFilter getDashboardFilters(int index) { + if (dashboardFiltersBuilder_ == null) { + return dashboardFilters_.get(index); + } else { + return dashboardFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Filters to reduce the amount of data charted based on the filter criteria.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + public Builder setDashboardFilters( + int index, com.google.monitoring.dashboard.v1.DashboardFilter value) { + if (dashboardFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDashboardFiltersIsMutable(); + dashboardFilters_.set(index, value); + onChanged(); + } else { + dashboardFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Filters to reduce the amount of data charted based on the filter criteria.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + public Builder setDashboardFilters( + int index, com.google.monitoring.dashboard.v1.DashboardFilter.Builder builderForValue) { + if (dashboardFiltersBuilder_ == null) { + ensureDashboardFiltersIsMutable(); + dashboardFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + dashboardFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Filters to reduce the amount of data charted based on the filter criteria.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + public Builder addDashboardFilters(com.google.monitoring.dashboard.v1.DashboardFilter value) { + if (dashboardFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDashboardFiltersIsMutable(); + dashboardFilters_.add(value); + onChanged(); + } else { + dashboardFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Filters to reduce the amount of data charted based on the filter criteria.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + public Builder addDashboardFilters( + int index, com.google.monitoring.dashboard.v1.DashboardFilter value) { + if (dashboardFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDashboardFiltersIsMutable(); + dashboardFilters_.add(index, value); + onChanged(); + } else { + dashboardFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Filters to reduce the amount of data charted based on the filter criteria.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + public Builder addDashboardFilters( + com.google.monitoring.dashboard.v1.DashboardFilter.Builder builderForValue) { + if (dashboardFiltersBuilder_ == null) { + ensureDashboardFiltersIsMutable(); + dashboardFilters_.add(builderForValue.build()); + onChanged(); + } else { + dashboardFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Filters to reduce the amount of data charted based on the filter criteria.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + public Builder addDashboardFilters( + int index, com.google.monitoring.dashboard.v1.DashboardFilter.Builder builderForValue) { + if (dashboardFiltersBuilder_ == null) { + ensureDashboardFiltersIsMutable(); + dashboardFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + dashboardFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Filters to reduce the amount of data charted based on the filter criteria.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + public Builder addAllDashboardFilters( + java.lang.Iterable values) { + if (dashboardFiltersBuilder_ == null) { + ensureDashboardFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dashboardFilters_); + onChanged(); + } else { + dashboardFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Filters to reduce the amount of data charted based on the filter criteria.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + public Builder clearDashboardFilters() { + if (dashboardFiltersBuilder_ == null) { + dashboardFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dashboardFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Filters to reduce the amount of data charted based on the filter criteria.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + public Builder removeDashboardFilters(int index) { + if (dashboardFiltersBuilder_ == null) { + ensureDashboardFiltersIsMutable(); + dashboardFilters_.remove(index); + onChanged(); + } else { + dashboardFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Filters to reduce the amount of data charted based on the filter criteria.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + public com.google.monitoring.dashboard.v1.DashboardFilter.Builder getDashboardFiltersBuilder( + int index) { + return getDashboardFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Filters to reduce the amount of data charted based on the filter criteria.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + public com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder getDashboardFiltersOrBuilder( + int index) { + if (dashboardFiltersBuilder_ == null) { + 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() { + if (dashboardFiltersBuilder_ != null) { + return dashboardFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dashboardFilters_); + } + } + /** + * + * + *
+     * Filters to reduce the amount of data charted based on the filter criteria.
+     * 
+ * + * 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()); + } + /** + * + * + *
+     * Filters to reduce the amount of data charted based on the filter criteria.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + public com.google.monitoring.dashboard.v1.DashboardFilter.Builder addDashboardFiltersBuilder( + int index) { + 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() { + 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> + 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>( + dashboardFilters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dashboardFilters_ = null; + } + return dashboardFiltersBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Labels applied to the dashboard
+     * 
+ * + * map<string, string> labels = 12; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * Labels applied to the dashboard
+     * 
+ * + * map<string, string> labels = 12; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Labels applied to the dashboard
+     * 
+ * + * map<string, string> labels = 12; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Labels applied to the dashboard
+     * 
+ * + * map<string, string> labels = 12; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + 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 java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + 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 java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Labels applied to the dashboard
+     * 
+ * + * map<string, string> labels = 12; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java new file mode 100644 index 00000000..50142335 --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilter.java @@ -0,0 +1,1523 @@ +/* + * Copyright 2020 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 + +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 + // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.DashboardFilter) + DashboardFilterOrBuilder { + 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_ = ""; + filterType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DashboardFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DashboardFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + labelKey_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + templateVariable_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + defaultValueCase_ = 4; + defaultValue_ = s; + break; + } + case 40: + { + int rawValue = input.readEnum(); + + filterType_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + 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 + .ensureFieldAccessorsInitialized( + 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 { + /** + * + * + *
+     * Filter type is unspecified. This is not valid in a well-formed request.
+     * 
+ * + * FILTER_TYPE_UNSPECIFIED = 0; + */ + FILTER_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Filter on a resource label value
+     * 
+ * + * RESOURCE_LABEL = 1; + */ + RESOURCE_LABEL(1), + /** + * + * + *
+     * Filter on a metrics label value
+     * 
+ * + * METRIC_LABEL = 2; + */ + METRIC_LABEL(2), + /** + * + * + *
+     * Filter on a user metadata label value
+     * 
+ * + * USER_METADATA_LABEL = 3; + */ + USER_METADATA_LABEL(3), + /** + * + * + *
+     * Filter on a system metadata label value
+     * 
+ * + * SYSTEM_METADATA_LABEL = 4; + */ + SYSTEM_METADATA_LABEL(4), + /** + * + * + *
+     * Filter on a group id
+     * 
+ * + * GROUP = 5; + */ + GROUP(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Filter type is unspecified. This is not valid in a well-formed request.
+     * 
+ * + * FILTER_TYPE_UNSPECIFIED = 0; + */ + public static final int FILTER_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Filter on a resource label value
+     * 
+ * + * RESOURCE_LABEL = 1; + */ + public static final int RESOURCE_LABEL_VALUE = 1; + /** + * + * + *
+     * Filter on a metrics label value
+     * 
+ * + * METRIC_LABEL = 2; + */ + public static final int METRIC_LABEL_VALUE = 2; + /** + * + * + *
+     * Filter on a user metadata label value
+     * 
+ * + * USER_METADATA_LABEL = 3; + */ + public static final int USER_METADATA_LABEL_VALUE = 3; + /** + * + * + *
+     * Filter on a system metadata label value
+     * 
+ * + * SYSTEM_METADATA_LABEL = 4; + */ + public static final int SYSTEM_METADATA_LABEL_VALUE = 4; + /** + * + * + *
+     * Filter on a group id
+     * 
+ * + * GROUP = 5; + */ + public static final int GROUP_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 FilterType 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 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; + } + } + + 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 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() { + return getDescriptor(); + } + + 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) { + 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 FilterType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.DashboardFilter.FilterType) + } + + private int defaultValueCase_ = 0; + private java.lang.Object defaultValue_; + + public enum DefaultValueCase + 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; + } + /** + * @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 DefaultValueCase valueOf(int value) { + return forNumber(value); + } + + public static DefaultValueCase forNumber(int value) { + switch (value) { + 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 static final int LABEL_KEY_FIELD_NUMBER = 1; + 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 + public java.lang.String getLabelKey() { + java.lang.Object ref = labelKey_; + 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(); + 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() { + 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); + labelKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEMPLATE_VARIABLE_FIELD_NUMBER = 3; + 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
+   * widgets in the dashboard.
+   * 
+ * + * string template_variable = 3; + * + * @return The templateVariable. + */ + @java.lang.Override + public java.lang.String getTemplateVariable() { + java.lang.Object ref = templateVariable_; + 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(); + 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
+   * widgets in the dashboard.
+   * 
+ * + * string template_variable = 3; + * + * @return The bytes for templateVariable. + */ + @java.lang.Override + 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); + templateVariable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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() { + java.lang.Object ref = ""; + if (defaultValueCase_ == 4) { + ref = defaultValue_; + } + 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(); + if (defaultValueCase_ == 4) { + defaultValue_ = s; + } + return s; + } + } + /** + * + * + *
+   * A variable-length string value.
+   * 
+ * + * string string_value = 4; + * + * @return The bytes for stringValue. + */ + 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); + if (defaultValueCase_ == 4) { + defaultValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_TYPE_FIELD_NUMBER = 5; + private int filterType_; + /** + * + * + *
+   * 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() { + 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() { + @SuppressWarnings("deprecation") + com.google.monitoring.dashboard.v1.DashboardFilter.FilterType result = + com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.valueOf(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; + 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(labelKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, labelKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateVariable_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, templateVariable_); + } + if (defaultValueCase_ == 4) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, defaultValue_); + } + if (filterType_ + != com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.FILTER_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, filterType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, labelKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateVariable_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, templateVariable_); + } + 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_); + } + size += unknownFields.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.DashboardFilter)) { + return super.equals(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 (filterType_ != other.filterType_) return false; + if (!getDefaultValueCase().equals(other.getDefaultValueCase())) return false; + switch (defaultValueCase_) { + case 4: + if (!getStringValue().equals(other.getStringValue())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) 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) + LABEL_KEY_FIELD_NUMBER; + hash = (53 * hash) + getLabelKey().hashCode(); + hash = (37 * hash) + TEMPLATE_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getTemplateVariable().hashCode(); + hash = (37 * hash) + FILTER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + filterType_; + switch (defaultValueCase_) { + case 4: + hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringValue().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.dashboard.v1.DashboardFilter parseFrom( + 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) + 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) + 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, 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.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) + throws java.io.IOException { + 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); + } + + 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); + } + + @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.DashboardFilter 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 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + labelKey_ = ""; + + templateVariable_ = ""; + + filterType_ = 0; + + defaultValueCase_ = 0; + defaultValue_ = null; + return this; + } + + @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; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.DashboardFilter getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.DashboardFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.DashboardFilter build() { + com.google.monitoring.dashboard.v1.DashboardFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.labelKey_ = labelKey_; + result.templateVariable_ = templateVariable_; + if (defaultValueCase_ == 4) { + result.defaultValue_ = defaultValue_; + } + result.filterType_ = filterType_; + result.defaultValueCase_ = defaultValueCase_; + 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.DashboardFilter) { + return mergeFrom((com.google.monitoring.dashboard.v1.DashboardFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.dashboard.v1.DashboardFilter other) { + if (other == com.google.monitoring.dashboard.v1.DashboardFilter.getDefaultInstance()) + return this; + if (!other.getLabelKey().isEmpty()) { + labelKey_ = other.labelKey_; + onChanged(); + } + if (!other.getTemplateVariable().isEmpty()) { + templateVariable_ = other.templateVariable_; + onChanged(); + } + if (other.filterType_ != 0) { + setFilterTypeValue(other.getFilterTypeValue()); + } + switch (other.getDefaultValueCase()) { + case STRING_VALUE: + { + defaultValueCase_ = 4; + defaultValue_ = other.defaultValue_; + onChanged(); + break; + } + case DEFAULTVALUE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.monitoring.dashboard.v1.DashboardFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.monitoring.dashboard.v1.DashboardFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int defaultValueCase_ = 0; + private java.lang.Object defaultValue_; + + public DefaultValueCase getDefaultValueCase() { + return DefaultValueCase.forNumber(defaultValueCase_); + } + + public Builder clearDefaultValue() { + defaultValueCase_ = 0; + defaultValue_ = null; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + labelKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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() { + java.lang.Object ref = labelKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + labelKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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(); + } + + labelKey_ = value; + 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() { + + labelKey_ = getDefaultInstance().getLabelKey(); + onChanged(); + 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(); + } + checkByteStringIsUtf8(value); + + labelKey_ = value; + onChanged(); + return this; + } + + 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
+     * widgets in the dashboard.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + templateVariable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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
+     * widgets in the dashboard.
+     * 
+ * + * string template_variable = 3; + * + * @return The bytes for templateVariable. + */ + 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); + templateVariable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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
+     * widgets in the dashboard.
+     * 
+ * + * 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(); + } + + templateVariable_ = value; + 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
+     * widgets in the dashboard.
+     * 
+ * + * string template_variable = 3; + * + * @return This builder for chaining. + */ + public Builder clearTemplateVariable() { + + templateVariable_ = getDefaultInstance().getTemplateVariable(); + 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
+     * widgets in the dashboard.
+     * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + + templateVariable_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * A variable-length string value.
+     * 
+ * + * string string_value = 4; + * + * @return Whether the stringValue field is set. + */ + @java.lang.Override + public boolean hasStringValue() { + return defaultValueCase_ == 4; + } + /** + * + * + *
+     * A variable-length string value.
+     * 
+ * + * string string_value = 4; + * + * @return The stringValue. + */ + @java.lang.Override + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (defaultValueCase_ == 4) { + ref = defaultValue_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (defaultValueCase_ == 4) { + defaultValue_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A variable-length string value.
+     * 
+ * + * string string_value = 4; + * + * @return The bytes for stringValue. + */ + @java.lang.Override + 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); + if (defaultValueCase_ == 4) { + defaultValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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(); + } + defaultValueCase_ = 4; + defaultValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A variable-length string value.
+     * 
+ * + * string string_value = 4; + * + * @return This builder for chaining. + */ + public Builder clearStringValue() { + if (defaultValueCase_ == 4) { + defaultValueCase_ = 0; + defaultValue_ = null; + onChanged(); + } + 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(); + } + checkByteStringIsUtf8(value); + defaultValueCase_ = 4; + defaultValue_ = value; + onChanged(); + return this; + } + + 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() { + 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. + */ + public Builder setFilterTypeValue(int value) { + + filterType_ = value; + onChanged(); + 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() { + @SuppressWarnings("deprecation") + com.google.monitoring.dashboard.v1.DashboardFilter.FilterType result = + com.google.monitoring.dashboard.v1.DashboardFilter.FilterType.valueOf(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) { + if (value == null) { + throw new NullPointerException(); + } + + filterType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The specified filter type
+     * 
+ * + * .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5; + * + * @return This builder for chaining. + */ + public Builder clearFilterType() { + + filterType_ = 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.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(); + } + + public static com.google.monitoring.dashboard.v1.DashboardFilter getDefaultInstance() { + 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 { + return new DashboardFilter(input, extensionRegistry); + } + }; + + 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.DashboardFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java new file mode 100644 index 00000000..648a16c0 --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterOrBuilder.java @@ -0,0 +1,143 @@ +/* + * Copyright 2020 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 + +package com.google.monitoring.dashboard.v1; + +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(); + + /** + * + * + *
+   * 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
+   * widgets in the dashboard.
+   * 
+ * + * 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
+   * widgets in the dashboard.
+   * 
+ * + * string template_variable = 3; + * + * @return The bytes for templateVariable. + */ + 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(); + + /** + * + * + *
+   * 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(); + + public com.google.monitoring.dashboard.v1.DashboardFilter.DefaultValueCase getDefaultValueCase(); +} diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java new file mode 100644 index 00000000..f3736cd6 --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardFilterProto.java @@ -0,0 +1,86 @@ +/* + * Copyright 2020 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 + +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\376\001\n\"com.google.monito" + + "ring.dashboard.v1B\024DashboardFilterProtoP" + + "\001ZGgoogle.golang.org/genproto/googleapis" + + "/monitoring/dashboard/v1;dashboard\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(), + }); + 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/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java index 0afa80b6..44a50e44 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardOrBuilder.java @@ -262,5 +262,112 @@ 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(); + /** + * + * + *
+   * Filters to reduce the amount of data charted based on the filter criteria.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + com.google.monitoring.dashboard.v1.DashboardFilter getDashboardFilters(int index); + /** + * + * + *
+   * Filters to reduce the amount of data charted based on the filter criteria.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + 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 + getDashboardFiltersOrBuilderList(); + /** + * + * + *
+   * Filters to reduce the amount of data charted based on the filter criteria.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.DashboardFilter dashboard_filters = 11; + */ + com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder getDashboardFiltersOrBuilder( + int index); + + /** + * + * + *
+   * Labels applied to the dashboard
+   * 
+ * + * map<string, string> labels = 12; + */ + int getLabelsCount(); + /** + * + * + *
+   * Labels applied to the dashboard
+   * 
+ * + * map<string, string> labels = 12; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Labels applied to the dashboard
+   * 
+ * + * map<string, string> labels = 12; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Labels applied to the dashboard
+   * 
+ * + * map<string, string> labels = 12; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Labels applied to the dashboard
+   * 
+ * + * map<string, string> labels = 12; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + public com.google.monitoring.dashboard.v1.Dashboard.LayoutCase getLayoutCase(); } diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java index b52fdd91..2e190a79 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsProto.java @@ -31,6 +31,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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; @@ -43,26 +47,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\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\032,google/monitoring/" - + "dashboard/v1/layouts.proto\"\270\003\n\tDashboard" - + "\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\031\n\014display_name\030\002 \001(" - + "\tB\003\340A\002\022\014\n\004etag\030\004 \001(\t\022A\n\013grid_layout\030\005 \001(" - + "\0132*.google.monitoring.dashboard.v1.GridL" - + "ayoutH\000\022E\n\rmosaic_layout\030\006 \001(\0132,.google." - + "monitoring.dashboard.v1.MosaicLayoutH\000\022?" - + "\n\nrow_layout\030\010 \001(\0132).google.monitoring.d" - + "ashboard.v1.RowLayoutH\000\022E\n\rcolumn_layout" - + "\030\t \001(\0132,.google.monitoring.dashboard.v1." - + "ColumnLayoutH\000:S\352AP\n#monitoring.googleap" - + "is.com/Dashboard\022)projects/{project}/das" - + "hboards/{dashboard}B\010\n\006layoutB\371\001\n\"com.go" - + "ogle.monitoring.dashboard.v1B\017Dashboards" - + "ProtoP\001ZGgoogle.golang.org/genproto/goog" - + "leapis/monitoring/dashboard/v1;dashboard" - + "\252\002$Google.Cloud.Monitoring.Dashboard.V1\312" - + "\002$Google\\Cloud\\Monitoring\\Dashboard\\V1\352\002" - + "(Google::Cloud::Monitoring::Dashboard::V" - + "1b\006proto3" + + "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\371" + + "\001\n\"com.google.monitoring.dashboard.v1B\017D" + + "ashboardsProtoP\001ZGgoogle.golang.org/genp" + + "roto/googleapis/monitoring/dashboard/v1;" + + "dashboard\252\002$Google.Cloud.Monitoring.Dash" + + "board.V1\312\002$Google\\Cloud\\Monitoring\\Dashb" + + "oard\\V1\352\002(Google::Cloud::Monitoring::Das" + + "hboard::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -70,6 +80,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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 = @@ -85,8 +96,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "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); @@ -95,6 +116,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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(); } diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java index cc96aef5..b15c7cf4 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceProto.java @@ -63,10 +63,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n7google/monitoring/dashboard/v1/dashboa" + "rds_service.proto\022\036google.monitoring.das" + "hboard.v1\032\034google/api/annotations.proto\032" - + "\037google/api/field_behavior.proto\032\031google" - + "/api/resource.proto\032.google/monitoring/d" - + "ashboard/v1/dashboard.proto\032\033google/prot" - + "obuf/empty.proto\032\027google/api/client.prot" + + "\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" @@ -124,11 +124,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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(), - com.google.api.ClientProto.getDescriptor(), }); internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -188,11 +188,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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(); - com.google.api.ClientProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java new file mode 100644 index 00000000..a0eef491 --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanel.java @@ -0,0 +1,948 @@ +/* + * Copyright 2020 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 + +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 + // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.LogsPanel) + LogsPanelOrBuilder { + 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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LogsPanel(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LogsPanel( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + filter_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resourceNames_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + resourceNames_ = resourceNames_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + 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 + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.LogsPanel.class, + com.google.monitoring.dashboard.v1.LogsPanel.Builder.class); + } + + public static final int FILTER_FIELD_NUMBER = 1; + 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).
+   * Only log entries that match the filter are returned.  An empty filter
+   * matches all log entries.
+   * 
+ * + * string filter = 1; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + 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).
+   * Only log entries that match the filter are returned.  An empty filter
+   * matches all log entries.
+   * 
+ * + * string filter = 1; + * + * @return The bytes for filter. + */ + @java.lang.Override + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_NAMES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList 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 A list containing the resourceNames. + */ + 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. + */ + 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) { + return resourceNames_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); + } + for (int i = 0; i < resourceNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceNames_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); + } + { + int dataSize = 0; + for (int i = 0; i < resourceNames_.size(); i++) { + dataSize += computeStringSizeNoTag(resourceNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getResourceNamesList().size(); + } + size += unknownFields.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.LogsPanel)) { + return super.equals(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 (!unknownFields.equals(other.unknownFields)) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + if (getResourceNamesCount() > 0) { + hash = (37 * hash) + RESOURCE_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getResourceNamesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + + public static com.google.monitoring.dashboard.v1.LogsPanel 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.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) + throws java.io.IOException { + 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); + } + + 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); + } + + @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.LogsPanel 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 stream of log.
+   * 
+ * + * Protobuf type {@code google.monitoring.dashboard.v1.LogsPanel} + */ + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + filter_ = ""; + + resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + 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; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.LogsPanel getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.LogsPanel build() { + com.google.monitoring.dashboard.v1.LogsPanel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + result.filter_ = filter_; + if (((bitField0_ & 0x00000001) != 0)) { + resourceNames_ = resourceNames_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.resourceNames_ = resourceNames_; + 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.LogsPanel) { + return mergeFrom((com.google.monitoring.dashboard.v1.LogsPanel) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.dashboard.v1.LogsPanel other) { + if (other == com.google.monitoring.dashboard.v1.LogsPanel.getDefaultInstance()) return this; + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.resourceNames_.isEmpty()) { + if (resourceNames_.isEmpty()) { + resourceNames_ = other.resourceNames_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResourceNamesIsMutable(); + resourceNames_.addAll(other.resourceNames_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.monitoring.dashboard.v1.LogsPanel parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.monitoring.dashboard.v1.LogsPanel) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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).
+     * Only log entries that match the filter are returned.  An empty filter
+     * matches all log entries.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A filter that chooses which log entries to return.  See [Advanced Logs
+     * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
+     * Only log entries that match the filter are returned.  An empty filter
+     * matches all log entries.
+     * 
+ * + * string filter = 1; + * + * @return The bytes for filter. + */ + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A filter that chooses which log entries to return.  See [Advanced Logs
+     * Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
+     * Only log entries that match the filter are returned.  An empty filter
+     * matches all log entries.
+     * 
+ * + * 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(); + } + + filter_ = value; + 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).
+     * Only log entries that match the filter are returned.  An empty filter
+     * matches all log entries.
+     * 
+ * + * string filter = 1; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + 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).
+     * Only log entries that match the filter are returned.  An empty filter
+     * matches all log entries.
+     * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList resourceNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureResourceNamesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * 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() { + return resourceNames_.getUnmodifiableView(); + } + /** + * + * + *
+     * 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. + */ + 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) { + 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(); + } + ensureResourceNamesIsMutable(); + resourceNames_.set(index, value); + 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 resourceNames to add. + * @return This builder for chaining. + */ + public Builder addResourceNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceNamesIsMutable(); + resourceNames_.add(value); + 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 values The resourceNames to add. + * @return This builder for chaining. + */ + public Builder addAllResourceNames(java.lang.Iterable values) { + ensureResourceNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceNames_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + 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(); + } + checkByteStringIsUtf8(value); + ensureResourceNamesIsMutable(); + resourceNames_.add(value); + 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.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(); + } + + 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 { + return new LogsPanel(input, extensionRegistry); + } + }; + + 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.LogsPanel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java new file mode 100644 index 00000000..3e53b24b --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2020 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 + +package com.google.monitoring.dashboard.v1; + +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).
+   * Only log entries that match the filter are returned.  An empty filter
+   * matches all log entries.
+   * 
+ * + * 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).
+   * Only log entries that match the filter are returned.  An empty filter
+   * matches all log entries.
+   * 
+ * + * string filter = 1; + * + * @return The bytes for filter. + */ + 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(); + /** + * + * + *
+   * 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); +} diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java new file mode 100644 index 00000000..9f872994 --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LogsPanelProto.java @@ -0,0 +1,68 @@ +/* + * Copyright 2020 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 + +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\370\001\n\"com.google.monitoring" + + ".dashboard.v1B\016LogsPanelProtoP\001ZGgoogle." + + "golang.org/genproto/googleapis/monitorin" + + "g/dashboard/v1;dashboard\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[] {}); + 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/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java index 81f3f6fc..e78f0d1b 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java @@ -91,22 +91,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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.d" + "ashboard.v1.AggregationB\017\n\routput_filter" - + "\"\244\002\n\tThreshold\022\r\n\005label\030\001 \001(\t\022\r\n\005value\030\002" + + "\"\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.Threshold.Color\022F\n\tdirectio" + "n\030\004 \001(\01623.google.monitoring.dashboard.v1" - + ".Threshold.Direction\"3\n\005Color\022\025\n\021COLOR_U" - + "NSPECIFIED\020\000\022\n\n\006YELLOW\020\004\022\007\n\003RED\020\006\"<\n\tDir" - + "ection\022\031\n\025DIRECTION_UNSPECIFIED\020\000\022\t\n\005ABO" - + "VE\020\001\022\t\n\005BELOW\020\002*Q\n\016SparkChartType\022 \n\034SPA" - + "RK_CHART_TYPE_UNSPECIFIED\020\000\022\016\n\nSPARK_LIN" - + "E\020\001\022\r\n\tSPARK_BAR\020\002B\366\001\n\"com.google.monito" - + "ring.dashboard.v1B\014MetricsProtoP\001ZGgoogl" - + "e.golang.org/genproto/googleapis/monitor" - + "ing/dashboard/v1;dashboard\252\002$Google.Clou" - + "d.Monitoring.Dashboard.V1\312\002$Google\\Cloud" - + "\\Monitoring\\Dashboard\\V1\352\002(Google::Cloud" - + "::Monitoring::Dashboard::V1b\006proto3" + + ".Threshold.Direction\022I\n\013target_axis\030\005 \001(" + + "\01624.google.monitoring.dashboard.v1.Thres" + + "hold.TargetAxis\"3\n\005Color\022\025\n\021COLOR_UNSPEC" + + "IFIED\020\000\022\n\n\006YELLOW\020\004\022\007\n\003RED\020\006\"<\n\tDirectio" + + "n\022\031\n\025DIRECTION_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\016SparkCh" + + "artType\022 \n\034SPARK_CHART_TYPE_UNSPECIFIED\020" + + "\000\022\016\n\nSPARK_LINE\020\001\022\r\n\tSPARK_BAR\020\002B\366\001\n\"com" + + ".google.monitoring.dashboard.v1B\014Metrics" + + "ProtoP\001ZGgoogle.golang.org/genproto/goog" + + "leapis/monitoring/dashboard/v1;dashboard" + + "\252\002$Google.Cloud.Monitoring.Dashboard.V1\312" + + "\002$Google\\Cloud\\Monitoring\\Dashboard\\V1\352\002" + + "(Google::Cloud::Monitoring::Dashboard::V" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -169,7 +173,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_monitoring_dashboard_v1_Threshold_descriptor, new java.lang.String[] { - "Label", "Value", "Color", "Direction", + "Label", "Value", "Color", "Direction", "TargetAxis", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java new file mode 100644 index 00000000..03e14c53 --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptions.java @@ -0,0 +1,751 @@ +/* + * Copyright 2020 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 + +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 + // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TableDisplayOptions) + TableDisplayOptionsOrBuilder { + 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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TableDisplayOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TableDisplayOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + shownColumns_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + shownColumns_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + shownColumns_ = shownColumns_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + 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 + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.TableDisplayOptions.class, + com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder.class); + } + + public static final int SHOWN_COLUMNS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList shownColumns_; + /** + * + * + *
+   * Optional. Columns to display in the table. Leave empty to display all available
+   * columns. Note: This field is for future features and is not currently used.
+   * 
+ * + * repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the shownColumns. + */ + public com.google.protobuf.ProtocolStringList getShownColumnsList() { + return shownColumns_; + } + /** + * + * + *
+   * Optional. Columns to display in the table. Leave empty to display all available
+   * columns. Note: This field is for future features and is not currently used.
+   * 
+ * + * repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of shownColumns. + */ + public int getShownColumnsCount() { + return shownColumns_.size(); + } + /** + * + * + *
+   * Optional. Columns to display in the table. Leave empty to display all available
+   * columns. Note: This field is for future features and is not currently used.
+   * 
+ * + * repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The shownColumns at the given index. + */ + public java.lang.String getShownColumns(int index) { + return shownColumns_.get(index); + } + /** + * + * + *
+   * Optional. Columns to display in the table. Leave empty to display all available
+   * columns. Note: This field is for future features and is not currently used.
+   * 
+ * + * repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the shownColumns at the given index. + */ + 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; + 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 < shownColumns_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, shownColumns_.getRaw(i)); + } + unknownFields.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 < shownColumns_.size(); i++) { + dataSize += computeStringSizeNoTag(shownColumns_.getRaw(i)); + } + size += dataSize; + size += 1 * getShownColumnsList().size(); + } + size += unknownFields.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.TableDisplayOptions)) { + return super.equals(obj); + } + com.google.monitoring.dashboard.v1.TableDisplayOptions other = + (com.google.monitoring.dashboard.v1.TableDisplayOptions) obj; + + if (!getShownColumnsList().equals(other.getShownColumnsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getShownColumnsCount() > 0) { + hash = (37 * hash) + SHOWN_COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getShownColumnsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.dashboard.v1.TableDisplayOptions parseFrom( + 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) + 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) + 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, 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.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) + throws java.io.IOException { + 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); + } + + 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); + } + + @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.TableDisplayOptions 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; + } + /** + * + * + *
+   * 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + shownColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + 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; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.TableDisplayOptions getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.TableDisplayOptions build() { + com.google.monitoring.dashboard.v1.TableDisplayOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + shownColumns_ = shownColumns_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.shownColumns_ = shownColumns_; + 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.TableDisplayOptions) { + return mergeFrom((com.google.monitoring.dashboard.v1.TableDisplayOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.dashboard.v1.TableDisplayOptions other) { + if (other == com.google.monitoring.dashboard.v1.TableDisplayOptions.getDefaultInstance()) + return this; + if (!other.shownColumns_.isEmpty()) { + if (shownColumns_.isEmpty()) { + shownColumns_ = other.shownColumns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureShownColumnsIsMutable(); + shownColumns_.addAll(other.shownColumns_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.monitoring.dashboard.v1.TableDisplayOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.monitoring.dashboard.v1.TableDisplayOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList shownColumns_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureShownColumnsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + shownColumns_ = new com.google.protobuf.LazyStringArrayList(shownColumns_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Optional. Columns to display in the table. Leave empty to display all available
+     * columns. Note: This field is for future features and is not currently used.
+     * 
+ * + * repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the shownColumns. + */ + public com.google.protobuf.ProtocolStringList getShownColumnsList() { + return shownColumns_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. Columns to display in the table. Leave empty to display all available
+     * columns. Note: This field is for future features and is not currently used.
+     * 
+ * + * repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of shownColumns. + */ + public int getShownColumnsCount() { + return shownColumns_.size(); + } + /** + * + * + *
+     * Optional. Columns to display in the table. Leave empty to display all available
+     * columns. Note: This field is for future features and is not currently used.
+     * 
+ * + * repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The shownColumns at the given index. + */ + public java.lang.String getShownColumns(int index) { + return shownColumns_.get(index); + } + /** + * + * + *
+     * Optional. Columns to display in the table. Leave empty to display all available
+     * columns. Note: This field is for future features and is not currently used.
+     * 
+ * + * repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the shownColumns at the given index. + */ + public com.google.protobuf.ByteString getShownColumnsBytes(int index) { + return shownColumns_.getByteString(index); + } + /** + * + * + *
+     * Optional. Columns to display in the table. Leave empty to display all available
+     * columns. Note: This field is for future features and is not currently used.
+     * 
+ * + * repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The shownColumns to set. + * @return This builder for chaining. + */ + public Builder setShownColumns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureShownColumnsIsMutable(); + shownColumns_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Columns to display in the table. Leave empty to display all available
+     * columns. Note: This field is for future features and is not currently used.
+     * 
+ * + * repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The shownColumns to add. + * @return This builder for chaining. + */ + public Builder addShownColumns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureShownColumnsIsMutable(); + shownColumns_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Columns to display in the table. Leave empty to display all available
+     * columns. Note: This field is for future features and is not currently used.
+     * 
+ * + * repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The shownColumns to add. + * @return This builder for chaining. + */ + public Builder addAllShownColumns(java.lang.Iterable values) { + ensureShownColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shownColumns_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Columns to display in the table. Leave empty to display all available
+     * columns. Note: This field is for future features and is not currently used.
+     * 
+ * + * repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearShownColumns() { + shownColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Columns to display in the table. Leave empty to display all available
+     * columns. Note: This field is for future features and is not currently used.
+     * 
+ * + * repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the shownColumns to add. + * @return This builder for chaining. + */ + public Builder addShownColumnsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureShownColumnsIsMutable(); + shownColumns_.add(value); + 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.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(); + } + + public static com.google.monitoring.dashboard.v1.TableDisplayOptions getDefaultInstance() { + 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 { + return new TableDisplayOptions(input, extensionRegistry); + } + }; + + 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.TableDisplayOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java new file mode 100644 index 00000000..abd96bb4 --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2020 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 + +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. Columns to display in the table. Leave empty to display all available
+   * columns. Note: This field is for future features and is not currently used.
+   * 
+ * + * repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the shownColumns. + */ + java.util.List getShownColumnsList(); + /** + * + * + *
+   * Optional. Columns to display in the table. Leave empty to display all available
+   * columns. Note: This field is for future features and is not currently used.
+   * 
+ * + * repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of shownColumns. + */ + int getShownColumnsCount(); + /** + * + * + *
+   * Optional. Columns to display in the table. Leave empty to display all available
+   * columns. Note: This field is for future features and is not currently used.
+   * 
+ * + * repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The shownColumns at the given index. + */ + java.lang.String getShownColumns(int index); + /** + * + * + *
+   * Optional. Columns to display in the table. Leave empty to display all available
+   * columns. Note: This field is for future features and is not currently used.
+   * 
+ * + * repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the shownColumns at the given index. + */ + com.google.protobuf.ByteString getShownColumnsBytes(int index); +} diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java new file mode 100644 index 00000000..baf10b62 --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableDisplayOptionsProto.java @@ -0,0 +1,79 @@ +/* + * Copyright 2020 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 + +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\"1\n\023TableDisplayOptions\022\032\n\rshown_co" + + "lumns\030\001 \003(\tB\003\340A\001B\202\002\n\"com.google.monitori" + + "ng.dashboard.v1B\030TableDisplayOptionsProt" + + "oP\001ZGgoogle.golang.org/genproto/googleap" + + "is/monitoring/dashboard/v1;dashboard\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.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/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java new file mode 100644 index 00000000..ea83d378 --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java @@ -0,0 +1,110 @@ +/* + * Copyright 2020 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 + +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; + + 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\"\375\002\n\017TimeSeriesTable\022T\n\tdata_sets" + + "\030\001 \003(\0132<.google.monitoring.dashboard.v1." + + "TimeSeriesTable.TableDataSetB\003\340A\002\032\223\002\n\014Ta" + + "bleDataSet\022O\n\021time_series_query\030\001 \001(\0132/." + + "google.monitoring.dashboard.v1.TimeSerie" + + "sQueryB\003\340A\002\022\033\n\016table_template\030\002 \001(\tB\003\340A\001" + + "\022<\n\024min_alignment_period\030\003 \001(\0132\031.google." + + "protobuf.DurationB\003\340A\001\022W\n\025table_display_" + + "options\030\004 \001(\01323.google.monitoring.dashbo" + + "ard.v1.TableDisplayOptionsB\003\340A\001B\364\001\n\"com." + + "google.monitoring.dashboard.v1B\nTablePro" + + "toP\001ZGgoogle.golang.org/genproto/googlea" + + "pis/monitoring/dashboard/v1;dashboard\252\002$" + + "Google.Cloud.Monitoring.Dashboard.V1\312\002$G" + + "oogle\\Cloud\\Monitoring\\Dashboard\\V1\352\002(Go" + + "ogle::Cloud::Monitoring::Dashboard::V1b\006" + + "proto3" + }; + 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", + }); + 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", + }); + 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/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java index b520930a..f10ffa44 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Threshold.java @@ -41,6 +41,7 @@ private Threshold() { label_ = ""; color_ = 0; direction_ = 0; + targetAxis_ = 0; } @java.lang.Override @@ -98,6 +99,13 @@ private Threshold( direction_ = rawValue; break; } + case 40: + { + int rawValue = input.readEnum(); + + targetAxis_ = rawValue; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -453,6 +461,163 @@ private Direction(int value) { // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.Threshold.Direction) } + /** + * + * + *
+   * An axis identifier.
+   * 
+ * + * Protobuf enum {@code google.monitoring.dashboard.v1.Threshold.TargetAxis} + */ + public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The target axis was not specified. Defaults to Y1.
+     * 
+ * + * TARGET_AXIS_UNSPECIFIED = 0; + */ + TARGET_AXIS_UNSPECIFIED(0), + /** + * + * + *
+     * The y_axis (the right axis of chart).
+     * 
+ * + * Y1 = 1; + */ + Y1(1), + /** + * + * + *
+     * The y2_axis (the left axis of chart).
+     * 
+ * + * Y2 = 2; + */ + Y2(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The target axis was not specified. Defaults to Y1.
+     * 
+ * + * TARGET_AXIS_UNSPECIFIED = 0; + */ + public static final int TARGET_AXIS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The y_axis (the right axis of chart).
+     * 
+ * + * Y1 = 1; + */ + public static final int Y1_VALUE = 1; + /** + * + * + *
+     * The y2_axis (the left axis of chart).
+     * 
+ * + * Y2 = 2; + */ + public static final int Y2_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 TargetAxis 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 TargetAxis forNumber(int value) { + switch (value) { + 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() { + return internalValueMap; + } + + 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() { + return 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) { + 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 TargetAxis(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.Threshold.TargetAxis) + } + public static final int LABEL_FIELD_NUMBER = 1; private volatile java.lang.Object label_; /** @@ -599,6 +764,46 @@ public com.google.monitoring.dashboard.v1.Threshold.Direction getDirection() { : result; } + public static final int TARGET_AXIS_FIELD_NUMBER = 5; + private int 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 enum numeric value on the wire for targetAxis. + */ + @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() { + @SuppressWarnings("deprecation") + com.google.monitoring.dashboard.v1.Threshold.TargetAxis result = + com.google.monitoring.dashboard.v1.Threshold.TargetAxis.valueOf(targetAxis_); + return result == null + ? com.google.monitoring.dashboard.v1.Threshold.TargetAxis.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -628,6 +833,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(4, direction_); } + if (targetAxis_ + != com.google.monitoring.dashboard.v1.Threshold.TargetAxis.TARGET_AXIS_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, targetAxis_); + } unknownFields.writeTo(output); } @@ -652,6 +862,11 @@ public int getSerializedSize() { .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_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -673,6 +888,7 @@ public boolean equals(final java.lang.Object obj) { != 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; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -694,6 +910,8 @@ public int hashCode() { hash = (53 * hash) + color_; hash = (37 * hash) + DIRECTION_FIELD_NUMBER; hash = (53 * hash) + direction_; + hash = (37 * hash) + TARGET_AXIS_FIELD_NUMBER; + hash = (53 * hash) + targetAxis_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -847,6 +1065,8 @@ public Builder clear() { direction_ = 0; + targetAxis_ = 0; + return this; } @@ -878,6 +1098,7 @@ public com.google.monitoring.dashboard.v1.Threshold buildPartial() { result.value_ = value_; result.color_ = color_; result.direction_ = direction_; + result.targetAxis_ = targetAxis_; onBuilt(); return result; } @@ -940,6 +1161,9 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.Threshold other) { if (other.direction_ != 0) { setDirectionValue(other.getDirectionValue()); } + if (other.targetAxis_ != 0) { + setTargetAxisValue(other.getTargetAxisValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1321,6 +1545,104 @@ public Builder clearDirection() { return this; } + 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() { + 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. + */ + public Builder setTargetAxisValue(int value) { + + targetAxis_ = value; + onChanged(); + 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() { + @SuppressWarnings("deprecation") + com.google.monitoring.dashboard.v1.Threshold.TargetAxis result = + com.google.monitoring.dashboard.v1.Threshold.TargetAxis.valueOf(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. + */ + public Builder setTargetAxis(com.google.monitoring.dashboard.v1.Threshold.TargetAxis value) { + if (value == null) { + throw new NullPointerException(); + } + + targetAxis_ = value.getNumber(); + onChanged(); + 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() { + + targetAxis_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java index 30c95ac5..a6dcf196 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ThresholdOrBuilder.java @@ -113,4 +113,31 @@ public interface ThresholdOrBuilder * @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/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java new file mode 100644 index 00000000..0260cfe7 --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java @@ -0,0 +1,2826 @@ +/* + * Copyright 2020 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 + +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 + // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TimeSeriesTable) + TimeSeriesTableOrBuilder { + 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(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TimeSeriesTable(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TimeSeriesTable( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + dataSets_ = + new java.util.ArrayList< + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet>(); + mutable_bitField0_ |= 0x00000001; + } + dataSets_.add( + input.readMessage( + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + dataSets_ = java.util.Collections.unmodifiableList(dataSets_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.TimeSeriesTable.class, + com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder.class); + } + + 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]; + * + * + * @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]; + * + * + * @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]; + * + */ + 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 `${label_name}`,
+     * which will resolve to the label's value i.e.
+     * "${resource.labels.project_id}."
+     * 
+ * + * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 `${label_name}`,
+     * which will resolve to the label's value i.e.
+     * "${resource.labels.project_id}."
+     * 
+ * + * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tableTemplate. + */ + com.google.protobuf.ByteString getTableTemplateBytes(); + + /** + * + * + *
+     * Optional. The lower bound on data point frequency for this data set, implemented by
+     * specifying the minimum alignment period to use in a time series query
+     * For example, if the data is published once every 10 minutes, the
+     * `min_alignment_period` should be at least 10 minutes. It would not
+     * 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(); + + /** + * + * + *
+     * 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]; + * + * + * @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]; + * + * + * @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]; + * + */ + 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 + // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) + TableDataSetOrBuilder { + 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) { + return new TableDataSet(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TableDataSet( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder subBuilder = null; + if (timeSeriesQuery_ != null) { + subBuilder = timeSeriesQuery_.toBuilder(); + } + timeSeriesQuery_ = + input.readMessage( + com.google.monitoring.dashboard.v1.TimeSeriesQuery.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeSeriesQuery_); + timeSeriesQuery_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + tableTemplate_ = s; + break; + } + case 26: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (minAlignmentPeriod_ != null) { + subBuilder = minAlignmentPeriod_.toBuilder(); + } + minAlignmentPeriod_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minAlignmentPeriod_); + minAlignmentPeriod_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder subBuilder = null; + if (tableDisplayOptions_ != null) { + subBuilder = tableDisplayOptions_.toBuilder(); + } + tableDisplayOptions_ = + input.readMessage( + com.google.monitoring.dashboard.v1.TableDisplayOptions.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tableDisplayOptions_); + tableDisplayOptions_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + 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 + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.class, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder.class); + } + + 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]; + * + * + * @return Whether the timeSeriesQuery field is set. + */ + @java.lang.Override + public boolean hasTimeSeriesQuery() { + return timeSeriesQuery_ != null; + } + /** + * + * + *
+     * 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]; + * + * + * @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. 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]; + * + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesQueryOrBuilder + getTimeSeriesQueryOrBuilder() { + return getTimeSeriesQuery(); + } + + public static final int TABLE_TEMPLATE_FIELD_NUMBER = 2; + 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 `${label_name}`,
+     * which will resolve to the label's value i.e.
+     * "${resource.labels.project_id}."
+     * 
+ * + * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tableTemplate. + */ + @java.lang.Override + public java.lang.String getTableTemplate() { + java.lang.Object ref = tableTemplate_; + 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(); + 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 `${label_name}`,
+     * which will resolve to the label's value i.e.
+     * "${resource.labels.project_id}."
+     * 
+ * + * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tableTemplate. + */ + @java.lang.Override + 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); + tableTemplate_ = 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 minAlignmentPeriod_ != null; + } + /** + * + * + *
+     * 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 getMinAlignmentPeriod(); + } + + 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]; + * + * + * @return Whether the tableDisplayOptions field is set. + */ + @java.lang.Override + public boolean hasTableDisplayOptions() { + return tableDisplayOptions_ != null; + } + /** + * + * + *
+     * 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]; + * + * + * @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_; + } + /** + * + * + *
+     * 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]; + * + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.TableDisplayOptionsOrBuilder + getTableDisplayOptionsOrBuilder() { + return getTableDisplayOptions(); + } + + 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 (timeSeriesQuery_ != null) { + output.writeMessage(1, getTimeSeriesQuery()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableTemplate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tableTemplate_); + } + if (minAlignmentPeriod_ != null) { + output.writeMessage(3, getMinAlignmentPeriod()); + } + if (tableDisplayOptions_ != null) { + output.writeMessage(4, getTableDisplayOptions()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (timeSeriesQuery_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeSeriesQuery()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableTemplate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tableTemplate_); + } + if (minAlignmentPeriod_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinAlignmentPeriod()); + } + if (tableDisplayOptions_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTableDisplayOptions()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet)) { + return super.equals(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 (!getTableTemplate().equals(other.getTableTemplate())) return false; + if (hasMinAlignmentPeriod() != other.hasMinAlignmentPeriod()) return false; + if (hasMinAlignmentPeriod()) { + if (!getMinAlignmentPeriod().equals(other.getMinAlignmentPeriod())) return false; + } + if (hasTableDisplayOptions() != other.hasTableDisplayOptions()) return false; + if (hasTableDisplayOptions()) { + if (!getTableDisplayOptions().equals(other.getTableDisplayOptions())) return false; + } + if (!unknownFields.equals(other.unknownFields)) 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) + TABLE_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTableTemplate().hashCode(); + if (hasMinAlignmentPeriod()) { + hash = (37 * hash) + MIN_ALIGNMENT_PERIOD_FIELD_NUMBER; + hash = (53 * hash) + getMinAlignmentPeriod().hashCode(); + } + if (hasTableDisplayOptions()) { + hash = (37 * hash) + TABLE_DISPLAY_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getTableDisplayOptions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet parseFrom( + 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) + 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 { + return PARSER.parseFrom(data); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.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) + throws java.io.IOException { + 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, 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); + } + + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet 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 with table options.
+     * 
+ * + * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet} + */ + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (timeSeriesQueryBuilder_ == null) { + timeSeriesQuery_ = null; + } else { + timeSeriesQuery_ = null; + timeSeriesQueryBuilder_ = null; + } + tableTemplate_ = ""; + + if (minAlignmentPeriodBuilder_ == null) { + minAlignmentPeriod_ = null; + } else { + minAlignmentPeriod_ = null; + minAlignmentPeriodBuilder_ = null; + } + if (tableDisplayOptionsBuilder_ == null) { + tableDisplayOptions_ = null; + } else { + tableDisplayOptions_ = null; + tableDisplayOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet + getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet build() { + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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 (timeSeriesQueryBuilder_ == null) { + result.timeSeriesQuery_ = timeSeriesQuery_; + } else { + result.timeSeriesQuery_ = timeSeriesQueryBuilder_.build(); + } + result.tableTemplate_ = tableTemplate_; + if (minAlignmentPeriodBuilder_ == null) { + result.minAlignmentPeriod_ = minAlignmentPeriod_; + } else { + result.minAlignmentPeriod_ = minAlignmentPeriodBuilder_.build(); + } + if (tableDisplayOptionsBuilder_ == null) { + result.tableDisplayOptions_ = tableDisplayOptions_; + } else { + result.tableDisplayOptions_ = tableDisplayOptionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) { + 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; + if (other.hasTimeSeriesQuery()) { + mergeTimeSeriesQuery(other.getTimeSeriesQuery()); + } + if (!other.getTableTemplate().isEmpty()) { + tableTemplate_ = other.tableTemplate_; + onChanged(); + } + if (other.hasMinAlignmentPeriod()) { + mergeMinAlignmentPeriod(other.getMinAlignmentPeriod()); + } + if (other.hasTableDisplayOptions()) { + mergeTableDisplayOptions(other.getTableDisplayOptions()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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. 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]; + * + * + * @return Whether the timeSeriesQuery field is set. + */ + public boolean hasTimeSeriesQuery() { + return timeSeriesQueryBuilder_ != null || timeSeriesQuery_ != null; + } + /** + * + * + *
+       * 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]; + * + * + * @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. 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]; + * + */ + public Builder setTimeSeriesQuery(com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { + if (timeSeriesQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeSeriesQuery_ = value; + onChanged(); + } else { + timeSeriesQueryBuilder_.setMessage(value); + } + + 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]; + * + */ + public Builder setTimeSeriesQuery( + com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder builderForValue) { + if (timeSeriesQueryBuilder_ == null) { + timeSeriesQuery_ = builderForValue.build(); + onChanged(); + } else { + timeSeriesQueryBuilder_.setMessage(builderForValue.build()); + } + + 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]; + * + */ + public Builder mergeTimeSeriesQuery( + com.google.monitoring.dashboard.v1.TimeSeriesQuery value) { + if (timeSeriesQueryBuilder_ == null) { + if (timeSeriesQuery_ != null) { + timeSeriesQuery_ = + com.google.monitoring.dashboard.v1.TimeSeriesQuery.newBuilder(timeSeriesQuery_) + .mergeFrom(value) + .buildPartial(); + } else { + timeSeriesQuery_ = value; + } + onChanged(); + } else { + timeSeriesQueryBuilder_.mergeFrom(value); + } + + 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]; + * + */ + public Builder clearTimeSeriesQuery() { + if (timeSeriesQueryBuilder_ == null) { + timeSeriesQuery_ = null; + onChanged(); + } else { + timeSeriesQuery_ = null; + timeSeriesQueryBuilder_ = null; + } + + 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]; + * + */ + public com.google.monitoring.dashboard.v1.TimeSeriesQuery.Builder + getTimeSeriesQueryBuilder() { + + 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]; + * + */ + 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. 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]; + * + */ + 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 tableTemplate_ = ""; + /** + * + * + *
+       * Optional. A template string for naming `TimeSeries` in the resulting data set.
+       * This should be a string with interpolations of the form `${label_name}`,
+       * which will resolve to the label's value i.e.
+       * "${resource.labels.project_id}."
+       * 
+ * + * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + java.lang.String s = bs.toStringUtf8(); + tableTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. A template string for naming `TimeSeries` in the resulting data set.
+       * This should be a string with interpolations of the form `${label_name}`,
+       * which will resolve to the label's value i.e.
+       * "${resource.labels.project_id}."
+       * 
+ * + * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tableTemplate. + */ + 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); + tableTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. A template string for naming `TimeSeries` in the resulting data set.
+       * This should be a string with interpolations of the form `${label_name}`,
+       * which will resolve to the label's value i.e.
+       * "${resource.labels.project_id}."
+       * 
+ * + * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tableTemplate to set. + * @return This builder for chaining. + */ + public Builder setTableTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tableTemplate_ = value; + 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 `${label_name}`,
+       * which will resolve to the label's value i.e.
+       * "${resource.labels.project_id}."
+       * 
+ * + * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTableTemplate() { + + tableTemplate_ = getDefaultInstance().getTableTemplate(); + 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 `${label_name}`,
+       * which will resolve to the label's value i.e.
+       * "${resource.labels.project_id}."
+       * 
+ * + * string table_template = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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(); + } + checkByteStringIsUtf8(value); + + tableTemplate_ = value; + 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 minAlignmentPeriodBuilder_ != null || minAlignmentPeriod_ != null; + } + /** + * + * + *
+       * 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; + onChanged(); + } else { + minAlignmentPeriodBuilder_.setMessage(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 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(); + onChanged(); + } else { + minAlignmentPeriodBuilder_.setMessage(builderForValue.build()); + } + + 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 (minAlignmentPeriod_ != null) { + minAlignmentPeriod_ = + com.google.protobuf.Duration.newBuilder(minAlignmentPeriod_) + .mergeFrom(value) + .buildPartial(); + } else { + minAlignmentPeriod_ = value; + } + onChanged(); + } else { + minAlignmentPeriodBuilder_.mergeFrom(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 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() { + if (minAlignmentPeriodBuilder_ == null) { + minAlignmentPeriod_ = null; + onChanged(); + } else { + minAlignmentPeriod_ = null; + minAlignmentPeriodBuilder_ = null; + } + + 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() { + + 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_; + } + + 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_; + /** + * + * + *
+       * 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]; + * + * + * @return Whether the tableDisplayOptions field is set. + */ + public boolean hasTableDisplayOptions() { + return tableDisplayOptionsBuilder_ != null || tableDisplayOptions_ != null; + } + /** + * + * + *
+       * 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]; + * + * + * @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_; + } 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]; + * + */ + public Builder setTableDisplayOptions( + com.google.monitoring.dashboard.v1.TableDisplayOptions value) { + if (tableDisplayOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tableDisplayOptions_ = value; + onChanged(); + } else { + tableDisplayOptionsBuilder_.setMessage(value); + } + + 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]; + * + */ + public Builder setTableDisplayOptions( + com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder builderForValue) { + if (tableDisplayOptionsBuilder_ == null) { + tableDisplayOptions_ = builderForValue.build(); + onChanged(); + } else { + tableDisplayOptionsBuilder_.setMessage(builderForValue.build()); + } + + 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]; + * + */ + public Builder mergeTableDisplayOptions( + com.google.monitoring.dashboard.v1.TableDisplayOptions value) { + if (tableDisplayOptionsBuilder_ == null) { + if (tableDisplayOptions_ != null) { + tableDisplayOptions_ = + com.google.monitoring.dashboard.v1.TableDisplayOptions.newBuilder( + tableDisplayOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + tableDisplayOptions_ = value; + } + onChanged(); + } else { + tableDisplayOptionsBuilder_.mergeFrom(value); + } + + 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]; + * + */ + public Builder clearTableDisplayOptions() { + if (tableDisplayOptionsBuilder_ == null) { + tableDisplayOptions_ = null; + onChanged(); + } else { + tableDisplayOptions_ = null; + tableDisplayOptionsBuilder_ = null; + } + + 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]; + * + */ + public com.google.monitoring.dashboard.v1.TableDisplayOptions.Builder + getTableDisplayOptionsBuilder() { + + 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]; + * + */ + 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_; + } + } + /** + * + * + *
+       * 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]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + tableDisplayOptions_ = null; + } + return tableDisplayOptionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) + 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() { + 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 { + return new TableDataSet(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int DATA_SETS_FIELD_NUMBER = 1; + private java.util.List dataSets_; + /** + * + * + *
+   * Required. The data displayed in this table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getDataSetsList() { + return dataSets_; + } + /** + * + * + *
+   * Required. The data displayed in this table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder> + getDataSetsOrBuilderList() { + return dataSets_; + } + /** + * + * + *
+   * Required. The data displayed in this table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getDataSetsCount() { + return dataSets_.size(); + } + /** + * + * + *
+   * Required. The data displayed in this table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDataSets(int index) { + return dataSets_.get(index); + } + /** + * + * + *
+   * Required. The data displayed in this table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder + getDataSetsOrBuilder(int index) { + return dataSets_.get(index); + } + + 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)); + } + unknownFields.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)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.monitoring.dashboard.v1.TimeSeriesTable)) { + return super.equals(obj); + } + com.google.monitoring.dashboard.v1.TimeSeriesTable other = + (com.google.monitoring.dashboard.v1.TimeSeriesTable) obj; + + if (!getDataSetsList().equals(other.getDataSetsList())) return false; + if (!unknownFields.equals(other.unknownFields)) 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.monitoring.dashboard.v1.TimeSeriesTable prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A table that displays time series data.
+   * 
+ * + * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesTable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.TimeSeriesTable) + com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.TimeSeriesTable.class, + com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder.class); + } + + // Construct using com.google.monitoring.dashboard.v1.TimeSeriesTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDataSetsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (dataSetsBuilder_ == null) { + dataSets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + dataSetsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable build() { + com.google.monitoring.dashboard.v1.TimeSeriesTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable buildPartial() { + com.google.monitoring.dashboard.v1.TimeSeriesTable result = + new com.google.monitoring.dashboard.v1.TimeSeriesTable(this); + int from_bitField0_ = bitField0_; + if (dataSetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataSets_ = java.util.Collections.unmodifiableList(dataSets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataSets_ = dataSets_; + } else { + result.dataSets_ = dataSetsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.monitoring.dashboard.v1.TimeSeriesTable) { + return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesTable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesTable other) { + if (other == com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance()) + return this; + if (dataSetsBuilder_ == null) { + if (!other.dataSets_.isEmpty()) { + if (dataSets_.isEmpty()) { + dataSets_ = other.dataSets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataSetsIsMutable(); + dataSets_.addAll(other.dataSets_); + } + onChanged(); + } + } else { + if (!other.dataSets_.isEmpty()) { + if (dataSetsBuilder_.isEmpty()) { + dataSetsBuilder_.dispose(); + dataSetsBuilder_ = null; + dataSets_ = other.dataSets_; + bitField0_ = (bitField0_ & ~0x00000001); + dataSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataSetsFieldBuilder() + : null; + } else { + dataSetsBuilder_.addAllMessages(other.dataSets_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.monitoring.dashboard.v1.TimeSeriesTable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.monitoring.dashboard.v1.TimeSeriesTable) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + dataSets_ = java.util.Collections.emptyList(); + + private void ensureDataSetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataSets_ = + new java.util.ArrayList< + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet>(dataSets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder> + dataSetsBuilder_; + + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getDataSetsList() { + if (dataSetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataSets_); + } else { + return dataSetsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getDataSetsCount() { + if (dataSetsBuilder_ == null) { + return dataSets_.size(); + } else { + return dataSetsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDataSets(int index) { + if (dataSetsBuilder_ == null) { + return dataSets_.get(index); + } else { + return dataSetsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataSets( + int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet value) { + if (dataSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataSetsIsMutable(); + dataSets_.set(index, value); + onChanged(); + } else { + dataSetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataSets( + int index, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder builderForValue) { + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + dataSets_.set(index, builderForValue.build()); + onChanged(); + } else { + dataSetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addDataSets( + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet value) { + if (dataSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataSetsIsMutable(); + dataSets_.add(value); + onChanged(); + } else { + dataSetsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addDataSets( + int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet value) { + if (dataSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataSetsIsMutable(); + dataSets_.add(index, value); + onChanged(); + } else { + dataSetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addDataSets( + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder builderForValue) { + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + dataSets_.add(builderForValue.build()); + onChanged(); + } else { + dataSetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addDataSets( + int index, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder builderForValue) { + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + dataSets_.add(index, builderForValue.build()); + onChanged(); + } else { + dataSetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllDataSets( + java.lang.Iterable< + ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet> + values) { + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataSets_); + onChanged(); + } else { + dataSetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataSets() { + if (dataSetsBuilder_ == null) { + dataSets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataSetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeDataSets(int index) { + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + dataSets_.remove(index); + onChanged(); + } else { + dataSetsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder + getDataSetsBuilder(int index) { + return getDataSetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder + getDataSetsOrBuilder(int index) { + if (dataSetsBuilder_ == null) { + return dataSets_.get(index); + } else { + return dataSetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder> + getDataSetsOrBuilderList() { + if (dataSetsBuilder_ != null) { + return dataSetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataSets_); + } + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder + addDataSetsBuilder() { + return getDataSetsFieldBuilder() + .addBuilder( + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder + addDataSetsBuilder(int index) { + return getDataSetsFieldBuilder() + .addBuilder( + index, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getDataSetsBuilderList() { + return getDataSetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder> + getDataSetsFieldBuilder() { + if (dataSetsBuilder_ == null) { + dataSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder>( + dataSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dataSets_ = null; + } + return dataSetsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.TimeSeriesTable) + } + + // @@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(); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable getDefaultInstance() { + 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 { + return new TimeSeriesTable(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java new file mode 100644 index 00000000..3f48350b --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2020 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 + +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); +} diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java index 2162d18d..59a8fb02 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Widget.java @@ -156,6 +156,59 @@ private Widget( contentCase_ = 7; break; } + case 66: + { + com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder subBuilder = null; + if (contentCase_ == 8) { + subBuilder = + ((com.google.monitoring.dashboard.v1.TimeSeriesTable) content_).toBuilder(); + } + content_ = + input.readMessage( + com.google.monitoring.dashboard.v1.TimeSeriesTable.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesTable) content_); + content_ = subBuilder.buildPartial(); + } + contentCase_ = 8; + break; + } + case 74: + { + com.google.monitoring.dashboard.v1.CollapsibleGroup.Builder subBuilder = null; + if (contentCase_ == 9) { + subBuilder = + ((com.google.monitoring.dashboard.v1.CollapsibleGroup) content_).toBuilder(); + } + content_ = + input.readMessage( + com.google.monitoring.dashboard.v1.CollapsibleGroup.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.monitoring.dashboard.v1.CollapsibleGroup) content_); + content_ = subBuilder.buildPartial(); + } + contentCase_ = 9; + break; + } + case 82: + { + com.google.monitoring.dashboard.v1.LogsPanel.Builder subBuilder = null; + if (contentCase_ == 10) { + subBuilder = ((com.google.monitoring.dashboard.v1.LogsPanel) content_).toBuilder(); + } + content_ = + input.readMessage( + com.google.monitoring.dashboard.v1.LogsPanel.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.monitoring.dashboard.v1.LogsPanel) content_); + content_ = subBuilder.buildPartial(); + } + contentCase_ = 10; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -202,6 +255,9 @@ public enum ContentCase 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; @@ -230,6 +286,12 @@ public static ContentCase forNumber(int value) { 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: @@ -550,6 +612,163 @@ public com.google.monitoring.dashboard.v1.AlertChartOrBuilder getAlertChartOrBui 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 @@ -582,6 +801,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 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_); + } unknownFields.writeTo(output); } @@ -619,6 +847,21 @@ public int getSerializedSize() { 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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -653,6 +896,15 @@ public boolean equals(final java.lang.Object obj) { 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: } @@ -690,6 +942,18 @@ public int hashCode() { 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: } @@ -906,6 +1170,27 @@ public com.google.monitoring.dashboard.v1.Widget buildPartial() { result.content_ = alertChartBuilder_.build(); } } + if (contentCase_ == 8) { + if (timeSeriesTableBuilder_ == null) { + result.content_ = content_; + } else { + result.content_ = timeSeriesTableBuilder_.build(); + } + } + if (contentCase_ == 9) { + if (collapsibleGroupBuilder_ == null) { + result.content_ = content_; + } else { + result.content_ = collapsibleGroupBuilder_.build(); + } + } + if (contentCase_ == 10) { + if (logsPanelBuilder_ == null) { + result.content_ = content_; + } else { + result.content_ = logsPanelBuilder_.build(); + } + } result.contentCase_ = contentCase_; onBuilt(); return result; @@ -986,6 +1271,21 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.Widget other) { 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; @@ -2178,6 +2478,648 @@ public com.google.monitoring.dashboard.v1.AlertChartOrBuilder getAlertChartOrBui 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); + } + 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); + } + 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); + } + 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); diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java index 3986c193..3a79706c 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetOrBuilder.java @@ -223,5 +223,113 @@ 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.
+   * 
+ * + * .google.monitoring.dashboard.v1.TimeSeriesTable time_series_table = 8; + */ + 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.
+   * 
+ * + * .google.monitoring.dashboard.v1.CollapsibleGroup collapsible_group = 9; + */ + 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.
+   * 
+ * + * .google.monitoring.dashboard.v1.LogsPanel logs_panel = 10; + */ + com.google.monitoring.dashboard.v1.LogsPanelOrBuilder getLogsPanelOrBuilder(); + public com.google.monitoring.dashboard.v1.Widget.ContentCase getContentCase(); } diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java index 5a76498f..463ac92d 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/WidgetProto.java @@ -44,25 +44,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\022\036google.monitoring.dashboard.v1\032\037g" + "oogle/api/field_behavior.proto\032/google/m" + "onitoring/dashboard/v1/alertchart.proto\032" - + ".google/monitoring/dashboard/v1/scorecar" - + "d.proto\032)google/monitoring/dashboard/v1/" - + "text.proto\032,google/monitoring/dashboard/" - + "v1/xychart.proto\032\033google/protobuf/empty." - + "proto\"\306\002\n\006Widget\022\022\n\005title\030\001 \001(\tB\003\340A\001\022;\n\010" - + "xy_chart\030\002 \001(\0132\'.google.monitoring.dashb" - + "oard.v1.XyChartH\000\022>\n\tscorecard\030\003 \001(\0132).g" - + "oogle.monitoring.dashboard.v1.ScorecardH" - + "\000\0224\n\004text\030\004 \001(\0132$.google.monitoring.dash" - + "board.v1.TextH\000\022\'\n\005blank\030\005 \001(\0132\026.google." - + "protobuf.EmptyH\000\022A\n\013alert_chart\030\007 \001(\0132*." - + "google.monitoring.dashboard.v1.AlertChar" - + "tH\000B\t\n\007contentB\365\001\n\"com.google.monitoring" - + ".dashboard.v1B\013WidgetProtoP\001ZGgoogle.gol" - + "ang.org/genproto/googleapis/monitoring/d" - + "ashboard/v1;dashboard\252\002$Google.Cloud.Mon" - + "itoring.Dashboard.V1\312\002$Google\\Cloud\\Moni" - + "toring\\Dashboard\\V1\352\002(Google::Cloud::Mon" - + "itoring::Dashboard::V1b\006proto3" + + "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\365\001\n\"com.google" + + ".monitoring.dashboard.v1B\013WidgetProtoP\001Z" + + "Ggoogle.golang.org/genproto/googleapis/m" + + "onitoring/dashboard/v1;dashboard\252\002$Googl" + + "e.Cloud.Monitoring.Dashboard.V1\312\002$Google" + + "\\Cloud\\Monitoring\\Dashboard\\V1\352\002(Google:" + + ":Cloud::Monitoring::Dashboard::V1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -70,7 +80,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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(), @@ -81,7 +94,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_monitoring_dashboard_v1_Widget_descriptor, new java.lang.String[] { - "Title", "XyChart", "Scorecard", "Text", "Blank", "AlertChart", "Content", + "Title", + "XyChart", + "Scorecard", + "Text", + "Blank", + "AlertChart", + "TimeSeriesTable", + "CollapsibleGroup", + "LogsPanel", + "Content", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -90,7 +112,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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(); diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java index 5dbb9a22..1eebcacf 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java @@ -158,6 +158,22 @@ private XyChart( chartOptions_ = subBuilder.buildPartial(); } + break; + } + case 74: + { + com.google.monitoring.dashboard.v1.XyChart.Axis.Builder subBuilder = null; + if (y2Axis_ != null) { + subBuilder = y2Axis_.toBuilder(); + } + y2Axis_ = + input.readMessage( + com.google.monitoring.dashboard.v1.XyChart.Axis.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(y2Axis_); + y2Axis_ = subBuilder.buildPartial(); + } + break; } default: @@ -355,6 +371,35 @@ public interface DataSetOrBuilder * */ 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]; + * + * + * @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]; + * + * + * @return The targetAxis. + */ + com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis getTargetAxis(); } /** * @@ -378,6 +423,7 @@ private DataSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { private DataSet() { plotType_ = 0; legendTemplate_ = ""; + targetAxis_ = 0; } @java.lang.Override @@ -453,6 +499,13 @@ private DataSet( minAlignmentPeriod_ = subBuilder.buildPartial(); } + break; + } + case 40: + { + int rawValue = input.readEnum(); + + targetAxis_ = rawValue; break; } default: @@ -710,6 +763,165 @@ private PlotType(int value) { // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.XyChart.DataSet.PlotType) } + /** + * + * + *
+     * An axis identifier.
+     * 
+ * + * Protobuf enum {@code google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis} + */ + public enum TargetAxis implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * The target axis was not specified. Defaults to Y1.
+       * 
+ * + * TARGET_AXIS_UNSPECIFIED = 0; + */ + TARGET_AXIS_UNSPECIFIED(0), + /** + * + * + *
+       * The y_axis (the right axis of chart).
+       * 
+ * + * Y1 = 1; + */ + Y1(1), + /** + * + * + *
+       * The y2_axis (the left axis of chart).
+       * 
+ * + * Y2 = 2; + */ + Y2(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * The target axis was not specified. Defaults to Y1.
+       * 
+ * + * TARGET_AXIS_UNSPECIFIED = 0; + */ + public static final int TARGET_AXIS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * The y_axis (the right axis of chart).
+       * 
+ * + * Y1 = 1; + */ + public static final int Y1_VALUE = 1; + /** + * + * + *
+       * The y2_axis (the left axis of chart).
+       * 
+ * + * Y2 = 2; + */ + public static final int Y2_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 TargetAxis 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 TargetAxis forNumber(int value) { + switch (value) { + 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() { + return internalValueMap; + } + + 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() { + return getDescriptor(); + } + + 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) { + 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 TargetAxis(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis) + } + public static final int TIME_SERIES_QUERY_FIELD_NUMBER = 1; private com.google.monitoring.dashboard.v1.TimeSeriesQuery timeSeriesQuery_; /** @@ -925,6 +1137,48 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { return getMinAlignmentPeriod(); } + public static final int TARGET_AXIS_FIELD_NUMBER = 5; + private int 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]; + * + * + * @return The enum numeric value on the wire for targetAxis. + */ + @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]; + * + * + * @return The targetAxis. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis getTargetAxis() { + @SuppressWarnings("deprecation") + com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis result = + com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.valueOf(targetAxis_); + return result == null + ? com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -953,6 +1207,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (minAlignmentPeriod_ != null) { output.writeMessage(4, getMinAlignmentPeriod()); } + if (targetAxis_ + != com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.TARGET_AXIS_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, targetAxis_); + } unknownFields.writeTo(output); } @@ -977,6 +1236,11 @@ public int getSerializedSize() { 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_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1003,6 +1267,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMinAlignmentPeriod()) { if (!getMinAlignmentPeriod().equals(other.getMinAlignmentPeriod())) return false; } + if (targetAxis_ != other.targetAxis_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1026,6 +1291,8 @@ public int hashCode() { hash = (37 * hash) + MIN_ALIGNMENT_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getMinAlignmentPeriod().hashCode(); } + hash = (37 * hash) + TARGET_AXIS_FIELD_NUMBER; + hash = (53 * hash) + targetAxis_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1189,6 +1456,8 @@ public Builder clear() { minAlignmentPeriod_ = null; minAlignmentPeriodBuilder_ = null; } + targetAxis_ = 0; + return this; } @@ -1228,6 +1497,7 @@ public com.google.monitoring.dashboard.v1.XyChart.DataSet buildPartial() { } else { result.minAlignmentPeriod_ = minAlignmentPeriodBuilder_.build(); } + result.targetAxis_ = targetAxis_; onBuilt(); return result; } @@ -1293,6 +1563,9 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.XyChart.DataSet othe if (other.hasMinAlignmentPeriod()) { mergeMinAlignmentPeriod(other.getMinAlignmentPeriod()); } + if (other.targetAxis_ != 0) { + setTargetAxisValue(other.getTargetAxisValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1988,6 +2261,110 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { return minAlignmentPeriodBuilder_; } + 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]; + * + * + * @return The enum numeric value on the wire for targetAxis. + */ + @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]; + * + * + * @param value The enum numeric value on the wire for targetAxis to set. + * @return This builder for chaining. + */ + public Builder setTargetAxisValue(int value) { + + targetAxis_ = value; + onChanged(); + 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]; + * + * + * @return The targetAxis. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis getTargetAxis() { + @SuppressWarnings("deprecation") + com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis result = + com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis.valueOf(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]; + * + * + * @param value The targetAxis to set. + * @return This builder for chaining. + */ + public Builder setTargetAxis( + com.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis value) { + if (value == null) { + throw new NullPointerException(); + } + + targetAxis_ = value.getNumber(); + onChanged(); + 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]; + * + * + * @return This builder for chaining. + */ + public Builder clearTargetAxis() { + + targetAxis_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3337,6 +3714,54 @@ public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getYAxisOrBuilde return getYAxis(); } + 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 + public boolean hasY2Axis() { + return y2Axis_ != null; + } + /** + * + * + *
+   * 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_; + } + /** + * + * + *
+   * 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 getY2Axis(); + } + public static final int CHART_OPTIONS_FIELD_NUMBER = 8; private com.google.monitoring.dashboard.v1.ChartOptions chartOptions_; /** @@ -3417,6 +3842,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (chartOptions_ != null) { output.writeMessage(8, getChartOptions()); } + if (y2Axis_ != null) { + output.writeMessage(9, getY2Axis()); + } unknownFields.writeTo(output); } @@ -3444,6 +3872,9 @@ public int getSerializedSize() { if (chartOptions_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getChartOptions()); } + if (y2Axis_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getY2Axis()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3474,6 +3905,10 @@ public boolean equals(final java.lang.Object obj) { if (hasYAxis()) { if (!getYAxis().equals(other.getYAxis())) return false; } + if (hasY2Axis() != other.hasY2Axis()) return false; + if (hasY2Axis()) { + if (!getY2Axis().equals(other.getY2Axis())) return false; + } if (hasChartOptions() != other.hasChartOptions()) return false; if (hasChartOptions()) { if (!getChartOptions().equals(other.getChartOptions())) return false; @@ -3509,6 +3944,10 @@ public int hashCode() { hash = (37 * hash) + Y_AXIS_FIELD_NUMBER; hash = (53 * hash) + getYAxis().hashCode(); } + if (hasY2Axis()) { + hash = (37 * hash) + Y2_AXIS_FIELD_NUMBER; + hash = (53 * hash) + getY2Axis().hashCode(); + } if (hasChartOptions()) { hash = (37 * hash) + CHART_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getChartOptions().hashCode(); @@ -3691,6 +4130,12 @@ public Builder clear() { yAxis_ = null; yAxisBuilder_ = null; } + if (y2AxisBuilder_ == null) { + y2Axis_ = null; + } else { + y2Axis_ = null; + y2AxisBuilder_ = null; + } if (chartOptionsBuilder_ == null) { chartOptions_ = null; } else { @@ -3758,6 +4203,11 @@ public com.google.monitoring.dashboard.v1.XyChart buildPartial() { } else { result.yAxis_ = yAxisBuilder_.build(); } + if (y2AxisBuilder_ == null) { + result.y2Axis_ = y2Axis_; + } else { + result.y2Axis_ = y2AxisBuilder_.build(); + } if (chartOptionsBuilder_ == null) { result.chartOptions_ = chartOptions_; } else { @@ -3875,6 +4325,9 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.XyChart other) { if (other.hasYAxis()) { mergeYAxis(other.getYAxis()); } + if (other.hasY2Axis()) { + mergeY2Axis(other.getY2Axis()); + } if (other.hasChartOptions()) { mergeChartOptions(other.getChartOptions()); } @@ -5246,6 +5699,192 @@ public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getYAxisOrBuilde return yAxisBuilder_; } + 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_; + /** + * + * + *
+     * 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 y2AxisBuilder_ != null || y2Axis_ != null; + } + /** + * + * + *
+     * 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_; + } else { + return y2AxisBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The properties applied to the Y2 axis.
+     * 
+ * + * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; + */ + public Builder setY2Axis(com.google.monitoring.dashboard.v1.XyChart.Axis value) { + if (y2AxisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + y2Axis_ = value; + onChanged(); + } else { + y2AxisBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The properties applied to the Y2 axis.
+     * 
+ * + * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; + */ + public Builder setY2Axis( + com.google.monitoring.dashboard.v1.XyChart.Axis.Builder builderForValue) { + if (y2AxisBuilder_ == null) { + y2Axis_ = builderForValue.build(); + onChanged(); + } else { + y2AxisBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * 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 (y2Axis_ != null) { + y2Axis_ = + com.google.monitoring.dashboard.v1.XyChart.Axis.newBuilder(y2Axis_) + .mergeFrom(value) + .buildPartial(); + } else { + y2Axis_ = value; + } + onChanged(); + } else { + y2AxisBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The properties applied to the Y2 axis.
+     * 
+ * + * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; + */ + public Builder clearY2Axis() { + if (y2AxisBuilder_ == null) { + y2Axis_ = null; + onChanged(); + } else { + y2Axis_ = null; + y2AxisBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The properties applied to the Y2 axis.
+     * 
+ * + * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; + */ + public com.google.monitoring.dashboard.v1.XyChart.Axis.Builder getY2AxisBuilder() { + + onChanged(); + return getY2AxisFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The properties applied to the Y2 axis.
+     * 
+ * + * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; + */ + public com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getY2AxisOrBuilder() { + if (y2AxisBuilder_ != null) { + return y2AxisBuilder_.getMessageOrBuilder(); + } else { + return y2Axis_ == null + ? com.google.monitoring.dashboard.v1.XyChart.Axis.getDefaultInstance() + : y2Axis_; + } + } + /** + * + * + *
+     * 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> + 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()); + y2Axis_ = null; + } + return y2AxisBuilder_; + } + private com.google.monitoring.dashboard.v1.ChartOptions chartOptions_; private com.google.protobuf.SingleFieldBuilderV3< com.google.monitoring.dashboard.v1.ChartOptions, diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java index 3c75d6bb..e1191265 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java @@ -254,6 +254,41 @@ public interface XyChartOrBuilder */ 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.
+   * 
+ * + * .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9; + */ + com.google.monitoring.dashboard.v1.XyChart.AxisOrBuilder getY2AxisOrBuilder(); + /** * * diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java index 2271ebb9..266738aa 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java @@ -56,7 +56,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".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\"\375\006\n\007XyChar" + + "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" @@ -64,32 +64,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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\022C\n\r" - + "chart_options\030\010 \001(\0132,.google.monitoring." - + "dashboard.v1.ChartOptions\032\337\002\n\007DataSet\022O\n" - + "\021time_series_query\030\001 \001(\0132/.google.monito" - + "ring.dashboard.v1.TimeSeriesQueryB\003\340A\002\022K" - + "\n\tplot_type\030\002 \001(\01628.google.monitoring.da" - + "shboard.v1.XyChart.DataSet.PlotType\022\027\n\017l" - + "egend_template\030\003 \001(\t\022<\n\024min_alignment_pe" - + "riod\030\004 \001(\0132\031.google.protobuf.DurationB\003\340" - + "A\001\"_\n\010PlotType\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\007HEATMAP\020\004\032\217\001\n\004Axis\022\r\n\005label\030\001 " - + "\001(\t\022A\n\005scale\030\002 \001(\01622.google.monitoring.d" - + "ashboard.v1.XyChart.Axis.Scale\"5\n\005Scale\022" - + "\025\n\021SCALE_UNSPECIFIED\020\000\022\n\n\006LINEAR\020\001\022\t\n\005LO" - + "G10\020\002\"\216\001\n\014ChartOptions\022?\n\004mode\030\001 \001(\01621.g" - + "oogle.monitoring.dashboard.v1.ChartOptio" - + "ns.Mode\"=\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\t\n" - + "\005COLOR\020\001\022\t\n\005X_RAY\020\002\022\t\n\005STATS\020\003B\366\001\n\"com.g" - + "oogle.monitoring.dashboard.v1B\014XyChartPr" - + "otoP\001ZGgoogle.golang.org/genproto/google" - + "apis/monitoring/dashboard/v1;dashboard\252\002" - + "$Google.Cloud.Monitoring.Dashboard.V1\312\002$" - + "Google\\Cloud\\Monitoring\\Dashboard\\V1\352\002(G" - + "oogle::Cloud::Monitoring::Dashboard::V1b" - + "\006proto3" + + "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\366" + + "\001\n\"com.google.monitoring.dashboard.v1B\014X" + + "yChartProtoP\001ZGgoogle.golang.org/genprot" + + "o/googleapis/monitoring/dashboard/v1;das" + + "hboard\252\002$Google.Cloud.Monitoring.Dashboa" + + "rd.V1\312\002$Google\\Cloud\\Monitoring\\Dashboar" + + "d\\V1\352\002(Google::Cloud::Monitoring::Dashbo" + + "ard::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -105,7 +110,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_monitoring_dashboard_v1_XyChart_descriptor, new java.lang.String[] { - "DataSets", "TimeshiftDuration", "Thresholds", "XAxis", "YAxis", "ChartOptions", + "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); @@ -113,7 +124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_monitoring_dashboard_v1_XyChart_DataSet_descriptor, new java.lang.String[] { - "TimeSeriesQuery", "PlotType", "LegendTemplate", "MinAlignmentPeriod", + "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); diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto index a795e063..2a92423b 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 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/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/collapsible_group.proto b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/collapsible_group.proto new file mode 100644 index 00000000..513560eb --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/collapsible_group.proto @@ -0,0 +1,32 @@ +// Copyright 2022 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 = "google.golang.org/genproto/googleapis/monitoring/dashboard/v1;dashboard"; +option java_multiple_files = true; +option java_outer_classname = "CollapsibleGroupProto"; +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. All widgets that are within +// the area spanned by the grouping widget are considered member widgets. +message CollapsibleGroup { + // The collapsed state of the widget on first page load. + bool collapsed = 1; +} diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/common.proto b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/common.proto index 2dddf5cd..6b8e6b3d 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/common.proto +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 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/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard.proto b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard.proto index 54c8a013..66f4c530 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard.proto +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ package google.monitoring.dashboard.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/monitoring/dashboard/v1/dashboard_filter.proto"; import "google/monitoring/dashboard/v1/layouts.proto"; option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1"; @@ -69,4 +70,10 @@ message Dashboard { // arranged vertically. ColumnLayout column_layout = 9; } + + // Filters to reduce the amount of data charted based on the filter criteria. + repeated DashboardFilter dashboard_filters = 11; + + // Labels applied to the dashboard + map labels = 12; } diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard_filter.proto b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard_filter.proto new file mode 100644 index 00000000..fba5cf63 --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard_filter.proto @@ -0,0 +1,68 @@ +// Copyright 2022 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"; + +option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1"; +option go_package = "google.golang.org/genproto/googleapis/monitoring/dashboard/v1;dashboard"; +option java_multiple_files = true; +option java_outer_classname = "DashboardFilterProto"; +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 filter to reduce the amount of data charted in relevant widgets. +message DashboardFilter { + // The type for the dashboard filter + enum FilterType { + // Filter type is unspecified. This is not valid in a well-formed request. + FILTER_TYPE_UNSPECIFIED = 0; + + // Filter on a resource label value + RESOURCE_LABEL = 1; + + // Filter on a metrics label value + METRIC_LABEL = 2; + + // Filter on a user metadata label value + USER_METADATA_LABEL = 3; + + // Filter on a system metadata label value + SYSTEM_METADATA_LABEL = 4; + + // Filter on a group id + GROUP = 5; + } + + // Required. The key for the label + string label_key = 1 [(google.api.field_behavior) = REQUIRED]; + + // 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 + // widgets in the dashboard. + string template_variable = 3; + + // The default value used in the filter comparison + oneof default_value { + // A variable-length string value. + string string_value = 4; + } + + // The specified filter type + FilterType filter_type = 5; +} diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto index 21bedfb0..4e99c4f7 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 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,11 +17,11 @@ syntax = "proto3"; package google.monitoring.dashboard.v1; import "google/api/annotations.proto"; +import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/monitoring/dashboard/v1/dashboard.proto"; import "google/protobuf/empty.proto"; -import "google/api/client.proto"; option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1"; option go_package = "google.golang.org/genproto/googleapis/monitoring/dashboard/v1;dashboard"; diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/drilldowns.proto b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/drilldowns.proto index 24541d38..b0a11e0a 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/drilldowns.proto +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/drilldowns.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 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/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/layouts.proto b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/layouts.proto index 81d6a5bd..94be37aa 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/layouts.proto +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/layouts.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 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/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/logs_panel.proto b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/logs_panel.proto new file mode 100644 index 00000000..a5fb66c7 --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/logs_panel.proto @@ -0,0 +1,38 @@ +// Copyright 2022 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 = "google.golang.org/genproto/googleapis/monitoring/dashboard/v1;dashboard"; +option java_multiple_files = true; +option java_outer_classname = "LogsPanelProto"; +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 stream of log. +message LogsPanel { + // A filter that chooses which log entries to return. See [Advanced Logs + // Queries](https://cloud.google.com/logging/docs/view/advanced-queries). + // Only log entries that match the filter are returned. An empty filter + // matches all log entries. + string filter = 1; + + // 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; +} diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto index dc2bb93d..c5ae8f71 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -148,6 +148,18 @@ message Threshold { BELOW = 2; } + // An axis identifier. + enum TargetAxis { + // The target axis was not specified. Defaults to Y1. + TARGET_AXIS_UNSPECIFIED = 0; + + // The y_axis (the right axis of chart). + Y1 = 1; + + // The y2_axis (the left axis of chart). + Y2 = 2; + } + // A label for the threshold. string label = 1; @@ -161,6 +173,10 @@ message Threshold { // The direction for the current threshold. Direction is not allowed in a // XyChart. Direction direction = 4; + + // The target axis to use for plotting the threshold. Target axis is not + // allowed in a Scorecard. + TargetAxis target_axis = 5; } // Defines the possible types of spark chart supported by the `Scorecard`. diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/scorecard.proto b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/scorecard.proto index ab2adf11..2cb2e4b2 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/scorecard.proto +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/scorecard.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 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/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/service.proto b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/service.proto index 6d5d9a35..f7e5e44a 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/service.proto +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/service.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 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/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto new file mode 100644 index 00000000..8165c3a9 --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto @@ -0,0 +1,59 @@ +// Copyright 2022 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/monitoring/dashboard/v1/table_display_options.proto"; +import "google/protobuf/duration.proto"; + +option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1"; +option go_package = "google.golang.org/genproto/googleapis/monitoring/dashboard/v1;dashboard"; +option java_multiple_files = true; +option java_outer_classname = "TableProto"; +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 table that displays time series data. +message TimeSeriesTable { + // Groups a time series query definition with table options. + message TableDataSet { + // Required. Fields for querying time series data from the + // Stackdriver metrics API. + TimeSeriesQuery time_series_query = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A template string for naming `TimeSeries` in the resulting data set. + // This should be a string with interpolations of the form `${label_name}`, + // which will resolve to the label's value i.e. + // "${resource.labels.project_id}." + string table_template = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The lower bound on data point frequency for this data set, implemented by + // specifying the minimum alignment period to use in a time series query + // For example, if the data is published once every 10 minutes, the + // `min_alignment_period` should be at least 10 minutes. It would not + // make sense to fetch and align data at one minute intervals. + google.protobuf.Duration min_alignment_period = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Table display options for configuring how the table is rendered. + TableDisplayOptions table_display_options = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The data displayed in this table. + repeated TableDataSet data_sets = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto new file mode 100644 index 00000000..b94b20b1 --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto @@ -0,0 +1,34 @@ +// Copyright 2022 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"; + +option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1"; +option go_package = "google.golang.org/genproto/googleapis/monitoring/dashboard/v1;dashboard"; +option java_multiple_files = true; +option java_outer_classname = "TableDisplayOptionsProto"; +option java_package = "com.google.monitoring.dashboard.v1"; +option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1"; +option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1"; + +// Table display options that can be reused. +message TableDisplayOptions { + // Optional. Columns to display in the table. Leave empty to display all available + // columns. Note: This field is for future features and is not currently used. + repeated string shown_columns = 1 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/text.proto b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/text.proto index 2b1ddd3b..ed75a19f 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/text.proto +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/text.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 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/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/widget.proto b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/widget.proto index 8cf3c3f0..bb50eec8 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/widget.proto +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/widget.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,7 +18,10 @@ 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/logs_panel.proto"; import "google/monitoring/dashboard/v1/scorecard.proto"; +import "google/monitoring/dashboard/v1/table.proto"; import "google/monitoring/dashboard/v1/text.proto"; import "google/monitoring/dashboard/v1/xychart.proto"; import "google/protobuf/empty.proto"; @@ -53,5 +56,15 @@ message Widget { // A chart of alert policy data. AlertChart alert_chart = 7; + + // A widget that displays time series data in a tabular format. + TimeSeriesTable time_series_table = 8; + + // A widget that groups the other widgets. All widgets that are within + // the area spanned by the grouping widget are considered member widgets. + CollapsibleGroup collapsible_group = 9; + + // A widget that shows a stream of logs. + LogsPanel logs_panel = 10; } } diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/xychart.proto b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/xychart.proto index c29542c2..11a26a49 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/xychart.proto +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/xychart.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -59,6 +59,18 @@ message XyChart { HEATMAP = 4; } + // An axis identifier. + enum TargetAxis { + // The target axis was not specified. Defaults to Y1. + TARGET_AXIS_UNSPECIFIED = 0; + + // The y_axis (the right axis of chart). + Y1 = 1; + + // The y2_axis (the left axis of chart). + Y2 = 2; + } + // Required. Fields for querying time series data from the // Stackdriver metrics API. TimeSeriesQuery time_series_query = 1 [(google.api.field_behavior) = REQUIRED]; @@ -77,6 +89,9 @@ message XyChart { // `min_alignment_period` should be at least 10 minutes. It would not // make sense to fetch and align data at one minute intervals. google.protobuf.Duration min_alignment_period = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The target axis to use for plotting the metric. + TargetAxis target_axis = 5 [(google.api.field_behavior) = OPTIONAL]; } // A chart axis. @@ -119,6 +134,9 @@ message XyChart { // The properties applied to the Y axis. Axis y_axis = 7; + // The properties applied to the Y2 axis. + Axis y2_axis = 9; + // Display options for the chart. ChartOptions chart_options = 8; } From f619add92592198e63f61bec06c9a8bac1ea4da5 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 14 Apr 2022 01:52:25 +0000 Subject: [PATCH 6/8] chore: Enable Size-Label bot in all googleapis Java repositories (#1381) (#585) * chore: Enable Size-Label bot in all googleapis Java repositories Auto-label T-shirt size indicator should be assigned on every new pull request in all googleapis Java repositories * Remove product Remove product since it is by default true * add license header Co-authored-by: Neenu Shaji Source-Link: https://github.com/googleapis/synthtool/commit/54b2c6ac75370a4a3582431b4a3080f777ba1f11 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 --- .github/.OwlBot.lock.yaml | 3 ++- .github/auto-label.yaml | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/auto-label.yaml diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 426cf83e..f60d7749 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:b0b1c1c89570e229b1026372a2b8989ba31495007055b8d30178b7648503eefa + digest: sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 +# created: 2022-04-06T16:30:03.627422514Z diff --git a/.github/auto-label.yaml b/.github/auto-label.yaml new file mode 100644 index 00000000..4caef688 --- /dev/null +++ b/.github/auto-label.yaml @@ -0,0 +1,15 @@ +# Copyright 2021 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. +requestsize: + enabled: true From 41ad981b8f877f2aaad0fc9e0fd05edbac548aa4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Apr 2022 21:32:20 +0200 Subject: [PATCH 7/8] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 (#588) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.9.0` -> `2.10.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/compatibility-slim/2.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/confidence-slim/2.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.10.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​2100-httpsgithubcomgoogleapisjava-shared-dependenciescomparev290v2100-2022-04-15) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.9.0...v2.10.0) ##### Dependencies - google-cloud-core 2.6.0 ([#​668](https://togithub.com/googleapis/java-shared-dependencies/issues/668)) ([22f4d18](https://togithub.com/googleapis/java-shared-dependencies/commit/22f4d1809cbb9848174b3569ab527e4bef00d443)) - reverting protobuf to 3.19.4 ([#​657](https://togithub.com/googleapis/java-shared-dependencies/issues/657)) ([8501e6d](https://togithub.com/googleapis/java-shared-dependencies/commit/8501e6d842c10d2370bbd5d5246070134336bddd)) - update dependency com.fasterxml.jackson:jackson-bom to v2.13.2.20220328 ([#​646](https://togithub.com/googleapis/java-shared-dependencies/issues/646)) ([7bfd6d7](https://togithub.com/googleapis/java-shared-dependencies/commit/7bfd6d7073859d1955b91b368c6713a72ffa14b6)) - update dependency com.google.api-client:google-api-client-bom to v1.34.0 ([#​662](https://togithub.com/googleapis/java-shared-dependencies/issues/662)) ([1b8e378](https://togithub.com/googleapis/java-shared-dependencies/commit/1b8e378fe0ccf2a28c759868caaf5ba593a95728)) - update dependency com.google.errorprone:error_prone_annotations to v2.12.1 ([#​652](https://togithub.com/googleapis/java-shared-dependencies/issues/652)) ([1cc80ee](https://togithub.com/googleapis/java-shared-dependencies/commit/1cc80ee984ebcad9bc2a95e2f28c0a49fe924b37)) - update dependency com.google.errorprone:error_prone_annotations to v2.13.0 ([#​669](https://togithub.com/googleapis/java-shared-dependencies/issues/669)) ([61b7834](https://togithub.com/googleapis/java-shared-dependencies/commit/61b78341b34a251722be4805a6bdd895cd64836c)) - update dependency com.google.http-client:google-http-client-bom to v1.41.6 ([#​654](https://togithub.com/googleapis/java-shared-dependencies/issues/654)) ([140ef40](https://togithub.com/googleapis/java-shared-dependencies/commit/140ef405bc17ed83f5ce177df59affca14fbe49c)) - update dependency com.google.http-client:google-http-client-bom to v1.41.7 ([#​658](https://togithub.com/googleapis/java-shared-dependencies/issues/658)) ([f6f93e5](https://togithub.com/googleapis/java-shared-dependencies/commit/f6f93e5b9172c9684623c4c148e4a8fe2fae1e94)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.2 ([#​655](https://togithub.com/googleapis/java-shared-dependencies/issues/655)) ([20cd9ed](https://togithub.com/googleapis/java-shared-dependencies/commit/20cd9eda112c96836a5ab7485a4247ed2bc0edb8)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.3 ([#​663](https://togithub.com/googleapis/java-shared-dependencies/issues/663)) ([f011a46](https://togithub.com/googleapis/java-shared-dependencies/commit/f011a46c551dba16851b4f8c919c40452fc5d5c3)) - update dependency com.google.protobuf:protobuf-bom to v3.20.0 ([#​651](https://togithub.com/googleapis/java-shared-dependencies/issues/651)) ([ad2ff73](https://togithub.com/googleapis/java-shared-dependencies/commit/ad2ff73207dd6493321c77d8eca0022baf13b4ce)) - update dependency io.grpc:grpc-bom to v1.45.1 ([#​647](https://togithub.com/googleapis/java-shared-dependencies/issues/647)) ([38e46fc](https://togithub.com/googleapis/java-shared-dependencies/commit/38e46fc4f03af0a02f30ce4a2fa222c71797ae15)) - update dependency org.checkerframework:checker-qual to v3.21.4 ([#​650](https://togithub.com/googleapis/java-shared-dependencies/issues/650)) ([125e80a](https://togithub.com/googleapis/java-shared-dependencies/commit/125e80ab2c3225a00c03f5ff5de94872ebb94303)) - update gax.version to v2.15.0 ([#​649](https://togithub.com/googleapis/java-shared-dependencies/issues/649)) ([c7f32a6](https://togithub.com/googleapis/java-shared-dependencies/commit/c7f32a68b14520104432282ac9598643700162eb)) - update gax.version to v2.16.0 ([#​664](https://togithub.com/googleapis/java-shared-dependencies/issues/664)) ([caaf941](https://togithub.com/googleapis/java-shared-dependencies/commit/caaf941643af04295f5527a0144587d7bf040862)) - update google.common-protos.version to v2.8.1 ([#​656](https://togithub.com/googleapis/java-shared-dependencies/issues/656)) ([df4a4a2](https://togithub.com/googleapis/java-shared-dependencies/commit/df4a4a2130a3cdb2965ea42962d1ea6a85506ba7)) - update google.common-protos.version to v2.8.2 ([#​659](https://togithub.com/googleapis/java-shared-dependencies/issues/659)) ([b499e2b](https://togithub.com/googleapis/java-shared-dependencies/commit/b499e2bc99506d48d26e35bf6e68c09409ce8b11)) - update google.common-protos.version to v2.8.3 ([#​660](https://togithub.com/googleapis/java-shared-dependencies/issues/660)) ([461081c](https://togithub.com/googleapis/java-shared-dependencies/commit/461081c0cf73057c1f6e07fc573453ad467a60ae)) - update iam.version to v1.3.0 ([#​648](https://togithub.com/googleapis/java-shared-dependencies/issues/648)) ([6670c4f](https://togithub.com/googleapis/java-shared-dependencies/commit/6670c4f61fcf075c543bfd148eea49796e0662ce)) - update iam.version to v1.3.1 ([#​661](https://togithub.com/googleapis/java-shared-dependencies/issues/661)) ([cc8fbe6](https://togithub.com/googleapis/java-shared-dependencies/commit/cc8fbe6eae03341c2ece7d3356febc843a74a812))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-monitoring-dashboards). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 43ffa3e9..186cce6b 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.9.0 + 2.10.0 pom import From bb8bc6b3da5e006f36be0f88507d6c1034804488 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 19 Apr 2022 18:10:22 +0000 Subject: [PATCH 8/8] chore(main): release 2.3.0 (#587) :robot: I have created a release *beep* *boop* --- ## [2.3.0](https://github.com/googleapis/java-monitoring-dashboards/compare/v2.2.6...v2.3.0) (2022-04-15) ### Features * Sync public protos with latests public api state. This adds support for collapsible groups, filters, labels, drilldowns, logs panels and tables ([#586](https://github.com/googleapis/java-monitoring-dashboards/issues/586)) ([c90af2d](https://github.com/googleapis/java-monitoring-dashboards/commit/c90af2d75a491acf8685ffef1857669e6a205358)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#588](https://github.com/googleapis/java-monitoring-dashboards/issues/588)) ([41ad981](https://github.com/googleapis/java-monitoring-dashboards/commit/41ad981b8f877f2aaad0fc9e0fd05edbac548aa4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 12 ++++++++++++ google-cloud-monitoring-dashboard-bom/pom.xml | 8 ++++---- google-cloud-monitoring-dashboard/pom.xml | 4 ++-- grpc-google-cloud-monitoring-dashboard-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-monitoring-dashboard-v1/pom.xml | 4 ++-- versions.txt | 6 +++--- 7 files changed, 29 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14f275f4..9be256fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [2.3.0](https://github.com/googleapis/java-monitoring-dashboards/compare/v2.2.6...v2.3.0) (2022-04-15) + + +### Features + +* Sync public protos with latests public api state. This adds support for collapsible groups, filters, labels, drilldowns, logs panels and tables ([#586](https://github.com/googleapis/java-monitoring-dashboards/issues/586)) ([c90af2d](https://github.com/googleapis/java-monitoring-dashboards/commit/c90af2d75a491acf8685ffef1857669e6a205358)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#588](https://github.com/googleapis/java-monitoring-dashboards/issues/588)) ([41ad981](https://github.com/googleapis/java-monitoring-dashboards/commit/41ad981b8f877f2aaad0fc9e0fd05edbac548aa4)) + ### [2.2.6](https://github.com/googleapis/java-monitoring-dashboards/compare/v2.2.5...v2.2.6) (2022-03-29) diff --git a/google-cloud-monitoring-dashboard-bom/pom.xml b/google-cloud-monitoring-dashboard-bom/pom.xml index 9d966517..f58c875d 100644 --- a/google-cloud-monitoring-dashboard-bom/pom.xml +++ b/google-cloud-monitoring-dashboard-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-monitoring-dashboard-bom - 2.2.7-SNAPSHOT + 2.3.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-monitoring-dashboard - 2.2.7-SNAPSHOT + 2.3.0 com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.2.7-SNAPSHOT + 2.3.0 com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.2.7-SNAPSHOT + 2.3.0
diff --git a/google-cloud-monitoring-dashboard/pom.xml b/google-cloud-monitoring-dashboard/pom.xml index e9d995c4..78a2a8c0 100644 --- a/google-cloud-monitoring-dashboard/pom.xml +++ b/google-cloud-monitoring-dashboard/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-monitoring-dashboard - 2.2.7-SNAPSHOT + 2.3.0 jar Google Cloud Monitoring Dashboard https://github.com/googleapis/java-monitoring-dashboards @@ -11,7 +11,7 @@ com.google.cloud google-cloud-monitoring-dashboard-parent - 2.2.7-SNAPSHOT + 2.3.0 google-cloud-monitoring-dashboard diff --git a/grpc-google-cloud-monitoring-dashboard-v1/pom.xml b/grpc-google-cloud-monitoring-dashboard-v1/pom.xml index 05c20d52..5bd7a7cc 100644 --- a/grpc-google-cloud-monitoring-dashboard-v1/pom.xml +++ b/grpc-google-cloud-monitoring-dashboard-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.2.7-SNAPSHOT + 2.3.0 grpc-google-cloud-monitoring-dashboard-v1 GRPC library for grpc-google-cloud-monitoring-dashboard-v1 com.google.cloud google-cloud-monitoring-dashboard-parent - 2.2.7-SNAPSHOT + 2.3.0 diff --git a/pom.xml b/pom.xml index 186cce6b..48e04f21 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-monitoring-dashboard-parent pom - 2.2.7-SNAPSHOT + 2.3.0 Google Cloud Monitoring Dashboard Parent https://github.com/googleapis/java-monitoring-dashboards @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.2.7-SNAPSHOT + 2.3.0 com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.2.7-SNAPSHOT + 2.3.0 com.google.cloud google-cloud-monitoring-dashboard - 2.2.7-SNAPSHOT + 2.3.0 diff --git a/proto-google-cloud-monitoring-dashboard-v1/pom.xml b/proto-google-cloud-monitoring-dashboard-v1/pom.xml index 34699b98..bce28119 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/pom.xml +++ b/proto-google-cloud-monitoring-dashboard-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.2.7-SNAPSHOT + 2.3.0 proto-google-cloud-monitoring-dashboard-v1 PROTO library for proto-google-cloud-monitoring-dashboard-v1 com.google.cloud google-cloud-monitoring-dashboard-parent - 2.2.7-SNAPSHOT + 2.3.0 diff --git a/versions.txt b/versions.txt index 6f5fefef..3bfe9c4d 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-monitoring-dashboard:2.2.6:2.2.7-SNAPSHOT -grpc-google-cloud-monitoring-dashboard-v1:2.2.6:2.2.7-SNAPSHOT -proto-google-cloud-monitoring-dashboard-v1:2.2.6:2.2.7-SNAPSHOT +google-cloud-monitoring-dashboard:2.3.0:2.3.0 +grpc-google-cloud-monitoring-dashboard-v1:2.3.0:2.3.0 +proto-google-cloud-monitoring-dashboard-v1:2.3.0:2.3.0