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 44c3f7c4..6b67e818 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 @@ -165,10 +165,10 @@ public DashboardsServiceStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new custom dashboard. - * - *

This method requires the `monitoring.dashboards.create` permission on the specified project. - * For more information, see [Google Cloud IAM](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). * *

Sample code: * @@ -192,10 +192,10 @@ public final Dashboard createDashboard(CreateDashboardRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new custom dashboard. - * - *

This method requires the `monitoring.dashboards.create` permission on the specified project. - * For more information, see [Google Cloud IAM](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). * *

Sample code: * @@ -222,7 +222,7 @@ public final UnaryCallable createDashboardCal * Lists the existing dashboards. * *

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

Sample code: * @@ -252,7 +252,7 @@ public final ListDashboardsPagedResponse listDashboards(ListDashboardsRequest re * Lists the existing dashboards. * *

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

Sample code: * @@ -283,7 +283,7 @@ public final ListDashboardsPagedResponse listDashboards(ListDashboardsRequest re * Lists the existing dashboards. * *

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

Sample code: * @@ -321,7 +321,7 @@ public final ListDashboardsPagedResponse listDashboards(ListDashboardsRequest re * Fetches a specific dashboard. * *

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

Sample code: * @@ -347,7 +347,7 @@ public final Dashboard getDashboard(GetDashboardRequest request) { * Fetches a specific dashboard. * *

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

Sample code: * @@ -373,7 +373,8 @@ public final UnaryCallable getDashboardCallable( * Deletes an existing custom dashboard. * *

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

Sample code: * @@ -399,7 +400,8 @@ public final void deleteDashboard(DeleteDashboardRequest request) { * Deletes an existing custom dashboard. * *

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

Sample code: * @@ -425,7 +427,8 @@ public final UnaryCallable deleteDashboardCallabl * Replaces an existing custom dashboard with a new definition. * *

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

Sample code: * @@ -449,7 +452,8 @@ public final Dashboard updateDashboard(UpdateDashboardRequest request) { * Replaces an existing custom dashboard with a new definition. * *

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

Sample code: * diff --git a/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java b/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java index b4d90f48..48715c52 100644 --- a/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java +++ b/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java @@ -318,10 +318,8 @@ public abstract static class DashboardsServiceImplBase implements io.grpc.Bindab * * *

-     * Creates a new custom dashboard.
-     * This method requires the `monitoring.dashboards.create` permission
-     * on the specified project. For more information, see
-     * [Google Cloud IAM](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( @@ -339,7 +337,7 @@ public void createDashboard( * Lists the existing dashboards. * This method requires the `monitoring.dashboards.list` permission * on the specified project. For more information, see - * [Google Cloud IAM](https://cloud.google.com/iam). + * [Cloud Identity and Access Management](https://cloud.google.com/iam). * */ public void listDashboards( @@ -357,7 +355,7 @@ public void listDashboards( * Fetches a specific dashboard. * This method requires the `monitoring.dashboards.get` permission * on the specified dashboard. For more information, see - * [Google Cloud IAM](https://cloud.google.com/iam). + * [Cloud Identity and Access Management](https://cloud.google.com/iam). * */ public void getDashboard( @@ -375,7 +373,7 @@ public void getDashboard( * Deletes an existing custom dashboard. * This method requires the `monitoring.dashboards.delete` permission * on the specified dashboard. For more information, see - * [Google Cloud IAM](https://cloud.google.com/iam). + * [Cloud Identity and Access Management](https://cloud.google.com/iam). * */ public void deleteDashboard( @@ -392,7 +390,7 @@ public void deleteDashboard( * Replaces an existing custom dashboard with a new definition. * This method requires the `monitoring.dashboards.update` permission * on the specified dashboard. For more information, see - * [Google Cloud IAM](https://cloud.google.com/iam). + * [Cloud Identity and Access Management](https://cloud.google.com/iam). * */ public void updateDashboard( @@ -467,10 +465,8 @@ protected DashboardsServiceStub build( * * *
-     * Creates a new custom dashboard.
-     * This method requires the `monitoring.dashboards.create` permission
-     * on the specified project. For more information, see
-     * [Google Cloud IAM](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( @@ -490,7 +486,7 @@ public void createDashboard( * Lists the existing dashboards. * This method requires the `monitoring.dashboards.list` permission * on the specified project. For more information, see - * [Google Cloud IAM](https://cloud.google.com/iam). + * [Cloud Identity and Access Management](https://cloud.google.com/iam). * */ public void listDashboards( @@ -510,7 +506,7 @@ public void listDashboards( * Fetches a specific dashboard. * This method requires the `monitoring.dashboards.get` permission * on the specified dashboard. For more information, see - * [Google Cloud IAM](https://cloud.google.com/iam). + * [Cloud Identity and Access Management](https://cloud.google.com/iam). * */ public void getDashboard( @@ -530,7 +526,7 @@ public void getDashboard( * Deletes an existing custom dashboard. * This method requires the `monitoring.dashboards.delete` permission * on the specified dashboard. For more information, see - * [Google Cloud IAM](https://cloud.google.com/iam). + * [Cloud Identity and Access Management](https://cloud.google.com/iam). * */ public void deleteDashboard( @@ -549,7 +545,7 @@ public void deleteDashboard( * Replaces an existing custom dashboard with a new definition. * This method requires the `monitoring.dashboards.update` permission * on the specified dashboard. For more information, see - * [Google Cloud IAM](https://cloud.google.com/iam). + * [Cloud Identity and Access Management](https://cloud.google.com/iam). * */ public void updateDashboard( @@ -588,10 +584,8 @@ protected DashboardsServiceBlockingStub build( * * *
-     * Creates a new custom dashboard.
-     * This method requires the `monitoring.dashboards.create` permission
-     * on the specified project. For more information, see
-     * [Google Cloud IAM](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( @@ -607,7 +601,7 @@ public com.google.monitoring.dashboard.v1.Dashboard createDashboard( * Lists the existing dashboards. * This method requires the `monitoring.dashboards.list` permission * on the specified project. For more information, see - * [Google Cloud IAM](https://cloud.google.com/iam). + * [Cloud Identity and Access Management](https://cloud.google.com/iam). * */ public com.google.monitoring.dashboard.v1.ListDashboardsResponse listDashboards( @@ -623,7 +617,7 @@ public com.google.monitoring.dashboard.v1.ListDashboardsResponse listDashboards( * Fetches a specific dashboard. * This method requires the `monitoring.dashboards.get` permission * on the specified dashboard. For more information, see - * [Google Cloud IAM](https://cloud.google.com/iam). + * [Cloud Identity and Access Management](https://cloud.google.com/iam). * */ public com.google.monitoring.dashboard.v1.Dashboard getDashboard( @@ -639,7 +633,7 @@ public com.google.monitoring.dashboard.v1.Dashboard getDashboard( * Deletes an existing custom dashboard. * This method requires the `monitoring.dashboards.delete` permission * on the specified dashboard. For more information, see - * [Google Cloud IAM](https://cloud.google.com/iam). + * [Cloud Identity and Access Management](https://cloud.google.com/iam). * */ public com.google.protobuf.Empty deleteDashboard( @@ -655,7 +649,7 @@ public com.google.protobuf.Empty deleteDashboard( * Replaces an existing custom dashboard with a new definition. * This method requires the `monitoring.dashboards.update` permission * on the specified dashboard. For more information, see - * [Google Cloud IAM](https://cloud.google.com/iam). + * [Cloud Identity and Access Management](https://cloud.google.com/iam). * */ public com.google.monitoring.dashboard.v1.Dashboard updateDashboard( @@ -689,10 +683,8 @@ protected DashboardsServiceFutureStub build( * * *
-     * Creates a new custom dashboard.
-     * This method requires the `monitoring.dashboards.create` permission
-     * on the specified project. For more information, see
-     * [Google Cloud IAM](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< @@ -709,7 +701,7 @@ protected DashboardsServiceFutureStub build( * Lists the existing dashboards. * This method requires the `monitoring.dashboards.list` permission * on the specified project. For more information, see - * [Google Cloud IAM](https://cloud.google.com/iam). + * [Cloud Identity and Access Management](https://cloud.google.com/iam). * */ public com.google.common.util.concurrent.ListenableFuture< @@ -726,7 +718,7 @@ protected DashboardsServiceFutureStub build( * Fetches a specific dashboard. * This method requires the `monitoring.dashboards.get` permission * on the specified dashboard. For more information, see - * [Google Cloud IAM](https://cloud.google.com/iam). + * [Cloud Identity and Access Management](https://cloud.google.com/iam). * */ public com.google.common.util.concurrent.ListenableFuture< @@ -743,7 +735,7 @@ protected DashboardsServiceFutureStub build( * Deletes an existing custom dashboard. * This method requires the `monitoring.dashboards.delete` permission * on the specified dashboard. For more information, see - * [Google Cloud IAM](https://cloud.google.com/iam). + * [Cloud Identity and Access Management](https://cloud.google.com/iam). * */ public com.google.common.util.concurrent.ListenableFuture @@ -759,7 +751,7 @@ protected DashboardsServiceFutureStub build( * Replaces an existing custom dashboard with a new definition. * This method requires the `monitoring.dashboards.update` permission * on the specified dashboard. For more information, see - * [Google Cloud IAM](https://cloud.google.com/iam). + * [Cloud Identity and Access Management](https://cloud.google.com/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/Aggregation.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java index 50aafbbe..77867ad4 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/Aggregation.java @@ -1367,6 +1367,7 @@ private Reducer(int value) { * `ALIGN_NONE` is specified, this field is required or an error is returned. * If no per-series aligner is specified, or the aligner `ALIGN_NONE` is * specified, then this field is ignored. + * The maximum value of the `alignment_period` is 2 years, or 104 weeks. * * * .google.protobuf.Duration alignment_period = 1; @@ -1390,6 +1391,7 @@ public boolean hasAlignmentPeriod() { * `ALIGN_NONE` is specified, this field is required or an error is returned. * If no per-series aligner is specified, or the aligner `ALIGN_NONE` is * specified, then this field is ignored. + * The maximum value of the `alignment_period` is 2 years, or 104 weeks. * * * .google.protobuf.Duration alignment_period = 1; @@ -1415,6 +1417,7 @@ public com.google.protobuf.Duration getAlignmentPeriod() { * `ALIGN_NONE` is specified, this field is required or an error is returned. * If no per-series aligner is specified, or the aligner `ALIGN_NONE` is * specified, then this field is ignored. + * The maximum value of the `alignment_period` is 2 years, or 104 weeks. * * * .google.protobuf.Duration alignment_period = 1; @@ -2100,6 +2103,7 @@ public Builder mergeFrom( * `ALIGN_NONE` is specified, this field is required or an error is returned. * If no per-series aligner is specified, or the aligner `ALIGN_NONE` is * specified, then this field is ignored. + * The maximum value of the `alignment_period` is 2 years, or 104 weeks. * * * .google.protobuf.Duration alignment_period = 1; @@ -2122,6 +2126,7 @@ public boolean hasAlignmentPeriod() { * `ALIGN_NONE` is specified, this field is required or an error is returned. * If no per-series aligner is specified, or the aligner `ALIGN_NONE` is * specified, then this field is ignored. + * The maximum value of the `alignment_period` is 2 years, or 104 weeks. * * * .google.protobuf.Duration alignment_period = 1; @@ -2150,6 +2155,7 @@ public com.google.protobuf.Duration getAlignmentPeriod() { * `ALIGN_NONE` is specified, this field is required or an error is returned. * If no per-series aligner is specified, or the aligner `ALIGN_NONE` is * specified, then this field is ignored. + * The maximum value of the `alignment_period` is 2 years, or 104 weeks. * * * .google.protobuf.Duration alignment_period = 1; @@ -2180,6 +2186,7 @@ public Builder setAlignmentPeriod(com.google.protobuf.Duration value) { * `ALIGN_NONE` is specified, this field is required or an error is returned. * If no per-series aligner is specified, or the aligner `ALIGN_NONE` is * specified, then this field is ignored. + * The maximum value of the `alignment_period` is 2 years, or 104 weeks. * * * .google.protobuf.Duration alignment_period = 1; @@ -2207,6 +2214,7 @@ public Builder setAlignmentPeriod(com.google.protobuf.Duration.Builder builderFo * `ALIGN_NONE` is specified, this field is required or an error is returned. * If no per-series aligner is specified, or the aligner `ALIGN_NONE` is * specified, then this field is ignored. + * The maximum value of the `alignment_period` is 2 years, or 104 weeks. * * * .google.protobuf.Duration alignment_period = 1; @@ -2241,6 +2249,7 @@ public Builder mergeAlignmentPeriod(com.google.protobuf.Duration value) { * `ALIGN_NONE` is specified, this field is required or an error is returned. * If no per-series aligner is specified, or the aligner `ALIGN_NONE` is * specified, then this field is ignored. + * The maximum value of the `alignment_period` is 2 years, or 104 weeks. * * * .google.protobuf.Duration alignment_period = 1; @@ -2269,6 +2278,7 @@ public Builder clearAlignmentPeriod() { * `ALIGN_NONE` is specified, this field is required or an error is returned. * If no per-series aligner is specified, or the aligner `ALIGN_NONE` is * specified, then this field is ignored. + * The maximum value of the `alignment_period` is 2 years, or 104 weeks. * * * .google.protobuf.Duration alignment_period = 1; @@ -2291,6 +2301,7 @@ public com.google.protobuf.Duration.Builder getAlignmentPeriodBuilder() { * `ALIGN_NONE` is specified, this field is required or an error is returned. * If no per-series aligner is specified, or the aligner `ALIGN_NONE` is * specified, then this field is ignored. + * The maximum value of the `alignment_period` is 2 years, or 104 weeks. * * * .google.protobuf.Duration alignment_period = 1; @@ -2317,6 +2328,7 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() { * `ALIGN_NONE` is specified, this field is required or an error is returned. * If no per-series aligner is specified, or the aligner `ALIGN_NONE` is * specified, then this field is ignored. + * The maximum value of the `alignment_period` is 2 years, or 104 weeks. * * * .google.protobuf.Duration alignment_period = 1; diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java index 87afabba..05491fc3 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/AggregationOrBuilder.java @@ -36,6 +36,7 @@ public interface AggregationOrBuilder * `ALIGN_NONE` is specified, this field is required or an error is returned. * If no per-series aligner is specified, or the aligner `ALIGN_NONE` is * specified, then this field is ignored. + * The maximum value of the `alignment_period` is 2 years, or 104 weeks. * * * .google.protobuf.Duration alignment_period = 1; @@ -56,6 +57,7 @@ public interface AggregationOrBuilder * `ALIGN_NONE` is specified, this field is required or an error is returned. * If no per-series aligner is specified, or the aligner `ALIGN_NONE` is * specified, then this field is ignored. + * The maximum value of the `alignment_period` is 2 years, or 104 weeks. * * * .google.protobuf.Duration alignment_period = 1; @@ -76,6 +78,7 @@ public interface AggregationOrBuilder * `ALIGN_NONE` is specified, this field is required or an error is returned. * If no per-series aligner is specified, or the aligner `ALIGN_NONE` is * specified, then this field is ignored. + * The maximum value of the `alignment_period` is 2 years, or 104 weeks. * * * .google.protobuf.Duration alignment_period = 1; 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 f24a48fc..d61f9b06 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 @@ -110,6 +110,23 @@ private Dashboard( layoutCase_ = 5; break; } + case 50: + { + com.google.monitoring.dashboard.v1.MosaicLayout.Builder subBuilder = null; + if (layoutCase_ == 6) { + subBuilder = + ((com.google.monitoring.dashboard.v1.MosaicLayout) layout_).toBuilder(); + } + layout_ = + input.readMessage( + com.google.monitoring.dashboard.v1.MosaicLayout.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.monitoring.dashboard.v1.MosaicLayout) layout_); + layout_ = subBuilder.buildPartial(); + } + layoutCase_ = 6; + break; + } case 66: { com.google.monitoring.dashboard.v1.RowLayout.Builder subBuilder = null; @@ -185,6 +202,7 @@ public enum LayoutCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GRID_LAYOUT(5), + MOSAIC_LAYOUT(6), ROW_LAYOUT(8), COLUMN_LAYOUT(9), LAYOUT_NOT_SET(0); @@ -207,6 +225,8 @@ public static LayoutCase forNumber(int value) { switch (value) { case 5: return GRID_LAYOUT; + case 6: + return MOSAIC_LAYOUT; case 8: return ROW_LAYOUT; case 9: @@ -440,6 +460,60 @@ public com.google.monitoring.dashboard.v1.GridLayoutOrBuilder getGridLayoutOrBui return com.google.monitoring.dashboard.v1.GridLayout.getDefaultInstance(); } + public static final int MOSAIC_LAYOUT_FIELD_NUMBER = 6; + /** + * + * + *
+   * The content is arranged as a grid of tiles, with each content widget
+   * occupying one or more grid blocks.
+   * 
+ * + * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + * + * @return Whether the mosaicLayout field is set. + */ + @java.lang.Override + public boolean hasMosaicLayout() { + return layoutCase_ == 6; + } + /** + * + * + *
+   * The content is arranged as a grid of tiles, with each content widget
+   * occupying one or more grid blocks.
+   * 
+ * + * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + * + * @return The mosaicLayout. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.MosaicLayout getMosaicLayout() { + if (layoutCase_ == 6) { + return (com.google.monitoring.dashboard.v1.MosaicLayout) layout_; + } + return com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance(); + } + /** + * + * + *
+   * The content is arranged as a grid of tiles, with each content widget
+   * occupying one or more grid blocks.
+   * 
+ * + * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder getMosaicLayoutOrBuilder() { + if (layoutCase_ == 6) { + return (com.google.monitoring.dashboard.v1.MosaicLayout) layout_; + } + return com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance(); + } + public static final int ROW_LAYOUT_FIELD_NUMBER = 8; /** * @@ -574,6 +648,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (layoutCase_ == 5) { output.writeMessage(5, (com.google.monitoring.dashboard.v1.GridLayout) layout_); } + if (layoutCase_ == 6) { + output.writeMessage(6, (com.google.monitoring.dashboard.v1.MosaicLayout) layout_); + } if (layoutCase_ == 8) { output.writeMessage(8, (com.google.monitoring.dashboard.v1.RowLayout) layout_); } @@ -603,6 +680,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.monitoring.dashboard.v1.GridLayout) layout_); } + if (layoutCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.monitoring.dashboard.v1.MosaicLayout) layout_); + } if (layoutCase_ == 8) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -637,6 +719,9 @@ public boolean equals(final java.lang.Object obj) { case 5: if (!getGridLayout().equals(other.getGridLayout())) return false; break; + case 6: + if (!getMosaicLayout().equals(other.getMosaicLayout())) return false; + break; case 8: if (!getRowLayout().equals(other.getRowLayout())) return false; break; @@ -668,6 +753,10 @@ public int hashCode() { hash = (37 * hash) + GRID_LAYOUT_FIELD_NUMBER; hash = (53 * hash) + getGridLayout().hashCode(); break; + case 6: + hash = (37 * hash) + MOSAIC_LAYOUT_FIELD_NUMBER; + hash = (53 * hash) + getMosaicLayout().hashCode(); + break; case 8: hash = (37 * hash) + ROW_LAYOUT_FIELD_NUMBER; hash = (53 * hash) + getRowLayout().hashCode(); @@ -870,6 +959,13 @@ public com.google.monitoring.dashboard.v1.Dashboard buildPartial() { result.layout_ = gridLayoutBuilder_.build(); } } + if (layoutCase_ == 6) { + if (mosaicLayoutBuilder_ == null) { + result.layout_ = layout_; + } else { + result.layout_ = mosaicLayoutBuilder_.build(); + } + } if (layoutCase_ == 8) { if (rowLayoutBuilder_ == null) { result.layout_ = layout_; @@ -952,6 +1048,11 @@ public Builder mergeFrom(com.google.monitoring.dashboard.v1.Dashboard other) { mergeGridLayout(other.getGridLayout()); break; } + case MOSAIC_LAYOUT: + { + mergeMosaicLayout(other.getMosaicLayout()); + break; + } case ROW_LAYOUT: { mergeRowLayout(other.getRowLayout()); @@ -1576,6 +1677,224 @@ public com.google.monitoring.dashboard.v1.GridLayoutOrBuilder getGridLayoutOrBui return gridLayoutBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.MosaicLayout, + com.google.monitoring.dashboard.v1.MosaicLayout.Builder, + com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder> + mosaicLayoutBuilder_; + /** + * + * + *
+     * The content is arranged as a grid of tiles, with each content widget
+     * occupying one or more grid blocks.
+     * 
+ * + * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + * + * @return Whether the mosaicLayout field is set. + */ + @java.lang.Override + public boolean hasMosaicLayout() { + return layoutCase_ == 6; + } + /** + * + * + *
+     * The content is arranged as a grid of tiles, with each content widget
+     * occupying one or more grid blocks.
+     * 
+ * + * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + * + * @return The mosaicLayout. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.MosaicLayout getMosaicLayout() { + if (mosaicLayoutBuilder_ == null) { + if (layoutCase_ == 6) { + return (com.google.monitoring.dashboard.v1.MosaicLayout) layout_; + } + return com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance(); + } else { + if (layoutCase_ == 6) { + return mosaicLayoutBuilder_.getMessage(); + } + return com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance(); + } + } + /** + * + * + *
+     * The content is arranged as a grid of tiles, with each content widget
+     * occupying one or more grid blocks.
+     * 
+ * + * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + */ + public Builder setMosaicLayout(com.google.monitoring.dashboard.v1.MosaicLayout value) { + if (mosaicLayoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + layout_ = value; + onChanged(); + } else { + mosaicLayoutBuilder_.setMessage(value); + } + layoutCase_ = 6; + return this; + } + /** + * + * + *
+     * The content is arranged as a grid of tiles, with each content widget
+     * occupying one or more grid blocks.
+     * 
+ * + * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + */ + public Builder setMosaicLayout( + com.google.monitoring.dashboard.v1.MosaicLayout.Builder builderForValue) { + if (mosaicLayoutBuilder_ == null) { + layout_ = builderForValue.build(); + onChanged(); + } else { + mosaicLayoutBuilder_.setMessage(builderForValue.build()); + } + layoutCase_ = 6; + return this; + } + /** + * + * + *
+     * The content is arranged as a grid of tiles, with each content widget
+     * occupying one or more grid blocks.
+     * 
+ * + * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + */ + public Builder mergeMosaicLayout(com.google.monitoring.dashboard.v1.MosaicLayout value) { + if (mosaicLayoutBuilder_ == null) { + if (layoutCase_ == 6 + && layout_ != com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance()) { + layout_ = + com.google.monitoring.dashboard.v1.MosaicLayout.newBuilder( + (com.google.monitoring.dashboard.v1.MosaicLayout) layout_) + .mergeFrom(value) + .buildPartial(); + } else { + layout_ = value; + } + onChanged(); + } else { + if (layoutCase_ == 6) { + mosaicLayoutBuilder_.mergeFrom(value); + } + mosaicLayoutBuilder_.setMessage(value); + } + layoutCase_ = 6; + return this; + } + /** + * + * + *
+     * The content is arranged as a grid of tiles, with each content widget
+     * occupying one or more grid blocks.
+     * 
+ * + * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + */ + public Builder clearMosaicLayout() { + if (mosaicLayoutBuilder_ == null) { + if (layoutCase_ == 6) { + layoutCase_ = 0; + layout_ = null; + onChanged(); + } + } else { + if (layoutCase_ == 6) { + layoutCase_ = 0; + layout_ = null; + } + mosaicLayoutBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The content is arranged as a grid of tiles, with each content widget
+     * occupying one or more grid blocks.
+     * 
+ * + * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + */ + public com.google.monitoring.dashboard.v1.MosaicLayout.Builder getMosaicLayoutBuilder() { + return getMosaicLayoutFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The content is arranged as a grid of tiles, with each content widget
+     * occupying one or more grid blocks.
+     * 
+ * + * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder getMosaicLayoutOrBuilder() { + if ((layoutCase_ == 6) && (mosaicLayoutBuilder_ != null)) { + return mosaicLayoutBuilder_.getMessageOrBuilder(); + } else { + if (layoutCase_ == 6) { + return (com.google.monitoring.dashboard.v1.MosaicLayout) layout_; + } + return com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance(); + } + } + /** + * + * + *
+     * The content is arranged as a grid of tiles, with each content widget
+     * occupying one or more grid blocks.
+     * 
+ * + * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.MosaicLayout, + com.google.monitoring.dashboard.v1.MosaicLayout.Builder, + com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder> + getMosaicLayoutFieldBuilder() { + if (mosaicLayoutBuilder_ == null) { + if (!(layoutCase_ == 6)) { + layout_ = com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance(); + } + mosaicLayoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.MosaicLayout, + com.google.monitoring.dashboard.v1.MosaicLayout.Builder, + com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder>( + (com.google.monitoring.dashboard.v1.MosaicLayout) layout_, + getParentForChildren(), + isClean()); + layout_ = null; + } + layoutCase_ = 6; + onChanged(); + ; + return mosaicLayoutBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.monitoring.dashboard.v1.RowLayout, com.google.monitoring.dashboard.v1.RowLayout.Builder, 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 3bd4d814..0afa80b6 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 @@ -148,6 +148,44 @@ public interface DashboardOrBuilder */ com.google.monitoring.dashboard.v1.GridLayoutOrBuilder getGridLayoutOrBuilder(); + /** + * + * + *
+   * The content is arranged as a grid of tiles, with each content widget
+   * occupying one or more grid blocks.
+   * 
+ * + * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + * + * @return Whether the mosaicLayout field is set. + */ + boolean hasMosaicLayout(); + /** + * + * + *
+   * The content is arranged as a grid of tiles, with each content widget
+   * occupying one or more grid blocks.
+   * 
+ * + * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + * + * @return The mosaicLayout. + */ + com.google.monitoring.dashboard.v1.MosaicLayout getMosaicLayout(); + /** + * + * + *
+   * The content is arranged as a grid of tiles, with each content widget
+   * occupying one or more grid blocks.
+   * 
+ * + * .google.monitoring.dashboard.v1.MosaicLayout mosaic_layout = 6; + */ + com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder getMosaicLayoutOrBuilder(); + /** * * 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 fc8783c6..0782d96e 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 @@ -44,21 +44,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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\"\361\002\n\tDashboard" + + "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\022?\n\nrow_layout\030\010 \001(\0132).google.mon" - + "itoring.dashboard.v1.RowLayoutH\000\022E\n\rcolu" - + "mn_layout\030\t \001(\0132,.google.monitoring.dash" - + "board.v1.ColumnLayoutH\000:S\352AP\n#monitoring" - + ".googleapis.com/Dashboard\022)projects/{pro" - + "ject}/dashboards/{dashboard}B\010\n\006layoutB\253" - + "\001\n\"com.google.monitoring.dashboard.v1B\017D" - + "ashboardsProtoP\001ZGgoogle.golang.org/genp" - + "roto/googleapis/monitoring/dashboard/v1;" - + "dashboard\352\002(Google::Cloud::Monitoring::D" - + "ashboard::V1b\006proto3" + + "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\253\001\n\"com.go" + + "ogle.monitoring.dashboard.v1B\017Dashboards" + + "ProtoP\001ZGgoogle.golang.org/genproto/goog" + + "leapis/monitoring/dashboard/v1;dashboard" + + "\352\002(Google::Cloud::Monitoring::Dashboard:" + + ":V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -74,7 +76,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_monitoring_dashboard_v1_Dashboard_descriptor, new java.lang.String[] { - "Name", "DisplayName", "Etag", "GridLayout", "RowLayout", "ColumnLayout", "Layout", + "Name", + "DisplayName", + "Etag", + "GridLayout", + "MosaicLayout", + "RowLayout", + "ColumnLayout", + "Layout", }); 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/LayoutsProto.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java index cb76ffbe..c6deb9e3 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/LayoutsProto.java @@ -31,6 +31,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_monitoring_dashboard_v1_GridLayout_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_monitoring_dashboard_v1_GridLayout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -61,19 +69,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/monitoring/dashboard/v1/widget.pr" + "oto\"V\n\nGridLayout\022\017\n\007columns\030\001 \001(\003\0227\n\007wi" + "dgets\030\002 \003(\0132&.google.monitoring.dashboar" - + "d.v1.Widget\"\230\001\n\tRowLayout\022;\n\004rows\030\001 \003(\0132" - + "-.google.monitoring.dashboard.v1.RowLayo" - + "ut.Row\032N\n\003Row\022\016\n\006weight\030\001 \001(\003\0227\n\007widgets" - + "\030\002 \003(\0132&.google.monitoring.dashboard.v1." - + "Widget\"\247\001\n\014ColumnLayout\022D\n\007columns\030\001 \003(\013" - + "23.google.monitoring.dashboard.v1.Column" - + "Layout.Column\032Q\n\006Column\022\016\n\006weight\030\001 \001(\003\022" - + "7\n\007widgets\030\002 \003(\0132&.google.monitoring.das" - + "hboard.v1.WidgetB\250\001\n\"com.google.monitori" - + "ng.dashboard.v1B\014LayoutsProtoP\001ZGgoogle." - + "golang.org/genproto/googleapis/monitorin" - + "g/dashboard/v1;dashboard\352\002(Google::Cloud" - + "::Monitoring::Dashboard::V1b\006proto3" + + "d.v1.Widget\"\336\001\n\014MosaicLayout\022\017\n\007columns\030" + + "\001 \001(\005\022@\n\005tiles\030\003 \003(\01321.google.monitoring" + + ".dashboard.v1.MosaicLayout.Tile\032{\n\004Tile\022" + + "\r\n\005x_pos\030\001 \001(\005\022\r\n\005y_pos\030\002 \001(\005\022\r\n\005width\030\003" + + " \001(\005\022\016\n\006height\030\004 \001(\005\0226\n\006widget\030\005 \001(\0132&.g" + + "oogle.monitoring.dashboard.v1.Widget\"\230\001\n" + + "\tRowLayout\022;\n\004rows\030\001 \003(\0132-.google.monito" + + "ring.dashboard.v1.RowLayout.Row\032N\n\003Row\022\016" + + "\n\006weight\030\001 \001(\003\0227\n\007widgets\030\002 \003(\0132&.google" + + ".monitoring.dashboard.v1.Widget\"\247\001\n\014Colu" + + "mnLayout\022D\n\007columns\030\001 \003(\01323.google.monit" + + "oring.dashboard.v1.ColumnLayout.Column\032Q" + + "\n\006Column\022\016\n\006weight\030\001 \001(\003\0227\n\007widgets\030\002 \003(" + + "\0132&.google.monitoring.dashboard.v1.Widge" + + "tB\250\001\n\"com.google.monitoring.dashboard.v1" + + "B\014LayoutsProtoP\001ZGgoogle.golang.org/genp" + + "roto/googleapis/monitoring/dashboard/v1;" + + "dashboard\352\002(Google::Cloud::Monitoring::D" + + "ashboard::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -89,8 +103,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Columns", "Widgets", }); - internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor = + internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor, + new java.lang.String[] { + "Columns", "Tiles", + }); + internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor = + internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor + .getNestedTypes() + .get(0); + internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor, + new java.lang.String[] { + "XPos", "YPos", "Width", "Height", "Widget", + }); + internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_monitoring_dashboard_v1_RowLayout_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_monitoring_dashboard_v1_RowLayout_descriptor, @@ -106,7 +138,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Weight", "Widgets", }); internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_google_monitoring_dashboard_v1_ColumnLayout_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_monitoring_dashboard_v1_ColumnLayout_descriptor, diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java new file mode 100644 index 00000000..aeadfc47 --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java @@ -0,0 +1,2252 @@ +/* + * 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/layouts.proto + +package com.google.monitoring.dashboard.v1; + +/** + * + * + *
+ * A mosaic layout divides the available space into a grid of blocks, and
+ * overlays the grid with tiles. Unlike `GridLayout`, tiles may span multiple
+ * grid blocks and can be placed at arbitrary locations in the grid.
+ * 
+ * + * Protobuf type {@code google.monitoring.dashboard.v1.MosaicLayout} + */ +public final class MosaicLayout extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.MosaicLayout) + MosaicLayoutOrBuilder { + private static final long serialVersionUID = 0L; + // Use MosaicLayout.newBuilder() to construct. + private MosaicLayout(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MosaicLayout() { + tiles_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MosaicLayout(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MosaicLayout( + 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 8: + { + columns_ = input.readInt32(); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tiles_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tiles_.add( + input.readMessage( + com.google.monitoring.dashboard.v1.MosaicLayout.Tile.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)) { + tiles_ = java.util.Collections.unmodifiableList(tiles_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.MosaicLayout.class, + com.google.monitoring.dashboard.v1.MosaicLayout.Builder.class); + } + + public interface TileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.MosaicLayout.Tile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The zero-indexed position of the tile in grid blocks relative to the
+     * left edge of the grid. Tiles must be contained within the specified
+     * number of columns. `x_pos` cannot be negative.
+     * 
+ * + * int32 x_pos = 1; + * + * @return The xPos. + */ + int getXPos(); + + /** + * + * + *
+     * The zero-indexed position of the tile in grid blocks relative to the
+     * top edge of the grid. `y_pos` cannot be negative.
+     * 
+ * + * int32 y_pos = 2; + * + * @return The yPos. + */ + int getYPos(); + + /** + * + * + *
+     * The width of the tile, measured in grid blocks. Tiles must have a
+     * minimum width of 1.
+     * 
+ * + * int32 width = 3; + * + * @return The width. + */ + int getWidth(); + + /** + * + * + *
+     * The height of the tile, measured in grid blocks. Tiles must have a
+     * minimum height of 1.
+     * 
+ * + * int32 height = 4; + * + * @return The height. + */ + int getHeight(); + + /** + * + * + *
+     * The informational widget contained in the tile. For example an `XyChart`.
+     * 
+ * + * .google.monitoring.dashboard.v1.Widget widget = 5; + * + * @return Whether the widget field is set. + */ + boolean hasWidget(); + /** + * + * + *
+     * The informational widget contained in the tile. For example an `XyChart`.
+     * 
+ * + * .google.monitoring.dashboard.v1.Widget widget = 5; + * + * @return The widget. + */ + com.google.monitoring.dashboard.v1.Widget getWidget(); + /** + * + * + *
+     * The informational widget contained in the tile. For example an `XyChart`.
+     * 
+ * + * .google.monitoring.dashboard.v1.Widget widget = 5; + */ + com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetOrBuilder(); + } + /** + * + * + *
+   * A single tile in the mosaic. The placement and size of the tile are
+   * configurable.
+   * 
+ * + * Protobuf type {@code google.monitoring.dashboard.v1.MosaicLayout.Tile} + */ + public static final class Tile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.MosaicLayout.Tile) + TileOrBuilder { + private static final long serialVersionUID = 0L; + // Use Tile.newBuilder() to construct. + private Tile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Tile() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Tile(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Tile( + 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: + { + xPos_ = input.readInt32(); + break; + } + case 16: + { + yPos_ = input.readInt32(); + break; + } + case 24: + { + width_ = input.readInt32(); + break; + } + case 32: + { + height_ = input.readInt32(); + break; + } + case 42: + { + com.google.monitoring.dashboard.v1.Widget.Builder subBuilder = null; + if (widget_ != null) { + subBuilder = widget_.toBuilder(); + } + widget_ = + input.readMessage( + com.google.monitoring.dashboard.v1.Widget.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(widget_); + widget_ = 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.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.MosaicLayout.Tile.class, + com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder.class); + } + + public static final int X_POS_FIELD_NUMBER = 1; + private int xPos_; + /** + * + * + *
+     * The zero-indexed position of the tile in grid blocks relative to the
+     * left edge of the grid. Tiles must be contained within the specified
+     * number of columns. `x_pos` cannot be negative.
+     * 
+ * + * int32 x_pos = 1; + * + * @return The xPos. + */ + @java.lang.Override + public int getXPos() { + return xPos_; + } + + public static final int Y_POS_FIELD_NUMBER = 2; + private int yPos_; + /** + * + * + *
+     * The zero-indexed position of the tile in grid blocks relative to the
+     * top edge of the grid. `y_pos` cannot be negative.
+     * 
+ * + * int32 y_pos = 2; + * + * @return The yPos. + */ + @java.lang.Override + public int getYPos() { + return yPos_; + } + + public static final int WIDTH_FIELD_NUMBER = 3; + private int width_; + /** + * + * + *
+     * The width of the tile, measured in grid blocks. Tiles must have a
+     * minimum width of 1.
+     * 
+ * + * int32 width = 3; + * + * @return The width. + */ + @java.lang.Override + public int getWidth() { + return width_; + } + + public static final int HEIGHT_FIELD_NUMBER = 4; + private int height_; + /** + * + * + *
+     * The height of the tile, measured in grid blocks. Tiles must have a
+     * minimum height of 1.
+     * 
+ * + * int32 height = 4; + * + * @return The height. + */ + @java.lang.Override + public int getHeight() { + return height_; + } + + public static final int WIDGET_FIELD_NUMBER = 5; + private com.google.monitoring.dashboard.v1.Widget widget_; + /** + * + * + *
+     * The informational widget contained in the tile. For example an `XyChart`.
+     * 
+ * + * .google.monitoring.dashboard.v1.Widget widget = 5; + * + * @return Whether the widget field is set. + */ + @java.lang.Override + public boolean hasWidget() { + return widget_ != null; + } + /** + * + * + *
+     * The informational widget contained in the tile. For example an `XyChart`.
+     * 
+ * + * .google.monitoring.dashboard.v1.Widget widget = 5; + * + * @return The widget. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.Widget getWidget() { + return widget_ == null + ? com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() + : widget_; + } + /** + * + * + *
+     * The informational widget contained in the tile. For example an `XyChart`.
+     * 
+ * + * .google.monitoring.dashboard.v1.Widget widget = 5; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetOrBuilder() { + return getWidget(); + } + + 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 (xPos_ != 0) { + output.writeInt32(1, xPos_); + } + if (yPos_ != 0) { + output.writeInt32(2, yPos_); + } + if (width_ != 0) { + output.writeInt32(3, width_); + } + if (height_ != 0) { + output.writeInt32(4, height_); + } + if (widget_ != null) { + output.writeMessage(5, getWidget()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (xPos_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, xPos_); + } + if (yPos_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, yPos_); + } + if (width_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, width_); + } + if (height_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, height_); + } + if (widget_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getWidget()); + } + 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.MosaicLayout.Tile)) { + return super.equals(obj); + } + com.google.monitoring.dashboard.v1.MosaicLayout.Tile other = + (com.google.monitoring.dashboard.v1.MosaicLayout.Tile) obj; + + if (getXPos() != other.getXPos()) return false; + if (getYPos() != other.getYPos()) return false; + if (getWidth() != other.getWidth()) return false; + if (getHeight() != other.getHeight()) return false; + if (hasWidget() != other.hasWidget()) return false; + if (hasWidget()) { + if (!getWidget().equals(other.getWidget())) 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) + X_POS_FIELD_NUMBER; + hash = (53 * hash) + getXPos(); + hash = (37 * hash) + Y_POS_FIELD_NUMBER; + hash = (53 * hash) + getYPos(); + hash = (37 * hash) + WIDTH_FIELD_NUMBER; + hash = (53 * hash) + getWidth(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + getHeight(); + if (hasWidget()) { + hash = (37 * hash) + WIDGET_FIELD_NUMBER; + hash = (53 * hash) + getWidget().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( + java.io.InputStream input, 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.MosaicLayout.Tile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @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.MosaicLayout.Tile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A single tile in the mosaic. The placement and size of the tile are
+     * configurable.
+     * 
+ * + * Protobuf type {@code google.monitoring.dashboard.v1.MosaicLayout.Tile} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.MosaicLayout.Tile) + com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.MosaicLayout.Tile.class, + com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder.class); + } + + // Construct using com.google.monitoring.dashboard.v1.MosaicLayout.Tile.newBuilder() + 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(); + xPos_ = 0; + + yPos_ = 0; + + width_ = 0; + + height_ = 0; + + if (widgetBuilder_ == null) { + widget_ = null; + } else { + widget_ = null; + widgetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_MosaicLayout_Tile_descriptor; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.MosaicLayout.Tile getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.MosaicLayout.Tile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.MosaicLayout.Tile build() { + com.google.monitoring.dashboard.v1.MosaicLayout.Tile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.MosaicLayout.Tile buildPartial() { + com.google.monitoring.dashboard.v1.MosaicLayout.Tile result = + new com.google.monitoring.dashboard.v1.MosaicLayout.Tile(this); + result.xPos_ = xPos_; + result.yPos_ = yPos_; + result.width_ = width_; + result.height_ = height_; + if (widgetBuilder_ == null) { + result.widget_ = widget_; + } else { + result.widget_ = widgetBuilder_.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.MosaicLayout.Tile) { + return mergeFrom((com.google.monitoring.dashboard.v1.MosaicLayout.Tile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.dashboard.v1.MosaicLayout.Tile other) { + if (other == com.google.monitoring.dashboard.v1.MosaicLayout.Tile.getDefaultInstance()) + return this; + if (other.getXPos() != 0) { + setXPos(other.getXPos()); + } + if (other.getYPos() != 0) { + setYPos(other.getYPos()); + } + if (other.getWidth() != 0) { + setWidth(other.getWidth()); + } + if (other.getHeight() != 0) { + setHeight(other.getHeight()); + } + if (other.hasWidget()) { + mergeWidget(other.getWidget()); + } + 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.MosaicLayout.Tile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.monitoring.dashboard.v1.MosaicLayout.Tile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int xPos_; + /** + * + * + *
+       * The zero-indexed position of the tile in grid blocks relative to the
+       * left edge of the grid. Tiles must be contained within the specified
+       * number of columns. `x_pos` cannot be negative.
+       * 
+ * + * int32 x_pos = 1; + * + * @return The xPos. + */ + @java.lang.Override + public int getXPos() { + return xPos_; + } + /** + * + * + *
+       * The zero-indexed position of the tile in grid blocks relative to the
+       * left edge of the grid. Tiles must be contained within the specified
+       * number of columns. `x_pos` cannot be negative.
+       * 
+ * + * int32 x_pos = 1; + * + * @param value The xPos to set. + * @return This builder for chaining. + */ + public Builder setXPos(int value) { + + xPos_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The zero-indexed position of the tile in grid blocks relative to the
+       * left edge of the grid. Tiles must be contained within the specified
+       * number of columns. `x_pos` cannot be negative.
+       * 
+ * + * int32 x_pos = 1; + * + * @return This builder for chaining. + */ + public Builder clearXPos() { + + xPos_ = 0; + onChanged(); + return this; + } + + private int yPos_; + /** + * + * + *
+       * The zero-indexed position of the tile in grid blocks relative to the
+       * top edge of the grid. `y_pos` cannot be negative.
+       * 
+ * + * int32 y_pos = 2; + * + * @return The yPos. + */ + @java.lang.Override + public int getYPos() { + return yPos_; + } + /** + * + * + *
+       * The zero-indexed position of the tile in grid blocks relative to the
+       * top edge of the grid. `y_pos` cannot be negative.
+       * 
+ * + * int32 y_pos = 2; + * + * @param value The yPos to set. + * @return This builder for chaining. + */ + public Builder setYPos(int value) { + + yPos_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The zero-indexed position of the tile in grid blocks relative to the
+       * top edge of the grid. `y_pos` cannot be negative.
+       * 
+ * + * int32 y_pos = 2; + * + * @return This builder for chaining. + */ + public Builder clearYPos() { + + yPos_ = 0; + onChanged(); + return this; + } + + private int width_; + /** + * + * + *
+       * The width of the tile, measured in grid blocks. Tiles must have a
+       * minimum width of 1.
+       * 
+ * + * int32 width = 3; + * + * @return The width. + */ + @java.lang.Override + public int getWidth() { + return width_; + } + /** + * + * + *
+       * The width of the tile, measured in grid blocks. Tiles must have a
+       * minimum width of 1.
+       * 
+ * + * int32 width = 3; + * + * @param value The width to set. + * @return This builder for chaining. + */ + public Builder setWidth(int value) { + + width_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The width of the tile, measured in grid blocks. Tiles must have a
+       * minimum width of 1.
+       * 
+ * + * int32 width = 3; + * + * @return This builder for chaining. + */ + public Builder clearWidth() { + + width_ = 0; + onChanged(); + return this; + } + + private int height_; + /** + * + * + *
+       * The height of the tile, measured in grid blocks. Tiles must have a
+       * minimum height of 1.
+       * 
+ * + * int32 height = 4; + * + * @return The height. + */ + @java.lang.Override + public int getHeight() { + return height_; + } + /** + * + * + *
+       * The height of the tile, measured in grid blocks. Tiles must have a
+       * minimum height of 1.
+       * 
+ * + * int32 height = 4; + * + * @param value The height to set. + * @return This builder for chaining. + */ + public Builder setHeight(int value) { + + height_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The height of the tile, measured in grid blocks. Tiles must have a
+       * minimum height of 1.
+       * 
+ * + * int32 height = 4; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0; + onChanged(); + return this; + } + + private com.google.monitoring.dashboard.v1.Widget widget_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Widget, + com.google.monitoring.dashboard.v1.Widget.Builder, + com.google.monitoring.dashboard.v1.WidgetOrBuilder> + widgetBuilder_; + /** + * + * + *
+       * The informational widget contained in the tile. For example an `XyChart`.
+       * 
+ * + * .google.monitoring.dashboard.v1.Widget widget = 5; + * + * @return Whether the widget field is set. + */ + public boolean hasWidget() { + return widgetBuilder_ != null || widget_ != null; + } + /** + * + * + *
+       * The informational widget contained in the tile. For example an `XyChart`.
+       * 
+ * + * .google.monitoring.dashboard.v1.Widget widget = 5; + * + * @return The widget. + */ + public com.google.monitoring.dashboard.v1.Widget getWidget() { + if (widgetBuilder_ == null) { + return widget_ == null + ? com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() + : widget_; + } else { + return widgetBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The informational widget contained in the tile. For example an `XyChart`.
+       * 
+ * + * .google.monitoring.dashboard.v1.Widget widget = 5; + */ + public Builder setWidget(com.google.monitoring.dashboard.v1.Widget value) { + if (widgetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + widget_ = value; + onChanged(); + } else { + widgetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The informational widget contained in the tile. For example an `XyChart`.
+       * 
+ * + * .google.monitoring.dashboard.v1.Widget widget = 5; + */ + public Builder setWidget(com.google.monitoring.dashboard.v1.Widget.Builder builderForValue) { + if (widgetBuilder_ == null) { + widget_ = builderForValue.build(); + onChanged(); + } else { + widgetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The informational widget contained in the tile. For example an `XyChart`.
+       * 
+ * + * .google.monitoring.dashboard.v1.Widget widget = 5; + */ + public Builder mergeWidget(com.google.monitoring.dashboard.v1.Widget value) { + if (widgetBuilder_ == null) { + if (widget_ != null) { + widget_ = + com.google.monitoring.dashboard.v1.Widget.newBuilder(widget_) + .mergeFrom(value) + .buildPartial(); + } else { + widget_ = value; + } + onChanged(); + } else { + widgetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The informational widget contained in the tile. For example an `XyChart`.
+       * 
+ * + * .google.monitoring.dashboard.v1.Widget widget = 5; + */ + public Builder clearWidget() { + if (widgetBuilder_ == null) { + widget_ = null; + onChanged(); + } else { + widget_ = null; + widgetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The informational widget contained in the tile. For example an `XyChart`.
+       * 
+ * + * .google.monitoring.dashboard.v1.Widget widget = 5; + */ + public com.google.monitoring.dashboard.v1.Widget.Builder getWidgetBuilder() { + + onChanged(); + return getWidgetFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The informational widget contained in the tile. For example an `XyChart`.
+       * 
+ * + * .google.monitoring.dashboard.v1.Widget widget = 5; + */ + public com.google.monitoring.dashboard.v1.WidgetOrBuilder getWidgetOrBuilder() { + if (widgetBuilder_ != null) { + return widgetBuilder_.getMessageOrBuilder(); + } else { + return widget_ == null + ? com.google.monitoring.dashboard.v1.Widget.getDefaultInstance() + : widget_; + } + } + /** + * + * + *
+       * The informational widget contained in the tile. For example an `XyChart`.
+       * 
+ * + * .google.monitoring.dashboard.v1.Widget widget = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Widget, + com.google.monitoring.dashboard.v1.Widget.Builder, + com.google.monitoring.dashboard.v1.WidgetOrBuilder> + getWidgetFieldBuilder() { + if (widgetBuilder_ == null) { + widgetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.dashboard.v1.Widget, + com.google.monitoring.dashboard.v1.Widget.Builder, + com.google.monitoring.dashboard.v1.WidgetOrBuilder>( + getWidget(), getParentForChildren(), isClean()); + widget_ = null; + } + return widgetBuilder_; + } + + @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.MosaicLayout.Tile) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.MosaicLayout.Tile) + private static final com.google.monitoring.dashboard.v1.MosaicLayout.Tile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.MosaicLayout.Tile(); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout.Tile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Tile(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.MosaicLayout.Tile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int COLUMNS_FIELD_NUMBER = 1; + private int columns_; + /** + * + * + *
+   * The number of columns in the mosaic grid. The number of columns must be
+   * between 1 and 12, inclusive.
+   * 
+ * + * int32 columns = 1; + * + * @return The columns. + */ + @java.lang.Override + public int getColumns() { + return columns_; + } + + public static final int TILES_FIELD_NUMBER = 3; + private java.util.List tiles_; + /** + * + * + *
+   * The tiles to display.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + @java.lang.Override + public java.util.List getTilesList() { + return tiles_; + } + /** + * + * + *
+   * The tiles to display.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + @java.lang.Override + public java.util.List + getTilesOrBuilderList() { + return tiles_; + } + /** + * + * + *
+   * The tiles to display.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + @java.lang.Override + public int getTilesCount() { + return tiles_.size(); + } + /** + * + * + *
+   * The tiles to display.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.MosaicLayout.Tile getTiles(int index) { + return tiles_.get(index); + } + /** + * + * + *
+   * The tiles to display.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder getTilesOrBuilder( + int index) { + return tiles_.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 { + if (columns_ != 0) { + output.writeInt32(1, columns_); + } + for (int i = 0; i < tiles_.size(); i++) { + output.writeMessage(3, tiles_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (columns_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, columns_); + } + for (int i = 0; i < tiles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, tiles_.get(i)); + } + size += 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.MosaicLayout)) { + return super.equals(obj); + } + com.google.monitoring.dashboard.v1.MosaicLayout other = + (com.google.monitoring.dashboard.v1.MosaicLayout) obj; + + if (getColumns() != other.getColumns()) return false; + if (!getTilesList().equals(other.getTilesList())) return false; + if (!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) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumns(); + if (getTilesCount() > 0) { + hash = (37 * hash) + TILES_FIELD_NUMBER; + hash = (53 * hash) + getTilesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout 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.MosaicLayout parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @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.MosaicLayout 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 mosaic layout divides the available space into a grid of blocks, and
+   * overlays the grid with tiles. Unlike `GridLayout`, tiles may span multiple
+   * grid blocks and can be placed at arbitrary locations in the grid.
+   * 
+ * + * Protobuf type {@code google.monitoring.dashboard.v1.MosaicLayout} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.MosaicLayout) + com.google.monitoring.dashboard.v1.MosaicLayoutOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_MosaicLayout_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.MosaicLayout.class, + com.google.monitoring.dashboard.v1.MosaicLayout.Builder.class); + } + + // Construct using com.google.monitoring.dashboard.v1.MosaicLayout.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTilesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + columns_ = 0; + + if (tilesBuilder_ == null) { + tiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + tilesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.LayoutsProto + .internal_static_google_monitoring_dashboard_v1_MosaicLayout_descriptor; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.MosaicLayout getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.MosaicLayout build() { + com.google.monitoring.dashboard.v1.MosaicLayout result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.MosaicLayout buildPartial() { + com.google.monitoring.dashboard.v1.MosaicLayout result = + new com.google.monitoring.dashboard.v1.MosaicLayout(this); + int from_bitField0_ = bitField0_; + result.columns_ = columns_; + if (tilesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tiles_ = java.util.Collections.unmodifiableList(tiles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tiles_ = tiles_; + } else { + result.tiles_ = tilesBuilder_.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.MosaicLayout) { + return mergeFrom((com.google.monitoring.dashboard.v1.MosaicLayout) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.dashboard.v1.MosaicLayout other) { + if (other == com.google.monitoring.dashboard.v1.MosaicLayout.getDefaultInstance()) + return this; + if (other.getColumns() != 0) { + setColumns(other.getColumns()); + } + if (tilesBuilder_ == null) { + if (!other.tiles_.isEmpty()) { + if (tiles_.isEmpty()) { + tiles_ = other.tiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTilesIsMutable(); + tiles_.addAll(other.tiles_); + } + onChanged(); + } + } else { + if (!other.tiles_.isEmpty()) { + if (tilesBuilder_.isEmpty()) { + tilesBuilder_.dispose(); + tilesBuilder_ = null; + tiles_ = other.tiles_; + bitField0_ = (bitField0_ & ~0x00000001); + tilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTilesFieldBuilder() + : null; + } else { + tilesBuilder_.addAllMessages(other.tiles_); + } + } + } + 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.MosaicLayout parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.monitoring.dashboard.v1.MosaicLayout) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int columns_; + /** + * + * + *
+     * The number of columns in the mosaic grid. The number of columns must be
+     * between 1 and 12, inclusive.
+     * 
+ * + * int32 columns = 1; + * + * @return The columns. + */ + @java.lang.Override + public int getColumns() { + return columns_; + } + /** + * + * + *
+     * The number of columns in the mosaic grid. The number of columns must be
+     * between 1 and 12, inclusive.
+     * 
+ * + * int32 columns = 1; + * + * @param value The columns to set. + * @return This builder for chaining. + */ + public Builder setColumns(int value) { + + columns_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of columns in the mosaic grid. The number of columns must be
+     * between 1 and 12, inclusive.
+     * 
+ * + * int32 columns = 1; + * + * @return This builder for chaining. + */ + public Builder clearColumns() { + + columns_ = 0; + onChanged(); + return this; + } + + private java.util.List tiles_ = + java.util.Collections.emptyList(); + + private void ensureTilesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tiles_ = + new java.util.ArrayList(tiles_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.MosaicLayout.Tile, + com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder, + com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder> + tilesBuilder_; + + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public java.util.List getTilesList() { + if (tilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(tiles_); + } else { + return tilesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public int getTilesCount() { + if (tilesBuilder_ == null) { + return tiles_.size(); + } else { + return tilesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public com.google.monitoring.dashboard.v1.MosaicLayout.Tile getTiles(int index) { + if (tilesBuilder_ == null) { + return tiles_.get(index); + } else { + return tilesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public Builder setTiles(int index, com.google.monitoring.dashboard.v1.MosaicLayout.Tile value) { + if (tilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTilesIsMutable(); + tiles_.set(index, value); + onChanged(); + } else { + tilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public Builder setTiles( + int index, com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder builderForValue) { + if (tilesBuilder_ == null) { + ensureTilesIsMutable(); + tiles_.set(index, builderForValue.build()); + onChanged(); + } else { + tilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public Builder addTiles(com.google.monitoring.dashboard.v1.MosaicLayout.Tile value) { + if (tilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTilesIsMutable(); + tiles_.add(value); + onChanged(); + } else { + tilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public Builder addTiles(int index, com.google.monitoring.dashboard.v1.MosaicLayout.Tile value) { + if (tilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTilesIsMutable(); + tiles_.add(index, value); + onChanged(); + } else { + tilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public Builder addTiles( + com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder builderForValue) { + if (tilesBuilder_ == null) { + ensureTilesIsMutable(); + tiles_.add(builderForValue.build()); + onChanged(); + } else { + tilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public Builder addTiles( + int index, com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder builderForValue) { + if (tilesBuilder_ == null) { + ensureTilesIsMutable(); + tiles_.add(index, builderForValue.build()); + onChanged(); + } else { + tilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public Builder addAllTiles( + java.lang.Iterable values) { + if (tilesBuilder_ == null) { + ensureTilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tiles_); + onChanged(); + } else { + tilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public Builder clearTiles() { + if (tilesBuilder_ == null) { + tiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public Builder removeTiles(int index) { + if (tilesBuilder_ == null) { + ensureTilesIsMutable(); + tiles_.remove(index); + onChanged(); + } else { + tilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder getTilesBuilder(int index) { + return getTilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder getTilesOrBuilder( + int index) { + if (tilesBuilder_ == null) { + return tiles_.get(index); + } else { + return tilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public java.util.List + getTilesOrBuilderList() { + if (tilesBuilder_ != null) { + return tilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tiles_); + } + } + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder addTilesBuilder() { + return getTilesFieldBuilder() + .addBuilder(com.google.monitoring.dashboard.v1.MosaicLayout.Tile.getDefaultInstance()); + } + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder addTilesBuilder(int index) { + return getTilesFieldBuilder() + .addBuilder( + index, com.google.monitoring.dashboard.v1.MosaicLayout.Tile.getDefaultInstance()); + } + /** + * + * + *
+     * The tiles to display.
+     * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + public java.util.List + getTilesBuilderList() { + return getTilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.MosaicLayout.Tile, + com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder, + com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder> + getTilesFieldBuilder() { + if (tilesBuilder_ == null) { + tilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.MosaicLayout.Tile, + com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder, + com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder>( + tiles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + tiles_ = null; + } + return tilesBuilder_; + } + + @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.MosaicLayout) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.MosaicLayout) + private static final com.google.monitoring.dashboard.v1.MosaicLayout DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.MosaicLayout(); + } + + public static com.google.monitoring.dashboard.v1.MosaicLayout getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MosaicLayout parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MosaicLayout(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.MosaicLayout getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java new file mode 100644 index 00000000..58501b42 --- /dev/null +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java @@ -0,0 +1,91 @@ +/* + * 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/layouts.proto + +package com.google.monitoring.dashboard.v1; + +public interface MosaicLayoutOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.MosaicLayout) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The number of columns in the mosaic grid. The number of columns must be
+   * between 1 and 12, inclusive.
+   * 
+ * + * int32 columns = 1; + * + * @return The columns. + */ + int getColumns(); + + /** + * + * + *
+   * The tiles to display.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + java.util.List getTilesList(); + /** + * + * + *
+   * The tiles to display.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + com.google.monitoring.dashboard.v1.MosaicLayout.Tile getTiles(int index); + /** + * + * + *
+   * The tiles to display.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + int getTilesCount(); + /** + * + * + *
+   * The tiles to display.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + java.util.List + getTilesOrBuilderList(); + /** + * + * + *
+   * The tiles to display.
+   * 
+ * + * repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3; + */ + com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder getTilesOrBuilder(int index); +} diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java index 6e8cf480..9e5c4bfb 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java +++ b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ScorecardProto.java @@ -52,25 +52,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rd.proto\022\036google.monitoring.dashboard.v1" + "\032\037google/api/field_behavior.proto\032,googl" + "e/monitoring/dashboard/v1/metrics.proto\032" - + "\036google/protobuf/duration.proto\"\233\004\n\tScor" - + "ecard\022O\n\021time_series_query\030\001 \001(\0132/.googl" - + "e.monitoring.dashboard.v1.TimeSeriesQuer" - + "yB\003\340A\002\022I\n\ngauge_view\030\004 \001(\01323.google.moni" - + "toring.dashboard.v1.Scorecard.GaugeViewH" - + "\000\022T\n\020spark_chart_view\030\005 \001(\01328.google.mon" - + "itoring.dashboard.v1.Scorecard.SparkChar" - + "tViewH\000\022=\n\nthresholds\030\006 \003(\0132).google.mon" - + "itoring.dashboard.v1.Threshold\0325\n\tGaugeV" - + "iew\022\023\n\013lower_bound\030\001 \001(\001\022\023\n\013upper_bound\030" - + "\002 \001(\001\032\230\001\n\016SparkChartView\022M\n\020spark_chart_" - + "type\030\001 \001(\0162..google.monitoring.dashboard" - + ".v1.SparkChartTypeB\003\340A\002\0227\n\024min_alignment" - + "_period\030\002 \001(\0132\031.google.protobuf.Duration" - + "B\013\n\tdata_viewB\252\001\n\"com.google.monitoring." - + "dashboard.v1B\016ScorecardProtoP\001ZGgoogle.g" - + "olang.org/genproto/googleapis/monitoring" - + "/dashboard/v1;dashboard\352\002(Google::Cloud:" - + ":Monitoring::Dashboard::V1b\006proto3" + + "\036google/protobuf/duration.proto\032\033google/" + + "protobuf/empty.proto\"\233\004\n\tScorecard\022O\n\021ti" + + "me_series_query\030\001 \001(\0132/.google.monitorin" + + "g.dashboard.v1.TimeSeriesQueryB\003\340A\002\022I\n\ng" + + "auge_view\030\004 \001(\01323.google.monitoring.dash" + + "board.v1.Scorecard.GaugeViewH\000\022T\n\020spark_" + + "chart_view\030\005 \001(\01328.google.monitoring.das" + + "hboard.v1.Scorecard.SparkChartViewH\000\022=\n\n" + + "thresholds\030\006 \003(\0132).google.monitoring.das" + + "hboard.v1.Threshold\0325\n\tGaugeView\022\023\n\013lowe" + + "r_bound\030\001 \001(\001\022\023\n\013upper_bound\030\002 \001(\001\032\230\001\n\016S" + + "parkChartView\022M\n\020spark_chart_type\030\001 \001(\0162" + + "..google.monitoring.dashboard.v1.SparkCh" + + "artTypeB\003\340A\002\0227\n\024min_alignment_period\030\002 \001" + + "(\0132\031.google.protobuf.DurationB\013\n\tdata_vi" + + "ewB\252\001\n\"com.google.monitoring.dashboard.v" + + "1B\016ScorecardProtoP\001ZGgoogle.golang.org/g" + + "enproto/googleapis/monitoring/dashboard/" + + "v1;dashboard\352\002(Google::Cloud::Monitoring" + + "::Dashboard::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -79,6 +80,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), }); internal_static_google_monitoring_dashboard_v1_Scorecard_descriptor = getDescriptor().getMessageTypes().get(0); @@ -112,6 +114,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.monitoring.dashboard.v1.MetricsProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/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 6dedcf09..ad222576 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 2020 Google LLC +// 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. @@ -316,6 +316,8 @@ message Aggregation { // `ALIGN_NONE` is specified, this field is required or an error is returned. // If no per-series aligner is specified, or the aligner `ALIGN_NONE` is // specified, then this field is ignored. + // + // The maximum value of the `alignment_period` is 2 years, or 104 weeks. google.protobuf.Duration alignment_period = 1; // An `Aligner` describes how to bring the data points in a single 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 7a25776e..f155e725 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 2020 Google LLC +// 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. @@ -55,6 +55,10 @@ message Dashboard { // informational elements like widgets or tiles. GridLayout grid_layout = 5; + // The content is arranged as a grid of tiles, with each content widget + // occupying one or more grid blocks. + MosaicLayout mosaic_layout = 6; + // The content is divided into equally spaced rows and the widgets are // arranged horizontally. RowLayout row_layout = 8; 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 a7cbef56..92112f68 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 2020 Google LLC +// 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. @@ -40,11 +40,8 @@ service DashboardsService { "https://www.googleapis.com/auth/monitoring.read," "https://www.googleapis.com/auth/monitoring.write"; - // Creates a new custom dashboard. - // - // This method requires the `monitoring.dashboards.create` permission - // on the specified project. For more information, see - // [Google Cloud IAM](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" @@ -56,7 +53,7 @@ service DashboardsService { // // This method requires the `monitoring.dashboards.list` permission // on the specified project. For more information, see - // [Google Cloud IAM](https://cloud.google.com/iam). + // [Cloud Identity and Access Management](https://cloud.google.com/iam). rpc ListDashboards(ListDashboardsRequest) returns (ListDashboardsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*}/dashboards" @@ -67,7 +64,7 @@ service DashboardsService { // // This method requires the `monitoring.dashboards.get` permission // on the specified dashboard. For more information, see - // [Google Cloud IAM](https://cloud.google.com/iam). + // [Cloud Identity and Access Management](https://cloud.google.com/iam). rpc GetDashboard(GetDashboardRequest) returns (Dashboard) { option (google.api.http) = { get: "/v1/{name=projects/*/dashboards/*}" @@ -78,7 +75,7 @@ service DashboardsService { // // This method requires the `monitoring.dashboards.delete` permission // on the specified dashboard. For more information, see - // [Google Cloud IAM](https://cloud.google.com/iam). + // [Cloud Identity and Access Management](https://cloud.google.com/iam). rpc DeleteDashboard(DeleteDashboardRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=projects/*/dashboards/*}" @@ -89,7 +86,7 @@ service DashboardsService { // // This method requires the `monitoring.dashboards.update` permission // on the specified dashboard. For more information, see - // [Google Cloud IAM](https://cloud.google.com/iam). + // [Cloud Identity and Access Management](https://cloud.google.com/iam). rpc UpdateDashboard(UpdateDashboardRequest) returns (Dashboard) { option (google.api.http) = { patch: "/v1/{dashboard.name=projects/*/dashboards/*}" 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 0080df5c..1899e575 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 2020 Google LLC +// 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. 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 acc0517c..dbc6dc43 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 2020 Google LLC +// 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. @@ -35,6 +35,42 @@ message GridLayout { repeated Widget widgets = 2; } +// A mosaic layout divides the available space into a grid of blocks, and +// overlays the grid with tiles. Unlike `GridLayout`, tiles may span multiple +// grid blocks and can be placed at arbitrary locations in the grid. +message MosaicLayout { + // A single tile in the mosaic. The placement and size of the tile are + // configurable. + message Tile { + // The zero-indexed position of the tile in grid blocks relative to the + // left edge of the grid. Tiles must be contained within the specified + // number of columns. `x_pos` cannot be negative. + int32 x_pos = 1; + + // The zero-indexed position of the tile in grid blocks relative to the + // top edge of the grid. `y_pos` cannot be negative. + int32 y_pos = 2; + + // The width of the tile, measured in grid blocks. Tiles must have a + // minimum width of 1. + int32 width = 3; + + // The height of the tile, measured in grid blocks. Tiles must have a + // minimum height of 1. + int32 height = 4; + + // The informational widget contained in the tile. For example an `XyChart`. + Widget widget = 5; + } + + // The number of columns in the mosaic grid. The number of columns must be + // between 1 and 12, inclusive. + int32 columns = 1; + + // The tiles to display. + repeated Tile tiles = 3; +} + // A simplified layout that divides the available space into rows // and arranges a set of widgets horizontally in each row. message RowLayout { 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 2fff1d20..5807ee17 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 2020 Google LLC +// 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. 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 1820c031..7b0ec93f 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 2020 Google LLC +// 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. @@ -19,6 +19,7 @@ package google.monitoring.dashboard.v1; import "google/api/field_behavior.proto"; import "google/monitoring/dashboard/v1/metrics.proto"; import "google/protobuf/duration.proto"; +import "google/protobuf/empty.proto"; option go_package = "google.golang.org/genproto/googleapis/monitoring/dashboard/v1;dashboard"; option java_multiple_files = true; 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 5bb41ec5..a0c64889 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 2020 Google LLC +// 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. 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 acc1671f..5238a5e1 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 2020 Google LLC +// 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. 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 12b5a698..08e70202 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 2020 Google LLC +// 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. 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 d241ae78..0f7b9ffd 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 2020 Google LLC +// 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. diff --git a/synth.metadata b/synth.metadata index 1136b7a5..136106bb 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-monitoring-dashboards.git", - "sha": "9e8541f018fa2218ffcab9acc7846fa19bc7360b" + "sha": "ab5ca45434d640518eeaa5c3735c74e7c4dcd343" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "1305ca41d554eb0725237561e34129373bb8cbc1", - "internalRef": "362856902" + "sha": "0dafa3963ef6fcb8a7f5daaa4bec12adb04de518", + "internalRef": "362979558" } }, { @@ -142,6 +142,8 @@ "proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponse.java", "proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ListDashboardsResponseOrBuilder.java", "proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java", + "proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayout.java", + "proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MosaicLayoutOrBuilder.java", "proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilter.java", "proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/PickTimeSeriesFilterOrBuilder.java", "proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ProjectName.java",