diff --git a/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java b/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java index bd889014..dc1996fe 100644 --- a/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java +++ b/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java @@ -56,6 +56,7 @@ * CreateDashboardRequest.newBuilder() * .setParent("parent-995424086") * .setDashboard(Dashboard.newBuilder().build()) + * .setValidateOnly(true) * .build(); * Dashboard response = dashboardsServiceClient.createDashboard(request); * } @@ -166,10 +167,9 @@ public DashboardsServiceStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new custom dashboard. For examples on how you can use this API to create dashboards, - * see [Managing dashboards by API](https://cloud.google.com/monitoring/dashboards/api-dashboard). - * This method requires the `monitoring.dashboards.create` permission on the specified project. - * For more information about permissions, see [Cloud Identity and Access - * Management](https://cloud.google.com/iam). + * see [Managing dashboards by API](/monitoring/dashboards/api-dashboard). This method requires + * the `monitoring.dashboards.create` permission on the specified project. For more information + * about permissions, see [Cloud Identity and Access Management](/iam). * *
Sample code: * @@ -179,6 +179,7 @@ public DashboardsServiceStub getStub() { * CreateDashboardRequest.newBuilder() * .setParent("parent-995424086") * .setDashboard(Dashboard.newBuilder().build()) + * .setValidateOnly(true) * .build(); * Dashboard response = dashboardsServiceClient.createDashboard(request); * } @@ -194,10 +195,9 @@ public final Dashboard createDashboard(CreateDashboardRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new custom dashboard. For examples on how you can use this API to create dashboards, - * see [Managing dashboards by API](https://cloud.google.com/monitoring/dashboards/api-dashboard). - * This method requires the `monitoring.dashboards.create` permission on the specified project. - * For more information about permissions, see [Cloud Identity and Access - * Management](https://cloud.google.com/iam). + * see [Managing dashboards by API](/monitoring/dashboards/api-dashboard). This method requires + * the `monitoring.dashboards.create` permission on the specified project. For more information + * about permissions, see [Cloud Identity and Access Management](/iam). * *
Sample code:
*
@@ -207,6 +207,7 @@ public final Dashboard createDashboard(CreateDashboardRequest request) {
* CreateDashboardRequest.newBuilder()
* .setParent("parent-995424086")
* .setDashboard(Dashboard.newBuilder().build())
+ * .setValidateOnly(true)
* .build();
* ApiFuture{@code
* try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
* UpdateDashboardRequest request =
- * UpdateDashboardRequest.newBuilder().setDashboard(Dashboard.newBuilder().build()).build();
+ * UpdateDashboardRequest.newBuilder()
+ * .setDashboard(Dashboard.newBuilder().build())
+ * .setValidateOnly(true)
+ * .build();
* Dashboard response = dashboardsServiceClient.updateDashboard(request);
* }
* }
@@ -462,7 +466,10 @@ public final Dashboard updateDashboard(UpdateDashboardRequest request) {
* {@code
* try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
* UpdateDashboardRequest request =
- * UpdateDashboardRequest.newBuilder().setDashboard(Dashboard.newBuilder().build()).build();
+ * UpdateDashboardRequest.newBuilder()
+ * .setDashboard(Dashboard.newBuilder().build())
+ * .setValidateOnly(true)
+ * .build();
* ApiFuture
- * Creates a new custom dashboard. For examples on how you can use this API to
- * create dashboards, see [Managing dashboards by
- * API](https://cloud.google.com/monitoring/dashboards/api-dashboard). This method requires the
- * `monitoring.dashboards.create` permission on the specified project. For
- * more information about permissions, see [Cloud Identity and Access
- * Management](https://cloud.google.com/iam).
+ * Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see [Managing dashboards by API](/monitoring/dashboards/api-dashboard).
+ * This method requires the `monitoring.dashboards.create` permission on the specified project. For more information about permissions, see [Cloud Identity and Access Management](/iam).
*
*/
public void createDashboard(
@@ -469,12 +465,8 @@ protected DashboardsServiceStub build(
*
*
*
- * Creates a new custom dashboard. For examples on how you can use this API to
- * create dashboards, see [Managing dashboards by
- * API](https://cloud.google.com/monitoring/dashboards/api-dashboard). This method requires the
- * `monitoring.dashboards.create` permission on the specified project. For
- * more information about permissions, see [Cloud Identity and Access
- * Management](https://cloud.google.com/iam).
+ * Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see [Managing dashboards by API](/monitoring/dashboards/api-dashboard).
+ * This method requires the `monitoring.dashboards.create` permission on the specified project. For more information about permissions, see [Cloud Identity and Access Management](/iam).
*
*/
public void createDashboard(
@@ -592,12 +584,8 @@ protected DashboardsServiceBlockingStub build(
*
*
*
- * Creates a new custom dashboard. For examples on how you can use this API to
- * create dashboards, see [Managing dashboards by
- * API](https://cloud.google.com/monitoring/dashboards/api-dashboard). This method requires the
- * `monitoring.dashboards.create` permission on the specified project. For
- * more information about permissions, see [Cloud Identity and Access
- * Management](https://cloud.google.com/iam).
+ * Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see [Managing dashboards by API](/monitoring/dashboards/api-dashboard).
+ * This method requires the `monitoring.dashboards.create` permission on the specified project. For more information about permissions, see [Cloud Identity and Access Management](/iam).
*
*/
public com.google.monitoring.dashboard.v1.Dashboard createDashboard(
@@ -695,12 +683,8 @@ protected DashboardsServiceFutureStub build(
*
*
*
- * Creates a new custom dashboard. For examples on how you can use this API to
- * create dashboards, see [Managing dashboards by
- * API](https://cloud.google.com/monitoring/dashboards/api-dashboard). This method requires the
- * `monitoring.dashboards.create` permission on the specified project. For
- * more information about permissions, see [Cloud Identity and Access
- * Management](https://cloud.google.com/iam).
+ * Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see [Managing dashboards by API](/monitoring/dashboards/api-dashboard).
+ * This method requires the `monitoring.dashboards.create` permission on the specified project. For more information about permissions, see [Cloud Identity and Access Management](/iam).
*
*/
public com.google.common.util.concurrent.ListenableFuture<
diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java
new file mode 100644
index 00000000..ce8fee46
--- /dev/null
+++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java
@@ -0,0 +1,641 @@
+/*
+ * 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/alertchart.proto
+
+package com.google.monitoring.dashboard.v1;
+
+/**
+ *
+ *
+ *
+ * A chart that displays alert policy data.
+ *
+ *
+ * Protobuf type {@code google.monitoring.dashboard.v1.AlertChart}
+ */
+public final class AlertChart extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.AlertChart)
+ AlertChartOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AlertChart.newBuilder() to construct.
+ private AlertChart(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private AlertChart() {
+ name_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new AlertChart();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private AlertChart(
+ 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();
+
+ name_ = 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 {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.monitoring.dashboard.v1.AlertChartProto
+ .internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.monitoring.dashboard.v1.AlertChartProto
+ .internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.monitoring.dashboard.v1.AlertChart.class,
+ com.google.monitoring.dashboard.v1.AlertChart.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the alert policy. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the alert policy. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ 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.AlertChart)) {
+ return super.equals(obj);
+ }
+ com.google.monitoring.dashboard.v1.AlertChart other =
+ (com.google.monitoring.dashboard.v1.AlertChart) obj;
+
+ if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.monitoring.dashboard.v1.AlertChart parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.dashboard.v1.AlertChart parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.dashboard.v1.AlertChart parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.dashboard.v1.AlertChart parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.dashboard.v1.AlertChart parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.dashboard.v1.AlertChart parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.dashboard.v1.AlertChart parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.dashboard.v1.AlertChart 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.AlertChart parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.dashboard.v1.AlertChart parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.monitoring.dashboard.v1.AlertChart parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.dashboard.v1.AlertChart parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @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.AlertChart 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 chart that displays alert policy data.
+ *
+ *
+ * Protobuf type {@code google.monitoring.dashboard.v1.AlertChart}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The resource name of the alert policy. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the alert policy. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the alert policy. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the alert policy. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the alert policy. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = 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.AlertChart)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.AlertChart)
+ private static final com.google.monitoring.dashboard.v1.AlertChart DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.AlertChart();
+ }
+
+ public static com.google.monitoring.dashboard.v1.AlertChart getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Required. The resource name of the alert policy. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the alert policy. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java
new file mode 100644
index 00000000..3bad9589
--- /dev/null
+++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java
@@ -0,0 +1,83 @@
+/*
+ * 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/alertchart.proto
+
+package com.google.monitoring.dashboard.v1;
+
+public final class AlertChartProto {
+ private AlertChartProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n/google/monitoring/dashboard/v1/alertch"
+ + "art.proto\022\036google.monitoring.dashboard.v"
+ + "1\032\037google/api/field_behavior.proto\032\031goog"
+ + "le/api/resource.proto\"|\n\nAlertChart\022\021\n\004n"
+ + "ame\030\001 \001(\tB\003\340A\002:[\352AX\n%monitoring.googleap"
+ + "is.com/AlertPolicy\022/projects/{project}/a"
+ + "lertPolicies/{alert_policy}B\322\001\n\"com.goog"
+ + "le.monitoring.dashboard.v1B\017AlertChartPr"
+ + "otoP\001ZGgoogle.golang.org/genproto/google"
+ + "apis/monitoring/dashboard/v1;dashboard\312\002"
+ + "$Google\\Cloud\\Monitoring\\Dashboard\\V1\352\002("
+ + "Google::Cloud::Monitoring::Dashboard::V1"
+ + "b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
+ });
+ internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_monitoring_dashboard_v1_AlertChart_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_dashboard_v1_AlertChart_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ registry.add(com.google.api.ResourceProto.resource);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertPolicyName.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertPolicyName.java
new file mode 100644
index 00000000..6a3f7ae3
--- /dev/null
+++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertPolicyName.java
@@ -0,0 +1,192 @@
+/*
+ * 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.monitoring.dashboard.v1;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+@Generated("by gapic-generator-java")
+public class AlertPolicyName implements ResourceName {
+ private static final PathTemplate PROJECT_ALERT_POLICY =
+ PathTemplate.createWithoutUrlEncoding("projects/{project}/alertPolicies/{alert_policy}");
+ private volatile Map
+ * If set, validate the request and preview the review, but do not actually
+ * save it.
+ *
+ *
+ * bool validate_only = 3;
+ *
+ * @return The validateOnly.
+ */
+ @java.lang.Override
+ public boolean getValidateOnly() {
+ return validateOnly_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -254,6 +278,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (dashboard_ != null) {
output.writeMessage(2, getDashboard());
}
+ if (validateOnly_ != false) {
+ output.writeBool(3, validateOnly_);
+ }
unknownFields.writeTo(output);
}
@@ -269,6 +296,9 @@ public int getSerializedSize() {
if (dashboard_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDashboard());
}
+ if (validateOnly_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -290,6 +320,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasDashboard()) {
if (!getDashboard().equals(other.getDashboard())) return false;
}
+ if (getValidateOnly() != other.getValidateOnly()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -307,6 +338,8 @@ public int hashCode() {
hash = (37 * hash) + DASHBOARD_FIELD_NUMBER;
hash = (53 * hash) + getDashboard().hashCode();
}
+ hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -461,6 +494,8 @@ public Builder clear() {
dashboard_ = null;
dashboardBuilder_ = null;
}
+ validateOnly_ = false;
+
return this;
}
@@ -494,6 +529,7 @@ public com.google.monitoring.dashboard.v1.CreateDashboardRequest buildPartial()
} else {
result.dashboard_ = dashboardBuilder_.build();
}
+ result.validateOnly_ = validateOnly_;
onBuilt();
return result;
}
@@ -551,6 +587,9 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.CreateDashboardReque
if (other.hasDashboard()) {
mergeDashboard(other.getDashboard());
}
+ if (other.getValidateOnly() != false) {
+ setValidateOnly(other.getValidateOnly());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -901,6 +940,61 @@ public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardOrBuild
return dashboardBuilder_;
}
+ private boolean validateOnly_;
+ /**
+ *
+ *
+ *
+ * If set, validate the request and preview the review, but do not actually
+ * save it.
+ *
+ *
+ * bool validate_only = 3;
+ *
+ * @return The validateOnly.
+ */
+ @java.lang.Override
+ public boolean getValidateOnly() {
+ return validateOnly_;
+ }
+ /**
+ *
+ *
+ *
+ * If set, validate the request and preview the review, but do not actually
+ * save it.
+ *
+ *
+ * bool validate_only = 3;
+ *
+ * @param value The validateOnly to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValidateOnly(boolean value) {
+
+ validateOnly_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * If set, validate the request and preview the review, but do not actually
+ * save it.
+ *
+ *
+ * bool validate_only = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearValidateOnly() {
+
+ validateOnly_ = false;
+ 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/CreateDashboardRequestOrBuilder.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequestOrBuilder.java
index caf3e2c8..cf3f1da5 100644
--- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/CreateDashboardRequestOrBuilder.java
@@ -92,4 +92,18 @@ public interface CreateDashboardRequestOrBuilder
*
*/
com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * If set, validate the request and preview the review, but do not actually
+ * save it.
+ *
+ *
+ * bool validate_only = 3;
+ *
+ * @return The validateOnly.
+ */
+ boolean getValidateOnly();
}
diff --git a/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 a8dc7561..8e1288f2 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
@@ -67,56 +67,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "/api/resource.proto\032.google/monitoring/d"
+ "ashboard/v1/dashboard.proto\032\033google/prot"
+ "obuf/empty.proto\032 google/protobuf/field_"
- + "mask.proto\032\027google/api/client.proto\"p\n\026C"
- + "reateDashboardRequest\022\023\n\006parent\030\001 \001(\tB\003\340"
- + "A\002\022A\n\tdashboard\030\002 \001(\0132).google.monitorin"
- + "g.dashboard.v1.DashboardB\003\340A\002\"\203\001\n\025ListDa"
- + "shboardsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n"
- + "+cloudresourcemanager.googleapis.com/Pro"
- + "ject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 "
- + "\001(\t\"p\n\026ListDashboardsResponse\022=\n\ndashboa"
- + "rds\030\001 \003(\0132).google.monitoring.dashboard."
- + "v1.Dashboard\022\027\n\017next_page_token\030\002 \001(\t\"P\n"
- + "\023GetDashboardRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372"
- + "A%\n#monitoring.googleapis.com/Dashboard\""
- + "S\n\026DeleteDashboardRequest\0229\n\004name\030\001 \001(\tB"
- + "+\340A\002\372A%\n#monitoring.googleapis.com/Dashb"
- + "oard\"[\n\026UpdateDashboardRequest\022A\n\tdashbo"
- + "ard\030\001 \001(\0132).google.monitoring.dashboard."
- + "v1.DashboardB\003\340A\0022\261\010\n\021DashboardsService\022"
- + "\253\001\n\017CreateDashboard\0226.google.monitoring."
- + "dashboard.v1.CreateDashboardRequest\032).go"
- + "ogle.monitoring.dashboard.v1.Dashboard\"5"
- + "\202\323\344\223\002/\"\"/v1/{parent=projects/*}/dashboar"
- + "ds:\tdashboard\022\253\001\n\016ListDashboards\0225.googl"
- + "e.monitoring.dashboard.v1.ListDashboards"
- + "Request\0326.google.monitoring.dashboard.v1"
- + ".ListDashboardsResponse\"*\202\323\344\223\002$\022\"/v1/{pa"
- + "rent=projects/*}/dashboards\022\232\001\n\014GetDashb"
- + "oard\0223.google.monitoring.dashboard.v1.Ge"
- + "tDashboardRequest\032).google.monitoring.da"
- + "shboard.v1.Dashboard\"*\202\323\344\223\002$\022\"/v1/{name="
- + "projects/*/dashboards/*}\022\215\001\n\017DeleteDashb"
- + "oard\0226.google.monitoring.dashboard.v1.De"
- + "leteDashboardRequest\032\026.google.protobuf.E"
- + "mpty\"*\202\323\344\223\002$*\"/v1/{name=projects/*/dashb"
- + "oards/*}\022\265\001\n\017UpdateDashboard\0226.google.mo"
- + "nitoring.dashboard.v1.UpdateDashboardReq"
- + "uest\032).google.monitoring.dashboard.v1.Da"
- + "shboard\"?\202\323\344\223\00292,/v1/{dashboard.name=pro"
- + "jects/*/dashboards/*}:\tdashboard\032\332\001\312A\031mo"
- + "nitoring.googleapis.com\322A\272\001https://www.g"
- + "oogleapis.com/auth/cloud-platform,https:"
- + "//www.googleapis.com/auth/monitoring,htt"
- + "ps://www.googleapis.com/auth/monitoring."
- + "read,https://www.googleapis.com/auth/mon"
- + "itoring.writeB\331\001\n\"com.google.monitoring."
- + "dashboard.v1B\026DashboardsServiceProtoP\001ZG"
- + "google.golang.org/genproto/googleapis/mo"
- + "nitoring/dashboard/v1;dashboard\312\002$Google"
- + "\\Cloud\\Monitoring\\Dashboard\\V1\352\002(Google:"
- + ":Cloud::Monitoring::Dashboard::V1b\006proto"
- + "3"
+ + "mask.proto\032\027google/api/client.proto\"\207\001\n\026"
+ + "CreateDashboardRequest\022\023\n\006parent\030\001 \001(\tB\003"
+ + "\340A\002\022A\n\tdashboard\030\002 \001(\0132).google.monitori"
+ + "ng.dashboard.v1.DashboardB\003\340A\002\022\025\n\rvalida"
+ + "te_only\030\003 \001(\010\"\203\001\n\025ListDashboardsRequest\022"
+ + "C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcema"
+ + "nager.googleapis.com/Project\022\021\n\tpage_siz"
+ + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"p\n\026ListDashb"
+ + "oardsResponse\022=\n\ndashboards\030\001 \003(\0132).goog"
+ + "le.monitoring.dashboard.v1.Dashboard\022\027\n\017"
+ + "next_page_token\030\002 \001(\t\"P\n\023GetDashboardReq"
+ + "uest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#monitoring.g"
+ + "oogleapis.com/Dashboard\"S\n\026DeleteDashboa"
+ + "rdRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#monitor"
+ + "ing.googleapis.com/Dashboard\"r\n\026UpdateDa"
+ + "shboardRequest\022A\n\tdashboard\030\001 \001(\0132).goog"
+ + "le.monitoring.dashboard.v1.DashboardB\003\340A"
+ + "\002\022\025\n\rvalidate_only\030\003 \001(\0102\261\010\n\021DashboardsS"
+ + "ervice\022\253\001\n\017CreateDashboard\0226.google.moni"
+ + "toring.dashboard.v1.CreateDashboardReque"
+ + "st\032).google.monitoring.dashboard.v1.Dash"
+ + "board\"5\202\323\344\223\002/\"\"/v1/{parent=projects/*}/d"
+ + "ashboards:\tdashboard\022\253\001\n\016ListDashboards\022"
+ + "5.google.monitoring.dashboard.v1.ListDas"
+ + "hboardsRequest\0326.google.monitoring.dashb"
+ + "oard.v1.ListDashboardsResponse\"*\202\323\344\223\002$\022\""
+ + "/v1/{parent=projects/*}/dashboards\022\232\001\n\014G"
+ + "etDashboard\0223.google.monitoring.dashboar"
+ + "d.v1.GetDashboardRequest\032).google.monito"
+ + "ring.dashboard.v1.Dashboard\"*\202\323\344\223\002$\022\"/v1"
+ + "/{name=projects/*/dashboards/*}\022\215\001\n\017Dele"
+ + "teDashboard\0226.google.monitoring.dashboar"
+ + "d.v1.DeleteDashboardRequest\032\026.google.pro"
+ + "tobuf.Empty\"*\202\323\344\223\002$*\"/v1/{name=projects/"
+ + "*/dashboards/*}\022\265\001\n\017UpdateDashboard\0226.go"
+ + "ogle.monitoring.dashboard.v1.UpdateDashb"
+ + "oardRequest\032).google.monitoring.dashboar"
+ + "d.v1.Dashboard\"?\202\323\344\223\00292,/v1/{dashboard.n"
+ + "ame=projects/*/dashboards/*}:\tdashboard\032"
+ + "\332\001\312A\031monitoring.googleapis.com\322A\272\001https:"
+ + "//www.googleapis.com/auth/cloud-platform"
+ + ",https://www.googleapis.com/auth/monitor"
+ + "ing,https://www.googleapis.com/auth/moni"
+ + "toring.read,https://www.googleapis.com/a"
+ + "uth/monitoring.writeB\331\001\n\"com.google.moni"
+ + "toring.dashboard.v1B\026DashboardsServicePr"
+ + "otoP\001ZGgoogle.golang.org/genproto/google"
+ + "apis/monitoring/dashboard/v1;dashboard\312\002"
+ + "$Google\\Cloud\\Monitoring\\Dashboard\\V1\352\002("
+ + "Google::Cloud::Monitoring::Dashboard::V1"
+ + "b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -136,7 +137,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_monitoring_dashboard_v1_CreateDashboardRequest_descriptor,
new java.lang.String[] {
- "Parent", "Dashboard",
+ "Parent", "Dashboard", "ValidateOnly",
});
internal_static_google_monitoring_dashboard_v1_ListDashboardsRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
@@ -176,7 +177,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_monitoring_dashboard_v1_UpdateDashboardRequest_descriptor,
new java.lang.String[] {
- "Dashboard",
+ "Dashboard", "ValidateOnly",
});
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/TimeSeriesFilter.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilter.java
index ad6db538..6ede680c 100644
--- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilter.java
+++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilter.java
@@ -241,9 +241,8 @@ public OutputFilterCase getOutputFilterCase() {
*
*
*
- * Required. The [monitoring
- * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
- * the metric types, resources, and projects to query.
+ * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
+ * that identifies the metric types, resources, and projects to query.
*
*
* string filter = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -266,9 +265,8 @@ public java.lang.String getFilter() {
*
*
*
- * Required. The [monitoring
- * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
- * the metric types, resources, and projects to query.
+ * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
+ * that identifies the metric types, resources, and projects to query.
*
*
* string filter = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -980,9 +978,8 @@ public Builder clearOutputFilter() {
*
*
*
- * Required. The [monitoring
- * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
- * the metric types, resources, and projects to query.
+ * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
+ * that identifies the metric types, resources, and projects to query.
*
*
* string filter = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -1004,9 +1001,8 @@ public java.lang.String getFilter() {
*
*
*
- * Required. The [monitoring
- * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
- * the metric types, resources, and projects to query.
+ * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
+ * that identifies the metric types, resources, and projects to query.
*
*
* string filter = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -1028,9 +1024,8 @@ public com.google.protobuf.ByteString getFilterBytes() {
*
*
*
- * Required. The [monitoring
- * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
- * the metric types, resources, and projects to query.
+ * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
+ * that identifies the metric types, resources, and projects to query.
*
*
* string filter = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -1051,9 +1046,8 @@ public Builder setFilter(java.lang.String value) {
*
*
*
- * Required. The [monitoring
- * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
- * the metric types, resources, and projects to query.
+ * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
+ * that identifies the metric types, resources, and projects to query.
*
*
* string filter = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -1070,9 +1064,8 @@ public Builder clearFilter() {
*
*
*
- * Required. The [monitoring
- * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
- * the metric types, resources, and projects to query.
+ * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
+ * that identifies the metric types, resources, and projects to query.
*
*
* string filter = 1 [(.google.api.field_behavior) = REQUIRED];
diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java
index c5e8d759..9ab6466c 100644
--- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java
+++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java
@@ -27,9 +27,8 @@ public interface TimeSeriesFilterOrBuilder
*
*
*
- * Required. The [monitoring
- * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
- * the metric types, resources, and projects to query.
+ * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
+ * that identifies the metric types, resources, and projects to query.
*
*
* string filter = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -41,9 +40,8 @@ public interface TimeSeriesFilterOrBuilder
*
*
*
- * Required. The [monitoring
- * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
- * the metric types, resources, and projects to query.
+ * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
+ * that identifies the metric types, resources, and projects to query.
*
*
* string filter = 1 [(.google.api.field_behavior) = REQUIRED];
diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequest.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequest.java
index 90d59c3f..9559513d 100644
--- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequest.java
+++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequest.java
@@ -82,6 +82,11 @@ private UpdateDashboardRequest(
dashboard_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 24:
+ {
+ validateOnly_ = input.readBool();
break;
}
default:
@@ -172,6 +177,25 @@ public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardOrBuild
return getDashboard();
}
+ public static final int VALIDATE_ONLY_FIELD_NUMBER = 3;
+ private boolean validateOnly_;
+ /**
+ *
+ *
+ *
+ * If set, validate the request and preview the review, but do not actually
+ * save it.
+ *
+ *
+ * bool validate_only = 3;
+ *
+ * @return The validateOnly.
+ */
+ @java.lang.Override
+ public boolean getValidateOnly() {
+ return validateOnly_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -189,6 +213,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (dashboard_ != null) {
output.writeMessage(1, getDashboard());
}
+ if (validateOnly_ != false) {
+ output.writeBool(3, validateOnly_);
+ }
unknownFields.writeTo(output);
}
@@ -201,6 +228,9 @@ public int getSerializedSize() {
if (dashboard_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDashboard());
}
+ if (validateOnly_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -221,6 +251,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasDashboard()) {
if (!getDashboard().equals(other.getDashboard())) return false;
}
+ if (getValidateOnly() != other.getValidateOnly()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -236,6 +267,8 @@ public int hashCode() {
hash = (37 * hash) + DASHBOARD_FIELD_NUMBER;
hash = (53 * hash) + getDashboard().hashCode();
}
+ hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -388,6 +421,8 @@ public Builder clear() {
dashboard_ = null;
dashboardBuilder_ = null;
}
+ validateOnly_ = false;
+
return this;
}
@@ -420,6 +455,7 @@ public com.google.monitoring.dashboard.v1.UpdateDashboardRequest buildPartial()
} else {
result.dashboard_ = dashboardBuilder_.build();
}
+ result.validateOnly_ = validateOnly_;
onBuilt();
return result;
}
@@ -473,6 +509,9 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.UpdateDashboardReque
if (other.hasDashboard()) {
mergeDashboard(other.getDashboard());
}
+ if (other.getValidateOnly() != false) {
+ setValidateOnly(other.getValidateOnly());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -707,6 +746,61 @@ public com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardOrBuild
return dashboardBuilder_;
}
+ private boolean validateOnly_;
+ /**
+ *
+ *
+ *
+ * If set, validate the request and preview the review, but do not actually
+ * save it.
+ *
+ *
+ * bool validate_only = 3;
+ *
+ * @return The validateOnly.
+ */
+ @java.lang.Override
+ public boolean getValidateOnly() {
+ return validateOnly_;
+ }
+ /**
+ *
+ *
+ *
+ * If set, validate the request and preview the review, but do not actually
+ * save it.
+ *
+ *
+ * bool validate_only = 3;
+ *
+ * @param value The validateOnly to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValidateOnly(boolean value) {
+
+ validateOnly_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * If set, validate the request and preview the review, but do not actually
+ * save it.
+ *
+ *
+ * bool validate_only = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearValidateOnly() {
+
+ validateOnly_ = false;
+ 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/UpdateDashboardRequestOrBuilder.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequestOrBuilder.java
index 43ead54e..a530b65c 100644
--- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/UpdateDashboardRequestOrBuilder.java
@@ -63,4 +63,18 @@ public interface UpdateDashboardRequestOrBuilder
*
*/
com.google.monitoring.dashboard.v1.DashboardOrBuilder getDashboardOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * If set, validate the request and preview the review, but do not actually
+ * save it.
+ *
+ *
+ * bool validate_only = 3;
+ *
+ * @return The validateOnly.
+ */
+ boolean getValidateOnly();
}
diff --git a/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 1ae6c791..21e7af99 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
@@ -140,6 +140,22 @@ private Widget(
contentCase_ = 5;
break;
}
+ case 58:
+ {
+ com.google.monitoring.dashboard.v1.AlertChart.Builder subBuilder = null;
+ if (contentCase_ == 7) {
+ subBuilder = ((com.google.monitoring.dashboard.v1.AlertChart) content_).toBuilder();
+ }
+ content_ =
+ input.readMessage(
+ com.google.monitoring.dashboard.v1.AlertChart.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.google.monitoring.dashboard.v1.AlertChart) content_);
+ content_ = subBuilder.buildPartial();
+ }
+ contentCase_ = 7;
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -185,6 +201,7 @@ public enum ContentCase
SCORECARD(3),
TEXT(4),
BLANK(5),
+ ALERT_CHART(7),
CONTENT_NOT_SET(0);
private final int value;
@@ -211,6 +228,8 @@ public static ContentCase forNumber(int value) {
return TEXT;
case 5:
return BLANK;
+ case 7:
+ return ALERT_CHART;
case 0:
return CONTENT_NOT_SET;
default:
@@ -480,6 +499,57 @@ public com.google.protobuf.EmptyOrBuilder getBlankOrBuilder() {
return com.google.protobuf.Empty.getDefaultInstance();
}
+ public static final int ALERT_CHART_FIELD_NUMBER = 7;
+ /**
+ *
+ *
+ *
+ * A chart of alert policy data.
+ *
+ *
+ * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
+ *
+ * @return Whether the alertChart field is set.
+ */
+ @java.lang.Override
+ public boolean hasAlertChart() {
+ return contentCase_ == 7;
+ }
+ /**
+ *
+ *
+ *
+ * A chart of alert policy data.
+ *
+ *
+ * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
+ *
+ * @return The alertChart.
+ */
+ @java.lang.Override
+ public com.google.monitoring.dashboard.v1.AlertChart getAlertChart() {
+ if (contentCase_ == 7) {
+ return (com.google.monitoring.dashboard.v1.AlertChart) content_;
+ }
+ return com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * A chart of alert policy data.
+ *
+ *
+ * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
+ */
+ @java.lang.Override
+ public com.google.monitoring.dashboard.v1.AlertChartOrBuilder getAlertChartOrBuilder() {
+ if (contentCase_ == 7) {
+ return (com.google.monitoring.dashboard.v1.AlertChart) content_;
+ }
+ return com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -509,6 +579,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (contentCase_ == 5) {
output.writeMessage(5, (com.google.protobuf.Empty) content_);
}
+ if (contentCase_ == 7) {
+ output.writeMessage(7, (com.google.monitoring.dashboard.v1.AlertChart) content_);
+ }
unknownFields.writeTo(output);
}
@@ -541,6 +614,11 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
5, (com.google.protobuf.Empty) content_);
}
+ if (contentCase_ == 7) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 7, (com.google.monitoring.dashboard.v1.AlertChart) content_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -572,6 +650,9 @@ public boolean equals(final java.lang.Object obj) {
case 5:
if (!getBlank().equals(other.getBlank())) return false;
break;
+ case 7:
+ if (!getAlertChart().equals(other.getAlertChart())) return false;
+ break;
case 0:
default:
}
@@ -605,6 +686,10 @@ public int hashCode() {
hash = (37 * hash) + BLANK_FIELD_NUMBER;
hash = (53 * hash) + getBlank().hashCode();
break;
+ case 7:
+ hash = (37 * hash) + ALERT_CHART_FIELD_NUMBER;
+ hash = (53 * hash) + getAlertChart().hashCode();
+ break;
case 0:
default:
}
@@ -814,6 +899,13 @@ public com.google.monitoring.dashboard.v1.Widget buildPartial() {
result.content_ = blankBuilder_.build();
}
}
+ if (contentCase_ == 7) {
+ if (alertChartBuilder_ == null) {
+ result.content_ = content_;
+ } else {
+ result.content_ = alertChartBuilder_.build();
+ }
+ }
result.contentCase_ = contentCase_;
onBuilt();
return result;
@@ -889,6 +981,11 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.Widget other) {
mergeBlank(other.getBlank());
break;
}
+ case ALERT_CHART:
+ {
+ mergeAlertChart(other.getAlertChart());
+ break;
+ }
case CONTENT_NOT_SET:
{
break;
@@ -1872,6 +1969,215 @@ public com.google.protobuf.EmptyOrBuilder getBlankOrBuilder() {
return blankBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.dashboard.v1.AlertChart,
+ com.google.monitoring.dashboard.v1.AlertChart.Builder,
+ com.google.monitoring.dashboard.v1.AlertChartOrBuilder>
+ alertChartBuilder_;
+ /**
+ *
+ *
+ *
+ * A chart of alert policy data.
+ *
+ *
+ * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
+ *
+ * @return Whether the alertChart field is set.
+ */
+ @java.lang.Override
+ public boolean hasAlertChart() {
+ return contentCase_ == 7;
+ }
+ /**
+ *
+ *
+ *
+ * A chart of alert policy data.
+ *
+ *
+ * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
+ *
+ * @return The alertChart.
+ */
+ @java.lang.Override
+ public com.google.monitoring.dashboard.v1.AlertChart getAlertChart() {
+ if (alertChartBuilder_ == null) {
+ if (contentCase_ == 7) {
+ return (com.google.monitoring.dashboard.v1.AlertChart) content_;
+ }
+ return com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance();
+ } else {
+ if (contentCase_ == 7) {
+ return alertChartBuilder_.getMessage();
+ }
+ return com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A chart of alert policy data.
+ *
+ *
+ * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
+ */
+ public Builder setAlertChart(com.google.monitoring.dashboard.v1.AlertChart value) {
+ if (alertChartBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ content_ = value;
+ onChanged();
+ } else {
+ alertChartBuilder_.setMessage(value);
+ }
+ contentCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A chart of alert policy data.
+ *
+ *
+ * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
+ */
+ public Builder setAlertChart(
+ com.google.monitoring.dashboard.v1.AlertChart.Builder builderForValue) {
+ if (alertChartBuilder_ == null) {
+ content_ = builderForValue.build();
+ onChanged();
+ } else {
+ alertChartBuilder_.setMessage(builderForValue.build());
+ }
+ contentCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A chart of alert policy data.
+ *
+ *
+ * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
+ */
+ public Builder mergeAlertChart(com.google.monitoring.dashboard.v1.AlertChart value) {
+ if (alertChartBuilder_ == null) {
+ if (contentCase_ == 7
+ && content_ != com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance()) {
+ content_ =
+ com.google.monitoring.dashboard.v1.AlertChart.newBuilder(
+ (com.google.monitoring.dashboard.v1.AlertChart) content_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ content_ = value;
+ }
+ onChanged();
+ } else {
+ if (contentCase_ == 7) {
+ alertChartBuilder_.mergeFrom(value);
+ }
+ alertChartBuilder_.setMessage(value);
+ }
+ contentCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A chart of alert policy data.
+ *
+ *
+ * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
+ */
+ public Builder clearAlertChart() {
+ if (alertChartBuilder_ == null) {
+ if (contentCase_ == 7) {
+ contentCase_ = 0;
+ content_ = null;
+ onChanged();
+ }
+ } else {
+ if (contentCase_ == 7) {
+ contentCase_ = 0;
+ content_ = null;
+ }
+ alertChartBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A chart of alert policy data.
+ *
+ *
+ * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
+ */
+ public com.google.monitoring.dashboard.v1.AlertChart.Builder getAlertChartBuilder() {
+ return getAlertChartFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * A chart of alert policy data.
+ *
+ *
+ * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
+ */
+ @java.lang.Override
+ public com.google.monitoring.dashboard.v1.AlertChartOrBuilder getAlertChartOrBuilder() {
+ if ((contentCase_ == 7) && (alertChartBuilder_ != null)) {
+ return alertChartBuilder_.getMessageOrBuilder();
+ } else {
+ if (contentCase_ == 7) {
+ return (com.google.monitoring.dashboard.v1.AlertChart) content_;
+ }
+ return com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A chart of alert policy data.
+ *
+ *
+ * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.dashboard.v1.AlertChart,
+ com.google.monitoring.dashboard.v1.AlertChart.Builder,
+ com.google.monitoring.dashboard.v1.AlertChartOrBuilder>
+ getAlertChartFieldBuilder() {
+ if (alertChartBuilder_ == null) {
+ if (!(contentCase_ == 7)) {
+ content_ = com.google.monitoring.dashboard.v1.AlertChart.getDefaultInstance();
+ }
+ alertChartBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.dashboard.v1.AlertChart,
+ com.google.monitoring.dashboard.v1.AlertChart.Builder,
+ com.google.monitoring.dashboard.v1.AlertChartOrBuilder>(
+ (com.google.monitoring.dashboard.v1.AlertChart) content_,
+ getParentForChildren(),
+ isClean());
+ content_ = null;
+ }
+ contentCase_ = 7;
+ onChanged();
+ ;
+ return alertChartBuilder_;
+ }
+
@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 599c2130..3986c193 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
@@ -188,5 +188,40 @@ public interface WidgetOrBuilder
*/
com.google.protobuf.EmptyOrBuilder getBlankOrBuilder();
+ /**
+ *
+ *
+ *
+ * A chart of alert policy data.
+ *
+ *
+ * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
+ *
+ * @return Whether the alertChart field is set.
+ */
+ boolean hasAlertChart();
+ /**
+ *
+ *
+ *
+ * A chart of alert policy data.
+ *
+ *
+ * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
+ *
+ * @return The alertChart.
+ */
+ com.google.monitoring.dashboard.v1.AlertChart getAlertChart();
+ /**
+ *
+ *
+ *
+ * A chart of alert policy data.
+ *
+ *
+ * .google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
+ */
+ com.google.monitoring.dashboard.v1.AlertChartOrBuilder getAlertChartOrBuilder();
+
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 bcbf15bf..19485159 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
@@ -42,29 +42,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n+google/monitoring/dashboard/v1/widget."
+ "proto\022\036google.monitoring.dashboard.v1\032\037g"
- + "oogle/api/field_behavior.proto\032.google/m"
- + "onitoring/dashboard/v1/scorecard.proto\032)"
- + "google/monitoring/dashboard/v1/text.prot"
- + "o\032,google/monitoring/dashboard/v1/xychar"
- + "t.proto\032\033google/protobuf/empty.proto\"\203\002\n"
- + "\006Widget\022\022\n\005title\030\001 \001(\tB\003\340A\001\022;\n\010xy_chart\030"
- + "\002 \001(\0132\'.google.monitoring.dashboard.v1.X"
- + "yChartH\000\022>\n\tscorecard\030\003 \001(\0132).google.mon"
- + "itoring.dashboard.v1.ScorecardH\000\0224\n\004text"
- + "\030\004 \001(\0132$.google.monitoring.dashboard.v1."
- + "TextH\000\022\'\n\005blank\030\005 \001(\0132\026.google.protobuf."
- + "EmptyH\000B\t\n\007contentB\316\001\n\"com.google.monito"
- + "ring.dashboard.v1B\013WidgetProtoP\001ZGgoogle"
- + ".golang.org/genproto/googleapis/monitori"
- + "ng/dashboard/v1;dashboard\312\002$Google\\Cloud"
- + "\\Monitoring\\Dashboard\\V1\352\002(Google::Cloud"
- + "::Monitoring::Dashboard::V1b\006proto3"
+ + "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\316\001\n\"com.google.monitoring"
+ + ".dashboard.v1B\013WidgetProtoP\001ZGgoogle.gol"
+ + "ang.org/genproto/googleapis/monitoring/d"
+ + "ashboard/v1;dashboard\312\002$Google\\Cloud\\Mon"
+ + "itoring\\Dashboard\\V1\352\002(Google::Cloud::Mo"
+ + "nitoring::Dashboard::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.monitoring.dashboard.v1.AlertChartProto.getDescriptor(),
com.google.monitoring.dashboard.v1.ScorecardProto.getDescriptor(),
com.google.monitoring.dashboard.v1.TextProto.getDescriptor(),
com.google.monitoring.dashboard.v1.XyChartProto.getDescriptor(),
@@ -76,7 +80,7 @@ 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", "Content",
+ "Title", "XyChart", "Scorecard", "Text", "Blank", "AlertChart", "Content",
});
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
@@ -84,6 +88,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.monitoring.dashboard.v1.AlertChartProto.getDescriptor();
com.google.monitoring.dashboard.v1.ScorecardProto.getDescriptor();
com.google.monitoring.dashboard.v1.TextProto.getDescriptor();
com.google.monitoring.dashboard.v1.XyChartProto.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 9364f56f..ab4a6f89 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
@@ -307,10 +307,10 @@ public interface DataSetOrBuilder
*
*
*
- * Optional. The lower bound on data point frequency for this data set,
- * implemented by specifying the minimum alignment period to use in a time
- * series query. For example, if the data is published once every 10 minutes,
- * the `min_alignment_period` should be at least 10 minutes. It would not
+ * Optional. The lower bound on data point frequency for this data set, implemented by
+ * specifying the minimum alignment period to use in a time series query
+ * For example, if the data is published once every 10 minutes, the
+ * `min_alignment_period` should be at least 10 minutes. It would not
* make sense to fetch and align data at one minute intervals.
*
*
@@ -325,10 +325,10 @@ public interface DataSetOrBuilder
*
*
*
- * Optional. The lower bound on data point frequency for this data set,
- * implemented by specifying the minimum alignment period to use in a time
- * series query. For example, if the data is published once every 10 minutes,
- * the `min_alignment_period` should be at least 10 minutes. It would not
+ * Optional. The lower bound on data point frequency for this data set, implemented by
+ * specifying the minimum alignment period to use in a time series query
+ * For example, if the data is published once every 10 minutes, the
+ * `min_alignment_period` should be at least 10 minutes. It would not
* make sense to fetch and align data at one minute intervals.
*
*
@@ -343,10 +343,10 @@ public interface DataSetOrBuilder
*
*
*
- * Optional. The lower bound on data point frequency for this data set,
- * implemented by specifying the minimum alignment period to use in a time
- * series query. For example, if the data is published once every 10 minutes,
- * the `min_alignment_period` should be at least 10 minutes. It would not
+ * Optional. The lower bound on data point frequency for this data set, implemented by
+ * specifying the minimum alignment period to use in a time series query
+ * For example, if the data is published once every 10 minutes, the
+ * `min_alignment_period` should be at least 10 minutes. It would not
* make sense to fetch and align data at one minute intervals.
*
*
@@ -865,10 +865,10 @@ public com.google.protobuf.ByteString getLegendTemplateBytes() {
*
*
*
- * Optional. The lower bound on data point frequency for this data set,
- * implemented by specifying the minimum alignment period to use in a time
- * series query. For example, if the data is published once every 10 minutes,
- * the `min_alignment_period` should be at least 10 minutes. It would not
+ * Optional. The lower bound on data point frequency for this data set, implemented by
+ * specifying the minimum alignment period to use in a time series query
+ * For example, if the data is published once every 10 minutes, the
+ * `min_alignment_period` should be at least 10 minutes. It would not
* make sense to fetch and align data at one minute intervals.
*
*
@@ -886,10 +886,10 @@ public boolean hasMinAlignmentPeriod() {
*
*
*
- * Optional. The lower bound on data point frequency for this data set,
- * implemented by specifying the minimum alignment period to use in a time
- * series query. For example, if the data is published once every 10 minutes,
- * the `min_alignment_period` should be at least 10 minutes. It would not
+ * Optional. The lower bound on data point frequency for this data set, implemented by
+ * specifying the minimum alignment period to use in a time series query
+ * For example, if the data is published once every 10 minutes, the
+ * `min_alignment_period` should be at least 10 minutes. It would not
* make sense to fetch and align data at one minute intervals.
*
*
@@ -909,10 +909,10 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() {
*
*
*
- * Optional. The lower bound on data point frequency for this data set,
- * implemented by specifying the minimum alignment period to use in a time
- * series query. For example, if the data is published once every 10 minutes,
- * the `min_alignment_period` should be at least 10 minutes. It would not
+ * Optional. The lower bound on data point frequency for this data set, implemented by
+ * specifying the minimum alignment period to use in a time series query
+ * For example, if the data is published once every 10 minutes, the
+ * `min_alignment_period` should be at least 10 minutes. It would not
* make sense to fetch and align data at one minute intervals.
*
*
@@ -1759,10 +1759,10 @@ public Builder setLegendTemplateBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. The lower bound on data point frequency for this data set,
- * implemented by specifying the minimum alignment period to use in a time
- * series query. For example, if the data is published once every 10 minutes,
- * the `min_alignment_period` should be at least 10 minutes. It would not
+ * Optional. The lower bound on data point frequency for this data set, implemented by
+ * specifying the minimum alignment period to use in a time series query
+ * For example, if the data is published once every 10 minutes, the
+ * `min_alignment_period` should be at least 10 minutes. It would not
* make sense to fetch and align data at one minute intervals.
*
*
@@ -1779,10 +1779,10 @@ public boolean hasMinAlignmentPeriod() {
*
*
*
- * Optional. The lower bound on data point frequency for this data set,
- * implemented by specifying the minimum alignment period to use in a time
- * series query. For example, if the data is published once every 10 minutes,
- * the `min_alignment_period` should be at least 10 minutes. It would not
+ * Optional. The lower bound on data point frequency for this data set, implemented by
+ * specifying the minimum alignment period to use in a time series query
+ * For example, if the data is published once every 10 minutes, the
+ * `min_alignment_period` should be at least 10 minutes. It would not
* make sense to fetch and align data at one minute intervals.
*
*
@@ -1805,10 +1805,10 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() {
*
*
*
- * Optional. The lower bound on data point frequency for this data set,
- * implemented by specifying the minimum alignment period to use in a time
- * series query. For example, if the data is published once every 10 minutes,
- * the `min_alignment_period` should be at least 10 minutes. It would not
+ * Optional. The lower bound on data point frequency for this data set, implemented by
+ * specifying the minimum alignment period to use in a time series query
+ * For example, if the data is published once every 10 minutes, the
+ * `min_alignment_period` should be at least 10 minutes. It would not
* make sense to fetch and align data at one minute intervals.
*
*
@@ -1833,10 +1833,10 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) {
*
*
*
- * Optional. The lower bound on data point frequency for this data set,
- * implemented by specifying the minimum alignment period to use in a time
- * series query. For example, if the data is published once every 10 minutes,
- * the `min_alignment_period` should be at least 10 minutes. It would not
+ * Optional. The lower bound on data point frequency for this data set, implemented by
+ * specifying the minimum alignment period to use in a time series query
+ * For example, if the data is published once every 10 minutes, the
+ * `min_alignment_period` should be at least 10 minutes. It would not
* make sense to fetch and align data at one minute intervals.
*
*
@@ -1858,10 +1858,10 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builde
*
*
*
- * Optional. The lower bound on data point frequency for this data set,
- * implemented by specifying the minimum alignment period to use in a time
- * series query. For example, if the data is published once every 10 minutes,
- * the `min_alignment_period` should be at least 10 minutes. It would not
+ * Optional. The lower bound on data point frequency for this data set, implemented by
+ * specifying the minimum alignment period to use in a time series query
+ * For example, if the data is published once every 10 minutes, the
+ * `min_alignment_period` should be at least 10 minutes. It would not
* make sense to fetch and align data at one minute intervals.
*
*
@@ -1890,10 +1890,10 @@ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) {
*
*
*
- * Optional. The lower bound on data point frequency for this data set,
- * implemented by specifying the minimum alignment period to use in a time
- * series query. For example, if the data is published once every 10 minutes,
- * the `min_alignment_period` should be at least 10 minutes. It would not
+ * Optional. The lower bound on data point frequency for this data set, implemented by
+ * specifying the minimum alignment period to use in a time series query
+ * For example, if the data is published once every 10 minutes, the
+ * `min_alignment_period` should be at least 10 minutes. It would not
* make sense to fetch and align data at one minute intervals.
*
*
@@ -1916,10 +1916,10 @@ public Builder clearMinAlignmentPeriod() {
*
*
*
- * Optional. The lower bound on data point frequency for this data set,
- * implemented by specifying the minimum alignment period to use in a time
- * series query. For example, if the data is published once every 10 minutes,
- * the `min_alignment_period` should be at least 10 minutes. It would not
+ * Optional. The lower bound on data point frequency for this data set, implemented by
+ * specifying the minimum alignment period to use in a time series query
+ * For example, if the data is published once every 10 minutes, the
+ * `min_alignment_period` should be at least 10 minutes. It would not
* make sense to fetch and align data at one minute intervals.
*
*
@@ -1936,10 +1936,10 @@ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() {
*
*
*
- * Optional. The lower bound on data point frequency for this data set,
- * implemented by specifying the minimum alignment period to use in a time
- * series query. For example, if the data is published once every 10 minutes,
- * the `min_alignment_period` should be at least 10 minutes. It would not
+ * Optional. The lower bound on data point frequency for this data set, implemented by
+ * specifying the minimum alignment period to use in a time series query
+ * For example, if the data is published once every 10 minutes, the
+ * `min_alignment_period` should be at least 10 minutes. It would not
* make sense to fetch and align data at one minute intervals.
*
*
@@ -1960,10 +1960,10 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() {
*
*
*
- * Optional. The lower bound on data point frequency for this data set,
- * implemented by specifying the minimum alignment period to use in a time
- * series query. For example, if the data is published once every 10 minutes,
- * the `min_alignment_period` should be at least 10 minutes. It would not
+ * Optional. The lower bound on data point frequency for this data set, implemented by
+ * specifying the minimum alignment period to use in a time series query
+ * For example, if the data is published once every 10 minutes, the
+ * `min_alignment_period` should be at least 10 minutes. It would not
* make sense to fetch and align data at one minute intervals.
*
*
diff --git a/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
new file mode 100644
index 00000000..459e1e63
--- /dev/null
+++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto
@@ -0,0 +1,40 @@
+// 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.
+
+syntax = "proto3";
+
+package google.monitoring.dashboard.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/monitoring/dashboard/v1;dashboard";
+option java_multiple_files = true;
+option java_outer_classname = "AlertChartProto";
+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 chart that displays alert policy data.
+message AlertChart {
+ option (google.api.resource) = {
+ type: "monitoring.googleapis.com/AlertPolicy"
+ pattern: "projects/{project}/alertPolicies/{alert_policy}"
+ };
+
+ // Required. The resource name of the alert policy. The format is:
+ //
+ // projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+}
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 a29d7fed..f9746c1b 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
@@ -41,12 +41,8 @@ service DashboardsService {
"https://www.googleapis.com/auth/monitoring.read,"
"https://www.googleapis.com/auth/monitoring.write";
- // Creates a new custom dashboard. For examples on how you can use this API to
- // create dashboards, see [Managing dashboards by
- // API](https://cloud.google.com/monitoring/dashboards/api-dashboard). This method requires the
- // `monitoring.dashboards.create` permission on the specified project. For
- // more information about permissions, see [Cloud Identity and Access
- // Management](https://cloud.google.com/iam).
+ // Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see [Managing dashboards by API](/monitoring/dashboards/api-dashboard).
+ // This method requires the `monitoring.dashboards.create` permission on the specified project. For more information about permissions, see [Cloud Identity and Access Management](/iam).
rpc CreateDashboard(CreateDashboardRequest) returns (Dashboard) {
option (google.api.http) = {
post: "/v1/{parent=projects/*}/dashboards"
@@ -111,6 +107,10 @@ message CreateDashboardRequest {
// Required. The initial dashboard specification.
Dashboard dashboard = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // If set, validate the request and preview the review, but do not actually
+ // save it.
+ bool validate_only = 3;
}
// The `ListDashboards` request.
@@ -178,4 +178,8 @@ message DeleteDashboardRequest {
message UpdateDashboardRequest {
// Required. The dashboard that will replace the existing dashboard.
Dashboard dashboard = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // If set, validate the request and preview the review, but do not actually
+ // save it.
+ bool validate_only = 3;
}
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 dc87641c..fc2b8069 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
@@ -54,9 +54,8 @@ message TimeSeriesQuery {
// [`ListTimeSeries`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
// method.
message TimeSeriesFilter {
- // Required. The [monitoring
- // filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
- // the metric types, resources, and projects to query.
+ // Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
+ // that identifies the metric types, resources, and projects to query.
string filter = 1 [(google.api.field_behavior) = REQUIRED];
// By default, the raw time series data is returned.
@@ -74,8 +73,7 @@ message TimeSeriesFilter {
// Statistics based time series filter.
// Note: This field is deprecated and completely ignored by the API.
- StatisticalTimeSeriesFilter statistical_time_series_filter = 5
- [deprecated = true];
+ StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true];
}
}
@@ -114,8 +112,7 @@ message TimeSeriesFilterRatio {
// Statistics based time series filter.
// Note: This field is deprecated and completely ignored by the API.
- StatisticalTimeSeriesFilter statistical_time_series_filter = 5
- [deprecated = true];
+ StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true];
}
}
diff --git a/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 41af7aa5..bb186390 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
@@ -50,8 +50,7 @@ message Scorecard {
// timeseries.
message SparkChartView {
// Required. The type of sparkchart to show in this chartView.
- SparkChartType spark_chart_type = 1
- [(google.api.field_behavior) = REQUIRED];
+ SparkChartType spark_chart_type = 1 [(google.api.field_behavior) = REQUIRED];
// The lower bound on data point frequency in the chart implemented by
// specifying the minimum alignment period to use in a time series query.
@@ -63,8 +62,7 @@ message Scorecard {
// Required. Fields for querying time series data from the
// Stackdriver metrics API.
- TimeSeriesQuery time_series_query = 1
- [(google.api.field_behavior) = REQUIRED];
+ TimeSeriesQuery time_series_query = 1 [(google.api.field_behavior) = REQUIRED];
// Defines the optional additional chart shown on the scorecard. If
// neither is included - then a default scorecard is shown.
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 525eef6a..795eac8d 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
@@ -17,6 +17,7 @@ syntax = "proto3";
package google.monitoring.dashboard.v1;
import "google/api/field_behavior.proto";
+import "google/monitoring/dashboard/v1/alertchart.proto";
import "google/monitoring/dashboard/v1/scorecard.proto";
import "google/monitoring/dashboard/v1/text.proto";
import "google/monitoring/dashboard/v1/xychart.proto";
@@ -48,5 +49,8 @@ message Widget {
// A blank space.
google.protobuf.Empty blank = 5;
+
+ // A chart of alert policy data.
+ AlertChart alert_chart = 7;
}
}
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 45815968..b820efb3 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
@@ -60,8 +60,7 @@ message XyChart {
// Required. Fields for querying time series data from the
// Stackdriver metrics API.
- TimeSeriesQuery time_series_query = 1
- [(google.api.field_behavior) = REQUIRED];
+ TimeSeriesQuery time_series_query = 1 [(google.api.field_behavior) = REQUIRED];
// How this data should be plotted on the chart.
PlotType plot_type = 2;
@@ -71,13 +70,12 @@ message XyChart {
// which will resolve to the label's value.
string legend_template = 3;
- // Optional. The lower bound on data point frequency for this data set,
- // implemented by specifying the minimum alignment period to use in a time
- // series query. For example, if the data is published once every 10 minutes,
- // the `min_alignment_period` should be at least 10 minutes. It would not
+ // Optional. The lower bound on data point frequency for this data set, implemented by
+ // specifying the minimum alignment period to use in a time series query
+ // For example, if the data is published once every 10 minutes, the
+ // `min_alignment_period` should be at least 10 minutes. It would not
// make sense to fetch and align data at one minute intervals.
- google.protobuf.Duration min_alignment_period = 4
- [(google.api.field_behavior) = OPTIONAL];
+ google.protobuf.Duration min_alignment_period = 4 [(google.api.field_behavior) = OPTIONAL];
}
// A chart axis.
diff --git a/synth.metadata b/synth.metadata
index 4dc95035..f61f0506 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -11,8 +11,8 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "551681f25e36b11829e87e580281350461f4f3f5",
- "internalRef": "379784268"
+ "sha": "b5532bb5023faa22f8b44f6e14608646178a2ee7",
+ "internalRef": "383440655"
}
},
{
@@ -119,6 +119,10 @@
"license-checks.xml",
"proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java",
"proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java",
+ "proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChart.java",
+ "proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartOrBuilder.java",
+ "proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertChartProto.java",
+ "proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AlertPolicyName.java",
"proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptions.java",
"proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ChartOptionsOrBuilder.java",
"proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ColumnLayout.java",
@@ -177,6 +181,7 @@
"proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java",
"proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartOrBuilder.java",
"proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChartProto.java",
+ "proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/alertchart.proto",
"proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/common.proto",
"proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboard.proto",
"proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto",