diff --git a/README.md b/README.md
index bbf700ac..f26c26a9 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
projects/[PROJECT_ID_OR_NUMBER] *
Note that this field names the parent container in which the alerting policies to be * listed are stored. To retrieve a single alerting policy by name, use the @@ -214,7 +215,8 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(ResourceName name) * } * } * - * @param name Required. The project whose alert policies are to be listed. The format is: + * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) + * whose alert policies are to be listed. The format is: *
projects/[PROJECT_ID_OR_NUMBER] *
Note that this field names the parent container in which the alerting policies to be * listed are stored. To retrieve a single alerting policy by name, use the @@ -245,7 +247,8 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(OrganizationName n * } * } * - * @param name Required. The project whose alert policies are to be listed. The format is: + * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) + * whose alert policies are to be listed. The format is: *
projects/[PROJECT_ID_OR_NUMBER] *
Note that this field names the parent container in which the alerting policies to be * listed are stored. To retrieve a single alerting policy by name, use the @@ -277,7 +280,8 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(ProjectName name) * } * } * - * @param name Required. The project whose alert policies are to be listed. The format is: + * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) + * whose alert policies are to be listed. The format is: *
projects/[PROJECT_ID_OR_NUMBER] *
Note that this field names the parent container in which the alerting policies to be
* listed are stored. To retrieve a single alerting policy by name, use the
@@ -503,7 +507,8 @@ public final UnaryCallable projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting policy will be
* written, not the name of the created policy. |name| must be a host project of a workspace,
@@ -539,7 +544,8 @@ public final AlertPolicy createAlertPolicy(ResourceName name, AlertPolicy alertP
* }
* }
*
- * @param name Required. The project in which to create the alerting policy. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the alerting policy. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting policy will be
* written, not the name of the created policy. |name| must be a host project of a workspace,
@@ -575,7 +581,8 @@ public final AlertPolicy createAlertPolicy(OrganizationName name, AlertPolicy al
* }
* }
*
- * @param name Required. The project in which to create the alerting policy. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the alerting policy. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting policy will be
* written, not the name of the created policy. |name| must be a host project of a workspace,
@@ -612,7 +619,8 @@ public final AlertPolicy createAlertPolicy(ProjectName name, AlertPolicy alertPo
* }
* }
*
- * @param name Required. The project in which to create the alerting policy. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the alerting policy. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting policy will be
* written, not the name of the created policy. |name| must be a host project of a workspace,
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java
index 6360d091..8549cbce 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java
@@ -183,7 +183,8 @@ public GroupServiceStub getStub() {
* }
* }
*
- * @param name Required. The project whose groups are to be listed. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose groups are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -208,7 +209,8 @@ public final ListGroupsPagedResponse listGroups(ResourceName name) {
* }
* }
*
- * @param name Required. The project whose groups are to be listed. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose groups are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -233,7 +235,8 @@ public final ListGroupsPagedResponse listGroups(OrganizationName name) {
* }
* }
*
- * @param name Required. The project whose groups are to be listed. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose groups are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -258,7 +261,8 @@ public final ListGroupsPagedResponse listGroups(ProjectName name) {
* }
* }
*
- * @param name Required. The project whose groups are to be listed. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose groups are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -457,7 +461,8 @@ public final UnaryCallable projects/[PROJECT_ID_OR_NUMBER]
* @param group Required. A group definition. It is an error to define the `name` field because
* the system assigns the name.
@@ -486,7 +491,8 @@ public final Group createGroup(ResourceName name, Group group) {
* }
* }
*
- * @param name Required. The project in which to create the group. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the group. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @param group Required. A group definition. It is an error to define the `name` field because
* the system assigns the name.
@@ -515,7 +521,8 @@ public final Group createGroup(OrganizationName name, Group group) {
* }
* }
*
- * @param name Required. The project in which to create the group. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the group. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @param group Required. A group definition. It is an error to define the `name` field because
* the system assigns the name.
@@ -544,7 +551,8 @@ public final Group createGroup(ProjectName name, Group group) {
* }
* }
*
- * @param name Required. The project in which to create the group. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the group. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @param group Required. A group definition. It is an error to define the `name` field because
* the system assigns the name.
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java
index 2fdbb68f..90f56e9c 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java
@@ -188,7 +188,8 @@ public MetricServiceStub getStub() {
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -218,7 +219,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -248,7 +250,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -281,7 +284,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -530,7 +534,8 @@ public final MonitoredResourceDescriptor getMonitoredResourceDescriptor(
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -558,7 +563,8 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(ResourceNa
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -586,7 +592,8 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(Organizati
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -616,7 +623,8 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(ProjectNam
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -840,7 +848,8 @@ public final MetricDescriptor getMetricDescriptor(GetMetricDescriptorRequest req
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a new metric descriptor. User-created metric descriptors define [custom
+ * Creates a new metric descriptor. The creation is executed asynchronously and callers may check
+ * the returned operation to track its progress. User-created metric descriptors define [custom
* metrics](https://cloud.google.com/monitoring/custom-metrics).
*
* Sample code:
@@ -854,8 +863,8 @@ public final MetricDescriptor getMetricDescriptor(GetMetricDescriptorRequest req
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
- * projects/[PROJECT_ID_OR_NUMBER]
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]
* @param metricDescriptor Required. The new [custom
* metric](https://cloud.google.com/monitoring/custom-metrics) descriptor.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -872,7 +881,8 @@ public final MetricDescriptor createMetricDescriptor(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a new metric descriptor. User-created metric descriptors define [custom
+ * Creates a new metric descriptor. The creation is executed asynchronously and callers may check
+ * the returned operation to track its progress. User-created metric descriptors define [custom
* metrics](https://cloud.google.com/monitoring/custom-metrics).
*
* Sample code:
@@ -886,8 +896,8 @@ public final MetricDescriptor createMetricDescriptor(
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
- * projects/[PROJECT_ID_OR_NUMBER]
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]
* @param metricDescriptor Required. The new [custom
* metric](https://cloud.google.com/monitoring/custom-metrics) descriptor.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -904,7 +914,8 @@ public final MetricDescriptor createMetricDescriptor(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a new metric descriptor. User-created metric descriptors define [custom
+ * Creates a new metric descriptor. The creation is executed asynchronously and callers may check
+ * the returned operation to track its progress. User-created metric descriptors define [custom
* metrics](https://cloud.google.com/monitoring/custom-metrics).
*
* Sample code:
@@ -918,8 +929,8 @@ public final MetricDescriptor createMetricDescriptor(
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
- * projects/[PROJECT_ID_OR_NUMBER]
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]
* @param metricDescriptor Required. The new [custom
* metric](https://cloud.google.com/monitoring/custom-metrics) descriptor.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -936,7 +947,8 @@ public final MetricDescriptor createMetricDescriptor(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a new metric descriptor. User-created metric descriptors define [custom
+ * Creates a new metric descriptor. The creation is executed asynchronously and callers may check
+ * the returned operation to track its progress. User-created metric descriptors define [custom
* metrics](https://cloud.google.com/monitoring/custom-metrics).
*
* Sample code:
@@ -952,8 +964,8 @@ public final MetricDescriptor createMetricDescriptor(
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
- * projects/[PROJECT_ID_OR_NUMBER]
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]
* @param metricDescriptor Required. The new [custom
* metric](https://cloud.google.com/monitoring/custom-metrics) descriptor.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -970,7 +982,8 @@ public final MetricDescriptor createMetricDescriptor(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a new metric descriptor. User-created metric descriptors define [custom
+ * Creates a new metric descriptor. The creation is executed asynchronously and callers may check
+ * the returned operation to track its progress. User-created metric descriptors define [custom
* metrics](https://cloud.google.com/monitoring/custom-metrics).
*
* Sample code:
@@ -998,7 +1011,8 @@ public final MetricDescriptor createMetricDescriptor(CreateMetricDescriptorReque
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a new metric descriptor. User-created metric descriptors define [custom
+ * Creates a new metric descriptor. The creation is executed asynchronously and callers may check
+ * the returned operation to track its progress. User-created metric descriptors define [custom
* metrics](https://cloud.google.com/monitoring/custom-metrics).
*
* Sample code:
@@ -1154,8 +1168,8 @@ public final void deleteMetricDescriptor(DeleteMetricDescriptorRequest request)
* }
* }
*
- * @param name Required. The project, organization or folder on which to execute the request. The
- * format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
+ * organization or folder on which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER] organizations/[ORGANIZATION_ID] folders/[FOLDER_ID]
* @param filter Required. A [monitoring
* filter](https://cloud.google.com/monitoring/api/v3/filters) that specifies which time
@@ -1202,8 +1216,8 @@ public final ListTimeSeriesPagedResponse listTimeSeries(
* }
* }
*
- * @param name Required. The project, organization or folder on which to execute the request. The
- * format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
+ * organization or folder on which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER] organizations/[ORGANIZATION_ID] folders/[FOLDER_ID]
* @param filter Required. A [monitoring
* filter](https://cloud.google.com/monitoring/api/v3/filters) that specifies which time
@@ -1250,8 +1264,8 @@ public final ListTimeSeriesPagedResponse listTimeSeries(
* }
* }
*
- * @param name Required. The project, organization or folder on which to execute the request. The
- * format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
+ * organization or folder on which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER] organizations/[ORGANIZATION_ID] folders/[FOLDER_ID]
* @param filter Required. A [monitoring
* filter](https://cloud.google.com/monitoring/api/v3/filters) that specifies which time
@@ -1298,8 +1312,8 @@ public final ListTimeSeriesPagedResponse listTimeSeries(
* }
* }
*
- * @param name Required. The project, organization or folder on which to execute the request. The
- * format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
+ * organization or folder on which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER] organizations/[ORGANIZATION_ID] folders/[FOLDER_ID]
* @param filter Required. A [monitoring
* filter](https://cloud.google.com/monitoring/api/v3/filters) that specifies which time
@@ -1451,7 +1465,8 @@ public final ListTimeSeriesPagedResponse listTimeSeries(ListTimeSeriesRequest re
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @param timeSeries Required. The new data to be added to a list of time series. Adds at most one
* data point to each of several time series. The new data point must be more recent than any
@@ -1485,7 +1500,8 @@ public final void createTimeSeries(ProjectName name, List projects/[PROJECT_ID_OR_NUMBER]
* @param timeSeries Required. The new data to be added to a list of time series. Adds at most one
* data point to each of several time series. The new data point must be more recent than any
@@ -1551,6 +1567,137 @@ public final UnaryCallable Sample code:
+ *
+ * projects/[PROJECT_ID_OR_NUMBER]
+ * @param timeSeries Required. The new data to be added to a list of time series. Adds at most one
+ * data point to each of several time series. The new data point must be more recent than any
+ * other point in its time series. Each `TimeSeries` value must fully specify a unique time
+ * series by supplying all label values for the metric and the monitored resource.
+ * The maximum number of `TimeSeries` objects per `Create` request is 200.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void createServiceTimeSeries(ProjectName name, List Sample code:
+ *
+ * projects/[PROJECT_ID_OR_NUMBER]
+ * @param timeSeries Required. The new data to be added to a list of time series. Adds at most one
+ * data point to each of several time series. The new data point must be more recent than any
+ * other point in its time series. Each `TimeSeries` value must fully specify a unique time
+ * series by supplying all label values for the metric and the monitored resource.
+ * The maximum number of `TimeSeries` objects per `Create` request is 200.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void createServiceTimeSeries(String name, List Sample code:
+ *
+ * Sample code:
+ *
+ * projects/[PROJECT_ID_OR_NUMBER]
- * Note that this names the parent container in which to look for the descriptors; to
- * retrieve a single descriptor by name, use the
+ * Note that this [names](https://cloud.google.com/monitoring/api/v3#project_name) the
+ * parent container in which to look for the descriptors; to retrieve a single descriptor by
+ * name, use the
* [GetNotificationChannelDescriptor][google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor]
* operation, instead.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -235,8 +236,9 @@ public final ListNotificationChannelDescriptorsPagedResponse listNotificationCha
* @param name Required. The REST resource name of the parent from which to retrieve the
* notification channel descriptors. The expected syntax is:
* projects/[PROJECT_ID_OR_NUMBER]
- * Note that this names the parent container in which to look for the descriptors; to
- * retrieve a single descriptor by name, use the
+ * Note that this [names](https://cloud.google.com/monitoring/api/v3#project_name) the
+ * parent container in which to look for the descriptors; to retrieve a single descriptor by
+ * name, use the
* [GetNotificationChannelDescriptor][google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor]
* operation, instead.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -271,8 +273,9 @@ public final ListNotificationChannelDescriptorsPagedResponse listNotificationCha
* @param name Required. The REST resource name of the parent from which to retrieve the
* notification channel descriptors. The expected syntax is:
* projects/[PROJECT_ID_OR_NUMBER]
- * Note that this names the parent container in which to look for the descriptors; to
- * retrieve a single descriptor by name, use the
+ * Note that this [names](https://cloud.google.com/monitoring/api/v3#project_name) the
+ * parent container in which to look for the descriptors; to retrieve a single descriptor by
+ * name, use the
* [GetNotificationChannelDescriptor][google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor]
* operation, instead.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -310,8 +313,9 @@ public final ListNotificationChannelDescriptorsPagedResponse listNotificationCha
* @param name Required. The REST resource name of the parent from which to retrieve the
* notification channel descriptors. The expected syntax is:
* projects/[PROJECT_ID_OR_NUMBER]
- * Note that this names the parent container in which to look for the descriptors; to
- * retrieve a single descriptor by name, use the
+ * Note that this [names](https://cloud.google.com/monitoring/api/v3#project_name) the
+ * parent container in which to look for the descriptors; to retrieve a single descriptor by
+ * name, use the
* [GetNotificationChannelDescriptor][google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor]
* operation, instead.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -577,7 +581,8 @@ public final NotificationChannelDescriptor getNotificationChannelDescriptor(
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container in which to look for the notification channels; it does not
* name a specific channel. To query a specific channel by REST resource name, use the
@@ -610,7 +615,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(Reso
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container in which to look for the notification channels; it does not
* name a specific channel. To query a specific channel by REST resource name, use the
@@ -644,7 +650,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container in which to look for the notification channels; it does not
* name a specific channel. To query a specific channel by REST resource name, use the
@@ -680,7 +687,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(Proj
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container in which to look for the notification channels; it does not
* name a specific channel. To query a specific channel by REST resource name, use the
@@ -946,7 +954,8 @@ public final NotificationChannel getNotificationChannel(GetNotificationChannelRe
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container into which the channel will be written, this does not name the
* newly created channel. The resulting channel's name will have a normalized version of this
@@ -982,7 +991,8 @@ public final NotificationChannel createNotificationChannel(
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container into which the channel will be written, this does not name the
* newly created channel. The resulting channel's name will have a normalized version of this
@@ -1018,7 +1028,8 @@ public final NotificationChannel createNotificationChannel(
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container into which the channel will be written, this does not name the
* newly created channel. The resulting channel's name will have a normalized version of this
@@ -1057,7 +1068,8 @@ public final NotificationChannel createNotificationChannel(
* }
* }
*
- * @param name Required. The project on which to execute the request. The format is:
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container into which the channel will be written, this does not name the
* newly created channel. The resulting channel's name will have a normalized version of this
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java
index e92ea2bb..2a7e6bf6 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java
@@ -190,7 +190,9 @@ public ServiceMonitoringServiceStub getStub() {
* }
* }
*
- * @param parent Required. Resource name of the parent workspace. The format is:
+ * @param parent Required. Resource
+ * [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent workspace.
+ * The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @param service Required. The `Service` to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -219,7 +221,9 @@ public final Service createService(ResourceName parent, Service service) {
* }
* }
*
- * @param parent Required. Resource name of the parent workspace. The format is:
+ * @param parent Required. Resource
+ * [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent workspace.
+ * The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @param service Required. The `Service` to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -248,7 +252,9 @@ public final Service createService(OrganizationName parent, Service service) {
* }
* }
*
- * @param parent Required. Resource name of the parent workspace. The format is:
+ * @param parent Required. Resource
+ * [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent workspace.
+ * The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @param service Required. The `Service` to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -277,7 +283,9 @@ public final Service createService(ProjectName parent, Service service) {
* }
* }
*
- * @param parent Required. Resource name of the parent workspace. The format is:
+ * @param parent Required. Resource
+ * [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent workspace.
+ * The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @param service Required. The `Service` to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -452,7 +460,8 @@ public final UnaryCallable projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -481,7 +490,8 @@ public final ListServicesPagedResponse listServices(ResourceName parent) {
* }
*
* @param parent Required. Resource name of the parent containing the listed services, either a
- * project or a Monitoring Workspace. The formats are:
+ * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a Monitoring
+ * Workspace. The formats are:
* projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -510,7 +520,8 @@ public final ListServicesPagedResponse listServices(OrganizationName parent) {
* }
*
* @param parent Required. Resource name of the parent containing the listed services, either a
- * project or a Monitoring Workspace. The formats are:
+ * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a Monitoring
+ * Workspace. The formats are:
* projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -539,7 +550,8 @@ public final ListServicesPagedResponse listServices(ProjectName parent) {
* }
*
* @param parent Required. Resource name of the parent containing the listed services, either a
- * project or a Monitoring Workspace. The formats are:
+ * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a Monitoring
+ * Workspace. The formats are:
* projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java
index 8c795299..26a7e28e 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java
@@ -188,8 +188,8 @@ public UptimeCheckServiceStub getStub() {
* }
* }
*
- * @param parent Required. The project whose Uptime check configurations are listed. The format
- * is:
+ * @param parent Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose Uptime check configurations are listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -218,8 +218,8 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(Resource
* }
* }
*
- * @param parent Required. The project whose Uptime check configurations are listed. The format
- * is:
+ * @param parent Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose Uptime check configurations are listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -248,8 +248,8 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(Organiza
* }
* }
*
- * @param parent Required. The project whose Uptime check configurations are listed. The format
- * is:
+ * @param parent Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose Uptime check configurations are listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -280,8 +280,8 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(ProjectN
* }
* }
*
- * @param parent Required. The project whose Uptime check configurations are listed. The format
- * is:
+ * @param parent Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose Uptime check configurations are listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -515,7 +515,8 @@ public final UptimeCheckConfig getUptimeCheckConfig(GetUptimeCheckConfigRequest
* }
* }
*
- * @param parent Required. The project in which to create the Uptime check. The format is:
+ * @param parent Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * in which to create the Uptime check. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @param uptimeCheckConfig Required. The new Uptime check configuration.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -545,7 +546,8 @@ public final UptimeCheckConfig createUptimeCheckConfig(
* }
* }
*
- * @param parent Required. The project in which to create the Uptime check. The format is:
+ * @param parent Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * in which to create the Uptime check. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @param uptimeCheckConfig Required. The new Uptime check configuration.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -575,7 +577,8 @@ public final UptimeCheckConfig createUptimeCheckConfig(
* }
* }
*
- * @param parent Required. The project in which to create the Uptime check. The format is:
+ * @param parent Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * in which to create the Uptime check. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @param uptimeCheckConfig Required. The new Uptime check configuration.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -607,7 +610,8 @@ public final UptimeCheckConfig createUptimeCheckConfig(
* }
* }
*
- * @param parent Required. The project in which to create the Uptime check. The format is:
+ * @param parent Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * in which to create the Uptime check. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* @param uptimeCheckConfig Required. The new Uptime check configuration.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/gapic_metadata.json b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/gapic_metadata.json
index 592d5a25..eafa76fb 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/gapic_metadata.json
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/gapic_metadata.json
@@ -64,6 +64,9 @@
"CreateMetricDescriptor": {
"methods": ["createMetricDescriptor", "createMetricDescriptor", "createMetricDescriptor", "createMetricDescriptor", "createMetricDescriptor", "createMetricDescriptorCallable"]
},
+ "CreateServiceTimeSeries": {
+ "methods": ["createServiceTimeSeries", "createServiceTimeSeries", "createServiceTimeSeries", "createServiceTimeSeriesCallable"]
+ },
"CreateTimeSeries": {
"methods": ["createTimeSeries", "createTimeSeries", "createTimeSeries", "createTimeSeriesCallable"]
},
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java
index 8b276fc6..b58140a4 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java
@@ -301,10 +301,8 @@ public static class Builder
ImmutableMap.Builder{@code
+ * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
+ * ProjectName name = ProjectName.of("[PROJECT]");
+ * List
+ *
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
+ * {@code
+ * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
+ * String name = ProjectName.of("[PROJECT]").toString();
+ * List
+ *
+ * @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
+ * {@code
+ * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
+ * CreateTimeSeriesRequest request =
+ * CreateTimeSeriesRequest.newBuilder()
+ * .setName(ProjectName.of("[PROJECT]").toString())
+ * .addAllTimeSeries(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void createServiceTimeSeries(CreateTimeSeriesRequest request) {
+ createServiceTimeSeriesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates or adds data to one or more service time series. A service time series is a time series
+ * for a metric from a Google Cloud service. The response is empty if all time series in the
+ * request were written. If any time series could not be written, a corresponding failure message
+ * is included in the error response. This endpoint rejects writes to user-defined metrics. This
+ * method is only for use by Google Cloud services. Use
+ * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries] instead.
+ *
+ * {@code
+ * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
+ * CreateTimeSeriesRequest request =
+ * CreateTimeSeriesRequest.newBuilder()
+ * .setName(ProjectName.of("[PROJECT]").toString())
+ * .addAllTimeSeries(new ArrayList
+ */
+ public final UnaryCallable
* Creates a new metric descriptor.
+ * The creation is executed asynchronously and callers may check the returned
+ * operation to track its progress.
* User-created metric descriptors define
* [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
*
@@ -588,6 +635,28 @@ public void createTimeSeries(
getCreateTimeSeriesMethod(), responseObserver);
}
+ /**
+ *
+ *
+ *
+ * Creates or adds data to one or more service time series. A service time
+ * series is a time series for a metric from a Google Cloud service. The
+ * response is empty if all time series in the request were written. If any
+ * time series could not be written, a corresponding failure message is
+ * included in the error response. This endpoint rejects writes to
+ * user-defined metrics.
+ * This method is only for use by Google Cloud services. Use
+ * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
+ * instead.
+ *
+ */
+ public void createServiceTimeSeries(
+ com.google.monitoring.v3.CreateTimeSeriesRequest request,
+ io.grpc.stub.StreamObserver
* Creates a new metric descriptor.
+ * The creation is executed asynchronously and callers may check the returned
+ * operation to track its progress.
* User-created metric descriptors define
* [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
*
@@ -804,6 +881,30 @@ public void createTimeSeries(
request,
responseObserver);
}
+
+ /**
+ *
+ *
+ *
+ * Creates or adds data to one or more service time series. A service time
+ * series is a time series for a metric from a Google Cloud service. The
+ * response is empty if all time series in the request were written. If any
+ * time series could not be written, a corresponding failure message is
+ * included in the error response. This endpoint rejects writes to
+ * user-defined metrics.
+ * This method is only for use by Google Cloud services. Use
+ * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
+ * instead.
+ *
+ */
+ public void createServiceTimeSeries(
+ com.google.monitoring.v3.CreateTimeSeriesRequest request,
+ io.grpc.stub.StreamObserver
* Creates a new metric descriptor.
+ * The creation is executed asynchronously and callers may check the returned
+ * operation to track its progress.
* User-created metric descriptors define
* [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
*
@@ -937,6 +1040,27 @@ public com.google.protobuf.Empty createTimeSeries(
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateTimeSeriesMethod(), getCallOptions(), request);
}
+
+ /**
+ *
+ *
+ *
+ * Creates or adds data to one or more service time series. A service time
+ * series is a time series for a metric from a Google Cloud service. The
+ * response is empty if all time series in the request were written. If any
+ * time series could not be written, a corresponding failure message is
+ * included in the error response. This endpoint rejects writes to
+ * user-defined metrics.
+ * This method is only for use by Google Cloud services. Use
+ * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
+ * instead.
+ *
+ */
+ public com.google.protobuf.Empty createServiceTimeSeries(
+ com.google.monitoring.v3.CreateTimeSeriesRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getCreateServiceTimeSeriesMethod(), getCallOptions(), request);
+ }
}
/**
@@ -1023,6 +1147,8 @@ protected MetricServiceFutureStub build(
*
*
* Creates a new metric descriptor.
+ * The creation is executed asynchronously and callers may check the returned
+ * operation to track its progress.
* User-created metric descriptors define
* [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
*
@@ -1077,6 +1203,27 @@ protected MetricServiceFutureStub build(
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateTimeSeriesMethod(), getCallOptions()), request);
}
+
+ /**
+ *
+ *
+ *
+ * Creates or adds data to one or more service time series. A service time
+ * series is a time series for a metric from a Google Cloud service. The
+ * response is empty if all time series in the request were written. If any
+ * time series could not be written, a corresponding failure message is
+ * included in the error response. This endpoint rejects writes to
+ * user-defined metrics.
+ * This method is only for use by Google Cloud services. Use
+ * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
+ * instead.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ * A condition that checks for log messages matching given constraints. If
+ * set, no other conditions can be present.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
+ *
+ * @return Whether the conditionMatchedLog field is set.
+ */
+ boolean hasConditionMatchedLog();
+ /**
+ *
+ *
+ *
+ * A condition that checks for log messages matching given constraints. If
+ * set, no other conditions can be present.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
+ *
+ * @return The conditionMatchedLog.
+ */
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getConditionMatchedLog();
+ /**
+ *
+ *
+ *
+ * A condition that checks for log messages matching given constraints. If
+ * set, no other conditions can be present.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
+ */
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder
+ getConditionMatchedLogOrBuilder();
+
/**
*
*
@@ -1723,6 +1779,26 @@ private Condition(
conditionCase_ = 19;
break;
}
+ case 162:
+ {
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder subBuilder = null;
+ if (conditionCase_ == 20) {
+ subBuilder =
+ ((com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_)
+ .toBuilder();
+ }
+ condition_ =
+ input.readMessage(
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_);
+ condition_ = subBuilder.buildPartial();
+ }
+ conditionCase_ = 20;
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -2679,7 +2755,7 @@ public interface MetricThresholdOrBuilder
* well as how to combine the retrieved time series together (such as
* when aggregating multiple streams on each resource to a single
* stream for each resource or when aggregating streams across all
- * members of a group of resrouces). Multiple aggregations
+ * members of a group of resources). Multiple aggregations
* are applied in the order specified.
* This field is similar to the one in the [`ListTimeSeries`
* request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
@@ -2698,7 +2774,7 @@ public interface MetricThresholdOrBuilder
* well as how to combine the retrieved time series together (such as
* when aggregating multiple streams on each resource to a single
* stream for each resource or when aggregating streams across all
- * members of a group of resrouces). Multiple aggregations
+ * members of a group of resources). Multiple aggregations
* are applied in the order specified.
* This field is similar to the one in the [`ListTimeSeries`
* request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
@@ -2717,7 +2793,7 @@ public interface MetricThresholdOrBuilder
* well as how to combine the retrieved time series together (such as
* when aggregating multiple streams on each resource to a single
* stream for each resource or when aggregating streams across all
- * members of a group of resrouces). Multiple aggregations
+ * members of a group of resources). Multiple aggregations
* are applied in the order specified.
* This field is similar to the one in the [`ListTimeSeries`
* request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
@@ -2736,7 +2812,7 @@ public interface MetricThresholdOrBuilder
* well as how to combine the retrieved time series together (such as
* when aggregating multiple streams on each resource to a single
* stream for each resource or when aggregating streams across all
- * members of a group of resrouces). Multiple aggregations
+ * members of a group of resources). Multiple aggregations
* are applied in the order specified.
* This field is similar to the one in the [`ListTimeSeries`
* request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
@@ -2756,7 +2832,7 @@ public interface MetricThresholdOrBuilder
* well as how to combine the retrieved time series together (such as
* when aggregating multiple streams on each resource to a single
* stream for each resource or when aggregating streams across all
- * members of a group of resrouces). Multiple aggregations
+ * members of a group of resources). Multiple aggregations
* are applied in the order specified.
* This field is similar to the one in the [`ListTimeSeries`
* request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
@@ -3313,7 +3389,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
* well as how to combine the retrieved time series together (such as
* when aggregating multiple streams on each resource to a single
* stream for each resource or when aggregating streams across all
- * members of a group of resrouces). Multiple aggregations
+ * members of a group of resources). Multiple aggregations
* are applied in the order specified.
* This field is similar to the one in the [`ListTimeSeries`
* request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
@@ -3335,7 +3411,7 @@ public java.util.List
- * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
- * query that outputs a boolean stream.
+ * Required. A logs-based filter. See [Advanced Logs
+ * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+ * for how this filter should be constructed.
*
*
- * string query = 1;
+ * string filter = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The query.
+ * @return The filter.
*/
- java.lang.String getQuery();
+ java.lang.String getFilter();
/**
*
*
*
- * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
- * query that outputs a boolean stream.
+ * Required. A logs-based filter. See [Advanced Logs
+ * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+ * for how this filter should be constructed.
*
*
- * string query = 1;
+ * string filter = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for query.
+ * @return The bytes for filter.
*/
- com.google.protobuf.ByteString getQueryBytes();
+ com.google.protobuf.ByteString getFilterBytes();
/**
*
*
*
- * The amount of time that a time series must violate the
- * threshold to be considered failing. Currently, only values
- * that are a multiple of a minute--e.g., 0, 60, 120, or 300
- * seconds--are supported. If an invalid value is given, an
- * error will be returned. When choosing a duration, it is useful to
- * keep in mind the frequency of the underlying time series data
- * (which may also be affected by any alignments specified in the
- * `aggregations` field); a good duration is long enough so that a single
- * outlier does not generate spurious alerts, but short enough that
- * unhealthy states are detected and alerted on quickly.
- *
- *
- * .google.protobuf.Duration duration = 2;
- *
- * @return Whether the duration field is set.
- */
- boolean hasDuration();
- /**
- *
- *
- *
- * The amount of time that a time series must violate the
- * threshold to be considered failing. Currently, only values
- * that are a multiple of a minute--e.g., 0, 60, 120, or 300
- * seconds--are supported. If an invalid value is given, an
- * error will be returned. When choosing a duration, it is useful to
- * keep in mind the frequency of the underlying time series data
- * (which may also be affected by any alignments specified in the
- * `aggregations` field); a good duration is long enough so that a single
- * outlier does not generate spurious alerts, but short enough that
- * unhealthy states are detected and alerted on quickly.
+ * Optional. A map from a label key to an extractor expression, which is
+ * used to extract the value for this label key. Each entry in this map is
+ * a specification for how data should be extracted from log entries that
+ * match `filter`. Each combination of extracted values is treated as a
+ * separate rule for the purposes of triggering notifications. Label keys
+ * and corresponding values can be used in notifications generated by this
+ * condition.
+ * Please see [the documentation on logs-based metric
+ * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+ * for syntax and examples.
*
*
- * .google.protobuf.Duration duration = 2;
- *
- * @return The duration.
+ * map<string, string> label_extractors = 2;
*/
- com.google.protobuf.Duration getDuration();
+ int getLabelExtractorsCount();
/**
*
*
*
- * The amount of time that a time series must violate the
- * threshold to be considered failing. Currently, only values
- * that are a multiple of a minute--e.g., 0, 60, 120, or 300
- * seconds--are supported. If an invalid value is given, an
- * error will be returned. When choosing a duration, it is useful to
- * keep in mind the frequency of the underlying time series data
- * (which may also be affected by any alignments specified in the
- * `aggregations` field); a good duration is long enough so that a single
- * outlier does not generate spurious alerts, but short enough that
- * unhealthy states are detected and alerted on quickly.
+ * Optional. A map from a label key to an extractor expression, which is
+ * used to extract the value for this label key. Each entry in this map is
+ * a specification for how data should be extracted from log entries that
+ * match `filter`. Each combination of extracted values is treated as a
+ * separate rule for the purposes of triggering notifications. Label keys
+ * and corresponding values can be used in notifications generated by this
+ * condition.
+ * Please see [the documentation on logs-based metric
+ * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+ * for syntax and examples.
*
*
- * .google.protobuf.Duration duration = 2;
+ * map<string, string> label_extractors = 2;
*/
- com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
-
+ boolean containsLabelExtractors(java.lang.String key);
+ /** Use {@link #getLabelExtractorsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map
- * The number/percent of time series for which the comparison must hold
- * in order for the condition to trigger. If unspecified, then the
- * condition will trigger if the comparison is true for any of the
- * time series that have been identified by `filter` and `aggregations`,
- * or by the ratio, if `denominator_filter` and `denominator_aggregations`
- * are specified.
+ * Optional. A map from a label key to an extractor expression, which is
+ * used to extract the value for this label key. Each entry in this map is
+ * a specification for how data should be extracted from log entries that
+ * match `filter`. Each combination of extracted values is treated as a
+ * separate rule for the purposes of triggering notifications. Label keys
+ * and corresponding values can be used in notifications generated by this
+ * condition.
+ * Please see [the documentation on logs-based metric
+ * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+ * for syntax and examples.
*
*
- * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
- *
- * @return Whether the trigger field is set.
+ * map<string, string> label_extractors = 2;
*/
- boolean hasTrigger();
+ java.util.Map
- * The number/percent of time series for which the comparison must hold
- * in order for the condition to trigger. If unspecified, then the
- * condition will trigger if the comparison is true for any of the
- * time series that have been identified by `filter` and `aggregations`,
- * or by the ratio, if `denominator_filter` and `denominator_aggregations`
- * are specified.
+ * Optional. A map from a label key to an extractor expression, which is
+ * used to extract the value for this label key. Each entry in this map is
+ * a specification for how data should be extracted from log entries that
+ * match `filter`. Each combination of extracted values is treated as a
+ * separate rule for the purposes of triggering notifications. Label keys
+ * and corresponding values can be used in notifications generated by this
+ * condition.
+ * Please see [the documentation on logs-based metric
+ * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+ * for syntax and examples.
*
*
- * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
- *
- * @return The trigger.
+ * map<string, string> label_extractors = 2;
*/
- com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger();
+ java.lang.String getLabelExtractorsOrDefault(
+ java.lang.String key, java.lang.String defaultValue);
/**
*
*
*
- * The number/percent of time series for which the comparison must hold
- * in order for the condition to trigger. If unspecified, then the
- * condition will trigger if the comparison is true for any of the
- * time series that have been identified by `filter` and `aggregations`,
- * or by the ratio, if `denominator_filter` and `denominator_aggregations`
- * are specified.
+ * Optional. A map from a label key to an extractor expression, which is
+ * used to extract the value for this label key. Each entry in this map is
+ * a specification for how data should be extracted from log entries that
+ * match `filter`. Each combination of extracted values is treated as a
+ * separate rule for the purposes of triggering notifications. Label keys
+ * and corresponding values can be used in notifications generated by this
+ * condition.
+ * Please see [the documentation on logs-based metric
+ * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+ * for syntax and examples.
*
*
- * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
+ * map<string, string> label_extractors = 2;
*/
- com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder();
+ java.lang.String getLabelExtractorsOrThrow(java.lang.String key);
}
/**
*
*
*
- * A condition type that allows alert policies to be defined using
- * [Monitoring Query Language](https://cloud.google.com/monitoring/mql).
+ * A condition type that checks whether a log message in the [scoping
+ * project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * satisfies the given filter. Logs from other projects in the metrics
+ * scope are not evaluated.
*
*
- * Protobuf type {@code
- * google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition}
+ * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.LogMatch}
*/
- public static final class MonitoringQueryLanguageCondition
- extends com.google.protobuf.GeneratedMessageV3
+ public static final class LogMatch extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
- MonitoringQueryLanguageConditionOrBuilder {
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.LogMatch)
+ LogMatchOrBuilder {
private static final long serialVersionUID = 0L;
- // Use MonitoringQueryLanguageCondition.newBuilder() to construct.
- private MonitoringQueryLanguageCondition(
- com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use LogMatch.newBuilder() to construct.
+ private LogMatch(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private MonitoringQueryLanguageCondition() {
- query_ = "";
+ private LogMatch() {
+ filter_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
- return new MonitoringQueryLanguageCondition();
+ return new LogMatch();
}
@java.lang.Override
@@ -8853,7 +8918,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
- private MonitoringQueryLanguageCondition(
+ private LogMatch(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -8861,6 +8926,7 @@ private MonitoringQueryLanguageCondition(
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
+ int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
@@ -8875,39 +8941,25 @@ private MonitoringQueryLanguageCondition(
{
java.lang.String s = input.readStringRequireUtf8();
- query_ = s;
+ filter_ = s;
break;
}
case 18:
{
- com.google.protobuf.Duration.Builder subBuilder = null;
- if (duration_ != null) {
- subBuilder = duration_.toBuilder();
- }
- duration_ =
- input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(duration_);
- duration_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 26:
- {
- com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder subBuilder = null;
- if (trigger_ != null) {
- subBuilder = trigger_.toBuilder();
- }
- trigger_ =
- input.readMessage(
- com.google.monitoring.v3.AlertPolicy.Condition.Trigger.parser(),
- extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(trigger_);
- trigger_ = subBuilder.buildPartial();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ labelExtractors_ =
+ com.google.protobuf.MapField.newMapField(
+ LabelExtractorsDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000001;
}
-
+ com.google.protobuf.MapEntry
- * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
- * query that outputs a boolean stream.
+ * Required. A logs-based filter. See [Advanced Logs
+ * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+ * for how this filter should be constructed.
*
*
- * string query = 1;
+ * string filter = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The query.
+ * @return The filter.
*/
@java.lang.Override
- public java.lang.String getQuery() {
- java.lang.Object ref = query_;
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
- query_ = s;
+ filter_ = s;
return s;
}
}
@@ -8977,161 +9039,165 @@ public java.lang.String getQuery() {
*
*
*
- * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
- * query that outputs a boolean stream.
+ * Required. A logs-based filter. See [Advanced Logs
+ * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+ * for how this filter should be constructed.
*
*
- * string query = 1;
+ * string filter = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for query.
+ * @return The bytes for filter.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getQueryBytes() {
- java.lang.Object ref = query_;
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- query_ = b;
+ filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
- public static final int DURATION_FIELD_NUMBER = 2;
- private com.google.protobuf.Duration duration_;
+ public static final int LABEL_EXTRACTORS_FIELD_NUMBER = 2;
+
+ private static final class LabelExtractorsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry
- * The amount of time that a time series must violate the
- * threshold to be considered failing. Currently, only values
- * that are a multiple of a minute--e.g., 0, 60, 120, or 300
- * seconds--are supported. If an invalid value is given, an
- * error will be returned. When choosing a duration, it is useful to
- * keep in mind the frequency of the underlying time series data
- * (which may also be affected by any alignments specified in the
- * `aggregations` field); a good duration is long enough so that a single
- * outlier does not generate spurious alerts, but short enough that
- * unhealthy states are detected and alerted on quickly.
+ * Optional. A map from a label key to an extractor expression, which is
+ * used to extract the value for this label key. Each entry in this map is
+ * a specification for how data should be extracted from log entries that
+ * match `filter`. Each combination of extracted values is treated as a
+ * separate rule for the purposes of triggering notifications. Label keys
+ * and corresponding values can be used in notifications generated by this
+ * condition.
+ * Please see [the documentation on logs-based metric
+ * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+ * for syntax and examples.
*
*
- * .google.protobuf.Duration duration = 2;
- *
- * @return Whether the duration field is set.
+ * map<string, string> label_extractors = 2;
*/
@java.lang.Override
- public boolean hasDuration() {
- return duration_ != null;
+ public boolean containsLabelExtractors(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetLabelExtractors().getMap().containsKey(key);
}
- /**
- *
- *
- *
- * The amount of time that a time series must violate the
- * threshold to be considered failing. Currently, only values
- * that are a multiple of a minute--e.g., 0, 60, 120, or 300
- * seconds--are supported. If an invalid value is given, an
- * error will be returned. When choosing a duration, it is useful to
- * keep in mind the frequency of the underlying time series data
- * (which may also be affected by any alignments specified in the
- * `aggregations` field); a good duration is long enough so that a single
- * outlier does not generate spurious alerts, but short enough that
- * unhealthy states are detected and alerted on quickly.
- *
- *
- * .google.protobuf.Duration duration = 2;
- *
- * @return The duration.
- */
- @java.lang.Override
- public com.google.protobuf.Duration getDuration() {
- return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
- }
- /**
- *
- *
- *
- * The amount of time that a time series must violate the
- * threshold to be considered failing. Currently, only values
- * that are a multiple of a minute--e.g., 0, 60, 120, or 300
- * seconds--are supported. If an invalid value is given, an
- * error will be returned. When choosing a duration, it is useful to
- * keep in mind the frequency of the underlying time series data
- * (which may also be affected by any alignments specified in the
- * `aggregations` field); a good duration is long enough so that a single
- * outlier does not generate spurious alerts, but short enough that
- * unhealthy states are detected and alerted on quickly.
- *
- *
- * .google.protobuf.Duration duration = 2;
- */
+ /** Use {@link #getLabelExtractorsMap()} instead. */
@java.lang.Override
- public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
- return getDuration();
+ @java.lang.Deprecated
+ public java.util.Map
- * The number/percent of time series for which the comparison must hold
- * in order for the condition to trigger. If unspecified, then the
- * condition will trigger if the comparison is true for any of the
- * time series that have been identified by `filter` and `aggregations`,
- * or by the ratio, if `denominator_filter` and `denominator_aggregations`
- * are specified.
+ * Optional. A map from a label key to an extractor expression, which is
+ * used to extract the value for this label key. Each entry in this map is
+ * a specification for how data should be extracted from log entries that
+ * match `filter`. Each combination of extracted values is treated as a
+ * separate rule for the purposes of triggering notifications. Label keys
+ * and corresponding values can be used in notifications generated by this
+ * condition.
+ * Please see [the documentation on logs-based metric
+ * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+ * for syntax and examples.
*
*
- * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
- *
- * @return Whether the trigger field is set.
+ * map<string, string> label_extractors = 2;
*/
@java.lang.Override
- public boolean hasTrigger() {
- return trigger_ != null;
+ public java.util.Map
- * The number/percent of time series for which the comparison must hold
- * in order for the condition to trigger. If unspecified, then the
- * condition will trigger if the comparison is true for any of the
- * time series that have been identified by `filter` and `aggregations`,
- * or by the ratio, if `denominator_filter` and `denominator_aggregations`
- * are specified.
+ * Optional. A map from a label key to an extractor expression, which is
+ * used to extract the value for this label key. Each entry in this map is
+ * a specification for how data should be extracted from log entries that
+ * match `filter`. Each combination of extracted values is treated as a
+ * separate rule for the purposes of triggering notifications. Label keys
+ * and corresponding values can be used in notifications generated by this
+ * condition.
+ * Please see [the documentation on logs-based metric
+ * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+ * for syntax and examples.
*
*
- * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
- *
- * @return The trigger.
+ * map<string, string> label_extractors = 2;
*/
@java.lang.Override
- public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() {
- return trigger_ == null
- ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()
- : trigger_;
+ public java.lang.String getLabelExtractorsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map
- * The number/percent of time series for which the comparison must hold
- * in order for the condition to trigger. If unspecified, then the
- * condition will trigger if the comparison is true for any of the
- * time series that have been identified by `filter` and `aggregations`,
- * or by the ratio, if `denominator_filter` and `denominator_aggregations`
- * are specified.
+ * Optional. A map from a label key to an extractor expression, which is
+ * used to extract the value for this label key. Each entry in this map is
+ * a specification for how data should be extracted from log entries that
+ * match `filter`. Each combination of extracted values is treated as a
+ * separate rule for the purposes of triggering notifications. Label keys
+ * and corresponding values can be used in notifications generated by this
+ * condition.
+ * Please see [the documentation on logs-based metric
+ * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+ * for syntax and examples.
*
*
- * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
+ * map<string, string> label_extractors = 2;
*/
@java.lang.Override
- public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder() {
- return getTrigger();
+ public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map
- * A condition type that allows alert policies to be defined using
- * [Monitoring Query Language](https://cloud.google.com/monitoring/mql).
+ * A condition type that checks whether a log message in the [scoping
+ * project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * satisfies the given filter. Logs from other projects in the metrics
+ * scope are not evaluated.
*
*
- * Protobuf type {@code
- * google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition}
+ * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.LogMatch}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
- * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
- * query that outputs a boolean stream.
+ * Required. A logs-based filter. See [Advanced Logs
+ * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+ * for how this filter should be constructed.
*
*
- * string query = 1;
+ * string filter = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The query.
+ * @return The filter.
*/
- public java.lang.String getQuery() {
- java.lang.Object ref = query_;
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
- query_ = s;
+ filter_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -9571,20 +9602,21 @@ public java.lang.String getQuery() {
*
*
*
- * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
- * query that outputs a boolean stream.
+ * Required. A logs-based filter. See [Advanced Logs
+ * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+ * for how this filter should be constructed.
*
*
- * string query = 1;
+ * string filter = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for query.
+ * @return The bytes for filter.
*/
- public com.google.protobuf.ByteString getQueryBytes() {
- java.lang.Object ref = query_;
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- query_ = b;
+ filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -9594,21 +9626,22 @@ public com.google.protobuf.ByteString getQueryBytes() {
*
*
*
- * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
- * query that outputs a boolean stream.
+ * Required. A logs-based filter. See [Advanced Logs
+ * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+ * for how this filter should be constructed.
*
*
- * string query = 1;
+ * string filter = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * @param value The query to set.
+ * @param value The filter to set.
* @return This builder for chaining.
*/
- public Builder setQuery(java.lang.String value) {
+ public Builder setFilter(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- query_ = value;
+ filter_ = value;
onChanged();
return this;
}
@@ -9616,17 +9649,18 @@ public Builder setQuery(java.lang.String value) {
*
*
*
- * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
- * query that outputs a boolean stream.
+ * Required. A logs-based filter. See [Advanced Logs
+ * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+ * for how this filter should be constructed.
*
*
- * string query = 1;
+ * string filter = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
- public Builder clearQuery() {
+ public Builder clearFilter() {
- query_ = getDefaultInstance().getQuery();
+ filter_ = getDefaultInstance().getFilter();
onChanged();
return this;
}
@@ -9634,2447 +9668,5637 @@ public Builder clearQuery() {
*
*
*
- * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
- * query that outputs a boolean stream.
+ * Required. A logs-based filter. See [Advanced Logs
+ * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+ * for how this filter should be constructed.
*
*
- * string query = 1;
+ * string filter = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * @param value The bytes for query to set.
+ * @param value The bytes for filter to set.
* @return This builder for chaining.
*/
- public Builder setQueryBytes(com.google.protobuf.ByteString value) {
+ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- query_ = value;
+ filter_ = value;
onChanged();
return this;
}
- private com.google.protobuf.Duration duration_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Duration,
- com.google.protobuf.Duration.Builder,
- com.google.protobuf.DurationOrBuilder>
- durationBuilder_;
+ private com.google.protobuf.MapField
- * The amount of time that a time series must violate the
- * threshold to be considered failing. Currently, only values
- * that are a multiple of a minute--e.g., 0, 60, 120, or 300
- * seconds--are supported. If an invalid value is given, an
- * error will be returned. When choosing a duration, it is useful to
- * keep in mind the frequency of the underlying time series data
- * (which may also be affected by any alignments specified in the
- * `aggregations` field); a good duration is long enough so that a single
- * outlier does not generate spurious alerts, but short enough that
- * unhealthy states are detected and alerted on quickly.
+ * Optional. A map from a label key to an extractor expression, which is
+ * used to extract the value for this label key. Each entry in this map is
+ * a specification for how data should be extracted from log entries that
+ * match `filter`. Each combination of extracted values is treated as a
+ * separate rule for the purposes of triggering notifications. Label keys
+ * and corresponding values can be used in notifications generated by this
+ * condition.
+ * Please see [the documentation on logs-based metric
+ * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+ * for syntax and examples.
*
*
- * .google.protobuf.Duration duration = 2;
- *
- * @return Whether the duration field is set.
+ * map<string, string> label_extractors = 2;
*/
- public boolean hasDuration() {
- return durationBuilder_ != null || duration_ != null;
+ @java.lang.Override
+ public boolean containsLabelExtractors(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetLabelExtractors().getMap().containsKey(key);
+ }
+ /** Use {@link #getLabelExtractorsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
- * The amount of time that a time series must violate the
- * threshold to be considered failing. Currently, only values
- * that are a multiple of a minute--e.g., 0, 60, 120, or 300
- * seconds--are supported. If an invalid value is given, an
- * error will be returned. When choosing a duration, it is useful to
- * keep in mind the frequency of the underlying time series data
- * (which may also be affected by any alignments specified in the
- * `aggregations` field); a good duration is long enough so that a single
- * outlier does not generate spurious alerts, but short enough that
- * unhealthy states are detected and alerted on quickly.
+ * Optional. A map from a label key to an extractor expression, which is
+ * used to extract the value for this label key. Each entry in this map is
+ * a specification for how data should be extracted from log entries that
+ * match `filter`. Each combination of extracted values is treated as a
+ * separate rule for the purposes of triggering notifications. Label keys
+ * and corresponding values can be used in notifications generated by this
+ * condition.
+ * Please see [the documentation on logs-based metric
+ * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+ * for syntax and examples.
*
*
- * .google.protobuf.Duration duration = 2;
- *
- * @return The duration.
+ * map<string, string> label_extractors = 2;
*/
- public com.google.protobuf.Duration getDuration() {
- if (durationBuilder_ == null) {
- return duration_ == null
- ? com.google.protobuf.Duration.getDefaultInstance()
- : duration_;
- } else {
- return durationBuilder_.getMessage();
- }
+ @java.lang.Override
+ public java.util.Map
- * The amount of time that a time series must violate the
- * threshold to be considered failing. Currently, only values
- * that are a multiple of a minute--e.g., 0, 60, 120, or 300
- * seconds--are supported. If an invalid value is given, an
- * error will be returned. When choosing a duration, it is useful to
- * keep in mind the frequency of the underlying time series data
- * (which may also be affected by any alignments specified in the
- * `aggregations` field); a good duration is long enough so that a single
- * outlier does not generate spurious alerts, but short enough that
- * unhealthy states are detected and alerted on quickly.
+ * Optional. A map from a label key to an extractor expression, which is
+ * used to extract the value for this label key. Each entry in this map is
+ * a specification for how data should be extracted from log entries that
+ * match `filter`. Each combination of extracted values is treated as a
+ * separate rule for the purposes of triggering notifications. Label keys
+ * and corresponding values can be used in notifications generated by this
+ * condition.
+ * Please see [the documentation on logs-based metric
+ * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+ * for syntax and examples.
*
*
- * .google.protobuf.Duration duration = 2;
+ * map<string, string> label_extractors = 2;
*/
- public Builder setDuration(com.google.protobuf.Duration value) {
- if (durationBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- duration_ = value;
- onChanged();
- } else {
- durationBuilder_.setMessage(value);
+ @java.lang.Override
+ public java.lang.String getLabelExtractorsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
}
-
- return this;
+ java.util.Map
- * The amount of time that a time series must violate the
- * threshold to be considered failing. Currently, only values
- * that are a multiple of a minute--e.g., 0, 60, 120, or 300
- * seconds--are supported. If an invalid value is given, an
- * error will be returned. When choosing a duration, it is useful to
- * keep in mind the frequency of the underlying time series data
- * (which may also be affected by any alignments specified in the
- * `aggregations` field); a good duration is long enough so that a single
- * outlier does not generate spurious alerts, but short enough that
- * unhealthy states are detected and alerted on quickly.
+ * Optional. A map from a label key to an extractor expression, which is
+ * used to extract the value for this label key. Each entry in this map is
+ * a specification for how data should be extracted from log entries that
+ * match `filter`. Each combination of extracted values is treated as a
+ * separate rule for the purposes of triggering notifications. Label keys
+ * and corresponding values can be used in notifications generated by this
+ * condition.
+ * Please see [the documentation on logs-based metric
+ * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+ * for syntax and examples.
*
*
- * .google.protobuf.Duration duration = 2;
+ * map<string, string> label_extractors = 2;
*/
- public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) {
- if (durationBuilder_ == null) {
- duration_ = builderForValue.build();
- onChanged();
- } else {
- durationBuilder_.setMessage(builderForValue.build());
+ @java.lang.Override
+ public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map
- * The amount of time that a time series must violate the
- * threshold to be considered failing. Currently, only values
- * that are a multiple of a minute--e.g., 0, 60, 120, or 300
- * seconds--are supported. If an invalid value is given, an
- * error will be returned. When choosing a duration, it is useful to
- * keep in mind the frequency of the underlying time series data
- * (which may also be affected by any alignments specified in the
- * `aggregations` field); a good duration is long enough so that a single
- * outlier does not generate spurious alerts, but short enough that
- * unhealthy states are detected and alerted on quickly.
+ * Optional. A map from a label key to an extractor expression, which is
+ * used to extract the value for this label key. Each entry in this map is
+ * a specification for how data should be extracted from log entries that
+ * match `filter`. Each combination of extracted values is treated as a
+ * separate rule for the purposes of triggering notifications. Label keys
+ * and corresponding values can be used in notifications generated by this
+ * condition.
+ * Please see [the documentation on logs-based metric
+ * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+ * for syntax and examples.
*
*
- * .google.protobuf.Duration duration = 2;
+ * map<string, string> label_extractors = 2;
*/
- public Builder mergeDuration(com.google.protobuf.Duration value) {
- if (durationBuilder_ == null) {
- if (duration_ != null) {
- duration_ =
- com.google.protobuf.Duration.newBuilder(duration_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- duration_ = value;
- }
- onChanged();
- } else {
- durationBuilder_.mergeFrom(value);
+ public Builder removeLabelExtractors(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
}
-
+ internalGetMutableLabelExtractors().getMutableMap().remove(key);
return this;
}
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map
- * The amount of time that a time series must violate the
- * threshold to be considered failing. Currently, only values
- * that are a multiple of a minute--e.g., 0, 60, 120, or 300
- * seconds--are supported. If an invalid value is given, an
- * error will be returned. When choosing a duration, it is useful to
- * keep in mind the frequency of the underlying time series data
- * (which may also be affected by any alignments specified in the
- * `aggregations` field); a good duration is long enough so that a single
- * outlier does not generate spurious alerts, but short enough that
- * unhealthy states are detected and alerted on quickly.
+ * Optional. A map from a label key to an extractor expression, which is
+ * used to extract the value for this label key. Each entry in this map is
+ * a specification for how data should be extracted from log entries that
+ * match `filter`. Each combination of extracted values is treated as a
+ * separate rule for the purposes of triggering notifications. Label keys
+ * and corresponding values can be used in notifications generated by this
+ * condition.
+ * Please see [the documentation on logs-based metric
+ * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+ * for syntax and examples.
*
*
- * .google.protobuf.Duration duration = 2;
+ * map<string, string> label_extractors = 2;
*/
- public Builder clearDuration() {
- if (durationBuilder_ == null) {
- duration_ = null;
- onChanged();
- } else {
- duration_ = null;
- durationBuilder_ = null;
+ public Builder putLabelExtractors(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
}
-
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableLabelExtractors().getMutableMap().put(key, value);
return this;
}
/**
*
*
*
- * The amount of time that a time series must violate the
- * threshold to be considered failing. Currently, only values
- * that are a multiple of a minute--e.g., 0, 60, 120, or 300
- * seconds--are supported. If an invalid value is given, an
- * error will be returned. When choosing a duration, it is useful to
- * keep in mind the frequency of the underlying time series data
- * (which may also be affected by any alignments specified in the
- * `aggregations` field); a good duration is long enough so that a single
- * outlier does not generate spurious alerts, but short enough that
- * unhealthy states are detected and alerted on quickly.
+ * Optional. A map from a label key to an extractor expression, which is
+ * used to extract the value for this label key. Each entry in this map is
+ * a specification for how data should be extracted from log entries that
+ * match `filter`. Each combination of extracted values is treated as a
+ * separate rule for the purposes of triggering notifications. Label keys
+ * and corresponding values can be used in notifications generated by this
+ * condition.
+ * Please see [the documentation on logs-based metric
+ * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+ * for syntax and examples.
*
*
- * .google.protobuf.Duration duration = 2;
+ * map<string, string> label_extractors = 2;
*/
- public com.google.protobuf.Duration.Builder getDurationBuilder() {
+ public Builder putAllLabelExtractors(
+ java.util.Map
- * The amount of time that a time series must violate the
- * threshold to be considered failing. Currently, only values
- * that are a multiple of a minute--e.g., 0, 60, 120, or 300
- * seconds--are supported. If an invalid value is given, an
- * error will be returned. When choosing a duration, it is useful to
- * keep in mind the frequency of the underlying time series data
- * (which may also be affected by any alignments specified in the
- * `aggregations` field); a good duration is long enough so that a single
- * outlier does not generate spurious alerts, but short enough that
- * unhealthy states are detected and alerted on quickly.
- *
- *
- * .google.protobuf.Duration duration = 2;
- */
- public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
- if (durationBuilder_ != null) {
- return durationBuilder_.getMessageOrBuilder();
- } else {
- return duration_ == null
- ? com.google.protobuf.Duration.getDefaultInstance()
- : duration_;
- }
- }
- /**
- *
- *
- *
- * The amount of time that a time series must violate the
- * threshold to be considered failing. Currently, only values
- * that are a multiple of a minute--e.g., 0, 60, 120, or 300
- * seconds--are supported. If an invalid value is given, an
- * error will be returned. When choosing a duration, it is useful to
- * keep in mind the frequency of the underlying time series data
- * (which may also be affected by any alignments specified in the
- * `aggregations` field); a good duration is long enough so that a single
- * outlier does not generate spurious alerts, but short enough that
- * unhealthy states are detected and alerted on quickly.
- *
- *
- * .google.protobuf.Duration duration = 2;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Duration,
- com.google.protobuf.Duration.Builder,
- com.google.protobuf.DurationOrBuilder>
- getDurationFieldBuilder() {
- if (durationBuilder_ == null) {
- durationBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Duration,
- com.google.protobuf.Duration.Builder,
- com.google.protobuf.DurationOrBuilder>(
- getDuration(), getParentForChildren(), isClean());
- duration_ = null;
- }
- return durationBuilder_;
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
}
- private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
- com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
- com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>
- triggerBuilder_;
- /**
- *
- *
- *
- * The number/percent of time series for which the comparison must hold
- * in order for the condition to trigger. If unspecified, then the
- * condition will trigger if the comparison is true for any of the
- * time series that have been identified by `filter` and `aggregations`,
- * or by the ratio, if `denominator_filter` and `denominator_aggregations`
- * are specified.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
- *
- * @return Whether the trigger field is set.
- */
- public boolean hasTrigger() {
- return triggerBuilder_ != null || trigger_ != null;
- }
- /**
- *
- *
- *
- * The number/percent of time series for which the comparison must hold
- * in order for the condition to trigger. If unspecified, then the
- * condition will trigger if the comparison is true for any of the
- * time series that have been identified by `filter` and `aggregations`,
- * or by the ratio, if `denominator_filter` and `denominator_aggregations`
- * are specified.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
- *
- * @return The trigger.
- */
- public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() {
- if (triggerBuilder_ == null) {
- return trigger_ == null
- ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()
- : trigger_;
- } else {
- return triggerBuilder_.getMessage();
- }
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
}
- /**
- *
- *
- *
- * The number/percent of time series for which the comparison must hold
- * in order for the condition to trigger. If unspecified, then the
- * condition will trigger if the comparison is true for any of the
- * time series that have been identified by `filter` and `aggregations`,
- * or by the ratio, if `denominator_filter` and `denominator_aggregations`
- * are specified.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
- */
- public Builder setTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger value) {
- if (triggerBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- trigger_ = value;
- onChanged();
- } else {
- triggerBuilder_.setMessage(value);
- }
- return this;
- }
- /**
- *
- *
- *
- * The number/percent of time series for which the comparison must hold
- * in order for the condition to trigger. If unspecified, then the
- * condition will trigger if the comparison is true for any of the
- * time series that have been identified by `filter` and `aggregations`,
- * or by the ratio, if `denominator_filter` and `denominator_aggregations`
- * are specified.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
- */
- public Builder setTrigger(
- com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder builderForValue) {
- if (triggerBuilder_ == null) {
- trigger_ = builderForValue.build();
- onChanged();
- } else {
- triggerBuilder_.setMessage(builderForValue.build());
- }
+ // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.LogMatch)
+ }
- return this;
- }
- /**
- *
- *
- *
- * The number/percent of time series for which the comparison must hold
- * in order for the condition to trigger. If unspecified, then the
- * condition will trigger if the comparison is true for any of the
- * time series that have been identified by `filter` and `aggregations`,
- * or by the ratio, if `denominator_filter` and `denominator_aggregations`
- * are specified.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
- */
- public Builder mergeTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger value) {
- if (triggerBuilder_ == null) {
- if (trigger_ != null) {
- trigger_ =
- com.google.monitoring.v3.AlertPolicy.Condition.Trigger.newBuilder(trigger_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- trigger_ = value;
+ // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.LogMatch)
+ private static final com.google.monitoring.v3.AlertPolicy.Condition.LogMatch DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition.LogMatch();
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
- * The number/percent of time series for which the comparison must hold
- * in order for the condition to trigger. If unspecified, then the
- * condition will trigger if the comparison is true for any of the
- * time series that have been identified by `filter` and `aggregations`,
- * or by the ratio, if `denominator_filter` and `denominator_aggregations`
- * are specified.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
- */
- public Builder clearTrigger() {
- if (triggerBuilder_ == null) {
- trigger_ = null;
- onChanged();
- } else {
- trigger_ = null;
- triggerBuilder_ = null;
- }
+ public static com.google.protobuf.Parser
- * The number/percent of time series for which the comparison must hold
- * in order for the condition to trigger. If unspecified, then the
- * condition will trigger if the comparison is true for any of the
- * time series that have been identified by `filter` and `aggregations`,
- * or by the ratio, if `denominator_filter` and `denominator_aggregations`
- * are specified.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
- */
- public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTriggerBuilder() {
+ @java.lang.Override
+ public com.google.protobuf.Parser
- * The number/percent of time series for which the comparison must hold
- * in order for the condition to trigger. If unspecified, then the
- * condition will trigger if the comparison is true for any of the
- * time series that have been identified by `filter` and `aggregations`,
- * or by the ratio, if `denominator_filter` and `denominator_aggregations`
- * are specified.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
- */
- public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder
- getTriggerOrBuilder() {
- if (triggerBuilder_ != null) {
- return triggerBuilder_.getMessageOrBuilder();
- } else {
- return trigger_ == null
- ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()
- : trigger_;
- }
- }
- /**
- *
- *
- *
- * The number/percent of time series for which the comparison must hold
- * in order for the condition to trigger. If unspecified, then the
- * condition will trigger if the comparison is true for any of the
- * time series that have been identified by `filter` and `aggregations`,
- * or by the ratio, if `denominator_filter` and `denominator_aggregations`
- * are specified.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
- com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
- com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>
- getTriggerFieldBuilder() {
- if (triggerBuilder_ == null) {
- triggerBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
- com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
- com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>(
- getTrigger(), getParentForChildren(), isClean());
- trigger_ = null;
- }
- return triggerBuilder_;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
+ public interface MonitoringQueryLanguageConditionOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
+ com.google.protobuf.MessageOrBuilder {
- // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
- }
+ /**
+ *
+ *
+ *
+ * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+ * query that outputs a boolean stream.
+ *
+ *
+ * string query = 1;
+ *
+ * @return The query.
+ */
+ java.lang.String getQuery();
+ /**
+ *
+ *
+ *
+ * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+ * query that outputs a boolean stream.
+ *
+ *
+ * string query = 1;
+ *
+ * @return The bytes for query.
+ */
+ com.google.protobuf.ByteString getQueryBytes();
- // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
- private static final com.google.monitoring.v3.AlertPolicy.Condition
- .MonitoringQueryLanguageCondition
- DEFAULT_INSTANCE;
+ /**
+ *
+ *
+ *
+ * The amount of time that a time series must violate the
+ * threshold to be considered failing. Currently, only values
+ * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+ * seconds--are supported. If an invalid value is given, an
+ * error will be returned. When choosing a duration, it is useful to
+ * keep in mind the frequency of the underlying time series data
+ * (which may also be affected by any alignments specified in the
+ * `aggregations` field); a good duration is long enough so that a single
+ * outlier does not generate spurious alerts, but short enough that
+ * unhealthy states are detected and alerted on quickly.
+ *
+ *
+ * .google.protobuf.Duration duration = 2;
+ *
+ * @return Whether the duration field is set.
+ */
+ boolean hasDuration();
+ /**
+ *
+ *
+ *
+ * The amount of time that a time series must violate the
+ * threshold to be considered failing. Currently, only values
+ * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+ * seconds--are supported. If an invalid value is given, an
+ * error will be returned. When choosing a duration, it is useful to
+ * keep in mind the frequency of the underlying time series data
+ * (which may also be affected by any alignments specified in the
+ * `aggregations` field); a good duration is long enough so that a single
+ * outlier does not generate spurious alerts, but short enough that
+ * unhealthy states are detected and alerted on quickly.
+ *
+ *
+ * .google.protobuf.Duration duration = 2;
+ *
+ * @return The duration.
+ */
+ com.google.protobuf.Duration getDuration();
+ /**
+ *
+ *
+ *
+ * The amount of time that a time series must violate the
+ * threshold to be considered failing. Currently, only values
+ * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+ * seconds--are supported. If an invalid value is given, an
+ * error will be returned. When choosing a duration, it is useful to
+ * keep in mind the frequency of the underlying time series data
+ * (which may also be affected by any alignments specified in the
+ * `aggregations` field); a good duration is long enough so that a single
+ * outlier does not generate spurious alerts, but short enough that
+ * unhealthy states are detected and alerted on quickly.
+ *
+ *
+ * .google.protobuf.Duration duration = 2;
+ */
+ com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
- static {
- DEFAULT_INSTANCE =
- new com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition();
+ /**
+ *
+ *
+ *
+ * The number/percent of time series for which the comparison must hold
+ * in order for the condition to trigger. If unspecified, then the
+ * condition will trigger if the comparison is true for any of the
+ * time series that have been identified by `filter` and `aggregations`,
+ * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+ * are specified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
+ *
+ * @return Whether the trigger field is set.
+ */
+ boolean hasTrigger();
+ /**
+ *
+ *
+ *
+ * The number/percent of time series for which the comparison must hold
+ * in order for the condition to trigger. If unspecified, then the
+ * condition will trigger if the comparison is true for any of the
+ * time series that have been identified by `filter` and `aggregations`,
+ * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+ * are specified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
+ *
+ * @return The trigger.
+ */
+ com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger();
+ /**
+ *
+ *
+ *
+ * The number/percent of time series for which the comparison must hold
+ * in order for the condition to trigger. If unspecified, then the
+ * condition will trigger if the comparison is true for any of the
+ * time series that have been identified by `filter` and `aggregations`,
+ * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+ * are specified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
+ */
+ com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * A condition type that allows alert policies to be defined using
+ * [Monitoring Query Language](https://cloud.google.com/monitoring/mql).
+ *
+ *
+ * Protobuf type {@code
+ * google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition}
+ */
+ public static final class MonitoringQueryLanguageCondition
+ extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
+ MonitoringQueryLanguageConditionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use MonitoringQueryLanguageCondition.newBuilder() to construct.
+ private MonitoringQueryLanguageCondition(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
}
- public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
+ private MonitoringQueryLanguageCondition() {
+ query_ = "";
}
- private static final com.google.protobuf.Parser
+ * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+ * query that outputs a boolean stream.
+ *
+ *
+ * string query = 1;
+ *
+ * @return The query.
*/
- @java.lang.Deprecated
- public static ConditionCase valueOf(int value) {
- return forNumber(value);
+ @java.lang.Override
+ public java.lang.String getQuery() {
+ java.lang.Object ref = query_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ query_ = s;
+ return s;
+ }
}
-
- public static ConditionCase forNumber(int value) {
- switch (value) {
- case 1:
- return CONDITION_THRESHOLD;
- case 2:
- return CONDITION_ABSENT;
- case 19:
- return CONDITION_MONITORING_QUERY_LANGUAGE;
- case 0:
- return CONDITION_NOT_SET;
- default:
- return null;
+ /**
+ *
+ *
+ *
+ * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+ * query that outputs a boolean stream.
+ *
+ *
+ * string query = 1;
+ *
+ * @return The bytes for query.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getQueryBytes() {
+ java.lang.Object ref = query_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ query_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
}
- public int getNumber() {
- return this.value;
+ public static final int DURATION_FIELD_NUMBER = 2;
+ private com.google.protobuf.Duration duration_;
+ /**
+ *
+ *
+ *
+ * The amount of time that a time series must violate the
+ * threshold to be considered failing. Currently, only values
+ * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+ * seconds--are supported. If an invalid value is given, an
+ * error will be returned. When choosing a duration, it is useful to
+ * keep in mind the frequency of the underlying time series data
+ * (which may also be affected by any alignments specified in the
+ * `aggregations` field); a good duration is long enough so that a single
+ * outlier does not generate spurious alerts, but short enough that
+ * unhealthy states are detected and alerted on quickly.
+ *
+ *
+ * .google.protobuf.Duration duration = 2;
+ *
+ * @return Whether the duration field is set.
+ */
+ @java.lang.Override
+ public boolean hasDuration() {
+ return duration_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The amount of time that a time series must violate the
+ * threshold to be considered failing. Currently, only values
+ * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+ * seconds--are supported. If an invalid value is given, an
+ * error will be returned. When choosing a duration, it is useful to
+ * keep in mind the frequency of the underlying time series data
+ * (which may also be affected by any alignments specified in the
+ * `aggregations` field); a good duration is long enough so that a single
+ * outlier does not generate spurious alerts, but short enough that
+ * unhealthy states are detected and alerted on quickly.
+ *
+ *
+ * .google.protobuf.Duration duration = 2;
+ *
+ * @return The duration.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getDuration() {
+ return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
+ }
+ /**
+ *
+ *
+ *
+ * The amount of time that a time series must violate the
+ * threshold to be considered failing. Currently, only values
+ * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+ * seconds--are supported. If an invalid value is given, an
+ * error will be returned. When choosing a duration, it is useful to
+ * keep in mind the frequency of the underlying time series data
+ * (which may also be affected by any alignments specified in the
+ * `aggregations` field); a good duration is long enough so that a single
+ * outlier does not generate spurious alerts, but short enough that
+ * unhealthy states are detected and alerted on quickly.
+ *
+ *
+ * .google.protobuf.Duration duration = 2;
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
+ return getDuration();
}
- };
-
- public ConditionCase getConditionCase() {
- return ConditionCase.forNumber(conditionCase_);
- }
- public static final int NAME_FIELD_NUMBER = 12;
- private volatile java.lang.Object name_;
- /**
- *
- *
- *
- * Required if the condition exists. The unique resource name for this
- * condition. Its format is:
- * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
- * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
- * condition is created as part of a new or updated alerting policy.
- * When calling the
- * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
- * method, do not include the `name` field in the conditions of the
- * requested alerting policy. Stackdriver Monitoring creates the
- * condition identifiers and includes them in the new policy.
- * When calling the
- * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
- * method to update a policy, including a condition `name` causes the
- * existing condition to be updated. Conditions without names are added to
- * the updated policy. Existing conditions are deleted if they are not
- * updated.
- * Best practice is to preserve `[CONDITION_ID]` if you make only small
- * changes, such as those to condition thresholds, durations, or trigger
- * values. Otherwise, treat the change as a new condition and let the
- * existing condition be deleted.
- *
- *
- * string name = 12;
- *
- * @return The name.
- */
- @java.lang.Override
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- name_ = s;
- return s;
- }
- }
- /**
- *
- *
- *
- * Required if the condition exists. The unique resource name for this
- * condition. Its format is:
- * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
- * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
- * condition is created as part of a new or updated alerting policy.
- * When calling the
- * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
- * method, do not include the `name` field in the conditions of the
- * requested alerting policy. Stackdriver Monitoring creates the
- * condition identifiers and includes them in the new policy.
- * When calling the
- * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
- * method to update a policy, including a condition `name` causes the
- * existing condition to be updated. Conditions without names are added to
- * the updated policy. Existing conditions are deleted if they are not
- * updated.
- * Best practice is to preserve `[CONDITION_ID]` if you make only small
- * changes, such as those to condition thresholds, durations, or trigger
- * values. Otherwise, treat the change as a new condition and let the
- * existing condition be deleted.
- *
- *
- * string name = 12;
- *
- * @return The bytes for name.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ public static final int TRIGGER_FIELD_NUMBER = 3;
+ private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_;
+ /**
+ *
+ *
+ *
+ * The number/percent of time series for which the comparison must hold
+ * in order for the condition to trigger. If unspecified, then the
+ * condition will trigger if the comparison is true for any of the
+ * time series that have been identified by `filter` and `aggregations`,
+ * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+ * are specified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
+ *
+ * @return Whether the trigger field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrigger() {
+ return trigger_ != null;
}
- }
-
- public static final int DISPLAY_NAME_FIELD_NUMBER = 6;
- private volatile java.lang.Object displayName_;
- /**
- *
- *
- *
- * A short name or phrase used to identify the condition in dashboards,
- * notifications, and incidents. To avoid confusion, don't use the same
- * display name for multiple conditions in the same policy.
- *
- *
- * string display_name = 6;
- *
- * @return The displayName.
- */
- @java.lang.Override
- public java.lang.String getDisplayName() {
- java.lang.Object ref = displayName_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- displayName_ = s;
- return s;
+ /**
+ *
+ *
+ *
+ * The number/percent of time series for which the comparison must hold
+ * in order for the condition to trigger. If unspecified, then the
+ * condition will trigger if the comparison is true for any of the
+ * time series that have been identified by `filter` and `aggregations`,
+ * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+ * are specified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
+ *
+ * @return The trigger.
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() {
+ return trigger_ == null
+ ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()
+ : trigger_;
}
- }
- /**
- *
- *
- *
- * A short name or phrase used to identify the condition in dashboards,
- * notifications, and incidents. To avoid confusion, don't use the same
- * display name for multiple conditions in the same policy.
- *
- *
- * string display_name = 6;
- *
- * @return The bytes for displayName.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getDisplayNameBytes() {
- java.lang.Object ref = displayName_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- displayName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ /**
+ *
+ *
+ *
+ * The number/percent of time series for which the comparison must hold
+ * in order for the condition to trigger. If unspecified, then the
+ * condition will trigger if the comparison is true for any of the
+ * time series that have been identified by `filter` and `aggregations`,
+ * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+ * are specified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder() {
+ return getTrigger();
}
- }
- public static final int CONDITION_THRESHOLD_FIELD_NUMBER = 1;
- /**
- *
- *
- *
- * A condition that compares a time series against a threshold.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
- *
- *
- * @return Whether the conditionThreshold field is set.
- */
- @java.lang.Override
- public boolean hasConditionThreshold() {
- return conditionCase_ == 1;
- }
- /**
- *
- *
- *
- * A condition that compares a time series against a threshold.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
- *
- *
- * @return The conditionThreshold.
- */
- @java.lang.Override
- public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold getConditionThreshold() {
- if (conditionCase_ == 1) {
- return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_;
- }
- return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance();
- }
- /**
- *
- *
- *
- * A condition that compares a time series against a threshold.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
- *
- */
- @java.lang.Override
- public com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder
- getConditionThresholdOrBuilder() {
- if (conditionCase_ == 1) {
- return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_;
+ 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;
}
- return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance();
- }
- public static final int CONDITION_ABSENT_FIELD_NUMBER = 2;
- /**
- *
- *
- *
- * A condition that checks that a time series continues to
- * receive new data points.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
- *
- * @return Whether the conditionAbsent field is set.
- */
- @java.lang.Override
- public boolean hasConditionAbsent() {
- return conditionCase_ == 2;
- }
- /**
- *
- *
- *
- * A condition that checks that a time series continues to
- * receive new data points.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
- *
- * @return The conditionAbsent.
- */
- @java.lang.Override
- public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getConditionAbsent() {
- if (conditionCase_ == 2) {
- return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_;
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_);
+ }
+ if (duration_ != null) {
+ output.writeMessage(2, getDuration());
+ }
+ if (trigger_ != null) {
+ output.writeMessage(3, getTrigger());
+ }
+ unknownFields.writeTo(output);
}
- return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance();
- }
- /**
- *
- *
- *
- * A condition that checks that a time series continues to
- * receive new data points.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
- */
- @java.lang.Override
- public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder
- getConditionAbsentOrBuilder() {
- if (conditionCase_ == 2) {
- return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_;
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_);
+ }
+ if (duration_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration());
+ }
+ if (trigger_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTrigger());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
}
- return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance();
- }
- public static final int CONDITION_MONITORING_QUERY_LANGUAGE_FIELD_NUMBER = 19;
- /**
- *
- *
- *
- * A condition that uses the Monitoring Query Language to define
- * alerts.
- *
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
- *
- *
- * @return Whether the conditionMonitoringQueryLanguage field is set.
- */
- @java.lang.Override
- public boolean hasConditionMonitoringQueryLanguage() {
- return conditionCase_ == 19;
- }
- /**
- *
- *
- *
- * A condition that uses the Monitoring Query Language to define
- * alerts.
- *
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
- *
- *
- * @return The conditionMonitoringQueryLanguage.
- */
- @java.lang.Override
- public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
- getConditionMonitoringQueryLanguage() {
- if (conditionCase_ == 19) {
- return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
- condition_;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)) {
+ return super.equals(obj);
+ }
+ com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition other =
+ (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) obj;
+
+ if (!getQuery().equals(other.getQuery())) return false;
+ if (hasDuration() != other.hasDuration()) return false;
+ if (hasDuration()) {
+ if (!getDuration().equals(other.getDuration())) return false;
+ }
+ if (hasTrigger() != other.hasTrigger()) return false;
+ if (hasTrigger()) {
+ if (!getTrigger().equals(other.getTrigger())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
- return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
- .getDefaultInstance();
- }
- /**
- *
- *
- *
- * A condition that uses the Monitoring Query Language to define
- * alerts.
- *
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
- *
- */
- @java.lang.Override
- public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder
- getConditionMonitoringQueryLanguageOrBuilder() {
- if (conditionCase_ == 19) {
- return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
- condition_;
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + getQuery().hashCode();
+ if (hasDuration()) {
+ hash = (37 * hash) + DURATION_FIELD_NUMBER;
+ hash = (53 * hash) + getDuration().hashCode();
+ }
+ if (hasTrigger()) {
+ hash = (37 * hash) + TRIGGER_FIELD_NUMBER;
+ hash = (53 * hash) + getTrigger().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
- return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
- .getDefaultInstance();
- }
- private byte memoizedIsInitialized = -1;
+ public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
+ public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
- memoizedIsInitialized = 1;
- return true;
- }
+ public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (conditionCase_ == 1) {
- output.writeMessage(
- 1, (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_);
+ public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ 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.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ 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.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ 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.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ 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.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ 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 condition type that allows alert policies to be defined using
+ * [Monitoring Query Language](https://cloud.google.com/monitoring/mql).
+ *
+ *
+ * Protobuf type {@code
+ * google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+ * query that outputs a boolean stream.
+ *
+ *
+ * string query = 1;
+ *
+ * @return The query.
+ */
+ public java.lang.String getQuery() {
+ java.lang.Object ref = query_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ query_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+ * query that outputs a boolean stream.
+ *
+ *
+ * string query = 1;
+ *
+ * @return The bytes for query.
+ */
+ public com.google.protobuf.ByteString getQueryBytes() {
+ java.lang.Object ref = query_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ query_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+ * query that outputs a boolean stream.
+ *
+ *
+ * string query = 1;
+ *
+ * @param value The query to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQuery(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ query_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+ * query that outputs a boolean stream.
+ *
+ *
+ * string query = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQuery() {
+
+ query_ = getDefaultInstance().getQuery();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+ * query that outputs a boolean stream.
+ *
+ *
+ * string query = 1;
+ *
+ * @param value The bytes for query to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQueryBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ query_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Duration duration_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ durationBuilder_;
+ /**
+ *
+ *
+ *
+ * The amount of time that a time series must violate the
+ * threshold to be considered failing. Currently, only values
+ * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+ * seconds--are supported. If an invalid value is given, an
+ * error will be returned. When choosing a duration, it is useful to
+ * keep in mind the frequency of the underlying time series data
+ * (which may also be affected by any alignments specified in the
+ * `aggregations` field); a good duration is long enough so that a single
+ * outlier does not generate spurious alerts, but short enough that
+ * unhealthy states are detected and alerted on quickly.
+ *
+ *
+ * .google.protobuf.Duration duration = 2;
+ *
+ * @return Whether the duration field is set.
+ */
+ public boolean hasDuration() {
+ return durationBuilder_ != null || duration_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The amount of time that a time series must violate the
+ * threshold to be considered failing. Currently, only values
+ * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+ * seconds--are supported. If an invalid value is given, an
+ * error will be returned. When choosing a duration, it is useful to
+ * keep in mind the frequency of the underlying time series data
+ * (which may also be affected by any alignments specified in the
+ * `aggregations` field); a good duration is long enough so that a single
+ * outlier does not generate spurious alerts, but short enough that
+ * unhealthy states are detected and alerted on quickly.
+ *
+ *
+ * .google.protobuf.Duration duration = 2;
+ *
+ * @return The duration.
+ */
+ public com.google.protobuf.Duration getDuration() {
+ if (durationBuilder_ == null) {
+ return duration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : duration_;
+ } else {
+ return durationBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The amount of time that a time series must violate the
+ * threshold to be considered failing. Currently, only values
+ * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+ * seconds--are supported. If an invalid value is given, an
+ * error will be returned. When choosing a duration, it is useful to
+ * keep in mind the frequency of the underlying time series data
+ * (which may also be affected by any alignments specified in the
+ * `aggregations` field); a good duration is long enough so that a single
+ * outlier does not generate spurious alerts, but short enough that
+ * unhealthy states are detected and alerted on quickly.
+ *
+ *
+ * .google.protobuf.Duration duration = 2;
+ */
+ public Builder setDuration(com.google.protobuf.Duration value) {
+ if (durationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ duration_ = value;
+ onChanged();
+ } else {
+ durationBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The amount of time that a time series must violate the
+ * threshold to be considered failing. Currently, only values
+ * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+ * seconds--are supported. If an invalid value is given, an
+ * error will be returned. When choosing a duration, it is useful to
+ * keep in mind the frequency of the underlying time series data
+ * (which may also be affected by any alignments specified in the
+ * `aggregations` field); a good duration is long enough so that a single
+ * outlier does not generate spurious alerts, but short enough that
+ * unhealthy states are detected and alerted on quickly.
+ *
+ *
+ * .google.protobuf.Duration duration = 2;
+ */
+ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) {
+ if (durationBuilder_ == null) {
+ duration_ = builderForValue.build();
+ onChanged();
+ } else {
+ durationBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The amount of time that a time series must violate the
+ * threshold to be considered failing. Currently, only values
+ * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+ * seconds--are supported. If an invalid value is given, an
+ * error will be returned. When choosing a duration, it is useful to
+ * keep in mind the frequency of the underlying time series data
+ * (which may also be affected by any alignments specified in the
+ * `aggregations` field); a good duration is long enough so that a single
+ * outlier does not generate spurious alerts, but short enough that
+ * unhealthy states are detected and alerted on quickly.
+ *
+ *
+ * .google.protobuf.Duration duration = 2;
+ */
+ public Builder mergeDuration(com.google.protobuf.Duration value) {
+ if (durationBuilder_ == null) {
+ if (duration_ != null) {
+ duration_ =
+ com.google.protobuf.Duration.newBuilder(duration_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ duration_ = value;
+ }
+ onChanged();
+ } else {
+ durationBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The amount of time that a time series must violate the
+ * threshold to be considered failing. Currently, only values
+ * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+ * seconds--are supported. If an invalid value is given, an
+ * error will be returned. When choosing a duration, it is useful to
+ * keep in mind the frequency of the underlying time series data
+ * (which may also be affected by any alignments specified in the
+ * `aggregations` field); a good duration is long enough so that a single
+ * outlier does not generate spurious alerts, but short enough that
+ * unhealthy states are detected and alerted on quickly.
+ *
+ *
+ * .google.protobuf.Duration duration = 2;
+ */
+ public Builder clearDuration() {
+ if (durationBuilder_ == null) {
+ duration_ = null;
+ onChanged();
+ } else {
+ duration_ = null;
+ durationBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The amount of time that a time series must violate the
+ * threshold to be considered failing. Currently, only values
+ * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+ * seconds--are supported. If an invalid value is given, an
+ * error will be returned. When choosing a duration, it is useful to
+ * keep in mind the frequency of the underlying time series data
+ * (which may also be affected by any alignments specified in the
+ * `aggregations` field); a good duration is long enough so that a single
+ * outlier does not generate spurious alerts, but short enough that
+ * unhealthy states are detected and alerted on quickly.
+ *
+ *
+ * .google.protobuf.Duration duration = 2;
+ */
+ public com.google.protobuf.Duration.Builder getDurationBuilder() {
+
+ onChanged();
+ return getDurationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The amount of time that a time series must violate the
+ * threshold to be considered failing. Currently, only values
+ * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+ * seconds--are supported. If an invalid value is given, an
+ * error will be returned. When choosing a duration, it is useful to
+ * keep in mind the frequency of the underlying time series data
+ * (which may also be affected by any alignments specified in the
+ * `aggregations` field); a good duration is long enough so that a single
+ * outlier does not generate spurious alerts, but short enough that
+ * unhealthy states are detected and alerted on quickly.
+ *
+ *
+ * .google.protobuf.Duration duration = 2;
+ */
+ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
+ if (durationBuilder_ != null) {
+ return durationBuilder_.getMessageOrBuilder();
+ } else {
+ return duration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : duration_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The amount of time that a time series must violate the
+ * threshold to be considered failing. Currently, only values
+ * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+ * seconds--are supported. If an invalid value is given, an
+ * error will be returned. When choosing a duration, it is useful to
+ * keep in mind the frequency of the underlying time series data
+ * (which may also be affected by any alignments specified in the
+ * `aggregations` field); a good duration is long enough so that a single
+ * outlier does not generate spurious alerts, but short enough that
+ * unhealthy states are detected and alerted on quickly.
+ *
+ *
+ * .google.protobuf.Duration duration = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getDurationFieldBuilder() {
+ if (durationBuilder_ == null) {
+ durationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getDuration(), getParentForChildren(), isClean());
+ duration_ = null;
+ }
+ return durationBuilder_;
+ }
+
+ private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
+ com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
+ com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>
+ triggerBuilder_;
+ /**
+ *
+ *
+ *
+ * The number/percent of time series for which the comparison must hold
+ * in order for the condition to trigger. If unspecified, then the
+ * condition will trigger if the comparison is true for any of the
+ * time series that have been identified by `filter` and `aggregations`,
+ * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+ * are specified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
+ *
+ * @return Whether the trigger field is set.
+ */
+ public boolean hasTrigger() {
+ return triggerBuilder_ != null || trigger_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The number/percent of time series for which the comparison must hold
+ * in order for the condition to trigger. If unspecified, then the
+ * condition will trigger if the comparison is true for any of the
+ * time series that have been identified by `filter` and `aggregations`,
+ * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+ * are specified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
+ *
+ * @return The trigger.
+ */
+ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() {
+ if (triggerBuilder_ == null) {
+ return trigger_ == null
+ ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()
+ : trigger_;
+ } else {
+ return triggerBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The number/percent of time series for which the comparison must hold
+ * in order for the condition to trigger. If unspecified, then the
+ * condition will trigger if the comparison is true for any of the
+ * time series that have been identified by `filter` and `aggregations`,
+ * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+ * are specified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
+ */
+ public Builder setTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger value) {
+ if (triggerBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ trigger_ = value;
+ onChanged();
+ } else {
+ triggerBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The number/percent of time series for which the comparison must hold
+ * in order for the condition to trigger. If unspecified, then the
+ * condition will trigger if the comparison is true for any of the
+ * time series that have been identified by `filter` and `aggregations`,
+ * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+ * are specified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
+ */
+ public Builder setTrigger(
+ com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder builderForValue) {
+ if (triggerBuilder_ == null) {
+ trigger_ = builderForValue.build();
+ onChanged();
+ } else {
+ triggerBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The number/percent of time series for which the comparison must hold
+ * in order for the condition to trigger. If unspecified, then the
+ * condition will trigger if the comparison is true for any of the
+ * time series that have been identified by `filter` and `aggregations`,
+ * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+ * are specified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
+ */
+ public Builder mergeTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger value) {
+ if (triggerBuilder_ == null) {
+ if (trigger_ != null) {
+ trigger_ =
+ com.google.monitoring.v3.AlertPolicy.Condition.Trigger.newBuilder(trigger_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ trigger_ = value;
+ }
+ onChanged();
+ } else {
+ triggerBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The number/percent of time series for which the comparison must hold
+ * in order for the condition to trigger. If unspecified, then the
+ * condition will trigger if the comparison is true for any of the
+ * time series that have been identified by `filter` and `aggregations`,
+ * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+ * are specified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
+ */
+ public Builder clearTrigger() {
+ if (triggerBuilder_ == null) {
+ trigger_ = null;
+ onChanged();
+ } else {
+ trigger_ = null;
+ triggerBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The number/percent of time series for which the comparison must hold
+ * in order for the condition to trigger. If unspecified, then the
+ * condition will trigger if the comparison is true for any of the
+ * time series that have been identified by `filter` and `aggregations`,
+ * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+ * are specified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
+ */
+ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTriggerBuilder() {
+
+ onChanged();
+ return getTriggerFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The number/percent of time series for which the comparison must hold
+ * in order for the condition to trigger. If unspecified, then the
+ * condition will trigger if the comparison is true for any of the
+ * time series that have been identified by `filter` and `aggregations`,
+ * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+ * are specified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
+ */
+ public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder
+ getTriggerOrBuilder() {
+ if (triggerBuilder_ != null) {
+ return triggerBuilder_.getMessageOrBuilder();
+ } else {
+ return trigger_ == null
+ ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()
+ : trigger_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The number/percent of time series for which the comparison must hold
+ * in order for the condition to trigger. If unspecified, then the
+ * condition will trigger if the comparison is true for any of the
+ * time series that have been identified by `filter` and `aggregations`,
+ * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+ * are specified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
+ com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
+ com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>
+ getTriggerFieldBuilder() {
+ if (triggerBuilder_ == null) {
+ triggerBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
+ com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
+ com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>(
+ getTrigger(), getParentForChildren(), isClean());
+ trigger_ = null;
+ }
+ return triggerBuilder_;
+ }
+
+ @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.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
+ private static final com.google.monitoring.v3.AlertPolicy.Condition
+ .MonitoringQueryLanguageCondition
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition();
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Required if the condition exists. The unique resource name for this
+ * condition. Its format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
+ * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
+ * condition is created as part of a new or updated alerting policy.
+ * When calling the
+ * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
+ * method, do not include the `name` field in the conditions of the
+ * requested alerting policy. Stackdriver Monitoring creates the
+ * condition identifiers and includes them in the new policy.
+ * When calling the
+ * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
+ * method to update a policy, including a condition `name` causes the
+ * existing condition to be updated. Conditions without names are added to
+ * the updated policy. Existing conditions are deleted if they are not
+ * updated.
+ * Best practice is to preserve `[CONDITION_ID]` if you make only small
+ * changes, such as those to condition thresholds, durations, or trigger
+ * values. Otherwise, treat the change as a new condition and let the
+ * existing condition be deleted.
+ *
+ *
+ * string name = 12;
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required if the condition exists. The unique resource name for this
+ * condition. Its format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
+ * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
+ * condition is created as part of a new or updated alerting policy.
+ * When calling the
+ * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
+ * method, do not include the `name` field in the conditions of the
+ * requested alerting policy. Stackdriver Monitoring creates the
+ * condition identifiers and includes them in the new policy.
+ * When calling the
+ * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
+ * method to update a policy, including a condition `name` causes the
+ * existing condition to be updated. Conditions without names are added to
+ * the updated policy. Existing conditions are deleted if they are not
+ * updated.
+ * Best practice is to preserve `[CONDITION_ID]` if you make only small
+ * changes, such as those to condition thresholds, durations, or trigger
+ * values. Otherwise, treat the change as a new condition and let the
+ * existing condition be deleted.
+ *
+ *
+ * string name = 12;
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DISPLAY_NAME_FIELD_NUMBER = 6;
+ private volatile java.lang.Object displayName_;
+ /**
+ *
+ *
+ *
+ * A short name or phrase used to identify the condition in dashboards,
+ * notifications, and incidents. To avoid confusion, don't use the same
+ * display name for multiple conditions in the same policy.
+ *
+ *
+ * string display_name = 6;
+ *
+ * @return The displayName.
+ */
+ @java.lang.Override
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A short name or phrase used to identify the condition in dashboards,
+ * notifications, and incidents. To avoid confusion, don't use the same
+ * display name for multiple conditions in the same policy.
+ *
+ *
+ * string display_name = 6;
+ *
+ * @return The bytes for displayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONDITION_THRESHOLD_FIELD_NUMBER = 1;
+ /**
+ *
+ *
+ *
+ * A condition that compares a time series against a threshold.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
+ *
+ *
+ * @return Whether the conditionThreshold field is set.
+ */
+ @java.lang.Override
+ public boolean hasConditionThreshold() {
+ return conditionCase_ == 1;
+ }
+ /**
+ *
+ *
+ *
+ * A condition that compares a time series against a threshold.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
+ *
+ *
+ * @return The conditionThreshold.
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold getConditionThreshold() {
+ if (conditionCase_ == 1) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * A condition that compares a time series against a threshold.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder
+ getConditionThresholdOrBuilder() {
+ if (conditionCase_ == 1) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance();
+ }
+
+ public static final int CONDITION_ABSENT_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ *
+ * A condition that checks that a time series continues to
+ * receive new data points.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
+ *
+ * @return Whether the conditionAbsent field is set.
+ */
+ @java.lang.Override
+ public boolean hasConditionAbsent() {
+ return conditionCase_ == 2;
+ }
+ /**
+ *
+ *
+ *
+ * A condition that checks that a time series continues to
+ * receive new data points.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
+ *
+ * @return The conditionAbsent.
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getConditionAbsent() {
+ if (conditionCase_ == 2) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * A condition that checks that a time series continues to
+ * receive new data points.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder
+ getConditionAbsentOrBuilder() {
+ if (conditionCase_ == 2) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance();
+ }
+
+ public static final int CONDITION_MATCHED_LOG_FIELD_NUMBER = 20;
+ /**
+ *
+ *
+ *
+ * A condition that checks for log messages matching given constraints. If
+ * set, no other conditions can be present.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
+ *
+ * @return Whether the conditionMatchedLog field is set.
+ */
+ @java.lang.Override
+ public boolean hasConditionMatchedLog() {
+ return conditionCase_ == 20;
+ }
+ /**
+ *
+ *
+ *
+ * A condition that checks for log messages matching given constraints. If
+ * set, no other conditions can be present.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
+ *
+ * @return The conditionMatchedLog.
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getConditionMatchedLog() {
+ if (conditionCase_ == 20) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * A condition that checks for log messages matching given constraints. If
+ * set, no other conditions can be present.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder
+ getConditionMatchedLogOrBuilder() {
+ if (conditionCase_ == 20) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance();
+ }
+
+ public static final int CONDITION_MONITORING_QUERY_LANGUAGE_FIELD_NUMBER = 19;
+ /**
+ *
+ *
+ *
+ * A condition that uses the Monitoring Query Language to define
+ * alerts.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ *
+ *
+ * @return Whether the conditionMonitoringQueryLanguage field is set.
+ */
+ @java.lang.Override
+ public boolean hasConditionMonitoringQueryLanguage() {
+ return conditionCase_ == 19;
+ }
+ /**
+ *
+ *
+ *
+ * A condition that uses the Monitoring Query Language to define
+ * alerts.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ *
+ *
+ * @return The conditionMonitoringQueryLanguage.
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ getConditionMonitoringQueryLanguage() {
+ if (conditionCase_ == 19) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
+ condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * A condition that uses the Monitoring Query Language to define
+ * alerts.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ *
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder
+ getConditionMonitoringQueryLanguageOrBuilder() {
+ if (conditionCase_ == 19) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
+ condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ .getDefaultInstance();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (conditionCase_ == 1) {
+ output.writeMessage(
+ 1, (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_);
+ }
+ if (conditionCase_ == 2) {
+ output.writeMessage(
+ 2, (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 12, name_);
+ }
+ if (conditionCase_ == 19) {
+ output.writeMessage(
+ 19,
+ (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
+ condition_);
+ }
+ if (conditionCase_ == 20) {
+ output.writeMessage(
+ 20, (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (conditionCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_);
+ }
+ if (conditionCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, name_);
+ }
+ if (conditionCase_ == 19) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 19,
+ (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
+ condition_);
+ }
+ if (conditionCase_ == 20) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 20, (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_);
+ }
+ 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.v3.AlertPolicy.Condition)) {
+ return super.equals(obj);
+ }
+ com.google.monitoring.v3.AlertPolicy.Condition other =
+ (com.google.monitoring.v3.AlertPolicy.Condition) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (!getConditionCase().equals(other.getConditionCase())) return false;
+ switch (conditionCase_) {
+ case 1:
+ if (!getConditionThreshold().equals(other.getConditionThreshold())) return false;
+ break;
+ case 2:
+ if (!getConditionAbsent().equals(other.getConditionAbsent())) return false;
+ break;
+ case 20:
+ if (!getConditionMatchedLog().equals(other.getConditionMatchedLog())) return false;
+ break;
+ case 19:
+ if (!getConditionMonitoringQueryLanguage()
+ .equals(other.getConditionMonitoringQueryLanguage())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ switch (conditionCase_) {
+ case 1:
+ hash = (37 * hash) + CONDITION_THRESHOLD_FIELD_NUMBER;
+ hash = (53 * hash) + getConditionThreshold().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + CONDITION_ABSENT_FIELD_NUMBER;
+ hash = (53 * hash) + getConditionAbsent().hashCode();
+ break;
+ case 20:
+ hash = (37 * hash) + CONDITION_MATCHED_LOG_FIELD_NUMBER;
+ hash = (53 * hash) + getConditionMatchedLog().hashCode();
+ break;
+ case 19:
+ hash = (37 * hash) + CONDITION_MONITORING_QUERY_LANGUAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getConditionMonitoringQueryLanguage().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition 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.v3.AlertPolicy.Condition parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition 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.v3.AlertPolicy.Condition parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition 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.v3.AlertPolicy.Condition parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition 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.v3.AlertPolicy.Condition parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition 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.v3.AlertPolicy.Condition 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 condition is a true/false test that determines when an alerting policy
+ * should open an incident. If a condition evaluates to true, it signifies
+ * that something is wrong.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required if the condition exists. The unique resource name for this
+ * condition. Its format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
+ * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
+ * condition is created as part of a new or updated alerting policy.
+ * When calling the
+ * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
+ * method, do not include the `name` field in the conditions of the
+ * requested alerting policy. Stackdriver Monitoring creates the
+ * condition identifiers and includes them in the new policy.
+ * When calling the
+ * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
+ * method to update a policy, including a condition `name` causes the
+ * existing condition to be updated. Conditions without names are added to
+ * the updated policy. Existing conditions are deleted if they are not
+ * updated.
+ * Best practice is to preserve `[CONDITION_ID]` if you make only small
+ * changes, such as those to condition thresholds, durations, or trigger
+ * values. Otherwise, treat the change as a new condition and let the
+ * existing condition be deleted.
+ *
+ *
+ * string name = 12;
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required if the condition exists. The unique resource name for this
+ * condition. Its format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
+ * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
+ * condition is created as part of a new or updated alerting policy.
+ * When calling the
+ * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
+ * method, do not include the `name` field in the conditions of the
+ * requested alerting policy. Stackdriver Monitoring creates the
+ * condition identifiers and includes them in the new policy.
+ * When calling the
+ * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
+ * method to update a policy, including a condition `name` causes the
+ * existing condition to be updated. Conditions without names are added to
+ * the updated policy. Existing conditions are deleted if they are not
+ * updated.
+ * Best practice is to preserve `[CONDITION_ID]` if you make only small
+ * changes, such as those to condition thresholds, durations, or trigger
+ * values. Otherwise, treat the change as a new condition and let the
+ * existing condition be deleted.
+ *
+ *
+ * string name = 12;
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required if the condition exists. The unique resource name for this
+ * condition. Its format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
+ * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
+ * condition is created as part of a new or updated alerting policy.
+ * When calling the
+ * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
+ * method, do not include the `name` field in the conditions of the
+ * requested alerting policy. Stackdriver Monitoring creates the
+ * condition identifiers and includes them in the new policy.
+ * When calling the
+ * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
+ * method to update a policy, including a condition `name` causes the
+ * existing condition to be updated. Conditions without names are added to
+ * the updated policy. Existing conditions are deleted if they are not
+ * updated.
+ * Best practice is to preserve `[CONDITION_ID]` if you make only small
+ * changes, such as those to condition thresholds, durations, or trigger
+ * values. Otherwise, treat the change as a new condition and let the
+ * existing condition be deleted.
+ *
+ *
+ * string name = 12;
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required if the condition exists. The unique resource name for this
+ * condition. Its format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
+ * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
+ * condition is created as part of a new or updated alerting policy.
+ * When calling the
+ * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
+ * method, do not include the `name` field in the conditions of the
+ * requested alerting policy. Stackdriver Monitoring creates the
+ * condition identifiers and includes them in the new policy.
+ * When calling the
+ * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
+ * method to update a policy, including a condition `name` causes the
+ * existing condition to be updated. Conditions without names are added to
+ * the updated policy. Existing conditions are deleted if they are not
+ * updated.
+ * Best practice is to preserve `[CONDITION_ID]` if you make only small
+ * changes, such as those to condition thresholds, durations, or trigger
+ * values. Otherwise, treat the change as a new condition and let the
+ * existing condition be deleted.
+ *
+ *
+ * string name = 12;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required if the condition exists. The unique resource name for this
+ * condition. Its format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
+ * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
+ * condition is created as part of a new or updated alerting policy.
+ * When calling the
+ * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
+ * method, do not include the `name` field in the conditions of the
+ * requested alerting policy. Stackdriver Monitoring creates the
+ * condition identifiers and includes them in the new policy.
+ * When calling the
+ * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
+ * method to update a policy, including a condition `name` causes the
+ * existing condition to be updated. Conditions without names are added to
+ * the updated policy. Existing conditions are deleted if they are not
+ * updated.
+ * Best practice is to preserve `[CONDITION_ID]` if you make only small
+ * changes, such as those to condition thresholds, durations, or trigger
+ * values. Otherwise, treat the change as a new condition and let the
+ * existing condition be deleted.
+ *
+ *
+ * string name = 12;
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ *
+ * A short name or phrase used to identify the condition in dashboards,
+ * notifications, and incidents. To avoid confusion, don't use the same
+ * display name for multiple conditions in the same policy.
+ *
+ *
+ * string display_name = 6;
+ *
+ * @return The displayName.
+ */
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A short name or phrase used to identify the condition in dashboards,
+ * notifications, and incidents. To avoid confusion, don't use the same
+ * display name for multiple conditions in the same policy.
+ *
+ *
+ * string display_name = 6;
+ *
+ * @return The bytes for displayName.
+ */
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A short name or phrase used to identify the condition in dashboards,
+ * notifications, and incidents. To avoid confusion, don't use the same
+ * display name for multiple conditions in the same policy.
+ *
+ *
+ * string display_name = 6;
+ *
+ * @param value The displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ displayName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A short name or phrase used to identify the condition in dashboards,
+ * notifications, and incidents. To avoid confusion, don't use the same
+ * display name for multiple conditions in the same policy.
+ *
+ *
+ * string display_name = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+
+ displayName_ = getDefaultInstance().getDisplayName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A short name or phrase used to identify the condition in dashboards,
+ * notifications, and incidents. To avoid confusion, don't use the same
+ * display name for multiple conditions in the same policy.
+ *
+ *
+ * string display_name = 6;
+ *
+ * @param value The bytes for displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ displayName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold,
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder,
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder>
+ conditionThresholdBuilder_;
+ /**
+ *
+ *
+ *
+ * A condition that compares a time series against a threshold.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
+ *
+ *
+ * @return Whether the conditionThreshold field is set.
+ */
+ @java.lang.Override
+ public boolean hasConditionThreshold() {
+ return conditionCase_ == 1;
+ }
+ /**
+ *
+ *
+ *
+ * A condition that compares a time series against a threshold.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
+ *
+ *
+ * @return The conditionThreshold.
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold
+ getConditionThreshold() {
+ if (conditionThresholdBuilder_ == null) {
+ if (conditionCase_ == 1) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold
+ .getDefaultInstance();
+ } else {
+ if (conditionCase_ == 1) {
+ return conditionThresholdBuilder_.getMessage();
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A condition that compares a time series against a threshold.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
+ *
+ */
+ public Builder setConditionThreshold(
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold value) {
+ if (conditionThresholdBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ condition_ = value;
+ onChanged();
+ } else {
+ conditionThresholdBuilder_.setMessage(value);
+ }
+ conditionCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A condition that compares a time series against a threshold.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
+ *
+ */
+ public Builder setConditionThreshold(
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder builderForValue) {
+ if (conditionThresholdBuilder_ == null) {
+ condition_ = builderForValue.build();
+ onChanged();
+ } else {
+ conditionThresholdBuilder_.setMessage(builderForValue.build());
+ }
+ conditionCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A condition that compares a time series against a threshold.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
+ *
+ */
+ public Builder mergeConditionThreshold(
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold value) {
+ if (conditionThresholdBuilder_ == null) {
+ if (conditionCase_ == 1
+ && condition_
+ != com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold
+ .getDefaultInstance()) {
+ condition_ =
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.newBuilder(
+ (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ condition_ = value;
+ }
+ onChanged();
+ } else {
+ if (conditionCase_ == 1) {
+ conditionThresholdBuilder_.mergeFrom(value);
+ }
+ conditionThresholdBuilder_.setMessage(value);
+ }
+ conditionCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A condition that compares a time series against a threshold.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
+ *
+ */
+ public Builder clearConditionThreshold() {
+ if (conditionThresholdBuilder_ == null) {
+ if (conditionCase_ == 1) {
+ conditionCase_ = 0;
+ condition_ = null;
+ onChanged();
+ }
+ } else {
+ if (conditionCase_ == 1) {
+ conditionCase_ = 0;
+ condition_ = null;
+ }
+ conditionThresholdBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A condition that compares a time series against a threshold.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
+ *
+ */
+ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder
+ getConditionThresholdBuilder() {
+ return getConditionThresholdFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * A condition that compares a time series against a threshold.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder
+ getConditionThresholdOrBuilder() {
+ if ((conditionCase_ == 1) && (conditionThresholdBuilder_ != null)) {
+ return conditionThresholdBuilder_.getMessageOrBuilder();
+ } else {
+ if (conditionCase_ == 1) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A condition that compares a time series against a threshold.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold,
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder,
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder>
+ getConditionThresholdFieldBuilder() {
+ if (conditionThresholdBuilder_ == null) {
+ if (!(conditionCase_ == 1)) {
+ condition_ =
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance();
+ }
+ conditionThresholdBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold,
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder,
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder>(
+ (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_,
+ getParentForChildren(),
+ isClean());
+ condition_ = null;
+ }
+ conditionCase_ = 1;
+ onChanged();
+ ;
+ return conditionThresholdBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence,
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder,
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder>
+ conditionAbsentBuilder_;
+ /**
+ *
+ *
+ *
+ * A condition that checks that a time series continues to
+ * receive new data points.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
+ *
+ *
+ * @return Whether the conditionAbsent field is set.
+ */
+ @java.lang.Override
+ public boolean hasConditionAbsent() {
+ return conditionCase_ == 2;
+ }
+ /**
+ *
+ *
+ *
+ * A condition that checks that a time series continues to
+ * receive new data points.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
+ *
+ *
+ * @return The conditionAbsent.
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getConditionAbsent() {
+ if (conditionAbsentBuilder_ == null) {
+ if (conditionCase_ == 2) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance();
+ } else {
+ if (conditionCase_ == 2) {
+ return conditionAbsentBuilder_.getMessage();
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A condition that checks that a time series continues to
+ * receive new data points.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
+ *
+ */
+ public Builder setConditionAbsent(
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence value) {
+ if (conditionAbsentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ condition_ = value;
+ onChanged();
+ } else {
+ conditionAbsentBuilder_.setMessage(value);
+ }
+ conditionCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A condition that checks that a time series continues to
+ * receive new data points.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
+ *
+ */
+ public Builder setConditionAbsent(
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder builderForValue) {
+ if (conditionAbsentBuilder_ == null) {
+ condition_ = builderForValue.build();
+ onChanged();
+ } else {
+ conditionAbsentBuilder_.setMessage(builderForValue.build());
+ }
+ conditionCase_ = 2;
+ return this;
}
- if (conditionCase_ == 2) {
- output.writeMessage(
- 2, (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_);
+ /**
+ *
+ *
+ *
+ * A condition that checks that a time series continues to
+ * receive new data points.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
+ *
+ */
+ public Builder mergeConditionAbsent(
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence value) {
+ if (conditionAbsentBuilder_ == null) {
+ if (conditionCase_ == 2
+ && condition_
+ != com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence
+ .getDefaultInstance()) {
+ condition_ =
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.newBuilder(
+ (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ condition_ = value;
+ }
+ onChanged();
+ } else {
+ if (conditionCase_ == 2) {
+ conditionAbsentBuilder_.mergeFrom(value);
+ }
+ conditionAbsentBuilder_.setMessage(value);
+ }
+ conditionCase_ = 2;
+ return this;
}
- if (!getDisplayNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_);
+ /**
+ *
+ *
+ *
+ * A condition that checks that a time series continues to
+ * receive new data points.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
+ *
+ */
+ public Builder clearConditionAbsent() {
+ if (conditionAbsentBuilder_ == null) {
+ if (conditionCase_ == 2) {
+ conditionCase_ = 0;
+ condition_ = null;
+ onChanged();
+ }
+ } else {
+ if (conditionCase_ == 2) {
+ conditionCase_ = 0;
+ condition_ = null;
+ }
+ conditionAbsentBuilder_.clear();
+ }
+ return this;
}
- if (!getNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 12, name_);
+ /**
+ *
+ *
+ *
+ * A condition that checks that a time series continues to
+ * receive new data points.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
+ *
+ */
+ public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder
+ getConditionAbsentBuilder() {
+ return getConditionAbsentFieldBuilder().getBuilder();
}
- if (conditionCase_ == 19) {
- output.writeMessage(
- 19,
- (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
- condition_);
+ /**
+ *
+ *
+ *
+ * A condition that checks that a time series continues to
+ * receive new data points.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder
+ getConditionAbsentOrBuilder() {
+ if ((conditionCase_ == 2) && (conditionAbsentBuilder_ != null)) {
+ return conditionAbsentBuilder_.getMessageOrBuilder();
+ } else {
+ if (conditionCase_ == 2) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance();
+ }
}
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (conditionCase_ == 1) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 1, (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_);
+ /**
+ *
+ *
+ *
+ * A condition that checks that a time series continues to
+ * receive new data points.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence,
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder,
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder>
+ getConditionAbsentFieldBuilder() {
+ if (conditionAbsentBuilder_ == null) {
+ if (!(conditionCase_ == 2)) {
+ condition_ =
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance();
+ }
+ conditionAbsentBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence,
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder,
+ com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder>(
+ (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_,
+ getParentForChildren(),
+ isClean());
+ condition_ = null;
+ }
+ conditionCase_ = 2;
+ onChanged();
+ ;
+ return conditionAbsentBuilder_;
}
- if (conditionCase_ == 2) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 2, (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_);
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatch,
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder,
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder>
+ conditionMatchedLogBuilder_;
+ /**
+ *
+ *
+ *
+ * A condition that checks for log messages matching given constraints. If
+ * set, no other conditions can be present.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
+ *
+ *
+ * @return Whether the conditionMatchedLog field is set.
+ */
+ @java.lang.Override
+ public boolean hasConditionMatchedLog() {
+ return conditionCase_ == 20;
}
- if (!getDisplayNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_);
+ /**
+ *
+ *
+ *
+ * A condition that checks for log messages matching given constraints. If
+ * set, no other conditions can be present.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
+ *
+ *
+ * @return The conditionMatchedLog.
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getConditionMatchedLog() {
+ if (conditionMatchedLogBuilder_ == null) {
+ if (conditionCase_ == 20) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance();
+ } else {
+ if (conditionCase_ == 20) {
+ return conditionMatchedLogBuilder_.getMessage();
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance();
+ }
}
- if (!getNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, name_);
+ /**
+ *
+ *
+ *
+ * A condition that checks for log messages matching given constraints. If
+ * set, no other conditions can be present.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
+ *
+ */
+ public Builder setConditionMatchedLog(
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatch value) {
+ if (conditionMatchedLogBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ condition_ = value;
+ onChanged();
+ } else {
+ conditionMatchedLogBuilder_.setMessage(value);
+ }
+ conditionCase_ = 20;
+ return this;
}
- if (conditionCase_ == 19) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 19,
- (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
- condition_);
+ /**
+ *
+ *
+ *
+ * A condition that checks for log messages matching given constraints. If
+ * set, no other conditions can be present.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
+ *
+ */
+ public Builder setConditionMatchedLog(
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder builderForValue) {
+ if (conditionMatchedLogBuilder_ == null) {
+ condition_ = builderForValue.build();
+ onChanged();
+ } else {
+ conditionMatchedLogBuilder_.setMessage(builderForValue.build());
+ }
+ conditionCase_ = 20;
+ return this;
}
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
+ /**
+ *
+ *
+ *
+ * A condition that checks for log messages matching given constraints. If
+ * set, no other conditions can be present.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
+ *
+ */
+ public Builder mergeConditionMatchedLog(
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatch value) {
+ if (conditionMatchedLogBuilder_ == null) {
+ if (conditionCase_ == 20
+ && condition_
+ != com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance()) {
+ condition_ =
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.newBuilder(
+ (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ condition_ = value;
+ }
+ onChanged();
+ } else {
+ if (conditionCase_ == 20) {
+ conditionMatchedLogBuilder_.mergeFrom(value);
+ }
+ conditionMatchedLogBuilder_.setMessage(value);
+ }
+ conditionCase_ = 20;
+ return this;
}
- if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition)) {
- return super.equals(obj);
+ /**
+ *
+ *
+ *
+ * A condition that checks for log messages matching given constraints. If
+ * set, no other conditions can be present.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
+ *
+ */
+ public Builder clearConditionMatchedLog() {
+ if (conditionMatchedLogBuilder_ == null) {
+ if (conditionCase_ == 20) {
+ conditionCase_ = 0;
+ condition_ = null;
+ onChanged();
+ }
+ } else {
+ if (conditionCase_ == 20) {
+ conditionCase_ = 0;
+ condition_ = null;
+ }
+ conditionMatchedLogBuilder_.clear();
+ }
+ return this;
}
- com.google.monitoring.v3.AlertPolicy.Condition other =
- (com.google.monitoring.v3.AlertPolicy.Condition) obj;
-
- if (!getName().equals(other.getName())) return false;
- if (!getDisplayName().equals(other.getDisplayName())) return false;
- if (!getConditionCase().equals(other.getConditionCase())) return false;
- switch (conditionCase_) {
- case 1:
- if (!getConditionThreshold().equals(other.getConditionThreshold())) return false;
- break;
- case 2:
- if (!getConditionAbsent().equals(other.getConditionAbsent())) return false;
- break;
- case 19:
- if (!getConditionMonitoringQueryLanguage()
- .equals(other.getConditionMonitoringQueryLanguage())) return false;
- break;
- case 0:
- default:
+ /**
+ *
+ *
+ *
+ * A condition that checks for log messages matching given constraints. If
+ * set, no other conditions can be present.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
+ *
+ */
+ public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder
+ getConditionMatchedLogBuilder() {
+ return getConditionMatchedLogFieldBuilder().getBuilder();
}
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
+ /**
+ *
+ *
+ *
+ * A condition that checks for log messages matching given constraints. If
+ * set, no other conditions can be present.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
+ *
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder
+ getConditionMatchedLogOrBuilder() {
+ if ((conditionCase_ == 20) && (conditionMatchedLogBuilder_ != null)) {
+ return conditionMatchedLogBuilder_.getMessageOrBuilder();
+ } else {
+ if (conditionCase_ == 20) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance();
+ }
}
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + NAME_FIELD_NUMBER;
- hash = (53 * hash) + getName().hashCode();
- hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
- hash = (53 * hash) + getDisplayName().hashCode();
- switch (conditionCase_) {
- case 1:
- hash = (37 * hash) + CONDITION_THRESHOLD_FIELD_NUMBER;
- hash = (53 * hash) + getConditionThreshold().hashCode();
- break;
- case 2:
- hash = (37 * hash) + CONDITION_ABSENT_FIELD_NUMBER;
- hash = (53 * hash) + getConditionAbsent().hashCode();
- break;
- case 19:
- hash = (37 * hash) + CONDITION_MONITORING_QUERY_LANGUAGE_FIELD_NUMBER;
- hash = (53 * hash) + getConditionMonitoringQueryLanguage().hashCode();
- break;
- case 0:
- default:
+ /**
+ *
+ *
+ *
+ * A condition that checks for log messages matching given constraints. If
+ * set, no other conditions can be present.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatch,
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder,
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder>
+ getConditionMatchedLogFieldBuilder() {
+ if (conditionMatchedLogBuilder_ == null) {
+ if (!(conditionCase_ == 20)) {
+ condition_ =
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance();
+ }
+ conditionMatchedLogBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatch,
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder,
+ com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder>(
+ (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_,
+ getParentForChildren(),
+ isClean());
+ condition_ = null;
+ }
+ conditionCase_ = 20;
+ onChanged();
+ ;
+ return conditionMatchedLogBuilder_;
}
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom(java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.monitoring.v3.AlertPolicy.Condition 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.v3.AlertPolicy.Condition parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.monitoring.v3.AlertPolicy.Condition 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.v3.AlertPolicy.Condition parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.monitoring.v3.AlertPolicy.Condition 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.v3.AlertPolicy.Condition parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.monitoring.v3.AlertPolicy.Condition 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.v3.AlertPolicy.Condition parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.monitoring.v3.AlertPolicy.Condition 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.v3.AlertPolicy.Condition 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 condition is a true/false test that determines when an alerting policy
- * should open an incident. If a condition evaluates to true, it signifies
- * that something is wrong.
- *
- *
- * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition}
- */
- public static final class Builder
- extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A condition that uses the Monitoring Query Language to define
+ * alerts.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ *
+ *
+ * @return Whether the conditionMonitoringQueryLanguage field is set.
+ */
+ @java.lang.Override
+ public boolean hasConditionMonitoringQueryLanguage() {
+ return conditionCase_ == 19;
}
-
+ /**
+ *
+ *
+ *
+ * A condition that uses the Monitoring Query Language to define
+ * alerts.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ *
+ *
+ * @return The conditionMonitoringQueryLanguage.
+ */
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.monitoring.v3.AlertProto
- .internal_static_google_monitoring_v3_AlertPolicy_Condition_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.monitoring.v3.AlertPolicy.Condition.class,
- com.google.monitoring.v3.AlertPolicy.Condition.Builder.class);
+ public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ getConditionMonitoringQueryLanguage() {
+ if (conditionMonitoringQueryLanguageBuilder_ == null) {
+ if (conditionCase_ == 19) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
+ condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ .getDefaultInstance();
+ } else {
+ if (conditionCase_ == 19) {
+ return conditionMonitoringQueryLanguageBuilder_.getMessage();
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ .getDefaultInstance();
+ }
}
-
- // Construct using com.google.monitoring.v3.AlertPolicy.Condition.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
+ /**
+ *
+ *
+ *
+ * A condition that uses the Monitoring Query Language to define
+ * alerts.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ *
+ */
+ public Builder setConditionMonitoringQueryLanguage(
+ com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition value) {
+ if (conditionMonitoringQueryLanguageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ condition_ = value;
+ onChanged();
+ } else {
+ conditionMonitoringQueryLanguageBuilder_.setMessage(value);
+ }
+ conditionCase_ = 19;
+ return this;
}
-
- private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
+ /**
+ *
+ *
+ *
+ * A condition that uses the Monitoring Query Language to define
+ * alerts.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ *
+ */
+ public Builder setConditionMonitoringQueryLanguage(
+ com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
+ builderForValue) {
+ if (conditionMonitoringQueryLanguageBuilder_ == null) {
+ condition_ = builderForValue.build();
+ onChanged();
+ } else {
+ conditionMonitoringQueryLanguageBuilder_.setMessage(builderForValue.build());
+ }
+ conditionCase_ = 19;
+ return this;
}
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ /**
+ *
+ *
+ *
+ * A condition that uses the Monitoring Query Language to define
+ * alerts.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ *
+ */
+ public Builder mergeConditionMonitoringQueryLanguage(
+ com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition value) {
+ if (conditionMonitoringQueryLanguageBuilder_ == null) {
+ if (conditionCase_ == 19
+ && condition_
+ != com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ .getDefaultInstance()) {
+ condition_ =
+ com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ .newBuilder(
+ (com.google.monitoring.v3.AlertPolicy.Condition
+ .MonitoringQueryLanguageCondition)
+ condition_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ condition_ = value;
+ }
+ onChanged();
+ } else {
+ if (conditionCase_ == 19) {
+ conditionMonitoringQueryLanguageBuilder_.mergeFrom(value);
+ }
+ conditionMonitoringQueryLanguageBuilder_.setMessage(value);
+ }
+ conditionCase_ = 19;
+ return this;
}
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- name_ = "";
-
- displayName_ = "";
-
- conditionCase_ = 0;
- condition_ = null;
+ /**
+ *
+ *
+ *
+ * A condition that uses the Monitoring Query Language to define
+ * alerts.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ *
+ */
+ public Builder clearConditionMonitoringQueryLanguage() {
+ if (conditionMonitoringQueryLanguageBuilder_ == null) {
+ if (conditionCase_ == 19) {
+ conditionCase_ = 0;
+ condition_ = null;
+ onChanged();
+ }
+ } else {
+ if (conditionCase_ == 19) {
+ conditionCase_ = 0;
+ condition_ = null;
+ }
+ conditionMonitoringQueryLanguageBuilder_.clear();
+ }
return this;
}
-
+ /**
+ *
+ *
+ *
+ * A condition that uses the Monitoring Query Language to define
+ * alerts.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ *
+ */
+ public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
+ getConditionMonitoringQueryLanguageBuilder() {
+ return getConditionMonitoringQueryLanguageFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * A condition that uses the Monitoring Query Language to define
+ * alerts.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ *
+ */
@java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.monitoring.v3.AlertProto
- .internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor;
+ public com.google.monitoring.v3.AlertPolicy.Condition
+ .MonitoringQueryLanguageConditionOrBuilder
+ getConditionMonitoringQueryLanguageOrBuilder() {
+ if ((conditionCase_ == 19) && (conditionMonitoringQueryLanguageBuilder_ != null)) {
+ return conditionMonitoringQueryLanguageBuilder_.getMessageOrBuilder();
+ } else {
+ if (conditionCase_ == 19) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
+ condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A condition that uses the Monitoring Query Language to define
+ * alerts.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition,
+ com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ .Builder,
+ com.google.monitoring.v3.AlertPolicy.Condition
+ .MonitoringQueryLanguageConditionOrBuilder>
+ getConditionMonitoringQueryLanguageFieldBuilder() {
+ if (conditionMonitoringQueryLanguageBuilder_ == null) {
+ if (!(conditionCase_ == 19)) {
+ condition_ =
+ com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ .getDefaultInstance();
+ }
+ conditionMonitoringQueryLanguageBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition,
+ com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
+ .Builder,
+ com.google.monitoring.v3.AlertPolicy.Condition
+ .MonitoringQueryLanguageConditionOrBuilder>(
+ (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
+ condition_,
+ getParentForChildren(),
+ isClean());
+ condition_ = null;
+ }
+ conditionCase_ = 19;
+ onChanged();
+ ;
+ return conditionMonitoringQueryLanguageBuilder_;
}
@java.lang.Override
- public com.google.monitoring.v3.AlertPolicy.Condition getDefaultInstanceForType() {
- return com.google.monitoring.v3.AlertPolicy.Condition.getDefaultInstance();
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
}
@java.lang.Override
- public com.google.monitoring.v3.AlertPolicy.Condition build() {
- com.google.monitoring.v3.AlertPolicy.Condition result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
}
- @java.lang.Override
- public com.google.monitoring.v3.AlertPolicy.Condition buildPartial() {
- com.google.monitoring.v3.AlertPolicy.Condition result =
- new com.google.monitoring.v3.AlertPolicy.Condition(this);
- result.name_ = name_;
- result.displayName_ = displayName_;
- if (conditionCase_ == 1) {
- if (conditionThresholdBuilder_ == null) {
- result.condition_ = condition_;
- } else {
- result.condition_ = conditionThresholdBuilder_.build();
- }
- }
- if (conditionCase_ == 2) {
- if (conditionAbsentBuilder_ == null) {
- result.condition_ = condition_;
- } else {
- result.condition_ = conditionAbsentBuilder_.build();
- }
- }
- if (conditionCase_ == 19) {
- if (conditionMonitoringQueryLanguageBuilder_ == null) {
- result.condition_ = condition_;
- } else {
- result.condition_ = conditionMonitoringQueryLanguageBuilder_.build();
+ // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition)
+ private static final com.google.monitoring.v3.AlertPolicy.Condition DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition();
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Required for alert policies with a `LogMatch` condition.
+ * This limit is not implemented for alert policies that are not log-based.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
+ *
+ *
+ * @return Whether the notificationRateLimit field is set.
+ */
+ boolean hasNotificationRateLimit();
+ /**
+ *
+ *
+ *
+ * Required for alert policies with a `LogMatch` condition.
+ * This limit is not implemented for alert policies that are not log-based.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
+ *
+ *
+ * @return The notificationRateLimit.
+ */
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ getNotificationRateLimit();
+ /**
+ *
+ *
+ *
+ * Required for alert policies with a `LogMatch` condition.
+ * This limit is not implemented for alert policies that are not log-based.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
+ *
+ */
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder
+ getNotificationRateLimitOrBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Control over how the notification channels in `notification_channels`
+ * are notified when this alert fires.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy}
+ */
+ public static final class AlertStrategy extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.AlertStrategy)
+ AlertStrategyOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AlertStrategy.newBuilder() to construct.
+ private AlertStrategy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
+ private AlertStrategy() {}
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition) {
- return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new AlertStrategy();
+ }
- public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition other) {
- if (other == com.google.monitoring.v3.AlertPolicy.Condition.getDefaultInstance())
- return this;
- if (!other.getName().isEmpty()) {
- name_ = other.name_;
- onChanged();
- }
- if (!other.getDisplayName().isEmpty()) {
- displayName_ = other.displayName_;
- onChanged();
- }
- switch (other.getConditionCase()) {
- case CONDITION_THRESHOLD:
- {
- mergeConditionThreshold(other.getConditionThreshold());
- break;
- }
- case CONDITION_ABSENT:
- {
- mergeConditionAbsent(other.getConditionAbsent());
- break;
- }
- case CONDITION_MONITORING_QUERY_LANGUAGE:
- {
- mergeConditionMonitoringQueryLanguage(other.getConditionMonitoringQueryLanguage());
- break;
- }
- case CONDITION_NOT_SET:
- {
- break;
- }
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
+ private AlertStrategy(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
}
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder
+ subBuilder = null;
+ if (notificationRateLimit_ != null) {
+ subBuilder = notificationRateLimit_.toBuilder();
+ }
+ notificationRateLimit_ =
+ input.readMessage(
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ .parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(notificationRateLimit_);
+ notificationRateLimit_ = subBuilder.buildPartial();
+ }
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.monitoring.v3.AlertPolicy.Condition parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.google.monitoring.v3.AlertPolicy.Condition) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
- return this;
+ } 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();
}
+ }
- private int conditionCase_ = 0;
- private java.lang.Object condition_;
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.monitoring.v3.AlertProto
+ .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor;
+ }
- public ConditionCase getConditionCase() {
- return ConditionCase.forNumber(conditionCase_);
- }
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.monitoring.v3.AlertProto
+ .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.class,
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder.class);
+ }
- public Builder clearCondition() {
- conditionCase_ = 0;
- condition_ = null;
- onChanged();
- return this;
- }
+ public interface NotificationRateLimitOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit)
+ com.google.protobuf.MessageOrBuilder {
- private java.lang.Object name_ = "";
/**
*
*
*
- * Required if the condition exists. The unique resource name for this
- * condition. Its format is:
- * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
- * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
- * condition is created as part of a new or updated alerting policy.
- * When calling the
- * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
- * method, do not include the `name` field in the conditions of the
- * requested alerting policy. Stackdriver Monitoring creates the
- * condition identifiers and includes them in the new policy.
- * When calling the
- * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
- * method to update a policy, including a condition `name` causes the
- * existing condition to be updated. Conditions without names are added to
- * the updated policy. Existing conditions are deleted if they are not
- * updated.
- * Best practice is to preserve `[CONDITION_ID]` if you make only small
- * changes, such as those to condition thresholds, durations, or trigger
- * values. Otherwise, treat the change as a new condition and let the
- * existing condition be deleted.
+ * Not more than one notification per `period`.
*
*
- * string name = 12;
+ * .google.protobuf.Duration period = 1;
*
- * @return The name.
+ * @return Whether the period field is set.
*/
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- name_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
+ boolean hasPeriod();
/**
*
*
*
- * Required if the condition exists. The unique resource name for this
- * condition. Its format is:
- * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
- * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
- * condition is created as part of a new or updated alerting policy.
- * When calling the
- * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
- * method, do not include the `name` field in the conditions of the
- * requested alerting policy. Stackdriver Monitoring creates the
- * condition identifiers and includes them in the new policy.
- * When calling the
- * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
- * method to update a policy, including a condition `name` causes the
- * existing condition to be updated. Conditions without names are added to
- * the updated policy. Existing conditions are deleted if they are not
- * updated.
- * Best practice is to preserve `[CONDITION_ID]` if you make only small
- * changes, such as those to condition thresholds, durations, or trigger
- * values. Otherwise, treat the change as a new condition and let the
- * existing condition be deleted.
+ * Not more than one notification per `period`.
*
*
- * string name = 12;
+ * .google.protobuf.Duration period = 1;
*
- * @return The bytes for name.
+ * @return The period.
*/
- public com.google.protobuf.ByteString getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
+ com.google.protobuf.Duration getPeriod();
/**
*
*
*
- * Required if the condition exists. The unique resource name for this
- * condition. Its format is:
- * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
- * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
- * condition is created as part of a new or updated alerting policy.
- * When calling the
- * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
- * method, do not include the `name` field in the conditions of the
- * requested alerting policy. Stackdriver Monitoring creates the
- * condition identifiers and includes them in the new policy.
- * When calling the
- * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
- * method to update a policy, including a condition `name` causes the
- * existing condition to be updated. Conditions without names are added to
- * the updated policy. Existing conditions are deleted if they are not
- * updated.
- * Best practice is to preserve `[CONDITION_ID]` if you make only small
- * changes, such as those to condition thresholds, durations, or trigger
- * values. Otherwise, treat the change as a new condition and let the
- * existing condition be deleted.
+ * Not more than one notification per `period`.
*
*
- * string name = 12;
- *
- * @param value The name to set.
- * @return This builder for chaining.
+ * .google.protobuf.Duration period = 1;
*/
- public Builder setName(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ com.google.protobuf.DurationOrBuilder getPeriodOrBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Control over the rate of notifications sent to this alert policy's
+ * notification channels.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit}
+ */
+ public static final class NotificationRateLimit extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit)
+ NotificationRateLimitOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use NotificationRateLimit.newBuilder() to construct.
+ private NotificationRateLimit(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
- name_ = value;
- onChanged();
- return this;
+ private NotificationRateLimit() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new NotificationRateLimit();
}
- /**
- *
- *
- *
- * Required if the condition exists. The unique resource name for this
- * condition. Its format is:
- * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
- * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
- * condition is created as part of a new or updated alerting policy.
- * When calling the
- * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
- * method, do not include the `name` field in the conditions of the
- * requested alerting policy. Stackdriver Monitoring creates the
- * condition identifiers and includes them in the new policy.
- * When calling the
- * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
- * method to update a policy, including a condition `name` causes the
- * existing condition to be updated. Conditions without names are added to
- * the updated policy. Existing conditions are deleted if they are not
- * updated.
- * Best practice is to preserve `[CONDITION_ID]` if you make only small
- * changes, such as those to condition thresholds, durations, or trigger
- * values. Otherwise, treat the change as a new condition and let the
- * existing condition be deleted.
- *
- *
- * string name = 12;
- *
- * @return This builder for chaining.
- */
- public Builder clearName() {
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
}
- /**
- *
- *
- *
- * Required if the condition exists. The unique resource name for this
- * condition. Its format is:
- * projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
- * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
- * condition is created as part of a new or updated alerting policy.
- * When calling the
- * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
- * method, do not include the `name` field in the conditions of the
- * requested alerting policy. Stackdriver Monitoring creates the
- * condition identifiers and includes them in the new policy.
- * When calling the
- * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
- * method to update a policy, including a condition `name` causes the
- * existing condition to be updated. Conditions without names are added to
- * the updated policy. Existing conditions are deleted if they are not
- * updated.
- * Best practice is to preserve `[CONDITION_ID]` if you make only small
- * changes, such as those to condition thresholds, durations, or trigger
- * values. Otherwise, treat the change as a new condition and let the
- * existing condition be deleted.
- *
- *
- * string name = 12;
- *
- * @param value The bytes for name to set.
- * @return This builder for chaining.
- */
- public Builder setNameBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+
+ private NotificationRateLimit(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.protobuf.Duration.Builder subBuilder = null;
+ if (period_ != null) {
+ subBuilder = period_.toBuilder();
+ }
+ period_ =
+ input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(period_);
+ period_ = 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();
}
- checkByteStringIsUtf8(value);
+ }
- name_ = value;
- onChanged();
- return this;
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.monitoring.v3.AlertProto
+ .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor;
}
- private java.lang.Object displayName_ = "";
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.monitoring.v3.AlertProto
+ .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.class,
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder
+ .class);
+ }
+
+ public static final int PERIOD_FIELD_NUMBER = 1;
+ private com.google.protobuf.Duration period_;
/**
*
*
*
- * A short name or phrase used to identify the condition in dashboards,
- * notifications, and incidents. To avoid confusion, don't use the same
- * display name for multiple conditions in the same policy.
+ * Not more than one notification per `period`.
*
*
- * string display_name = 6;
+ * .google.protobuf.Duration period = 1;
*
- * @return The displayName.
+ * @return Whether the period field is set.
*/
- public java.lang.String getDisplayName() {
- java.lang.Object ref = displayName_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- displayName_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
+ @java.lang.Override
+ public boolean hasPeriod() {
+ return period_ != null;
}
/**
*
*
*
- * A short name or phrase used to identify the condition in dashboards,
- * notifications, and incidents. To avoid confusion, don't use the same
- * display name for multiple conditions in the same policy.
+ * Not more than one notification per `period`.
*
*
- * string display_name = 6;
+ * .google.protobuf.Duration period = 1;
*
- * @return The bytes for displayName.
+ * @return The period.
*/
- public com.google.protobuf.ByteString getDisplayNameBytes() {
- java.lang.Object ref = displayName_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- displayName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ @java.lang.Override
+ public com.google.protobuf.Duration getPeriod() {
+ return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_;
}
/**
*
*
*
- * A short name or phrase used to identify the condition in dashboards,
- * notifications, and incidents. To avoid confusion, don't use the same
- * display name for multiple conditions in the same policy.
+ * Not more than one notification per `period`.
*
*
- * string display_name = 6;
- *
- * @param value The displayName to set.
- * @return This builder for chaining.
+ * .google.protobuf.Duration period = 1;
*/
- public Builder setDisplayName(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
+ return getPeriod();
+ }
+
+ 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 (period_ != null) {
+ output.writeMessage(1, getPeriod());
}
+ unknownFields.writeTo(output);
+ }
- displayName_ = value;
- onChanged();
- return this;
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (period_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPeriod());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
}
- /**
- *
- *
- *
- * A short name or phrase used to identify the condition in dashboards,
- * notifications, and incidents. To avoid confusion, don't use the same
- * display name for multiple conditions in the same policy.
- *
- *
- * string display_name = 6;
- *
- * @return This builder for chaining.
- */
- public Builder clearDisplayName() {
- displayName_ = getDefaultInstance().getDisplayName();
- onChanged();
- return this;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit)) {
+ return super.equals(obj);
+ }
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit other =
+ (com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) obj;
+
+ if (hasPeriod() != other.hasPeriod()) return false;
+ if (hasPeriod()) {
+ if (!getPeriod().equals(other.getPeriod())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
- /**
- *
- *
- *
- * A short name or phrase used to identify the condition in dashboards,
- * notifications, and incidents. To avoid confusion, don't use the same
- * display name for multiple conditions in the same policy.
- *
- *
- * string display_name = 6;
- *
- * @param value The bytes for displayName to set.
- * @return This builder for chaining.
- */
- public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
}
- checkByteStringIsUtf8(value);
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasPeriod()) {
+ hash = (37 * hash) + PERIOD_FIELD_NUMBER;
+ hash = (53 * hash) + getPeriod().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
- displayName_ = value;
- onChanged();
- return this;
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ 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.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ 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.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ 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.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ 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.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
}
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold,
- com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder,
- com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder>
- conditionThresholdBuilder_;
- /**
- *
- *
- *
- * A condition that compares a time series against a threshold.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
- *
- *
- * @return Whether the conditionThreshold field is set.
- */
@java.lang.Override
- public boolean hasConditionThreshold() {
- return conditionCase_ == 1;
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit 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 condition that compares a time series against a threshold.
+ * Control over the rate of notifications sent to this alert policy's
+ * notification channels.
*
*
- * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
- *
- *
- * @return The conditionThreshold.
+ * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit}
*/
- @java.lang.Override
- public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold
- getConditionThreshold() {
- if (conditionThresholdBuilder_ == null) {
- if (conditionCase_ == 1) {
- return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_;
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
- * A condition that compares a time series against a threshold.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
- *
- */
- public Builder setConditionThreshold(
- com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold value) {
- if (conditionThresholdBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
+
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ buildPartial() {
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit result =
+ new com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit(this);
+ if (periodBuilder_ == null) {
+ result.period_ = period_;
+ } else {
+ result.period_ = periodBuilder_.build();
}
- condition_ = value;
- onChanged();
- } else {
- conditionThresholdBuilder_.setMessage(value);
+ onBuilt();
+ return result;
}
- conditionCase_ = 1;
- return this;
- }
- /**
- *
- *
- *
- * A condition that compares a time series against a threshold.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
- *
- */
- public Builder setConditionThreshold(
- com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder builderForValue) {
- if (conditionThresholdBuilder_ == null) {
- condition_ = builderForValue.build();
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) {
+ return mergeFrom(
+ (com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit other) {
+ if (other
+ == com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ .getDefaultInstance()) return this;
+ if (other.hasPeriod()) {
+ mergePeriod(other.getPeriod());
+ }
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
- } else {
- conditionThresholdBuilder_.setMessage(builderForValue.build());
+ return this;
}
- conditionCase_ = 1;
- return this;
- }
- /**
- *
- *
- *
- * A condition that compares a time series against a threshold.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
- *
- */
- public Builder mergeConditionThreshold(
- com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold value) {
- if (conditionThresholdBuilder_ == null) {
- if (conditionCase_ == 1
- && condition_
- != com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold
- .getDefaultInstance()) {
- condition_ =
- com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.newBuilder(
- (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_)
- .mergeFrom(value)
- .buildPartial();
+
+ @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.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parsedMessage =
+ null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit)
+ e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private com.google.protobuf.Duration period_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ periodBuilder_;
+ /**
+ *
+ *
+ *
+ * Not more than one notification per `period`.
+ *
+ *
+ * .google.protobuf.Duration period = 1;
+ *
+ * @return Whether the period field is set.
+ */
+ public boolean hasPeriod() {
+ return periodBuilder_ != null || period_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Not more than one notification per `period`.
+ *
+ *
+ * .google.protobuf.Duration period = 1;
+ *
+ * @return The period.
+ */
+ public com.google.protobuf.Duration getPeriod() {
+ if (periodBuilder_ == null) {
+ return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_;
+ } else {
+ return periodBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Not more than one notification per `period`.
+ *
+ *
+ * .google.protobuf.Duration period = 1;
+ */
+ public Builder setPeriod(com.google.protobuf.Duration value) {
+ if (periodBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ period_ = value;
+ onChanged();
+ } else {
+ periodBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Not more than one notification per `period`.
+ *
+ *
+ * .google.protobuf.Duration period = 1;
+ */
+ public Builder setPeriod(com.google.protobuf.Duration.Builder builderForValue) {
+ if (periodBuilder_ == null) {
+ period_ = builderForValue.build();
+ onChanged();
} else {
- condition_ = value;
+ periodBuilder_.setMessage(builderForValue.build());
}
- onChanged();
- } else {
- if (conditionCase_ == 1) {
- conditionThresholdBuilder_.mergeFrom(value);
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Not more than one notification per `period`.
+ *
+ *
+ * .google.protobuf.Duration period = 1;
+ */
+ public Builder mergePeriod(com.google.protobuf.Duration value) {
+ if (periodBuilder_ == null) {
+ if (period_ != null) {
+ period_ =
+ com.google.protobuf.Duration.newBuilder(period_).mergeFrom(value).buildPartial();
+ } else {
+ period_ = value;
+ }
+ onChanged();
+ } else {
+ periodBuilder_.mergeFrom(value);
}
- conditionThresholdBuilder_.setMessage(value);
+
+ return this;
}
- conditionCase_ = 1;
- return this;
- }
- /**
- *
- *
- *
- * A condition that compares a time series against a threshold.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
- *
- */
- public Builder clearConditionThreshold() {
- if (conditionThresholdBuilder_ == null) {
- if (conditionCase_ == 1) {
- conditionCase_ = 0;
- condition_ = null;
+ /**
+ *
+ *
+ *
+ * Not more than one notification per `period`.
+ *
+ *
+ * .google.protobuf.Duration period = 1;
+ */
+ public Builder clearPeriod() {
+ if (periodBuilder_ == null) {
+ period_ = null;
onChanged();
+ } else {
+ period_ = null;
+ periodBuilder_ = null;
}
- } else {
- if (conditionCase_ == 1) {
- conditionCase_ = 0;
- condition_ = null;
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Not more than one notification per `period`.
+ *
+ *
+ * .google.protobuf.Duration period = 1;
+ */
+ public com.google.protobuf.Duration.Builder getPeriodBuilder() {
+
+ onChanged();
+ return getPeriodFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Not more than one notification per `period`.
+ *
+ *
+ * .google.protobuf.Duration period = 1;
+ */
+ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
+ if (periodBuilder_ != null) {
+ return periodBuilder_.getMessageOrBuilder();
+ } else {
+ return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_;
}
- conditionThresholdBuilder_.clear();
}
- return this;
+ /**
+ *
+ *
+ *
+ * Not more than one notification per `period`.
+ *
+ *
+ * .google.protobuf.Duration period = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getPeriodFieldBuilder() {
+ if (periodBuilder_ == null) {
+ periodBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getPeriod(), getParentForChildren(), isClean());
+ period_ = null;
+ }
+ return periodBuilder_;
+ }
+
+ @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.v3.AlertPolicy.AlertStrategy.NotificationRateLimit)
}
- /**
- *
- *
- *
- * A condition that compares a time series against a threshold.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
- *
- */
- public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder
- getConditionThresholdBuilder() {
- return getConditionThresholdFieldBuilder().getBuilder();
+
+ // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit)
+ private static final com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit();
}
- /**
- *
- *
- *
- * A condition that compares a time series against a threshold.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
- *
- */
+
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
- * A condition that compares a time series against a threshold.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
- *
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold,
- com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder,
- com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder>
- getConditionThresholdFieldBuilder() {
- if (conditionThresholdBuilder_ == null) {
- if (!(conditionCase_ == 1)) {
- condition_ =
- com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance();
- }
- conditionThresholdBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold,
- com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder,
- com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder>(
- (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_,
- getParentForChildren(),
- isClean());
- condition_ = null;
- }
- conditionCase_ = 1;
- onChanged();
- ;
- return conditionThresholdBuilder_;
+
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public static final int NOTIFICATION_RATE_LIMIT_FIELD_NUMBER = 1;
+ private com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ notificationRateLimit_;
+ /**
+ *
+ *
+ *
+ * Required for alert policies with a `LogMatch` condition.
+ * This limit is not implemented for alert policies that are not log-based.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
+ *
+ *
+ * @return Whether the notificationRateLimit field is set.
+ */
+ @java.lang.Override
+ public boolean hasNotificationRateLimit() {
+ return notificationRateLimit_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Required for alert policies with a `LogMatch` condition.
+ * This limit is not implemented for alert policies that are not log-based.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
+ *
+ *
+ * @return The notificationRateLimit.
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ getNotificationRateLimit() {
+ return notificationRateLimit_ == null
+ ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ .getDefaultInstance()
+ : notificationRateLimit_;
+ }
+ /**
+ *
+ *
+ *
+ * Required for alert policies with a `LogMatch` condition.
+ * This limit is not implemented for alert policies that are not log-based.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder
+ getNotificationRateLimitOrBuilder() {
+ return getNotificationRateLimit();
+ }
+
+ 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 (notificationRateLimit_ != null) {
+ output.writeMessage(1, getNotificationRateLimit());
}
+ unknownFields.writeTo(output);
+ }
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence,
- com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder,
- com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder>
- conditionAbsentBuilder_;
- /**
- *
- *
- *
- * A condition that checks that a time series continues to
- * receive new data points.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
- *
- *
- * @return Whether the conditionAbsent field is set.
- */
- @java.lang.Override
- public boolean hasConditionAbsent() {
- return conditionCase_ == 2;
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (notificationRateLimit_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNotificationRateLimit());
}
- /**
- *
- *
- *
- * A condition that checks that a time series continues to
- * receive new data points.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
- *
- *
- * @return The conditionAbsent.
- */
- @java.lang.Override
- public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getConditionAbsent() {
- if (conditionAbsentBuilder_ == null) {
- if (conditionCase_ == 2) {
- return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_;
- }
- return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance();
- } else {
- if (conditionCase_ == 2) {
- return conditionAbsentBuilder_.getMessage();
- }
- return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance();
- }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
}
- /**
- *
- *
- *
- * A condition that checks that a time series continues to
- * receive new data points.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
- *
- */
- public Builder setConditionAbsent(
- com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence value) {
- if (conditionAbsentBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- condition_ = value;
- onChanged();
- } else {
- conditionAbsentBuilder_.setMessage(value);
- }
- conditionCase_ = 2;
- return this;
+ if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy)) {
+ return super.equals(obj);
}
- /**
- *
- *
- *
- * A condition that checks that a time series continues to
- * receive new data points.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
- *
- */
- public Builder setConditionAbsent(
- com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder builderForValue) {
- if (conditionAbsentBuilder_ == null) {
- condition_ = builderForValue.build();
- onChanged();
- } else {
- conditionAbsentBuilder_.setMessage(builderForValue.build());
- }
- conditionCase_ = 2;
- return this;
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy other =
+ (com.google.monitoring.v3.AlertPolicy.AlertStrategy) obj;
+
+ if (hasNotificationRateLimit() != other.hasNotificationRateLimit()) return false;
+ if (hasNotificationRateLimit()) {
+ if (!getNotificationRateLimit().equals(other.getNotificationRateLimit())) return false;
}
- /**
- *
- *
- *
- * A condition that checks that a time series continues to
- * receive new data points.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
- *
- */
- public Builder mergeConditionAbsent(
- com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence value) {
- if (conditionAbsentBuilder_ == null) {
- if (conditionCase_ == 2
- && condition_
- != com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence
- .getDefaultInstance()) {
- condition_ =
- com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.newBuilder(
- (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- condition_ = value;
- }
- onChanged();
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasNotificationRateLimit()) {
+ hash = (37 * hash) + NOTIFICATION_RATE_LIMIT_FIELD_NUMBER;
+ hash = (53 * hash) + getNotificationRateLimit().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy 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.v3.AlertPolicy.AlertStrategy parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy 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.v3.AlertPolicy.AlertStrategy parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy 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.v3.AlertPolicy.AlertStrategy parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy 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.v3.AlertPolicy.AlertStrategy parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy 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.v3.AlertPolicy.AlertStrategy 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;
+ }
+ /**
+ *
+ *
+ *
+ * Control over how the notification channels in `notification_channels`
+ * are notified when this alert fires.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
- * A condition that checks that a time series continues to
- * receive new data points.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
- *
- */
- public Builder clearConditionAbsent() {
- if (conditionAbsentBuilder_ == null) {
- if (conditionCase_ == 2) {
- conditionCase_ = 0;
- condition_ = null;
- onChanged();
- }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.monitoring.v3.AlertProto
+ .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.AlertStrategy getDefaultInstanceForType() {
+ return com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.AlertStrategy build() {
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.AlertStrategy buildPartial() {
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy result =
+ new com.google.monitoring.v3.AlertPolicy.AlertStrategy(this);
+ if (notificationRateLimitBuilder_ == null) {
+ result.notificationRateLimit_ = notificationRateLimit_;
} else {
- if (conditionCase_ == 2) {
- conditionCase_ = 0;
- condition_ = null;
- }
- conditionAbsentBuilder_.clear();
+ result.notificationRateLimit_ = notificationRateLimitBuilder_.build();
}
- return this;
+ onBuilt();
+ return result;
}
- /**
- *
- *
- *
- * A condition that checks that a time series continues to
- * receive new data points.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
- *
- */
- public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder
- getConditionAbsentBuilder() {
- return getConditionAbsentFieldBuilder().getBuilder();
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
}
- /**
- *
- *
- *
- * A condition that checks that a time series continues to
- * receive new data points.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
- *
- */
+
@java.lang.Override
- public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder
- getConditionAbsentOrBuilder() {
- if ((conditionCase_ == 2) && (conditionAbsentBuilder_ != null)) {
- return conditionAbsentBuilder_.getMessageOrBuilder();
+ 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.v3.AlertPolicy.AlertStrategy) {
+ return mergeFrom((com.google.monitoring.v3.AlertPolicy.AlertStrategy) other);
} else {
- if (conditionCase_ == 2) {
- return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_;
- }
- return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance();
+ super.mergeFrom(other);
+ return this;
}
}
- /**
- *
- *
- *
- * A condition that checks that a time series continues to
- * receive new data points.
- *
- *
- * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
- *
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence,
- com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder,
- com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder>
- getConditionAbsentFieldBuilder() {
- if (conditionAbsentBuilder_ == null) {
- if (!(conditionCase_ == 2)) {
- condition_ =
- com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance();
- }
- conditionAbsentBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence,
- com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder,
- com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder>(
- (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_,
- getParentForChildren(),
- isClean());
- condition_ = null;
+
+ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.AlertStrategy other) {
+ if (other == com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance())
+ return this;
+ if (other.hasNotificationRateLimit()) {
+ mergeNotificationRateLimit(other.getNotificationRateLimit());
}
- conditionCase_ = 2;
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
- ;
- return conditionAbsentBuilder_;
+ 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.v3.AlertPolicy.AlertStrategy parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.monitoring.v3.AlertPolicy.AlertStrategy) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
}
+ private com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ notificationRateLimit_;
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition,
- com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
- .Builder,
- com.google.monitoring.v3.AlertPolicy.Condition
- .MonitoringQueryLanguageConditionOrBuilder>
- conditionMonitoringQueryLanguageBuilder_;
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit,
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder,
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder>
+ notificationRateLimitBuilder_;
/**
*
*
*
- * A condition that uses the Monitoring Query Language to define
- * alerts.
+ * Required for alert policies with a `LogMatch` condition.
+ * This limit is not implemented for alert policies that are not log-based.
*
*
*
- * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
*
*
- * @return Whether the conditionMonitoringQueryLanguage field is set.
+ * @return Whether the notificationRateLimit field is set.
*/
- @java.lang.Override
- public boolean hasConditionMonitoringQueryLanguage() {
- return conditionCase_ == 19;
+ public boolean hasNotificationRateLimit() {
+ return notificationRateLimitBuilder_ != null || notificationRateLimit_ != null;
}
/**
*
*
*
- * A condition that uses the Monitoring Query Language to define
- * alerts.
+ * Required for alert policies with a `LogMatch` condition.
+ * This limit is not implemented for alert policies that are not log-based.
*
*
*
- * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
*
*
- * @return The conditionMonitoringQueryLanguage.
+ * @return The notificationRateLimit.
*/
- @java.lang.Override
- public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
- getConditionMonitoringQueryLanguage() {
- if (conditionMonitoringQueryLanguageBuilder_ == null) {
- if (conditionCase_ == 19) {
- return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
- condition_;
- }
- return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
- .getDefaultInstance();
+ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ getNotificationRateLimit() {
+ if (notificationRateLimitBuilder_ == null) {
+ return notificationRateLimit_ == null
+ ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ .getDefaultInstance()
+ : notificationRateLimit_;
} else {
- if (conditionCase_ == 19) {
- return conditionMonitoringQueryLanguageBuilder_.getMessage();
- }
- return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
- .getDefaultInstance();
+ return notificationRateLimitBuilder_.getMessage();
}
}
/**
*
*
*
- * A condition that uses the Monitoring Query Language to define
- * alerts.
+ * Required for alert policies with a `LogMatch` condition.
+ * This limit is not implemented for alert policies that are not log-based.
*
*
*
- * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
*
*/
- public Builder setConditionMonitoringQueryLanguage(
- com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition value) {
- if (conditionMonitoringQueryLanguageBuilder_ == null) {
+ public Builder setNotificationRateLimit(
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit value) {
+ if (notificationRateLimitBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- condition_ = value;
+ notificationRateLimit_ = value;
onChanged();
} else {
- conditionMonitoringQueryLanguageBuilder_.setMessage(value);
+ notificationRateLimitBuilder_.setMessage(value);
}
- conditionCase_ = 19;
+
return this;
}
/**
*
*
*
- * A condition that uses the Monitoring Query Language to define
- * alerts.
+ * Required for alert policies with a `LogMatch` condition.
+ * This limit is not implemented for alert policies that are not log-based.
*
*
*
- * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
*
*/
- public Builder setConditionMonitoringQueryLanguage(
- com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
+ public Builder setNotificationRateLimit(
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder
builderForValue) {
- if (conditionMonitoringQueryLanguageBuilder_ == null) {
- condition_ = builderForValue.build();
+ if (notificationRateLimitBuilder_ == null) {
+ notificationRateLimit_ = builderForValue.build();
onChanged();
} else {
- conditionMonitoringQueryLanguageBuilder_.setMessage(builderForValue.build());
+ notificationRateLimitBuilder_.setMessage(builderForValue.build());
}
- conditionCase_ = 19;
+
return this;
}
/**
*
*
*
- * A condition that uses the Monitoring Query Language to define
- * alerts.
+ * Required for alert policies with a `LogMatch` condition.
+ * This limit is not implemented for alert policies that are not log-based.
*
*
*
- * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
*
*/
- public Builder mergeConditionMonitoringQueryLanguage(
- com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition value) {
- if (conditionMonitoringQueryLanguageBuilder_ == null) {
- if (conditionCase_ == 19
- && condition_
- != com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
- .getDefaultInstance()) {
- condition_ =
- com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
- .newBuilder(
- (com.google.monitoring.v3.AlertPolicy.Condition
- .MonitoringQueryLanguageCondition)
- condition_)
+ public Builder mergeNotificationRateLimit(
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit value) {
+ if (notificationRateLimitBuilder_ == null) {
+ if (notificationRateLimit_ != null) {
+ notificationRateLimit_ =
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.newBuilder(
+ notificationRateLimit_)
.mergeFrom(value)
.buildPartial();
} else {
- condition_ = value;
+ notificationRateLimit_ = value;
}
onChanged();
} else {
- if (conditionCase_ == 19) {
- conditionMonitoringQueryLanguageBuilder_.mergeFrom(value);
- }
- conditionMonitoringQueryLanguageBuilder_.setMessage(value);
+ notificationRateLimitBuilder_.mergeFrom(value);
}
- conditionCase_ = 19;
+
return this;
}
/**
*
*
*
- * A condition that uses the Monitoring Query Language to define
- * alerts.
+ * Required for alert policies with a `LogMatch` condition.
+ * This limit is not implemented for alert policies that are not log-based.
*
*
*
- * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
*
*/
- public Builder clearConditionMonitoringQueryLanguage() {
- if (conditionMonitoringQueryLanguageBuilder_ == null) {
- if (conditionCase_ == 19) {
- conditionCase_ = 0;
- condition_ = null;
- onChanged();
- }
+ public Builder clearNotificationRateLimit() {
+ if (notificationRateLimitBuilder_ == null) {
+ notificationRateLimit_ = null;
+ onChanged();
} else {
- if (conditionCase_ == 19) {
- conditionCase_ = 0;
- condition_ = null;
- }
- conditionMonitoringQueryLanguageBuilder_.clear();
+ notificationRateLimit_ = null;
+ notificationRateLimitBuilder_ = null;
}
+
return this;
}
/**
*
*
*
- * A condition that uses the Monitoring Query Language to define
- * alerts.
+ * Required for alert policies with a `LogMatch` condition.
+ * This limit is not implemented for alert policies that are not log-based.
*
*
*
- * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
*
*/
- public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
- getConditionMonitoringQueryLanguageBuilder() {
- return getConditionMonitoringQueryLanguageFieldBuilder().getBuilder();
+ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder
+ getNotificationRateLimitBuilder() {
+
+ onChanged();
+ return getNotificationRateLimitFieldBuilder().getBuilder();
}
/**
*
*
*
- * A condition that uses the Monitoring Query Language to define
- * alerts.
+ * Required for alert policies with a `LogMatch` condition.
+ * This limit is not implemented for alert policies that are not log-based.
*
*
*
- * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
*
*/
- @java.lang.Override
- public com.google.monitoring.v3.AlertPolicy.Condition
- .MonitoringQueryLanguageConditionOrBuilder
- getConditionMonitoringQueryLanguageOrBuilder() {
- if ((conditionCase_ == 19) && (conditionMonitoringQueryLanguageBuilder_ != null)) {
- return conditionMonitoringQueryLanguageBuilder_.getMessageOrBuilder();
+ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder
+ getNotificationRateLimitOrBuilder() {
+ if (notificationRateLimitBuilder_ != null) {
+ return notificationRateLimitBuilder_.getMessageOrBuilder();
} else {
- if (conditionCase_ == 19) {
- return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
- condition_;
- }
- return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
- .getDefaultInstance();
+ return notificationRateLimit_ == null
+ ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+ .getDefaultInstance()
+ : notificationRateLimit_;
}
}
/**
*
*
*
- * A condition that uses the Monitoring Query Language to define
- * alerts.
+ * Required for alert policies with a `LogMatch` condition.
+ * This limit is not implemented for alert policies that are not log-based.
*
*
*
- * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition,
- com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
- .Builder,
- com.google.monitoring.v3.AlertPolicy.Condition
- .MonitoringQueryLanguageConditionOrBuilder>
- getConditionMonitoringQueryLanguageFieldBuilder() {
- if (conditionMonitoringQueryLanguageBuilder_ == null) {
- if (!(conditionCase_ == 19)) {
- condition_ =
- com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
- .getDefaultInstance();
- }
- conditionMonitoringQueryLanguageBuilder_ =
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit,
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder,
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder>
+ getNotificationRateLimitFieldBuilder() {
+ if (notificationRateLimitBuilder_ == null) {
+ notificationRateLimitBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition,
- com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
- .Builder,
- com.google.monitoring.v3.AlertPolicy.Condition
- .MonitoringQueryLanguageConditionOrBuilder>(
- (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
- condition_,
- getParentForChildren(),
- isClean());
- condition_ = null;
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit,
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder,
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy
+ .NotificationRateLimitOrBuilder>(
+ getNotificationRateLimit(), getParentForChildren(), isClean());
+ notificationRateLimit_ = null;
}
- conditionCase_ = 19;
- onChanged();
- ;
- return conditionMonitoringQueryLanguageBuilder_;
+ return notificationRateLimitBuilder_;
}
@java.lang.Override
@@ -12089,42 +15313,42 @@ public final Builder mergeUnknownFields(
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition)
+ // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.AlertStrategy)
}
- // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition)
- private static final com.google.monitoring.v3.AlertPolicy.Condition DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.AlertStrategy)
+ private static final com.google.monitoring.v3.AlertPolicy.AlertStrategy DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition();
+ DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.AlertStrategy();
}
- public static com.google.monitoring.v3.AlertPolicy.Condition getDefaultInstance() {
+ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
+ * Control over how this alert policy's notification channels are notified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21;
+ *
+ * @return Whether the alertStrategy field is set.
+ */
+ @java.lang.Override
+ public boolean hasAlertStrategy() {
+ return alertStrategy_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Control over how this alert policy's notification channels are notified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21;
+ *
+ * @return The alertStrategy.
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.AlertStrategy getAlertStrategy() {
+ return alertStrategy_ == null
+ ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance()
+ : alertStrategy_;
+ }
+ /**
+ *
+ *
+ *
+ * Control over how this alert policy's notification channels are notified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21;
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder getAlertStrategyOrBuilder() {
+ return getAlertStrategy();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -12880,10 +16152,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
- if (!getDisplayNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
}
if (combiner_
@@ -12915,6 +16187,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (validity_ != null) {
output.writeMessage(18, getValidity());
}
+ if (alertStrategy_ != null) {
+ output.writeMessage(21, getAlertStrategy());
+ }
unknownFields.writeTo(output);
}
@@ -12924,10 +16199,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
- if (!getDisplayNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
}
if (combiner_
@@ -12971,6 +16246,9 @@ public int getSerializedSize() {
if (validity_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getValidity());
}
+ if (alertStrategy_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getAlertStrategy());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -13012,6 +16290,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasMutationRecord()) {
if (!getMutationRecord().equals(other.getMutationRecord())) return false;
}
+ if (hasAlertStrategy() != other.hasAlertStrategy()) return false;
+ if (hasAlertStrategy()) {
+ if (!getAlertStrategy().equals(other.getAlertStrategy())) return false;
+ }
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -13061,6 +16343,10 @@ public int hashCode() {
hash = (37 * hash) + MUTATION_RECORD_FIELD_NUMBER;
hash = (53 * hash) + getMutationRecord().hashCode();
}
+ if (hasAlertStrategy()) {
+ hash = (37 * hash) + ALERT_STRATEGY_FIELD_NUMBER;
+ hash = (53 * hash) + getAlertStrategy().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -13275,6 +16561,12 @@ public Builder clear() {
mutationRecord_ = null;
mutationRecordBuilder_ = null;
}
+ if (alertStrategyBuilder_ == null) {
+ alertStrategy_ = null;
+ } else {
+ alertStrategy_ = null;
+ alertStrategyBuilder_ = null;
+ }
return this;
}
@@ -13346,6 +16638,11 @@ public com.google.monitoring.v3.AlertPolicy buildPartial() {
} else {
result.mutationRecord_ = mutationRecordBuilder_.build();
}
+ if (alertStrategyBuilder_ == null) {
+ result.alertStrategy_ = alertStrategy_;
+ } else {
+ result.alertStrategy_ = alertStrategyBuilder_.build();
+ }
onBuilt();
return result;
}
@@ -13459,6 +16756,9 @@ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy other) {
if (other.hasMutationRecord()) {
mergeMutationRecord(other.getMutationRecord());
}
+ if (other.hasAlertStrategy()) {
+ mergeAlertStrategy(other.getAlertStrategy());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -13499,7 +16799,7 @@ public Builder mergeFrom(
* format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
* `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
- * is created. When calling the
+ * is created. When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the alerting policy passed as
* part of the request.
@@ -13528,7 +16828,7 @@ public java.lang.String getName() {
* format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
* `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
- * is created. When calling the
+ * is created. When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the alerting policy passed as
* part of the request.
@@ -13557,7 +16857,7 @@ public com.google.protobuf.ByteString getNameBytes() {
* format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
* `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
- * is created. When calling the
+ * is created. When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the alerting policy passed as
* part of the request.
@@ -13585,7 +16885,7 @@ public Builder setName(java.lang.String value) {
* format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
* `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
- * is created. When calling the
+ * is created. When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the alerting policy passed as
* part of the request.
@@ -13609,7 +16909,7 @@ public Builder clearName() {
* format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
* `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
- * is created. When calling the
+ * is created. When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the alerting policy passed as
* part of the request.
@@ -15746,6 +19046,192 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordOrBuild
return mutationRecordBuilder_;
}
+ private com.google.monitoring.v3.AlertPolicy.AlertStrategy alertStrategy_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy,
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder,
+ com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder>
+ alertStrategyBuilder_;
+ /**
+ *
+ *
+ *
+ * Control over how this alert policy's notification channels are notified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21;
+ *
+ * @return Whether the alertStrategy field is set.
+ */
+ public boolean hasAlertStrategy() {
+ return alertStrategyBuilder_ != null || alertStrategy_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Control over how this alert policy's notification channels are notified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21;
+ *
+ * @return The alertStrategy.
+ */
+ public com.google.monitoring.v3.AlertPolicy.AlertStrategy getAlertStrategy() {
+ if (alertStrategyBuilder_ == null) {
+ return alertStrategy_ == null
+ ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance()
+ : alertStrategy_;
+ } else {
+ return alertStrategyBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Control over how this alert policy's notification channels are notified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21;
+ */
+ public Builder setAlertStrategy(com.google.monitoring.v3.AlertPolicy.AlertStrategy value) {
+ if (alertStrategyBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ alertStrategy_ = value;
+ onChanged();
+ } else {
+ alertStrategyBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Control over how this alert policy's notification channels are notified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21;
+ */
+ public Builder setAlertStrategy(
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder builderForValue) {
+ if (alertStrategyBuilder_ == null) {
+ alertStrategy_ = builderForValue.build();
+ onChanged();
+ } else {
+ alertStrategyBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Control over how this alert policy's notification channels are notified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21;
+ */
+ public Builder mergeAlertStrategy(com.google.monitoring.v3.AlertPolicy.AlertStrategy value) {
+ if (alertStrategyBuilder_ == null) {
+ if (alertStrategy_ != null) {
+ alertStrategy_ =
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.newBuilder(alertStrategy_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ alertStrategy_ = value;
+ }
+ onChanged();
+ } else {
+ alertStrategyBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Control over how this alert policy's notification channels are notified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21;
+ */
+ public Builder clearAlertStrategy() {
+ if (alertStrategyBuilder_ == null) {
+ alertStrategy_ = null;
+ onChanged();
+ } else {
+ alertStrategy_ = null;
+ alertStrategyBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Control over how this alert policy's notification channels are notified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21;
+ */
+ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder getAlertStrategyBuilder() {
+
+ onChanged();
+ return getAlertStrategyFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Control over how this alert policy's notification channels are notified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21;
+ */
+ public com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder getAlertStrategyOrBuilder() {
+ if (alertStrategyBuilder_ != null) {
+ return alertStrategyBuilder_.getMessageOrBuilder();
+ } else {
+ return alertStrategy_ == null
+ ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance()
+ : alertStrategy_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Control over how this alert policy's notification channels are notified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy,
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder,
+ com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder>
+ getAlertStrategyFieldBuilder() {
+ if (alertStrategyBuilder_ == null) {
+ alertStrategyBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy,
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder,
+ com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder>(
+ getAlertStrategy(), getParentForChildren(), isClean());
+ alertStrategy_ = null;
+ }
+ return alertStrategyBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java
index 13e4adac..ac3e7210 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java
@@ -31,7 +31,7 @@ public interface AlertPolicyOrBuilder
* format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
* `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
- * is created. When calling the
+ * is created. When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the alerting policy passed as
* part of the request.
@@ -50,7 +50,7 @@ public interface AlertPolicyOrBuilder
* format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
* `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
- * is created. When calling the
+ * is created. When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the alerting policy passed as
* part of the request.
@@ -570,4 +570,39 @@ public interface AlertPolicyOrBuilder
* .google.monitoring.v3.MutationRecord mutation_record = 11;
*/
com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Control over how this alert policy's notification channels are notified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21;
+ *
+ * @return Whether the alertStrategy field is set.
+ */
+ boolean hasAlertStrategy();
+ /**
+ *
+ *
+ *
+ * Control over how this alert policy's notification channels are notified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21;
+ *
+ * @return The alertStrategy.
+ */
+ com.google.monitoring.v3.AlertPolicy.AlertStrategy getAlertStrategy();
+ /**
+ *
+ *
+ *
+ * Control over how this alert policy's notification channels are notified.
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21;
+ */
+ com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder getAlertStrategyOrBuilder();
}
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java
index 0f115b49..9f2631a4 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java
@@ -51,10 +51,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -75,7 +91,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "monitoring/v3/mutation_record.proto\032\036goo"
+ "gle/protobuf/duration.proto\032\036google/prot"
+ "obuf/wrappers.proto\032\027google/rpc/status.p"
- + "roto\"\227\023\n\013AlertPolicy\022\014\n\004name\030\001 \001(\t\022\024\n\014di"
+ + "roto\"\264\027\n\013AlertPolicy\022\014\n\004name\030\001 \001(\t\022\024\n\014di"
+ "splay_name\030\002 \001(\t\022F\n\rdocumentation\030\r \001(\0132"
+ "/.google.monitoring.v3.AlertPolicy.Docum"
+ "entation\022F\n\013user_labels\030\020 \003(\01321.google.m"
@@ -89,14 +105,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "channels\030\016 \003(\t\022=\n\017creation_record\030\n \001(\0132"
+ "$.google.monitoring.v3.MutationRecord\022=\n"
+ "\017mutation_record\030\013 \001(\0132$.google.monitori"
- + "ng.v3.MutationRecord\0323\n\rDocumentation\022\017\n"
- + "\007content\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\032\300\013\n\tCo"
- + "ndition\022\014\n\004name\030\014 \001(\t\022\024\n\014display_name\030\006 "
- + "\001(\t\022Z\n\023condition_threshold\030\001 \001(\0132;.googl"
- + "e.monitoring.v3.AlertPolicy.Condition.Me"
- + "tricThresholdH\000\022U\n\020condition_absent\030\002 \001("
- + "\01329.google.monitoring.v3.AlertPolicy.Con"
- + "dition.MetricAbsenceH\000\022{\n#condition_moni"
+ + "ng.v3.MutationRecord\022G\n\016alert_strategy\030\025"
+ + " \001(\0132/.google.monitoring.v3.AlertPolicy."
+ + "AlertStrategy\0323\n\rDocumentation\022\017\n\007conten"
+ + "t\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\032\326\r\n\tCondition"
+ + "\022\014\n\004name\030\014 \001(\t\022\024\n\014display_name\030\006 \001(\t\022Z\n\023"
+ + "condition_threshold\030\001 \001(\0132;.google.monit"
+ + "oring.v3.AlertPolicy.Condition.MetricThr"
+ + "esholdH\000\022U\n\020condition_absent\030\002 \001(\01329.goo"
+ + "gle.monitoring.v3.AlertPolicy.Condition."
+ + "MetricAbsenceH\000\022U\n\025condition_matched_log"
+ + "\030\024 \001(\01324.google.monitoring.v3.AlertPolic"
+ + "y.Condition.LogMatchH\000\022{\n#condition_moni"
+ "toring_query_language\030\023 \001(\0132L.google.mon"
+ "itoring.v3.AlertPolicy.Condition.Monitor"
+ "ingQueryLanguageConditionH\000\0325\n\007Trigger\022\017"
@@ -116,32 +136,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "Aggregation\022+\n\010duration\030\002 \001(\0132\031.google.p"
+ "rotobuf.Duration\022D\n\007trigger\030\003 \001(\01323.goog"
+ "le.monitoring.v3.AlertPolicy.Condition.T"
- + "rigger\032\244\001\n MonitoringQueryLanguageCondit"
- + "ion\022\r\n\005query\030\001 \001(\t\022+\n\010duration\030\002 \001(\0132\031.g"
- + "oogle.protobuf.Duration\022D\n\007trigger\030\003 \001(\013"
- + "23.google.monitoring.v3.AlertPolicy.Cond"
- + "ition.Trigger:\227\002\352A\223\002\n.monitoring.googlea"
- + "pis.com/AlertPolicyCondition\022Fprojects/{"
- + "project}/alertPolicies/{alert_policy}/co"
- + "nditions/{condition}\022Porganizations/{org"
- + "anization}/alertPolicies/{alert_policy}/"
- + "conditions/{condition}\022Dfolders/{folder}"
- + "/alertPolicies/{alert_policy}/conditions"
- + "/{condition}\022\001*B\013\n\tcondition\0321\n\017UserLabe"
- + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\""
- + "a\n\025ConditionCombinerType\022\027\n\023COMBINE_UNSP"
- + "ECIFIED\020\000\022\007\n\003AND\020\001\022\006\n\002OR\020\002\022\036\n\032AND_WITH_M"
- + "ATCHING_RESOURCE\020\003:\311\001\352A\305\001\n%monitoring.go"
- + "ogleapis.com/AlertPolicy\022/projects/{proj"
- + "ect}/alertPolicies/{alert_policy}\0229organ"
- + "izations/{organization}/alertPolicies/{a"
- + "lert_policy}\022-folders/{folder}/alertPoli"
- + "cies/{alert_policy}\022\001*B\302\001\n\030com.google.mo"
- + "nitoring.v3B\nAlertProtoP\001Z>google.golang"
- + ".org/genproto/googleapis/monitoring/v3;m"
- + "onitoring\252\002\032Google.Cloud.Monitoring.V3\312\002"
- + "\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cl"
- + "oud::Monitoring::V3b\006proto3"
+ + "rigger\032\274\001\n\010LogMatch\022\023\n\006filter\030\001 \001(\tB\003\340A\002"
+ + "\022c\n\020label_extractors\030\002 \003(\0132I.google.moni"
+ + "toring.v3.AlertPolicy.Condition.LogMatch"
+ + ".LabelExtractorsEntry\0326\n\024LabelExtractors"
+ + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\244\001"
+ + "\n MonitoringQueryLanguageCondition\022\r\n\005qu"
+ + "ery\030\001 \001(\t\022+\n\010duration\030\002 \001(\0132\031.google.pro"
+ + "tobuf.Duration\022D\n\007trigger\030\003 \001(\01323.google"
+ + ".monitoring.v3.AlertPolicy.Condition.Tri"
+ + "gger:\227\002\352A\223\002\n.monitoring.googleapis.com/A"
+ + "lertPolicyCondition\022Fprojects/{project}/"
+ + "alertPolicies/{alert_policy}/conditions/"
+ + "{condition}\022Porganizations/{organization"
+ + "}/alertPolicies/{alert_policy}/condition"
+ + "s/{condition}\022Dfolders/{folder}/alertPol"
+ + "icies/{alert_policy}/conditions/{conditi"
+ + "on}\022\001*B\013\n\tcondition\032\273\001\n\rAlertStrategy\022f\n"
+ + "\027notification_rate_limit\030\001 \001(\0132E.google."
+ + "monitoring.v3.AlertPolicy.AlertStrategy."
+ + "NotificationRateLimit\032B\n\025NotificationRat"
+ + "eLimit\022)\n\006period\030\001 \001(\0132\031.google.protobuf"
+ + ".Duration\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001("
+ + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"a\n\025ConditionCombine"
+ + "rType\022\027\n\023COMBINE_UNSPECIFIED\020\000\022\007\n\003AND\020\001\022"
+ + "\006\n\002OR\020\002\022\036\n\032AND_WITH_MATCHING_RESOURCE\020\003:"
+ + "\311\001\352A\305\001\n%monitoring.googleapis.com/AlertP"
+ + "olicy\022/projects/{project}/alertPolicies/"
+ + "{alert_policy}\0229organizations/{organizat"
+ + "ion}/alertPolicies/{alert_policy}\022-folde"
+ + "rs/{folder}/alertPolicies/{alert_policy}"
+ + "\022\001*B\302\001\n\030com.google.monitoring.v3B\nAlertP"
+ + "rotoP\001Z>google.golang.org/genproto/googl"
+ + "eapis/monitoring/v3;monitoring\252\002\032Google."
+ + "Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monit"
+ + "oring\\V3\352\002\035Google::Cloud::Monitoring::V3"
+ + "b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -172,6 +202,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"NotificationChannels",
"CreationRecord",
"MutationRecord",
+ "AlertStrategy",
});
internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor =
internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(0);
@@ -191,6 +222,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"DisplayName",
"ConditionThreshold",
"ConditionAbsent",
+ "ConditionMatchedLog",
"ConditionMonitoringQueryLanguage",
"Condition",
});
@@ -231,18 +263,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Filter", "Aggregations", "Duration", "Trigger",
});
- internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor =
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor =
internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor
.getNestedTypes()
.get(3);
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor,
+ new java.lang.String[] {
+ "Filter", "LabelExtractors",
+ });
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor =
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor =
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor
+ .getNestedTypes()
+ .get(4);
internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor,
new java.lang.String[] {
"Query", "Duration", "Trigger",
});
- internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor =
+ internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor =
internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(2);
+ internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor,
+ new java.lang.String[] {
+ "NotificationRateLimit",
+ });
+ internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor =
+ internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor,
+ new java.lang.String[] {
+ "Period",
+ });
+ internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor =
+ internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(3);
internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor,
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java
index 2ea5e5ad..e3463b2b 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java
@@ -133,7 +133,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The project in which to create the alerting policy. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the alerting policy. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
@@ -166,7 +167,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The project in which to create the alerting policy. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the alerting policy. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
@@ -273,7 +275,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (alertPolicy_ != null) {
output.writeMessage(2, getAlertPolicy());
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
unknownFields.writeTo(output);
@@ -288,7 +290,7 @@ public int getSerializedSize() {
if (alertPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAlertPolicy());
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
size += unknownFields.getSerializedSize();
@@ -607,7 +609,8 @@ public Builder mergeFrom(
*
*
*
- * Required. The project in which to create the alerting policy. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the alerting policy. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
@@ -639,7 +642,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The project in which to create the alerting policy. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the alerting policy. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
@@ -671,7 +675,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. The project in which to create the alerting policy. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the alerting policy. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
@@ -702,7 +707,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. The project in which to create the alerting policy. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the alerting policy. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
@@ -729,7 +735,8 @@ public Builder clearName() {
*
*
*
- * Required. The project in which to create the alerting policy. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the alerting policy. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java
index 05758139..d84bfb52 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java
@@ -27,7 +27,8 @@ public interface CreateAlertPolicyRequestOrBuilder
*
*
*
- * Required. The project in which to create the alerting policy. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the alerting policy. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
@@ -49,7 +50,8 @@ public interface CreateAlertPolicyRequestOrBuilder
*
*
*
- * Required. The project in which to create the alerting policy. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the alerting policy. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java
index e7460049..d6056ebc 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java
@@ -137,7 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The project in which to create the group. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the group. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -163,7 +164,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The project in which to create the group. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the group. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -273,7 +275,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (validateOnly_ != false) {
output.writeBool(3, validateOnly_);
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_);
}
unknownFields.writeTo(output);
@@ -291,7 +293,7 @@ public int getSerializedSize() {
if (validateOnly_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_);
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_);
}
size += unknownFields.getSerializedSize();
@@ -617,7 +619,8 @@ public Builder mergeFrom(
*
*
*
- * Required. The project in which to create the group. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the group. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -642,7 +645,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The project in which to create the group. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the group. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -667,7 +671,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. The project in which to create the group. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the group. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -691,7 +696,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. The project in which to create the group. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the group. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -711,7 +717,8 @@ public Builder clearName() {
*
*
*
- * Required. The project in which to create the group. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the group. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java
index 4e64a4c6..2293356a 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java
@@ -27,7 +27,8 @@ public interface CreateGroupRequestOrBuilder
*
*
*
- * Required. The project in which to create the group. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the group. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -42,7 +43,8 @@ public interface CreateGroupRequestOrBuilder
*
*
*
- * Required. The project in which to create the group. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the group. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java
index a13a98e4..254986b4 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java
@@ -132,7 +132,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
+ * 4
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -158,7 +160,9 @@ public java.lang.String getName() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
+ * 4
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -255,7 +259,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (metricDescriptor_ != null) {
output.writeMessage(2, getMetricDescriptor());
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
unknownFields.writeTo(output);
@@ -270,7 +274,7 @@ public int getSerializedSize() {
if (metricDescriptor_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetricDescriptor());
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
size += unknownFields.getSerializedSize();
@@ -590,7 +594,9 @@ public Builder mergeFrom(
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
+ * 4
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -615,7 +621,9 @@ public java.lang.String getName() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
+ * 4
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -640,7 +648,9 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
+ * 4
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -664,7 +674,9 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
+ * 4
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -684,7 +696,9 @@ public Builder clearName() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
+ * 4
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java
index 7fc91c59..77302acb 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java
@@ -27,7 +27,9 @@ public interface CreateMetricDescriptorRequestOrBuilder
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
+ * 4
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -42,7 +44,9 @@ public interface CreateMetricDescriptorRequestOrBuilder
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
+ * 4
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java
index bfd7f3e7..06a0d534 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java
@@ -134,7 +134,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container into which the channel will be
* written, this does not name the newly created channel. The resulting
@@ -164,7 +165,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container into which the channel will be
* written, this does not name the newly created channel. The resulting
@@ -262,7 +264,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (notificationChannel_ != null) {
output.writeMessage(2, getNotificationChannel());
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
unknownFields.writeTo(output);
@@ -277,7 +279,7 @@ public int getSerializedSize() {
if (notificationChannel_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNotificationChannel());
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
size += unknownFields.getSerializedSize();
@@ -597,7 +599,8 @@ public Builder mergeFrom(
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container into which the channel will be
* written, this does not name the newly created channel. The resulting
@@ -626,7 +629,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container into which the channel will be
* written, this does not name the newly created channel. The resulting
@@ -655,7 +659,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container into which the channel will be
* written, this does not name the newly created channel. The resulting
@@ -683,7 +688,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container into which the channel will be
* written, this does not name the newly created channel. The resulting
@@ -707,7 +713,8 @@ public Builder clearName() {
*
*
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container into which the channel will be
* written, this does not name the newly created channel. The resulting
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java
index 835bb63f..f85deb79 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java
@@ -27,7 +27,8 @@ public interface CreateNotificationChannelRequestOrBuilder
*
*
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container into which the channel will be
* written, this does not name the newly created channel. The resulting
@@ -46,7 +47,8 @@ public interface CreateNotificationChannelRequestOrBuilder
*
*
*
*
* Protobuf type {@code google.monitoring.v3.DistributionCut}
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java
index 275bd2f9..ace5da25 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java
@@ -180,7 +180,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
unknownFields.writeTo(output);
@@ -192,7 +192,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java
index aff67ace..6ef7bb21 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java
@@ -180,7 +180,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
unknownFields.writeTo(output);
@@ -192,7 +192,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java
index ff66eea0..3bc32e64 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java
@@ -184,7 +184,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
unknownFields.writeTo(output);
@@ -196,7 +196,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java
index f7170db5..e5eb6ec2 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java
@@ -186,7 +186,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
unknownFields.writeTo(output);
@@ -198,7 +198,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java
index fd6ff20c..ea3611e6 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java
@@ -182,7 +182,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
unknownFields.writeTo(output);
@@ -194,7 +194,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java
index ccf129a7..e14063a1 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java
@@ -180,7 +180,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
unknownFields.writeTo(output);
@@ -192,7 +192,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java
index b44a648f..bb608366 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java
@@ -269,7 +269,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (expireTime_ != null) {
@@ -284,7 +284,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (expireTime_ != null) {
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java
index 938b29d4..e490a02c 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java
@@ -249,7 +249,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getCodeBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_);
}
if (expireTime_ != null) {
@@ -264,7 +264,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getCodeBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_);
}
if (expireTime_ != null) {
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java
index c56727b0..d91a2e6f 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java
@@ -233,7 +233,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (view_ != com.google.monitoring.v3.ServiceLevelObjective.View.VIEW_UNSPECIFIED.getNumber()) {
@@ -248,7 +248,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (view_ != com.google.monitoring.v3.ServiceLevelObjective.View.VIEW_UNSPECIFIED.getNumber()) {
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java
index 89fa0a7b..cd03b962 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java
@@ -180,7 +180,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
unknownFields.writeTo(output);
@@ -192,7 +192,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java
index 0619a770..9801e213 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java
@@ -180,7 +180,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
unknownFields.writeTo(output);
@@ -192,7 +192,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java
index 8fc88f2c..5194bc26 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java
@@ -404,16 +404,16 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
- if (!getDisplayNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
}
- if (!getParentNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parentName_);
}
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_);
}
if (isCluster_ != false) {
@@ -428,16 +428,16 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
- if (!getDisplayNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
}
- if (!getParentNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, parentName_);
}
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_);
}
if (isCluster_ != false) {
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java
index b5ba41fc..cfd6e230 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java
@@ -641,19 +641,19 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
- if (!getDisplayNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
}
- if (!getNetworkBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, network_);
}
- if (!getGcpZoneBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpZone_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, gcpZone_);
}
- if (!getPeerProjectIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerProjectId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, peerProjectId_);
}
if (state_ != com.google.monitoring.v3.InternalChecker.State.UNSPECIFIED.getNumber()) {
@@ -668,19 +668,19 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
- if (!getDisplayNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
}
- if (!getNetworkBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, network_);
}
- if (!getGcpZoneBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpZone_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, gcpZone_);
}
- if (!getPeerProjectIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerProjectId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, peerProjectId_);
}
if (state_ != com.google.monitoring.v3.InternalChecker.State.UNSPECIFIED.getNumber()) {
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java
index b6f7b1a1..2ee17d00 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java
@@ -146,7 +146,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container into which the channel will be
* written, this does not name the newly created channel. The resulting
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java
index 2a949980..65019b59 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java
@@ -319,13 +319,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getParentBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
if (serviceLevelObjective_ != null) {
output.writeMessage(2, getServiceLevelObjective());
}
- if (!getServiceLevelObjectiveIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceLevelObjectiveId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceLevelObjectiveId_);
}
unknownFields.writeTo(output);
@@ -337,14 +337,14 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getParentBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
if (serviceLevelObjective_ != null) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(2, getServiceLevelObjective());
}
- if (!getServiceLevelObjectiveIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceLevelObjectiveId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceLevelObjectiveId_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java
index de03cabc..a1713a01 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java
@@ -140,7 +140,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
*
* Protobuf type {@code google.monitoring.v3.DistributionCut}
@@ -246,7 +246,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getDistributionFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(distributionFilter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, distributionFilter_);
}
if (range_ != null) {
@@ -261,7 +261,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getDistributionFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(distributionFilter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, distributionFilter_);
}
if (range_ != null) {
@@ -411,8 +411,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* A `DistributionCut` defines a `TimeSeries` and thresholds used for measuring
* good service and total service. The `TimeSeries` must have `ValueType =
* DISTRIBUTION` and `MetricKind = DELTA` or `MetricKind = CUMULATIVE`. The
- * computed `good_service` will be the count of values x in the `Distribution`
- * such that `range.min <= x < range.max`.
+ * computed `good_service` will be the estimated count of values in the
+ * `Distribution` that fall within the specified `min` and `max`.
*
- * Required. Resource name of the parent workspace. The format is:
+ * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
+ * the parent workspace. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -166,7 +167,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. Resource name of the parent workspace. The format is:
+ * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
+ * the parent workspace. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -303,13 +305,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getParentBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
if (service_ != null) {
output.writeMessage(2, getService());
}
- if (!getServiceIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceId_);
}
unknownFields.writeTo(output);
@@ -321,13 +323,13 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getParentBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
if (service_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getService());
}
- if (!getServiceIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceId_);
}
size += unknownFields.getSerializedSize();
@@ -654,7 +656,8 @@ public Builder mergeFrom(
*
*
*
- * Required. Resource name of the parent workspace. The format is:
+ * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
+ * the parent workspace. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -679,7 +682,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. Resource name of the parent workspace. The format is:
+ * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
+ * the parent workspace. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -704,7 +708,8 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. Resource name of the parent workspace. The format is:
+ * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
+ * the parent workspace. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -728,7 +733,8 @@ public Builder setParent(java.lang.String value) {
*
*
*
- * Required. Resource name of the parent workspace. The format is:
+ * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
+ * the parent workspace. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -748,7 +754,8 @@ public Builder clearParent() {
*
*
*
- * Required. Resource name of the parent workspace. The format is:
+ * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
+ * the parent workspace. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java
index e0a3536b..3af4f285 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java
@@ -27,7 +27,8 @@ public interface CreateServiceRequestOrBuilder
*
*
*
- * Required. Resource name of the parent workspace. The format is:
+ * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
+ * the parent workspace. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -42,7 +43,8 @@ public interface CreateServiceRequestOrBuilder
*
*
*
- * Required. Resource name of the parent workspace. The format is:
+ * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
+ * the parent workspace. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java
index 85d172b3..eade8c64 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java
@@ -133,7 +133,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -159,7 +160,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -303,7 +305,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < timeSeries_.size(); i++) {
output.writeMessage(2, timeSeries_.get(i));
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
unknownFields.writeTo(output);
@@ -318,7 +320,7 @@ public int getSerializedSize() {
for (int i = 0; i < timeSeries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, timeSeries_.get(i));
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
size += unknownFields.getSerializedSize();
@@ -666,7 +668,8 @@ public Builder mergeFrom(
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -691,7 +694,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -716,7 +720,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -740,7 +745,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -760,7 +766,8 @@ public Builder clearName() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java
index 84de2b3c..d06e8642 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java
@@ -27,7 +27,8 @@ public interface CreateTimeSeriesRequestOrBuilder
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -42,7 +43,8 @@ public interface CreateTimeSeriesRequestOrBuilder
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java
index 2a8e071b..01e9712b 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java
@@ -134,7 +134,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The project in which to create the Uptime check. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the Uptime check. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -160,7 +161,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. The project in which to create the Uptime check. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the Uptime check. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -251,7 +253,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getParentBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
if (uptimeCheckConfig_ != null) {
@@ -266,7 +268,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getParentBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
if (uptimeCheckConfig_ != null) {
@@ -589,7 +591,8 @@ public Builder mergeFrom(
*
*
*
- * Required. The project in which to create the Uptime check. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the Uptime check. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -614,7 +617,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. The project in which to create the Uptime check. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the Uptime check. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -639,7 +643,8 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. The project in which to create the Uptime check. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the Uptime check. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -663,7 +668,8 @@ public Builder setParent(java.lang.String value) {
*
*
*
- * Required. The project in which to create the Uptime check. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the Uptime check. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -683,7 +689,8 @@ public Builder clearParent() {
*
*
*
- * Required. The project in which to create the Uptime check. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the Uptime check. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java
index 82320e43..a35b44f8 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java
@@ -27,7 +27,8 @@ public interface CreateUptimeCheckConfigRequestOrBuilder
*
*
*
- * Required. The project in which to create the Uptime check. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the Uptime check. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -42,7 +43,8 @@ public interface CreateUptimeCheckConfigRequestOrBuilder
*
*
*
- * Required. The project in which to create the Uptime check. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
+ * which to create the Uptime check. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java
index 3332ebee..7945d180 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java
@@ -182,7 +182,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
unknownFields.writeTo(output);
@@ -194,7 +194,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java
index 85bd2762..d771c35a 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java
@@ -206,7 +206,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (recursive_ != false) {
@@ -221,7 +221,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (recursive_ != false) {
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java
index 2be80654..de4b0445 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java
@@ -184,7 +184,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
unknownFields.writeTo(output);
@@ -196,7 +196,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java
index 4a82ebc2..6c4311ea 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java
@@ -207,7 +207,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (force_ != false) {
@@ -222,7 +222,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (force_ != false) {
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java
index 29c36290..185dcd86 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java
@@ -181,7 +181,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
unknownFields.writeTo(output);
@@ -193,7 +193,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java
index 3ebdeaf3..34047b1c 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java
@@ -180,7 +180,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
unknownFields.writeTo(output);
@@ -192,7 +192,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java
index 178a54db..1e1b5c65 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java
@@ -181,7 +181,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
unknownFields.writeTo(output);
@@ -193,7 +193,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java
index 4feb7ca7..3fe83483 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java
@@ -25,8 +25,8 @@
* A `DistributionCut` defines a `TimeSeries` and thresholds used for measuring
* good service and total service. The `TimeSeries` must have `ValueType =
* DISTRIBUTION` and `MetricKind = DELTA` or `MetricKind = CUMULATIVE`. The
- * computed `good_service` will be the count of values x in the `Distribution`
- * such that `range.min <= x < range.max`.
+ * computed `good_service` will be the estimated count of values in the
+ * `Distribution` that fall within the specified `min` and `max`.
*
- * Required. The project whose alert policies are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose alert policies are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policies to be listed are stored. To retrieve a single alerting policy
@@ -177,7 +178,8 @@ public java.lang.String getName() {
*
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java
index cb8b8213..0005f957 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java
@@ -286,7 +286,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < channelDescriptors_.size(); i++) {
output.writeMessage(1, channelDescriptors_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
@@ -302,7 +302,7 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(1, channelDescriptors_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java
index 2c9f3a40..258df0a9 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java
@@ -147,7 +147,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The project whose alert policies are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose alert policies are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policies to be listed are stored. To retrieve a single alerting policy
@@ -405,16 +407,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (pageSize_ != 0) {
output.writeInt32(2, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_);
}
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_);
}
- if (!getOrderByBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, orderBy_);
}
unknownFields.writeTo(output);
@@ -429,16 +431,16 @@ public int getSerializedSize() {
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_);
}
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_);
}
- if (!getOrderByBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, orderBy_);
}
size += unknownFields.getSerializedSize();
@@ -774,7 +776,8 @@ public Builder mergeFrom(
*
*
*
@@ -50,8 +52,10 @@ public interface ListNotificationChannelDescriptorsRequestOrBuilder
* Required. The REST resource name of the parent from which to retrieve
* the notification channel descriptors. The expected syntax is:
* projects/[PROJECT_ID_OR_NUMBER]
- * Note that this names the parent container in which to look for the
- * descriptors; to retrieve a single descriptor by name, use the
+ * Note that this
+ * [names](https://cloud.google.com/monitoring/api/v3#project_name) the parent
+ * container in which to look for the descriptors; to retrieve a single
+ * descriptor by name, use the
* [GetNotificationChannelDescriptor][google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor]
* operation, instead.
*
- * Required. The project whose alert policies are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose alert policies are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policies to be listed are stored. To retrieve a single alerting policy
@@ -804,7 +807,8 @@ public java.lang.String getName() {
*
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java
index b2697145..8f1c010c 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java
@@ -30,8 +30,10 @@ public interface ListNotificationChannelDescriptorsRequestOrBuilder
* Required. The REST resource name of the parent from which to retrieve
* the notification channel descriptors. The expected syntax is:
* projects/[PROJECT_ID_OR_NUMBER]
- * Note that this names the parent container in which to look for the
- * descriptors; to retrieve a single descriptor by name, use the
+ * Note that this
+ * [names](https://cloud.google.com/monitoring/api/v3#project_name) the parent
+ * container in which to look for the descriptors; to retrieve a single
+ * descriptor by name, use the
* [GetNotificationChannelDescriptor][google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor]
* operation, instead.
*
- * Required. The project whose alert policies are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose alert policies are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policies to be listed are stored. To retrieve a single alerting policy
@@ -834,7 +838,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
@@ -744,8 +756,10 @@ public Builder clearName() {
* Required. The REST resource name of the parent from which to retrieve
* the notification channel descriptors. The expected syntax is:
* projects/[PROJECT_ID_OR_NUMBER]
- * Note that this names the parent container in which to look for the
- * descriptors; to retrieve a single descriptor by name, use the
+ * Note that this
+ * [names](https://cloud.google.com/monitoring/api/v3#project_name) the parent
+ * container in which to look for the descriptors; to retrieve a single
+ * descriptor by name, use the
* [GetNotificationChannelDescriptor][google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor]
* operation, instead.
*
- * Required. The project whose alert policies are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose alert policies are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policies to be listed are stored. To retrieve a single alerting policy
@@ -863,7 +868,8 @@ public Builder setName(java.lang.String value) {
*
*
*
@@ -719,8 +729,10 @@ public Builder setName(java.lang.String value) {
* Required. The REST resource name of the parent from which to retrieve
* the notification channel descriptors. The expected syntax is:
* projects/[PROJECT_ID_OR_NUMBER]
- * Note that this names the parent container in which to look for the
- * descriptors; to retrieve a single descriptor by name, use the
+ * Note that this
+ * [names](https://cloud.google.com/monitoring/api/v3#project_name) the parent
+ * container in which to look for the descriptors; to retrieve a single
+ * descriptor by name, use the
* [GetNotificationChannelDescriptor][google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor]
* operation, instead.
*
- * Required. The project whose alert policies are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose alert policies are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policies to be listed are stored. To retrieve a single alerting policy
@@ -888,7 +894,8 @@ public Builder clearName() {
*
*
*
@@ -690,8 +698,10 @@ public com.google.protobuf.ByteString getNameBytes() {
* Required. The REST resource name of the parent from which to retrieve
* the notification channel descriptors. The expected syntax is:
* projects/[PROJECT_ID_OR_NUMBER]
- * Note that this names the parent container in which to look for the
- * descriptors; to retrieve a single descriptor by name, use the
+ * Note that this
+ * [names](https://cloud.google.com/monitoring/api/v3#project_name) the parent
+ * container in which to look for the descriptors; to retrieve a single
+ * descriptor by name, use the
* [GetNotificationChannelDescriptor][google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor]
* operation, instead.
*
- * Required. The project whose alert policies are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose alert policies are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policies to be listed are stored. To retrieve a single alerting policy
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java
index 34fd2247..a6bb26dc 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java
@@ -27,7 +27,8 @@ public interface ListAlertPoliciesRequestOrBuilder
*
*
*
@@ -660,8 +666,10 @@ public java.lang.String getName() {
* Required. The REST resource name of the parent from which to retrieve
* the notification channel descriptors. The expected syntax is:
* projects/[PROJECT_ID_OR_NUMBER]
- * Note that this names the parent container in which to look for the
- * descriptors; to retrieve a single descriptor by name, use the
+ * Note that this
+ * [names](https://cloud.google.com/monitoring/api/v3#project_name) the parent
+ * container in which to look for the descriptors; to retrieve a single
+ * descriptor by name, use the
* [GetNotificationChannelDescriptor][google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor]
* operation, instead.
*
- * Required. The project whose alert policies are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose alert policies are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policies to be listed are stored. To retrieve a single alerting policy
@@ -47,7 +48,8 @@ public interface ListAlertPoliciesRequestOrBuilder
*
*
*
@@ -281,10 +285,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (pageSize_ != 0) {
output.writeInt32(2, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_);
}
unknownFields.writeTo(output);
@@ -299,10 +303,10 @@ public int getSerializedSize() {
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_);
}
size += unknownFields.getSerializedSize();
@@ -630,8 +634,10 @@ public Builder mergeFrom(
* Required. The REST resource name of the parent from which to retrieve
* the notification channel descriptors. The expected syntax is:
* projects/[PROJECT_ID_OR_NUMBER]
- * Note that this names the parent container in which to look for the
- * descriptors; to retrieve a single descriptor by name, use the
+ * Note that this
+ * [names](https://cloud.google.com/monitoring/api/v3#project_name) the parent
+ * container in which to look for the descriptors; to retrieve a single
+ * descriptor by name, use the
* [GetNotificationChannelDescriptor][google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor]
* operation, instead.
*
- * Required. The project whose alert policies are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose alert policies are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policies to be listed are stored. To retrieve a single alerting policy
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java
index d53d8d6c..f45c5a32 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java
@@ -287,7 +287,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
for (int i = 0; i < alertPolicies_.size(); i++) {
@@ -305,7 +305,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
for (int i = 0; i < alertPolicies_.size(); i++) {
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java
index 713a1fc7..99b7f30a 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java
@@ -409,16 +409,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (pageSize_ != 0) {
output.writeInt32(3, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
}
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_);
}
if (interval_ != null) {
output.writeMessage(6, getInterval());
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_);
}
unknownFields.writeTo(output);
@@ -433,16 +433,16 @@ public int getSerializedSize() {
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
}
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_);
}
if (interval_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getInterval());
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java
index 634a0152..4bb184b7 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java
@@ -288,7 +288,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < members_.size(); i++) {
output.writeMessage(1, members_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
if (totalSize_ != 0) {
@@ -306,7 +306,7 @@ public int getSerializedSize() {
for (int i = 0; i < members_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, members_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
if (totalSize_ != 0) {
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java
index 4f64e7ff..4d123c3a 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java
@@ -201,7 +201,8 @@ public FilterCase getFilterCase() {
*
*
*
@@ -166,8 +168,10 @@ public java.lang.String getName() {
* Required. The REST resource name of the parent from which to retrieve
* the notification channel descriptors. The expected syntax is:
* projects/[PROJECT_ID_OR_NUMBER]
- * Note that this names the parent container in which to look for the
- * descriptors; to retrieve a single descriptor by name, use the
+ * Note that this
+ * [names](https://cloud.google.com/monitoring/api/v3#project_name) the parent
+ * container in which to look for the descriptors; to retrieve a single
+ * descriptor by name, use the
* [GetNotificationChannelDescriptor][google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor]
* operation, instead.
*
- * Required. The project whose groups are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose groups are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -227,7 +228,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The project whose groups are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose groups are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -593,10 +595,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (pageSize_ != 0) {
output.writeInt32(5, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pageToken_);
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_);
}
unknownFields.writeTo(output);
@@ -620,10 +622,10 @@ public int getSerializedSize() {
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_);
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_);
}
size += unknownFields.getSerializedSize();
@@ -1020,7 +1022,8 @@ public Builder clearFilter() {
*
*
*
- * Required. The project whose groups are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose groups are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -1045,7 +1048,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The project whose groups are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose groups are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -1070,7 +1074,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. The project whose groups are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose groups are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -1094,7 +1099,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. The project whose groups are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose groups are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -1114,7 +1120,8 @@ public Builder clearName() {
*
*
*
- * Required. The project whose groups are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose groups are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java
index b322a92f..cd4f165b 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java
@@ -27,7 +27,8 @@ public interface ListGroupsRequestOrBuilder
*
*
*
- * Required. The project whose groups are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose groups are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -42,7 +43,8 @@ public interface ListGroupsRequestOrBuilder
*
*
*
- * Required. The project whose groups are to be listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose groups are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java
index bef4bb89..3e0ddc0e 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java
@@ -264,7 +264,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < group_.size(); i++) {
output.writeMessage(1, group_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
@@ -279,7 +279,7 @@ public int getSerializedSize() {
for (int i = 0; i < group_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, group_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java
index 8ad1cf9f..5a4ff8ae 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java
@@ -138,7 +138,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -164,7 +165,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -333,16 +335,16 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_);
}
if (pageSize_ != 0) {
output.writeInt32(3, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_);
}
unknownFields.writeTo(output);
@@ -354,16 +356,16 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_);
}
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_);
}
size += unknownFields.getSerializedSize();
@@ -690,7 +692,8 @@ public Builder mergeFrom(
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -715,7 +718,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -740,7 +744,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -764,7 +769,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -784,7 +790,8 @@ public Builder clearName() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java
index 6a4a0b9a..6d3705c1 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java
@@ -27,7 +27,8 @@ public interface ListMetricDescriptorsRequestOrBuilder
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -42,7 +43,8 @@ public interface ListMetricDescriptorsRequestOrBuilder
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java
index b4568a86..488f2b9b 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java
@@ -270,7 +270,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < metricDescriptors_.size(); i++) {
output.writeMessage(1, metricDescriptors_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
@@ -286,7 +286,7 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(1, metricDescriptors_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java
index ff2d44d4..ea38baba 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java
@@ -140,7 +140,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -166,7 +167,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -331,16 +333,16 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_);
}
if (pageSize_ != 0) {
output.writeInt32(3, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_);
}
unknownFields.writeTo(output);
@@ -352,16 +354,16 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_);
}
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_);
}
size += unknownFields.getSerializedSize();
@@ -692,7 +694,8 @@ public Builder mergeFrom(
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -717,7 +720,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -742,7 +746,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -766,7 +771,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -786,7 +792,8 @@ public Builder clearName() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java
index e73765a8..fb75abe4 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java
@@ -27,7 +27,8 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -42,7 +43,8 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java
index b094aa68..9e870872 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java
@@ -275,7 +275,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < resourceDescriptors_.size(); i++) {
output.writeMessage(1, resourceDescriptors_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
@@ -291,7 +291,7 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(1, resourceDescriptors_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java
index ce7da267..f7a700ff 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java
@@ -135,8 +135,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* Required. The REST resource name of the parent from which to retrieve
* the notification channel descriptors. The expected syntax is:
* projects/[PROJECT_ID_OR_NUMBER]
- * Note that this names the parent container in which to look for the
- * descriptors; to retrieve a single descriptor by name, use the
+ * Note that this
+ * [names](https://cloud.google.com/monitoring/api/v3#project_name) the parent
+ * container in which to look for the descriptors; to retrieve a single
+ * descriptor by name, use the
* [GetNotificationChannelDescriptor][google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor]
* operation, instead.
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container
* in which to look for the notification channels; it does not name a
@@ -179,7 +180,8 @@ public java.lang.String getName() {
*
*
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container
* in which to look for the notification channels; it does not name a
@@ -410,16 +412,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (pageSize_ != 0) {
output.writeInt32(3, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_);
}
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, filter_);
}
- if (!getOrderByBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, orderBy_);
}
unknownFields.writeTo(output);
@@ -434,16 +436,16 @@ public int getSerializedSize() {
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_);
}
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, filter_);
}
- if (!getOrderByBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, orderBy_);
}
size += unknownFields.getSerializedSize();
@@ -780,7 +782,8 @@ public Builder mergeFrom(
*
*
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container
* in which to look for the notification channels; it does not name a
@@ -811,7 +814,8 @@ public java.lang.String getName() {
*
*
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container
* in which to look for the notification channels; it does not name a
@@ -842,7 +846,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container
* in which to look for the notification channels; it does not name a
@@ -872,7 +877,8 @@ public Builder setName(java.lang.String value) {
*
*
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container
* in which to look for the notification channels; it does not name a
@@ -898,7 +904,8 @@ public Builder clearName() {
*
*
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container
* in which to look for the notification channels; it does not name a
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java
index 5322e3af..92c4fdbb 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java
@@ -27,7 +27,8 @@ public interface ListNotificationChannelsRequestOrBuilder
*
*
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container
* in which to look for the notification channels; it does not name a
@@ -48,7 +49,8 @@ public interface ListNotificationChannelsRequestOrBuilder
*
*
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* This names the container
* in which to look for the notification channels; it does not name a
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java
index 61a30191..42a127ae 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java
@@ -293,7 +293,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
for (int i = 0; i < notificationChannels_.size(); i++) {
@@ -311,7 +311,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
for (int i = 0; i < notificationChannels_.size(); i++) {
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java
index b1484f3d..293fbe66 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java
@@ -379,16 +379,16 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getParentBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_);
}
if (pageSize_ != 0) {
output.writeInt32(3, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
}
if (view_ != com.google.monitoring.v3.ServiceLevelObjective.View.VIEW_UNSPECIFIED.getNumber()) {
@@ -403,16 +403,16 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getParentBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_);
}
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
}
if (view_ != com.google.monitoring.v3.ServiceLevelObjective.View.VIEW_UNSPECIFIED.getNumber()) {
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java
index 4a71e881..a908ca79 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java
@@ -270,7 +270,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < serviceLevelObjectives_.size(); i++) {
output.writeMessage(1, serviceLevelObjectives_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
@@ -287,7 +287,7 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
1, serviceLevelObjectives_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java
index e9acead0..1f0ac0da 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java
@@ -139,7 +139,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
*
* Required. Resource name of the parent containing the listed services, either a
- * project or a Monitoring Workspace. The formats are:
+ * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
+ * Monitoring Workspace. The formats are:
* projects/[PROJECT_ID_OR_NUMBER]
* workspaces/[HOST_PROJECT_ID_OR_NUMBER]
*
@@ -167,7 +168,8 @@ public java.lang.String getParent() {
*
*
* Required. Resource name of the parent containing the listed services, either a
- * project or a Monitoring Workspace. The formats are:
+ * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
+ * Monitoring Workspace. The formats are:
* projects/[PROJECT_ID_OR_NUMBER]
* workspaces/[HOST_PROJECT_ID_OR_NUMBER]
*
@@ -358,16 +360,16 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getParentBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_);
}
if (pageSize_ != 0) {
output.writeInt32(3, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
}
unknownFields.writeTo(output);
@@ -379,16 +381,16 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getParentBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_);
}
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
}
size += unknownFields.getSerializedSize();
@@ -713,7 +715,8 @@ public Builder mergeFrom(
*
*
* Required. Resource name of the parent containing the listed services, either a
- * project or a Monitoring Workspace. The formats are:
+ * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
+ * Monitoring Workspace. The formats are:
* projects/[PROJECT_ID_OR_NUMBER]
* workspaces/[HOST_PROJECT_ID_OR_NUMBER]
*
@@ -740,7 +743,8 @@ public java.lang.String getParent() {
*
*
* Required. Resource name of the parent containing the listed services, either a
- * project or a Monitoring Workspace. The formats are:
+ * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
+ * Monitoring Workspace. The formats are:
* projects/[PROJECT_ID_OR_NUMBER]
* workspaces/[HOST_PROJECT_ID_OR_NUMBER]
*
@@ -767,7 +771,8 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
* Required. Resource name of the parent containing the listed services, either a
- * project or a Monitoring Workspace. The formats are:
+ * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
+ * Monitoring Workspace. The formats are:
* projects/[PROJECT_ID_OR_NUMBER]
* workspaces/[HOST_PROJECT_ID_OR_NUMBER]
*
@@ -793,7 +798,8 @@ public Builder setParent(java.lang.String value) {
*
*
* Required. Resource name of the parent containing the listed services, either a
- * project or a Monitoring Workspace. The formats are:
+ * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
+ * Monitoring Workspace. The formats are:
* projects/[PROJECT_ID_OR_NUMBER]
* workspaces/[HOST_PROJECT_ID_OR_NUMBER]
*
@@ -815,7 +821,8 @@ public Builder clearParent() {
*
*
* Required. Resource name of the parent containing the listed services, either a
- * project or a Monitoring Workspace. The formats are:
+ * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
+ * Monitoring Workspace. The formats are:
* projects/[PROJECT_ID_OR_NUMBER]
* workspaces/[HOST_PROJECT_ID_OR_NUMBER]
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java
index 5babc09f..733ee04f 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java
@@ -28,7 +28,8 @@ public interface ListServicesRequestOrBuilder
*
*
* Required. Resource name of the parent containing the listed services, either a
- * project or a Monitoring Workspace. The formats are:
+ * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
+ * Monitoring Workspace. The formats are:
* projects/[PROJECT_ID_OR_NUMBER]
* workspaces/[HOST_PROJECT_ID_OR_NUMBER]
*
@@ -45,7 +46,8 @@ public interface ListServicesRequestOrBuilder
*
*
* Required. Resource name of the parent containing the listed services, either a
- * project or a Monitoring Workspace. The formats are:
+ * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
+ * Monitoring Workspace. The formats are:
* projects/[PROJECT_ID_OR_NUMBER]
* workspaces/[HOST_PROJECT_ID_OR_NUMBER]
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java
index 35c8362d..55eb2776 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java
@@ -265,7 +265,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < services_.size(); i++) {
output.writeMessage(1, services_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
@@ -280,7 +280,7 @@ public int getSerializedSize() {
for (int i = 0; i < services_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, services_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java
index 2a84e8a8..ef6a587b 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java
@@ -341,8 +341,8 @@ private TimeSeriesView(int value) {
*
*
*
- * Required. The project, organization or folder on which to execute the request. The
- * format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
+ * organization or folder on which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* organizations/[ORGANIZATION_ID]
* folders/[FOLDER_ID]
@@ -370,8 +370,8 @@ public java.lang.String getName() {
*
*
*
*
- *
- * Required. The project, organization or folder on which to execute the request. The
- * format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
+ * organization or folder on which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* organizations/[ORGANIZATION_ID]
* folders/[FOLDER_ID]
@@ -805,7 +805,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_);
}
if (interval_ != null) {
@@ -814,7 +814,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (aggregation_ != null) {
output.writeMessage(5, getAggregation());
}
- if (!getOrderByBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, orderBy_);
}
if (view_ != com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.FULL.getNumber()) {
@@ -823,10 +823,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (pageSize_ != 0) {
output.writeInt32(8, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pageToken_);
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, name_);
}
if (secondaryAggregation_ != null) {
@@ -841,7 +841,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_);
}
if (interval_ != null) {
@@ -850,7 +850,7 @@ public int getSerializedSize() {
if (aggregation_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAggregation());
}
- if (!getOrderByBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, orderBy_);
}
if (view_ != com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.FULL.getNumber()) {
@@ -859,10 +859,10 @@ public int getSerializedSize() {
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pageToken_);
}
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, name_);
}
if (secondaryAggregation_ != null) {
@@ -1275,8 +1275,8 @@ public Builder mergeFrom(
*
*
*
*
- *
- * Required. The project, organization or folder on which to execute the request. The
- * format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
+ * organization or folder on which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* organizations/[ORGANIZATION_ID]
* folders/[FOLDER_ID]
@@ -1303,8 +1303,8 @@ public java.lang.String getName() {
*
*
*
*
- *
- * Required. The project, organization or folder on which to execute the request. The
- * format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
+ * organization or folder on which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* organizations/[ORGANIZATION_ID]
* folders/[FOLDER_ID]
@@ -1331,8 +1331,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
*
- *
- * Required. The project, organization or folder on which to execute the request. The
- * format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
+ * organization or folder on which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* organizations/[ORGANIZATION_ID]
* folders/[FOLDER_ID]
@@ -1358,8 +1358,8 @@ public Builder setName(java.lang.String value) {
*
*
*
*
- *
- * Required. The project, organization or folder on which to execute the request. The
- * format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
+ * organization or folder on which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* organizations/[ORGANIZATION_ID]
* folders/[FOLDER_ID]
@@ -1381,8 +1381,8 @@ public Builder clearName() {
*
*
*
*
- *
- * Required. The project, organization or folder on which to execute the request. The
- * format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
+ * organization or folder on which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* organizations/[ORGANIZATION_ID]
* folders/[FOLDER_ID]
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java
index 904ddb52..2fc8bc1f 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java
@@ -27,8 +27,8 @@ public interface ListTimeSeriesRequestOrBuilder
*
*
*
*
- *
- * Required. The project, organization or folder on which to execute the request. The
- * format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
+ * organization or folder on which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* organizations/[ORGANIZATION_ID]
* folders/[FOLDER_ID]
@@ -45,8 +45,8 @@ public interface ListTimeSeriesRequestOrBuilder
*
*
*
*
- *
- * Required. The project, organization or folder on which to execute the request. The
- * format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
+ * organization or folder on which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* organizations/[ORGANIZATION_ID]
* folders/[FOLDER_ID]
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java
index 3de9c35c..44bbc4e6 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java
@@ -421,13 +421,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < timeSeries_.size(); i++) {
output.writeMessage(1, timeSeries_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
for (int i = 0; i < executionErrors_.size(); i++) {
output.writeMessage(3, executionErrors_.get(i));
}
- if (!getUnitBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, unit_);
}
unknownFields.writeTo(output);
@@ -442,13 +442,13 @@ public int getSerializedSize() {
for (int i = 0; i < timeSeries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, timeSeries_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
for (int i = 0; i < executionErrors_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, executionErrors_.get(i));
}
- if (!getUnitBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, unit_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java
index e611cfde..cbc71099 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java
@@ -130,7 +130,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
*
- *
- * Required. The project whose Uptime check configurations are listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose Uptime check configurations are listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -156,7 +157,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. The project whose Uptime check configurations are listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose Uptime check configurations are listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -267,13 +269,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getParentBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
if (pageSize_ != 0) {
output.writeInt32(3, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
}
unknownFields.writeTo(output);
@@ -285,13 +287,13 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getParentBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
}
size += unknownFields.getSerializedSize();
@@ -608,7 +610,8 @@ public Builder mergeFrom(
*
*
*
- * Required. The project whose Uptime check configurations are listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose Uptime check configurations are listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -633,7 +636,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. The project whose Uptime check configurations are listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose Uptime check configurations are listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -658,7 +662,8 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. The project whose Uptime check configurations are listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose Uptime check configurations are listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -682,7 +687,8 @@ public Builder setParent(java.lang.String value) {
*
*
*
- * Required. The project whose Uptime check configurations are listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose Uptime check configurations are listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -702,7 +708,8 @@ public Builder clearParent() {
*
*
*
- * Required. The project whose Uptime check configurations are listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose Uptime check configurations are listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java
index 99c24295..0d0c0632 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java
@@ -27,7 +27,8 @@ public interface ListUptimeCheckConfigsRequestOrBuilder
*
*
*
- * Required. The project whose Uptime check configurations are listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose Uptime check configurations are listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
@@ -42,7 +43,8 @@ public interface ListUptimeCheckConfigsRequestOrBuilder
*
*
*
- * Required. The project whose Uptime check configurations are listed. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
+ * whose Uptime check configurations are listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java
index 8a0c76c8..3f99898d 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java
@@ -297,7 +297,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < uptimeCheckConfigs_.size(); i++) {
output.writeMessage(1, uptimeCheckConfigs_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
if (totalSize_ != 0) {
@@ -316,7 +316,7 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(1, uptimeCheckConfigs_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
if (totalSize_ != 0) {
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java
index 79e88f5c..b115b4c3 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java
@@ -210,7 +210,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (pageSize_ != 0) {
output.writeInt32(2, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
unknownFields.writeTo(output);
@@ -225,7 +225,7 @@ public int getSerializedSize() {
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java
index 91151ef2..68210aed 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java
@@ -277,7 +277,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < uptimeCheckIps_.size(); i++) {
output.writeMessage(1, uptimeCheckIps_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
@@ -292,7 +292,7 @@ public int getSerializedSize() {
for (int i = 0; i < uptimeCheckIps_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, uptimeCheckIps_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java
index a024d932..787f2cd6 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java
@@ -169,89 +169,93 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "unt\030\002 \001(\005\022C\n\006errors\030\003 \003(\01323.google.monit"
+ "oring.v3.CreateTimeSeriesSummary.Error\032@"
+ "\n\005Error\022\"\n\006status\030\001 \001(\0132\022.google.rpc.Sta"
- + "tus\022\023\n\013point_count\030\002 \001(\005\"\\\n\026QueryTimeSer"
- + "iesRequest\022\014\n\004name\030\001 \001(\t\022\r\n\005query\030\007 \001(\t\022"
- + "\021\n\tpage_size\030\t \001(\005\022\022\n\npage_token\030\n \001(\t\"\352"
- + "\001\n\027QueryTimeSeriesResponse\022J\n\026time_serie"
- + "s_descriptor\030\010 \001(\0132*.google.monitoring.v"
- + "3.TimeSeriesDescriptor\022>\n\020time_series_da"
- + "ta\030\t \003(\0132$.google.monitoring.v3.TimeSeri"
- + "esData\022\027\n\017next_page_token\030\n \001(\t\022*\n\016parti"
- + "al_errors\030\013 \003(\0132\022.google.rpc.Status\"Y\n\016Q"
- + "ueryErrorList\0220\n\006errors\030\001 \003(\0132 .google.m"
- + "onitoring.v3.QueryError\022\025\n\rerror_summary"
- + "\030\002 \001(\t2\213\016\n\rMetricService\022\344\001\n ListMonitor"
- + "edResourceDescriptors\022=.google.monitorin"
- + "g.v3.ListMonitoredResourceDescriptorsReq"
- + "uest\032>.google.monitoring.v3.ListMonitore"
- + "dResourceDescriptorsResponse\"A\202\323\344\223\0024\0222/v"
- + "3/{name=projects/*}/monitoredResourceDes"
- + "criptors\332A\004name\022\314\001\n\036GetMonitoredResource"
- + "Descriptor\022;.google.monitoring.v3.GetMon"
- + "itoredResourceDescriptorRequest\032\'.google"
- + ".api.MonitoredResourceDescriptor\"D\202\323\344\223\0027"
- + "\0225/v3/{name=projects/*/monitoredResource"
- + "Descriptors/**}\332A\004name\022\270\001\n\025ListMetricDes"
- + "criptors\0222.google.monitoring.v3.ListMetr"
- + "icDescriptorsRequest\0323.google.monitoring"
- + ".v3.ListMetricDescriptorsResponse\"6\202\323\344\223\002"
- + ")\022\'/v3/{name=projects/*}/metricDescripto"
- + "rs\332A\004name\022\240\001\n\023GetMetricDescriptor\0220.goog"
- + "le.monitoring.v3.GetMetricDescriptorRequ"
- + "est\032\034.google.api.MetricDescriptor\"9\202\323\344\223\002"
- + ",\022*/v3/{name=projects/*/metricDescriptor"
- + "s/**}\332A\004name\022\310\001\n\026CreateMetricDescriptor\022"
- + "3.google.monitoring.v3.CreateMetricDescr"
- + "iptorRequest\032\034.google.api.MetricDescript"
- + "or\"[\202\323\344\223\002<\"\'/v3/{name=projects/*}/metric"
- + "Descriptors:\021metric_descriptor\332A\026name,me"
- + "tric_descriptor\022\240\001\n\026DeleteMetricDescript"
- + "or\0223.google.monitoring.v3.DeleteMetricDe"
- + "scriptorRequest\032\026.google.protobuf.Empty\""
- + "9\202\323\344\223\002,**/v3/{name=projects/*/metricDesc"
- + "riptors/**}\332A\004name\022\376\001\n\016ListTimeSeries\022+."
- + "google.monitoring.v3.ListTimeSeriesReque"
- + "st\032,.google.monitoring.v3.ListTimeSeries"
- + "Response\"\220\001\202\323\344\223\002n\022 /v3/{name=projects/*}"
- + "/timeSeriesZ\'\022%/v3/{name=organizations/*"
- + "}/timeSeriesZ!\022\037/v3/{name=folders/*}/tim"
- + "eSeries\332A\031name,filter,interval,view\022\231\001\n\020"
- + "CreateTimeSeries\022-.google.monitoring.v3."
- + "CreateTimeSeriesRequest\032\026.google.protobu"
- + "f.Empty\">\202\323\344\223\002%\" /v3/{name=projects/*}/t"
- + "imeSeries:\001*\332A\020name,time_series\032\332\001\312A\031mon"
- + "itoring.googleapis.com\322A\272\001https://www.go"
- + "ogleapis.com/auth/cloud-platform,https:/"
- + "/www.googleapis.com/auth/monitoring,http"
- + "s://www.googleapis.com/auth/monitoring.r"
- + "ead,https://www.googleapis.com/auth/moni"
- + "toring.writeB\206\010\n\030com.google.monitoring.v"
- + "3B\022MetricServiceProtoP\001Z>google.golang.o"
- + "rg/genproto/googleapis/monitoring/v3;mon"
- + "itoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032G"
- + "oogle\\Cloud\\Monitoring\\V3\352\002\035Google::Clou"
- + "d::Monitoring::V3\352A\360\001\n*monitoring.google"
- + "apis.com/MetricDescriptor\022;projects/{pro"
- + "ject}/metricDescriptors/{metric_descript"
- + "or=**}\022Eorganizations/{organization}/met"
- + "ricDescriptors/{metric_descriptor=**}\0229f"
- + "olders/{folder}/metricDescriptors/{metri"
- + "c_descriptor=**}\022\001* \001\352A\267\002\n5monitoring.go"
- + "ogleapis.com/MonitoredResourceDescriptor"
- + "\022Oprojects/{project}/monitoredResourceDe"
- + "scriptors/{monitored_resource_descriptor"
- + "}\022Yorganizations/{organization}/monitore"
- + "dResourceDescriptors/{monitored_resource"
- + "_descriptor}\022Mfolders/{folder}/monitored"
- + "ResourceDescriptors/{monitored_resource_"
- + "descriptor}\022\001* \001\352AQ\n#monitoring.googleap"
- + "is.com/Workspace\022\022projects/{project}\022\026wo"
- + "rkspaces/{workspace}\352A\265\001\n$monitoring.goo"
- + "gleapis.com/TimeSeries\022+projects/{projec"
- + "t}/timeSeries/{time_series}\0225organizatio"
- + "ns/{organization}/timeSeries/{time_serie"
- + "s}\022)folders/{folder}/timeSeries/{time_se"
- + "ries}b\006proto3"
+ + "tus\022\023\n\013point_count\030\002 \001(\005\"f\n\026QueryTimeSer"
+ + "iesRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\022\n\005query\030\007"
+ + " \001(\tB\003\340A\002\022\021\n\tpage_size\030\t \001(\005\022\022\n\npage_tok"
+ + "en\030\n \001(\t\"\352\001\n\027QueryTimeSeriesResponse\022J\n\026"
+ + "time_series_descriptor\030\010 \001(\0132*.google.mo"
+ + "nitoring.v3.TimeSeriesDescriptor\022>\n\020time"
+ + "_series_data\030\t \003(\0132$.google.monitoring.v"
+ + "3.TimeSeriesData\022\027\n\017next_page_token\030\n \001("
+ + "\t\022*\n\016partial_errors\030\013 \003(\0132\022.google.rpc.S"
+ + "tatus\"Y\n\016QueryErrorList\0220\n\006errors\030\001 \003(\0132"
+ + " .google.monitoring.v3.QueryError\022\025\n\rerr"
+ + "or_summary\030\002 \001(\t2\274\017\n\rMetricService\022\344\001\n L"
+ + "istMonitoredResourceDescriptors\022=.google"
+ + ".monitoring.v3.ListMonitoredResourceDesc"
+ + "riptorsRequest\032>.google.monitoring.v3.Li"
+ + "stMonitoredResourceDescriptorsResponse\"A"
+ + "\202\323\344\223\0024\0222/v3/{name=projects/*}/monitoredR"
+ + "esourceDescriptors\332A\004name\022\314\001\n\036GetMonitor"
+ + "edResourceDescriptor\022;.google.monitoring"
+ + ".v3.GetMonitoredResourceDescriptorReques"
+ + "t\032\'.google.api.MonitoredResourceDescript"
+ + "or\"D\202\323\344\223\0027\0225/v3/{name=projects/*/monitor"
+ + "edResourceDescriptors/**}\332A\004name\022\270\001\n\025Lis"
+ + "tMetricDescriptors\0222.google.monitoring.v"
+ + "3.ListMetricDescriptorsRequest\0323.google."
+ + "monitoring.v3.ListMetricDescriptorsRespo"
+ + "nse\"6\202\323\344\223\002)\022\'/v3/{name=projects/*}/metri"
+ + "cDescriptors\332A\004name\022\240\001\n\023GetMetricDescrip"
+ + "tor\0220.google.monitoring.v3.GetMetricDesc"
+ + "riptorRequest\032\034.google.api.MetricDescrip"
+ + "tor\"9\202\323\344\223\002,\022*/v3/{name=projects/*/metric"
+ + "Descriptors/**}\332A\004name\022\310\001\n\026CreateMetricD"
+ + "escriptor\0223.google.monitoring.v3.CreateM"
+ + "etricDescriptorRequest\032\034.google.api.Metr"
+ + "icDescriptor\"[\202\323\344\223\002<\"\'/v3/{name=projects"
+ + "/*}/metricDescriptors:\021metric_descriptor"
+ + "\332A\026name,metric_descriptor\022\240\001\n\026DeleteMetr"
+ + "icDescriptor\0223.google.monitoring.v3.Dele"
+ + "teMetricDescriptorRequest\032\026.google.proto"
+ + "buf.Empty\"9\202\323\344\223\002,**/v3/{name=projects/*/"
+ + "metricDescriptors/**}\332A\004name\022\376\001\n\016ListTim"
+ + "eSeries\022+.google.monitoring.v3.ListTimeS"
+ + "eriesRequest\032,.google.monitoring.v3.List"
+ + "TimeSeriesResponse\"\220\001\202\323\344\223\002n\022 /v3/{name=p"
+ + "rojects/*}/timeSeriesZ\'\022%/v3/{name=organ"
+ + "izations/*}/timeSeriesZ!\022\037/v3/{name=fold"
+ + "ers/*}/timeSeries\332A\031name,filter,interval"
+ + ",view\022\231\001\n\020CreateTimeSeries\022-.google.moni"
+ + "toring.v3.CreateTimeSeriesRequest\032\026.goog"
+ + "le.protobuf.Empty\">\202\323\344\223\002%\" /v3/{name=pro"
+ + "jects/*}/timeSeries:\001*\332A\020name,time_serie"
+ + "s\022\256\001\n\027CreateServiceTimeSeries\022-.google.m"
+ + "onitoring.v3.CreateTimeSeriesRequest\032\026.g"
+ + "oogle.protobuf.Empty\"L\202\323\344\223\0023\"./v3/{name="
+ + "projects/*}/timeSeries:createService:\001*\332"
+ + "A\020name,time_series\032\332\001\312A\031monitoring.googl"
+ + "eapis.com\322A\272\001https://www.googleapis.com/"
+ + "auth/cloud-platform,https://www.googleap"
+ + "is.com/auth/monitoring,https://www.googl"
+ + "eapis.com/auth/monitoring.read,https://w"
+ + "ww.googleapis.com/auth/monitoring.writeB"
+ + "\206\010\n\030com.google.monitoring.v3B\022MetricServ"
+ + "iceProtoP\001Z>google.golang.org/genproto/g"
+ + "oogleapis/monitoring/v3;monitoring\252\002\032Goo"
+ + "gle.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\M"
+ + "onitoring\\V3\352\002\035Google::Cloud::Monitoring"
+ + "::V3\352A\360\001\n*monitoring.googleapis.com/Metr"
+ + "icDescriptor\022;projects/{project}/metricD"
+ + "escriptors/{metric_descriptor=**}\022Eorgan"
+ + "izations/{organization}/metricDescriptor"
+ + "s/{metric_descriptor=**}\0229folders/{folde"
+ + "r}/metricDescriptors/{metric_descriptor="
+ + "**}\022\001* \001\352A\267\002\n5monitoring.googleapis.com/"
+ + "MonitoredResourceDescriptor\022Oprojects/{p"
+ + "roject}/monitoredResourceDescriptors/{mo"
+ + "nitored_resource_descriptor}\022Yorganizati"
+ + "ons/{organization}/monitoredResourceDesc"
+ + "riptors/{monitored_resource_descriptor}\022"
+ + "Mfolders/{folder}/monitoredResourceDescr"
+ + "iptors/{monitored_resource_descriptor}\022\001"
+ + "* \001\352AQ\n#monitoring.googleapis.com/Worksp"
+ + "ace\022\022projects/{project}\022\026workspaces/{wor"
+ + "kspace}\352A\265\001\n$monitoring.googleapis.com/T"
+ + "imeSeries\022+projects/{project}/timeSeries"
+ + "/{time_series}\0225organizations/{organizat"
+ + "ion}/timeSeries/{time_series}\022)folders/{"
+ + "folder}/timeSeries/{time_series}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java
index ca1eedb1..ef013956 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java
@@ -238,7 +238,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (mutateTime_ != null) {
output.writeMessage(1, getMutateTime());
}
- if (!getMutatedByBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mutatedBy_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mutatedBy_);
}
unknownFields.writeTo(output);
@@ -253,7 +253,7 @@ public int getSerializedSize() {
if (mutateTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMutateTime());
}
- if (!getMutatedByBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mutatedBy_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mutatedBy_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java
index 1b29503a..a3b3259c 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java
@@ -1127,18 +1127,18 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getTypeBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
- if (!getDisplayNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_);
}
- if (!getDescriptionBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5);
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
@@ -1167,13 +1167,13 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getTypeBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
- if (!getDisplayNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_);
}
- if (!getDescriptionBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_);
}
for (java.util.Map.Entry
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
- * string name = 1;
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The name.
*/
@@ -162,11 +163,12 @@ public java.lang.String getName() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
- * string name = 1;
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for name.
*/
@@ -194,7 +196,7 @@ public com.google.protobuf.ByteString getNameBytes() {
* The default time zone is in UTC.
* string query = 7;
+ * string query = 7 [(.google.api.field_behavior) = REQUIRED];
*
* @return The query.
*/
@@ -219,7 +221,7 @@ public java.lang.String getQuery() {
* The default time zone is in UTC.
* string query = 7;
+ * string query = 7 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for query.
*/
@@ -321,16 +323,16 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
- if (!getQueryBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, query_);
}
if (pageSize_ != 0) {
output.writeInt32(9, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, pageToken_);
}
unknownFields.writeTo(output);
@@ -342,16 +344,16 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
- if (!getQueryBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, query_);
}
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, pageSize_);
}
- if (!getPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, pageToken_);
}
size += unknownFields.getSerializedSize();
@@ -676,11 +678,12 @@ public Builder mergeFrom(
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
- * string name = 1;
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The name.
*/
@@ -699,11 +702,12 @@ public java.lang.String getName() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
- * string name = 1;
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for name.
*/
@@ -722,11 +726,12 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
- * string name = 1;
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The name to set.
* @return This builder for chaining.
@@ -744,11 +749,12 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
- * string name = 1;
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
@@ -762,11 +768,12 @@ public Builder clearName() {
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
- * string name = 1;
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for name to set.
* @return This builder for chaining.
@@ -792,7 +799,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
* The default time zone is in UTC.
* string query = 7;
+ * string query = 7 [(.google.api.field_behavior) = REQUIRED];
*
* @return The query.
*/
@@ -816,7 +823,7 @@ public java.lang.String getQuery() {
* The default time zone is in UTC.
* string query = 7;
+ * string query = 7 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for query.
*/
@@ -840,7 +847,7 @@ public com.google.protobuf.ByteString getQueryBytes() {
* The default time zone is in UTC.
* string query = 7;
+ * string query = 7 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The query to set.
* @return This builder for chaining.
@@ -863,7 +870,7 @@ public Builder setQuery(java.lang.String value) {
* The default time zone is in UTC.
* string query = 7;
+ * string query = 7 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
@@ -882,7 +889,7 @@ public Builder clearQuery() {
* The default time zone is in UTC.
* string query = 7;
+ * string query = 7 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for query to set.
* @return This builder for chaining.
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java
index fb661f8c..6efbfe4c 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java
@@ -27,11 +27,12 @@ public interface QueryTimeSeriesRequestOrBuilder
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
- * string name = 1;
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The name.
*/
@@ -40,11 +41,12 @@ public interface QueryTimeSeriesRequestOrBuilder
*
*
*
- * Required. The project on which to execute the request. The format is:
+ * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
+ * which to execute the request. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*
*
- * string name = 1;
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for name.
*/
@@ -59,7 +61,7 @@ public interface QueryTimeSeriesRequestOrBuilder
* The default time zone is in UTC.
* string query = 7;
+ * string query = 7 [(.google.api.field_behavior) = REQUIRED];
*
* @return The query.
*/
@@ -73,7 +75,7 @@ public interface QueryTimeSeriesRequestOrBuilder
* The default time zone is in UTC.
* string query = 7;
+ * string query = 7 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for query.
*/
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java
index 80298e9e..0d72b9d7 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java
@@ -426,7 +426,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < timeSeriesData_.size(); i++) {
output.writeMessage(9, timeSeriesData_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, nextPageToken_);
}
for (int i = 0; i < partialErrors_.size(); i++) {
@@ -448,7 +448,7 @@ public int getSerializedSize() {
for (int i = 0; i < timeSeriesData_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, timeSeriesData_.get(i));
}
- if (!getNextPageTokenBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nextPageToken_);
}
for (int i = 0; i < partialErrors_.size(); i++) {
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java
index c057eae7..5d580e90 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java
@@ -22,9 +22,7 @@
*
*
*
- * Range of numerical values, inclusive of `min` and exclusive of `max`. If the
- * open range "< range.max" is desired, set `range.min = -infinity`. If the open
- * range ">= range.min" is desired, set `range.max = infinity`.
+ * Range of numerical values within `min` and `max`.
*
*
* Protobuf type {@code google.monitoring.v3.Range}
@@ -325,9 +323,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Range of numerical values, inclusive of `min` and exclusive of `max`. If the
- * open range "< range.max" is desired, set `range.min = -infinity`. If the open
- * range ">= range.min" is desired, set `range.max = infinity`.
+ * Range of numerical values within `min` and `max`.
*
*
* Protobuf type {@code google.monitoring.v3.Range}
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java
index b8fbe2ec..6b6ad281 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java
@@ -180,7 +180,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
unknownFields.writeTo(output);
@@ -192,7 +192,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java
index c5277c12..d1a6026a 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java
@@ -65,6 +65,7 @@ private Service(
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
+ int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
@@ -205,6 +206,21 @@ private Service(
telemetry_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 114:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ userLabels_ =
+ com.google.protobuf.MapField.newMapField(
+ UserLabelsDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000001;
+ }
+ com.google.protobuf.MapEntry
+ * Labels which have been used to annotate the service. Label keys must start
+ * with a letter. Label keys and values may contain lowercase letters,
+ * numbers, underscores, and dashes. Label keys and values have a maximum
+ * length of 63 characters, and must be less than 128 bytes in size. Up to 64
+ * label entries may be stored. For labels which do not have a semantic value,
+ * the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 14;
+ */
+ @java.lang.Override
+ public boolean containsUserLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetUserLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getUserLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * Labels which have been used to annotate the service. Label keys must start
+ * with a letter. Label keys and values may contain lowercase letters,
+ * numbers, underscores, and dashes. Label keys and values have a maximum
+ * length of 63 characters, and must be less than 128 bytes in size. Up to 64
+ * label entries may be stored. For labels which do not have a semantic value,
+ * the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 14;
+ */
+ @java.lang.Override
+ public java.util.Map
+ * Labels which have been used to annotate the service. Label keys must start
+ * with a letter. Label keys and values may contain lowercase letters,
+ * numbers, underscores, and dashes. Label keys and values have a maximum
+ * length of 63 characters, and must be less than 128 bytes in size. Up to 64
+ * label entries may be stored. For labels which do not have a semantic value,
+ * the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 14;
+ */
+ @java.lang.Override
+ public java.lang.String getUserLabelsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map
+ * Labels which have been used to annotate the service. Label keys must start
+ * with a letter. Label keys and values may contain lowercase letters,
+ * numbers, underscores, and dashes. Label keys and values have a maximum
+ * length of 63 characters, and must be less than 128 bytes in size. Up to 64
+ * label entries may be stored. For labels which do not have a semantic value,
+ * the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 14;
+ */
+ @java.lang.Override
+ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map
+ * Labels which have been used to annotate the service. Label keys must start
+ * with a letter. Label keys and values may contain lowercase letters,
+ * numbers, underscores, and dashes. Label keys and values have a maximum
+ * length of 63 characters, and must be less than 128 bytes in size. Up to 64
+ * label entries may be stored. For labels which do not have a semantic value,
+ * the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 14;
+ */
+ @java.lang.Override
+ public boolean containsUserLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetUserLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getUserLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * Labels which have been used to annotate the service. Label keys must start
+ * with a letter. Label keys and values may contain lowercase letters,
+ * numbers, underscores, and dashes. Label keys and values have a maximum
+ * length of 63 characters, and must be less than 128 bytes in size. Up to 64
+ * label entries may be stored. For labels which do not have a semantic value,
+ * the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 14;
+ */
+ @java.lang.Override
+ public java.util.Map
+ * Labels which have been used to annotate the service. Label keys must start
+ * with a letter. Label keys and values may contain lowercase letters,
+ * numbers, underscores, and dashes. Label keys and values have a maximum
+ * length of 63 characters, and must be less than 128 bytes in size. Up to 64
+ * label entries may be stored. For labels which do not have a semantic value,
+ * the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 14;
+ */
+ @java.lang.Override
+ public java.lang.String getUserLabelsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map
+ * Labels which have been used to annotate the service. Label keys must start
+ * with a letter. Label keys and values may contain lowercase letters,
+ * numbers, underscores, and dashes. Label keys and values have a maximum
+ * length of 63 characters, and must be less than 128 bytes in size. Up to 64
+ * label entries may be stored. For labels which do not have a semantic value,
+ * the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 14;
+ */
+ @java.lang.Override
+ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map
+ * Labels which have been used to annotate the service. Label keys must start
+ * with a letter. Label keys and values may contain lowercase letters,
+ * numbers, underscores, and dashes. Label keys and values have a maximum
+ * length of 63 characters, and must be less than 128 bytes in size. Up to 64
+ * label entries may be stored. For labels which do not have a semantic value,
+ * the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 14;
+ */
+ public Builder removeUserLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableUserLabels().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map
+ * Labels which have been used to annotate the service. Label keys must start
+ * with a letter. Label keys and values may contain lowercase letters,
+ * numbers, underscores, and dashes. Label keys and values have a maximum
+ * length of 63 characters, and must be less than 128 bytes in size. Up to 64
+ * label entries may be stored. For labels which do not have a semantic value,
+ * the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 14;
+ */
+ public Builder putUserLabels(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableUserLabels().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Labels which have been used to annotate the service. Label keys must start
+ * with a letter. Label keys and values may contain lowercase letters,
+ * numbers, underscores, and dashes. Label keys and values have a maximum
+ * length of 63 characters, and must be less than 128 bytes in size. Up to 64
+ * label entries may be stored. For labels which do not have a semantic value,
+ * the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 14;
+ */
+ public Builder putAllUserLabels(java.util.Map
+ * Labels which have been used to annotate the service-level objective. Label
+ * keys must start with a letter. Label keys and values may contain lowercase
+ * letters, numbers, underscores, and dashes. Label keys and values have a
+ * maximum length of 63 characters, and must be less than 128 bytes in size.
+ * Up to 64 label entries may be stored. For labels which do not have a
+ * semantic value, the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 12;
+ */
+ @java.lang.Override
+ public boolean containsUserLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetUserLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getUserLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * Labels which have been used to annotate the service-level objective. Label
+ * keys must start with a letter. Label keys and values may contain lowercase
+ * letters, numbers, underscores, and dashes. Label keys and values have a
+ * maximum length of 63 characters, and must be less than 128 bytes in size.
+ * Up to 64 label entries may be stored. For labels which do not have a
+ * semantic value, the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 12;
+ */
+ @java.lang.Override
+ public java.util.Map
+ * Labels which have been used to annotate the service-level objective. Label
+ * keys must start with a letter. Label keys and values may contain lowercase
+ * letters, numbers, underscores, and dashes. Label keys and values have a
+ * maximum length of 63 characters, and must be less than 128 bytes in size.
+ * Up to 64 label entries may be stored. For labels which do not have a
+ * semantic value, the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 12;
+ */
+ @java.lang.Override
+ public java.lang.String getUserLabelsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map
+ * Labels which have been used to annotate the service-level objective. Label
+ * keys must start with a letter. Label keys and values may contain lowercase
+ * letters, numbers, underscores, and dashes. Label keys and values have a
+ * maximum length of 63 characters, and must be less than 128 bytes in size.
+ * Up to 64 label entries may be stored. For labels which do not have a
+ * semantic value, the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 12;
+ */
+ @java.lang.Override
+ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map
+ * Labels which have been used to annotate the service-level objective. Label
+ * keys must start with a letter. Label keys and values may contain lowercase
+ * letters, numbers, underscores, and dashes. Label keys and values have a
+ * maximum length of 63 characters, and must be less than 128 bytes in size.
+ * Up to 64 label entries may be stored. For labels which do not have a
+ * semantic value, the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 12;
+ */
+ @java.lang.Override
+ public boolean containsUserLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetUserLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getUserLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * Labels which have been used to annotate the service-level objective. Label
+ * keys must start with a letter. Label keys and values may contain lowercase
+ * letters, numbers, underscores, and dashes. Label keys and values have a
+ * maximum length of 63 characters, and must be less than 128 bytes in size.
+ * Up to 64 label entries may be stored. For labels which do not have a
+ * semantic value, the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 12;
+ */
+ @java.lang.Override
+ public java.util.Map
+ * Labels which have been used to annotate the service-level objective. Label
+ * keys must start with a letter. Label keys and values may contain lowercase
+ * letters, numbers, underscores, and dashes. Label keys and values have a
+ * maximum length of 63 characters, and must be less than 128 bytes in size.
+ * Up to 64 label entries may be stored. For labels which do not have a
+ * semantic value, the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 12;
+ */
+ @java.lang.Override
+ public java.lang.String getUserLabelsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map
+ * Labels which have been used to annotate the service-level objective. Label
+ * keys must start with a letter. Label keys and values may contain lowercase
+ * letters, numbers, underscores, and dashes. Label keys and values have a
+ * maximum length of 63 characters, and must be less than 128 bytes in size.
+ * Up to 64 label entries may be stored. For labels which do not have a
+ * semantic value, the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 12;
+ */
+ @java.lang.Override
+ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map
+ * Labels which have been used to annotate the service-level objective. Label
+ * keys must start with a letter. Label keys and values may contain lowercase
+ * letters, numbers, underscores, and dashes. Label keys and values have a
+ * maximum length of 63 characters, and must be less than 128 bytes in size.
+ * Up to 64 label entries may be stored. For labels which do not have a
+ * semantic value, the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 12;
+ */
+ public Builder removeUserLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableUserLabels().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map
+ * Labels which have been used to annotate the service-level objective. Label
+ * keys must start with a letter. Label keys and values may contain lowercase
+ * letters, numbers, underscores, and dashes. Label keys and values have a
+ * maximum length of 63 characters, and must be less than 128 bytes in size.
+ * Up to 64 label entries may be stored. For labels which do not have a
+ * semantic value, the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 12;
+ */
+ public Builder putUserLabels(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableUserLabels().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Labels which have been used to annotate the service-level objective. Label
+ * keys must start with a letter. Label keys and values may contain lowercase
+ * letters, numbers, underscores, and dashes. Label keys and values have a
+ * maximum length of 63 characters, and must be less than 128 bytes in size.
+ * Up to 64 label entries may be stored. For labels which do not have a
+ * semantic value, the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 12;
+ */
+ public Builder putAllUserLabels(java.util.Map
+ * Labels which have been used to annotate the service-level objective. Label
+ * keys must start with a letter. Label keys and values may contain lowercase
+ * letters, numbers, underscores, and dashes. Label keys and values have a
+ * maximum length of 63 characters, and must be less than 128 bytes in size.
+ * Up to 64 label entries may be stored. For labels which do not have a
+ * semantic value, the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 12;
+ */
+ int getUserLabelsCount();
+ /**
+ *
+ *
+ *
+ * Labels which have been used to annotate the service-level objective. Label
+ * keys must start with a letter. Label keys and values may contain lowercase
+ * letters, numbers, underscores, and dashes. Label keys and values have a
+ * maximum length of 63 characters, and must be less than 128 bytes in size.
+ * Up to 64 label entries may be stored. For labels which do not have a
+ * semantic value, the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 12;
+ */
+ boolean containsUserLabels(java.lang.String key);
+ /** Use {@link #getUserLabelsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map
+ * Labels which have been used to annotate the service-level objective. Label
+ * keys must start with a letter. Label keys and values may contain lowercase
+ * letters, numbers, underscores, and dashes. Label keys and values have a
+ * maximum length of 63 characters, and must be less than 128 bytes in size.
+ * Up to 64 label entries may be stored. For labels which do not have a
+ * semantic value, the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 12;
+ */
+ java.util.Map
+ * Labels which have been used to annotate the service-level objective. Label
+ * keys must start with a letter. Label keys and values may contain lowercase
+ * letters, numbers, underscores, and dashes. Label keys and values have a
+ * maximum length of 63 characters, and must be less than 128 bytes in size.
+ * Up to 64 label entries may be stored. For labels which do not have a
+ * semantic value, the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 12;
+ */
+ java.lang.String getUserLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+ /**
+ *
+ *
+ *
+ * Labels which have been used to annotate the service-level objective. Label
+ * keys must start with a letter. Label keys and values may contain lowercase
+ * letters, numbers, underscores, and dashes. Label keys and values have a
+ * maximum length of 63 characters, and must be less than 128 bytes in size.
+ * Up to 64 label entries may be stored. For labels which do not have a
+ * semantic value, the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 12;
+ */
+ java.lang.String getUserLabelsOrThrow(java.lang.String key);
+
public com.google.monitoring.v3.ServiceLevelObjective.PeriodCase getPeriodCase();
}
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java
index 7a15d846..8f343760 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java
@@ -59,10 +59,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_monitoring_v3_Service_Telemetry_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_Service_UserLabelsEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -117,104 +125,112 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
"\n\"google/monitoring/v3/service.proto\022\024go"
- + "ogle.monitoring.v3\032\031google/api/resource."
- + "proto\032\036google/protobuf/duration.proto\032\037g"
- + "oogle/protobuf/timestamp.proto\032!google/t"
- + "ype/calendar_period.proto\"\322\010\n\007Service\022\014\n"
- + "\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\0226\n\006cus"
- + "tom\030\006 \001(\0132$.google.monitoring.v3.Service"
- + ".CustomH\000\022=\n\napp_engine\030\007 \001(\0132\'.google.m"
- + "onitoring.v3.Service.AppEngineH\000\022G\n\017clou"
- + "d_endpoints\030\010 \001(\0132,.google.monitoring.v3"
- + ".Service.CloudEndpointsH\000\022C\n\rcluster_ist"
- + "io\030\t \001(\0132*.google.monitoring.v3.Service."
- + "ClusterIstioH\000\022=\n\nmesh_istio\030\n \001(\0132\'.goo"
- + "gle.monitoring.v3.Service.MeshIstioH\000\022V\n"
- + "\027istio_canonical_service\030\013 \001(\01323.google."
- + "monitoring.v3.Service.IstioCanonicalServ"
- + "iceH\000\022:\n\ttelemetry\030\r \001(\0132\'.google.monito"
- + "ring.v3.Service.Telemetry\032\010\n\006Custom\032\036\n\tA"
- + "ppEngine\022\021\n\tmodule_id\030\001 \001(\t\032!\n\016CloudEndp"
- + "oints\022\017\n\007service\030\001 \001(\t\032g\n\014ClusterIstio\022\020"
- + "\n\010location\030\001 \001(\t\022\024\n\014cluster_name\030\002 \001(\t\022\031"
- + "\n\021service_namespace\030\003 \001(\t\022\024\n\014service_nam"
- + "e\030\004 \001(\t\032N\n\tMeshIstio\022\020\n\010mesh_uid\030\001 \001(\t\022\031"
- + "\n\021service_namespace\030\003 \001(\t\022\024\n\014service_nam"
- + "e\030\004 \001(\t\032i\n\025IstioCanonicalService\022\020\n\010mesh"
- + "_uid\030\001 \001(\t\022#\n\033canonical_service_namespac"
- + "e\030\003 \001(\t\022\031\n\021canonical_service\030\004 \001(\t\032\"\n\tTe"
- + "lemetry\022\025\n\rresource_name\030\001 \001(\t:\247\001\352A\243\001\n!m"
- + "onitoring.googleapis.com/Service\022%projec"
- + "ts/{project}/services/{service}\022/organiz"
- + "ations/{organization}/services/{service}"
- + "\022#folders/{folder}/services/{service}\022\001*"
- + "B\014\n\nidentifier\"\221\005\n\025ServiceLevelObjective"
- + "\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\013 \001(\t\022L\n\027"
- + "service_level_indicator\030\003 \001(\0132+.google.m"
- + "onitoring.v3.ServiceLevelIndicator\022\014\n\004go"
- + "al\030\004 \001(\001\0223\n\016rolling_period\030\005 \001(\0132\031.googl"
- + "e.protobuf.DurationH\000\0226\n\017calendar_period"
- + "\030\006 \001(\0162\033.google.type.CalendarPeriodH\000\"4\n"
- + "\004View\022\024\n\020VIEW_UNSPECIFIED\020\000\022\010\n\004FULL\020\002\022\014\n"
- + "\010EXPLICIT\020\001:\312\002\352A\306\002\n/monitoring.googleapi"
- + "s.com/ServiceLevelObjective\022Vprojects/{p"
- + "roject}/services/{service}/serviceLevelO"
- + "bjectives/{service_level_objective}\022`org"
- + "anizations/{organization}/services/{serv"
- + "ice}/serviceLevelObjectives/{service_lev"
- + "el_objective}\022Tfolders/{folder}/services"
- + "/{service}/serviceLevelObjectives/{servi"
- + "ce_level_objective}\022\001* \001B\010\n\006period\"\324\001\n\025S"
- + "erviceLevelIndicator\0223\n\tbasic_sli\030\004 \001(\0132"
- + "\036.google.monitoring.v3.BasicSliH\000\022>\n\rreq"
- + "uest_based\030\001 \001(\0132%.google.monitoring.v3."
- + "RequestBasedSliH\000\022>\n\rwindows_based\030\002 \001(\013"
- + "2%.google.monitoring.v3.WindowsBasedSliH"
- + "\000B\006\n\004type\"\266\002\n\010BasicSli\022\016\n\006method\030\007 \003(\t\022\020"
- + "\n\010location\030\010 \003(\t\022\017\n\007version\030\t \003(\t\022K\n\014ava"
- + "ilability\030\002 \001(\01323.google.monitoring.v3.B"
- + "asicSli.AvailabilityCriteriaH\000\022A\n\007latenc"
- + "y\030\003 \001(\0132..google.monitoring.v3.BasicSli."
- + "LatencyCriteriaH\000\032\026\n\024AvailabilityCriteri"
- + "a\032?\n\017LatencyCriteria\022,\n\tthreshold\030\003 \001(\0132"
- + "\031.google.protobuf.DurationB\016\n\014sli_criter"
- + "ia\"!\n\005Range\022\013\n\003min\030\001 \001(\001\022\013\n\003max\030\002 \001(\001\"\241\001"
- + "\n\017RequestBasedSli\022A\n\020good_total_ratio\030\001 "
- + "\001(\0132%.google.monitoring.v3.TimeSeriesRat"
- + "ioH\000\022A\n\020distribution_cut\030\003 \001(\0132%.google."
- + "monitoring.v3.DistributionCutH\000B\010\n\006metho"
- + "d\"h\n\017TimeSeriesRatio\022\033\n\023good_service_fil"
- + "ter\030\004 \001(\t\022\032\n\022bad_service_filter\030\005 \001(\t\022\034\n"
- + "\024total_service_filter\030\006 \001(\t\"Z\n\017Distribut"
- + "ionCut\022\033\n\023distribution_filter\030\004 \001(\t\022*\n\005r"
- + "ange\030\005 \001(\0132\033.google.monitoring.v3.Range\""
- + "\203\005\n\017WindowsBasedSli\022 \n\026good_bad_metric_f"
- + "ilter\030\005 \001(\tH\000\022`\n\032good_total_ratio_thresh"
- + "old\030\002 \001(\0132:.google.monitoring.v3.Windows"
- + "BasedSli.PerformanceThresholdH\000\022Q\n\024metri"
- + "c_mean_in_range\030\006 \001(\01321.google.monitorin"
- + "g.v3.WindowsBasedSli.MetricRangeH\000\022P\n\023me"
- + "tric_sum_in_range\030\007 \001(\01321.google.monitor"
- + "ing.v3.WindowsBasedSli.MetricRangeH\000\0220\n\r"
- + "window_period\030\004 \001(\0132\031.google.protobuf.Du"
- + "ration\032\260\001\n\024PerformanceThreshold\022<\n\013perfo"
- + "rmance\030\001 \001(\0132%.google.monitoring.v3.Requ"
- + "estBasedSliH\000\022?\n\025basic_sli_performance\030\003"
- + " \001(\0132\036.google.monitoring.v3.BasicSliH\000\022\021"
- + "\n\tthreshold\030\002 \001(\001B\006\n\004type\032N\n\013MetricRange"
- + "\022\023\n\013time_series\030\001 \001(\t\022*\n\005range\030\004 \001(\0132\033.g"
- + "oogle.monitoring.v3.RangeB\022\n\020window_crit"
- + "erionB\316\001\n\030com.google.monitoring.v3B\026Serv"
- + "iceMonitoringProtoP\001Z>google.golang.org/"
- + "genproto/googleapis/monitoring/v3;monito"
- + "ring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Goog"
- + "le\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::"
- + "Monitoring::V3b\006proto3"
+ + "ogle.monitoring.v3\032\037google/api/field_beh"
+ + "avior.proto\032\031google/api/resource.proto\032\036"
+ + "google/protobuf/duration.proto\032\037google/p"
+ + "rotobuf/timestamp.proto\032!google/type/cal"
+ + "endar_period.proto\"\311\t\n\007Service\022\014\n\004name\030\001"
+ + " \001(\t\022\024\n\014display_name\030\002 \001(\t\0226\n\006custom\030\006 \001"
+ + "(\0132$.google.monitoring.v3.Service.Custom"
+ + "H\000\022=\n\napp_engine\030\007 \001(\0132\'.google.monitori"
+ + "ng.v3.Service.AppEngineH\000\022G\n\017cloud_endpo"
+ + "ints\030\010 \001(\0132,.google.monitoring.v3.Servic"
+ + "e.CloudEndpointsH\000\022C\n\rcluster_istio\030\t \001("
+ + "\0132*.google.monitoring.v3.Service.Cluster"
+ + "IstioH\000\022=\n\nmesh_istio\030\n \001(\0132\'.google.mon"
+ + "itoring.v3.Service.MeshIstioH\000\022V\n\027istio_"
+ + "canonical_service\030\013 \001(\01323.google.monitor"
+ + "ing.v3.Service.IstioCanonicalServiceH\000\022:"
+ + "\n\ttelemetry\030\r \001(\0132\'.google.monitoring.v3"
+ + ".Service.Telemetry\022B\n\013user_labels\030\016 \003(\0132"
+ + "-.google.monitoring.v3.Service.UserLabel"
+ + "sEntry\032\010\n\006Custom\032\036\n\tAppEngine\022\021\n\tmodule_"
+ + "id\030\001 \001(\t\032!\n\016CloudEndpoints\022\017\n\007service\030\001 "
+ + "\001(\t\032g\n\014ClusterIstio\022\020\n\010location\030\001 \001(\t\022\024\n"
+ + "\014cluster_name\030\002 \001(\t\022\031\n\021service_namespace"
+ + "\030\003 \001(\t\022\024\n\014service_name\030\004 \001(\t\032N\n\tMeshIsti"
+ + "o\022\020\n\010mesh_uid\030\001 \001(\t\022\031\n\021service_namespace"
+ + "\030\003 \001(\t\022\024\n\014service_name\030\004 \001(\t\032i\n\025IstioCan"
+ + "onicalService\022\020\n\010mesh_uid\030\001 \001(\t\022#\n\033canon"
+ + "ical_service_namespace\030\003 \001(\t\022\031\n\021canonica"
+ + "l_service\030\004 \001(\t\032\"\n\tTelemetry\022\025\n\rresource"
+ + "_name\030\001 \001(\t\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 "
+ + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\247\001\352A\243\001\n!monitorin"
+ + "g.googleapis.com/Service\022%projects/{proj"
+ + "ect}/services/{service}\022/organizations/{"
+ + "organization}/services/{service}\022#folder"
+ + "s/{folder}/services/{service}\022\001*B\014\n\niden"
+ + "tifier\"\226\006\n\025ServiceLevelObjective\022\014\n\004name"
+ + "\030\001 \001(\t\022\024\n\014display_name\030\013 \001(\t\022L\n\027service_"
+ + "level_indicator\030\003 \001(\0132+.google.monitorin"
+ + "g.v3.ServiceLevelIndicator\022\014\n\004goal\030\004 \001(\001"
+ + "\0223\n\016rolling_period\030\005 \001(\0132\031.google.protob"
+ + "uf.DurationH\000\0226\n\017calendar_period\030\006 \001(\0162\033"
+ + ".google.type.CalendarPeriodH\000\022P\n\013user_la"
+ + "bels\030\014 \003(\0132;.google.monitoring.v3.Servic"
+ + "eLevelObjective.UserLabelsEntry\0321\n\017UserL"
+ + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002"
+ + "8\001\"4\n\004View\022\024\n\020VIEW_UNSPECIFIED\020\000\022\010\n\004FULL"
+ + "\020\002\022\014\n\010EXPLICIT\020\001:\312\002\352A\306\002\n/monitoring.goog"
+ + "leapis.com/ServiceLevelObjective\022Vprojec"
+ + "ts/{project}/services/{service}/serviceL"
+ + "evelObjectives/{service_level_objective}"
+ + "\022`organizations/{organization}/services/"
+ + "{service}/serviceLevelObjectives/{servic"
+ + "e_level_objective}\022Tfolders/{folder}/ser"
+ + "vices/{service}/serviceLevelObjectives/{"
+ + "service_level_objective}\022\001* \001B\010\n\006period\""
+ + "\324\001\n\025ServiceLevelIndicator\0223\n\tbasic_sli\030\004"
+ + " \001(\0132\036.google.monitoring.v3.BasicSliH\000\022>"
+ + "\n\rrequest_based\030\001 \001(\0132%.google.monitorin"
+ + "g.v3.RequestBasedSliH\000\022>\n\rwindows_based\030"
+ + "\002 \001(\0132%.google.monitoring.v3.WindowsBase"
+ + "dSliH\000B\006\n\004type\"\266\002\n\010BasicSli\022\016\n\006method\030\007 "
+ + "\003(\t\022\020\n\010location\030\010 \003(\t\022\017\n\007version\030\t \003(\t\022K"
+ + "\n\014availability\030\002 \001(\01323.google.monitoring"
+ + ".v3.BasicSli.AvailabilityCriteriaH\000\022A\n\007l"
+ + "atency\030\003 \001(\0132..google.monitoring.v3.Basi"
+ + "cSli.LatencyCriteriaH\000\032\026\n\024AvailabilityCr"
+ + "iteria\032?\n\017LatencyCriteria\022,\n\tthreshold\030\003"
+ + " \001(\0132\031.google.protobuf.DurationB\016\n\014sli_c"
+ + "riteria\"!\n\005Range\022\013\n\003min\030\001 \001(\001\022\013\n\003max\030\002 \001"
+ + "(\001\"\241\001\n\017RequestBasedSli\022A\n\020good_total_rat"
+ + "io\030\001 \001(\0132%.google.monitoring.v3.TimeSeri"
+ + "esRatioH\000\022A\n\020distribution_cut\030\003 \001(\0132%.go"
+ + "ogle.monitoring.v3.DistributionCutH\000B\010\n\006"
+ + "method\"h\n\017TimeSeriesRatio\022\033\n\023good_servic"
+ + "e_filter\030\004 \001(\t\022\032\n\022bad_service_filter\030\005 \001"
+ + "(\t\022\034\n\024total_service_filter\030\006 \001(\t\"Z\n\017Dist"
+ + "ributionCut\022\033\n\023distribution_filter\030\004 \001(\t"
+ + "\022*\n\005range\030\005 \001(\0132\033.google.monitoring.v3.R"
+ + "ange\"\203\005\n\017WindowsBasedSli\022 \n\026good_bad_met"
+ + "ric_filter\030\005 \001(\tH\000\022`\n\032good_total_ratio_t"
+ + "hreshold\030\002 \001(\0132:.google.monitoring.v3.Wi"
+ + "ndowsBasedSli.PerformanceThresholdH\000\022Q\n\024"
+ + "metric_mean_in_range\030\006 \001(\01321.google.moni"
+ + "toring.v3.WindowsBasedSli.MetricRangeH\000\022"
+ + "P\n\023metric_sum_in_range\030\007 \001(\01321.google.mo"
+ + "nitoring.v3.WindowsBasedSli.MetricRangeH"
+ + "\000\0220\n\rwindow_period\030\004 \001(\0132\031.google.protob"
+ + "uf.Duration\032\260\001\n\024PerformanceThreshold\022<\n\013"
+ + "performance\030\001 \001(\0132%.google.monitoring.v3"
+ + ".RequestBasedSliH\000\022?\n\025basic_sli_performa"
+ + "nce\030\003 \001(\0132\036.google.monitoring.v3.BasicSl"
+ + "iH\000\022\021\n\tthreshold\030\002 \001(\001B\006\n\004type\032N\n\013Metric"
+ + "Range\022\023\n\013time_series\030\001 \001(\t\022*\n\005range\030\004 \001("
+ + "\0132\033.google.monitoring.v3.RangeB\022\n\020window"
+ + "_criterionB\316\001\n\030com.google.monitoring.v3B"
+ + "\026ServiceMonitoringProtoP\001Z>google.golang"
+ + ".org/genproto/googleapis/monitoring/v3;m"
+ + "onitoring\252\002\032Google.Cloud.Monitoring.V3\312\002"
+ + "\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cl"
+ + "oud::Monitoring::V3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.protobuf.DurationProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
@@ -235,6 +251,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"MeshIstio",
"IstioCanonicalService",
"Telemetry",
+ "UserLabels",
"Identifier",
});
internal_static_google_monitoring_v3_Service_Custom_descriptor =
@@ -291,6 +308,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"ResourceName",
});
+ internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor =
+ internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(7);
+ internal_static_google_monitoring_v3_Service_UserLabelsEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable =
@@ -303,8 +328,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Goal",
"RollingPeriod",
"CalendarPeriod",
+ "UserLabels",
"Period",
});
+ internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor =
+ internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_google_monitoring_v3_ServiceLevelIndicator_fieldAccessorTable =
@@ -401,6 +437,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.api.ResourceProto.resource);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
+ com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.protobuf.DurationProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java
index 5d95fc32..5362c0a9 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java
@@ -327,5 +327,84 @@ public interface ServiceOrBuilder
*/
com.google.monitoring.v3.Service.TelemetryOrBuilder getTelemetryOrBuilder();
+ /**
+ *
+ *
+ *
+ * Labels which have been used to annotate the service. Label keys must start
+ * with a letter. Label keys and values may contain lowercase letters,
+ * numbers, underscores, and dashes. Label keys and values have a maximum
+ * length of 63 characters, and must be less than 128 bytes in size. Up to 64
+ * label entries may be stored. For labels which do not have a semantic value,
+ * the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 14;
+ */
+ int getUserLabelsCount();
+ /**
+ *
+ *
+ *
+ * Labels which have been used to annotate the service. Label keys must start
+ * with a letter. Label keys and values may contain lowercase letters,
+ * numbers, underscores, and dashes. Label keys and values have a maximum
+ * length of 63 characters, and must be less than 128 bytes in size. Up to 64
+ * label entries may be stored. For labels which do not have a semantic value,
+ * the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 14;
+ */
+ boolean containsUserLabels(java.lang.String key);
+ /** Use {@link #getUserLabelsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map
+ * Labels which have been used to annotate the service. Label keys must start
+ * with a letter. Label keys and values may contain lowercase letters,
+ * numbers, underscores, and dashes. Label keys and values have a maximum
+ * length of 63 characters, and must be less than 128 bytes in size. Up to 64
+ * label entries may be stored. For labels which do not have a semantic value,
+ * the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 14;
+ */
+ java.util.Map
+ * Labels which have been used to annotate the service. Label keys must start
+ * with a letter. Label keys and values may contain lowercase letters,
+ * numbers, underscores, and dashes. Label keys and values have a maximum
+ * length of 63 characters, and must be less than 128 bytes in size. Up to 64
+ * label entries may be stored. For labels which do not have a semantic value,
+ * the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 14;
+ */
+ java.lang.String getUserLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+ /**
+ *
+ *
+ *
+ * Labels which have been used to annotate the service. Label keys must start
+ * with a letter. Label keys and values may contain lowercase letters,
+ * numbers, underscores, and dashes. Label keys and values have a maximum
+ * length of 63 characters, and must be less than 128 bytes in size. Up to 64
+ * label entries may be stored. For labels which do not have a semantic value,
+ * the empty string may be supplied for the label value.
+ *
+ *
+ * map<string, string> user_labels = 14;
+ */
+ java.lang.String getUserLabelsOrThrow(java.lang.String key);
+
public com.google.monitoring.v3.Service.IdentifierCase getIdentifierCase();
}
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java
index 79058a82..01790c9c 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java
@@ -22,8 +22,8 @@
*
*
*
- * The context of a span, attached to
- * [Exemplars][google.api.Distribution.Exemplars]
+ * The context of a span. This is attached to an
+ * [Exemplar][google.api.Distribution.Exemplar]
* in [Distribution][google.api.Distribution] values during aggregation.
* It contains the name of a span with format:
* projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
@@ -188,7 +188,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getSpanNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(spanName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, spanName_);
}
unknownFields.writeTo(output);
@@ -200,7 +200,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getSpanNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(spanName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, spanName_);
}
size += unknownFields.getSerializedSize();
@@ -335,8 +335,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
*
*
- * The context of a span, attached to
- * [Exemplars][google.api.Distribution.Exemplars]
+ * The context of a span. This is attached to an
+ * [Exemplar][google.api.Distribution.Exemplar]
* in [Distribution][google.api.Distribution] values during aggregation.
* It contains the name of a span with format:
* projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java
index ecfc65ad..46a435e9 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java
@@ -1125,7 +1125,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getSourceBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
}
if (startPosition_ != null) {
@@ -1137,7 +1137,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (nestedLocator_ != null) {
output.writeMessage(4, getNestedLocator());
}
- if (!getNestingReasonBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nestingReason_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nestingReason_);
}
unknownFields.writeTo(output);
@@ -1149,7 +1149,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getSourceBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_);
}
if (startPosition_ != null) {
@@ -1161,7 +1161,7 @@ public int getSerializedSize() {
if (nestedLocator_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNestedLocator());
}
- if (!getNestingReasonBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nestingReason_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nestingReason_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java
index d1c5d8d5..f1b9b894 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java
@@ -22,7 +22,7 @@
*
*
*
*
*
- * A closed time interval. It extends from the start time to the end time, and includes both: `[startTime, endTime]`. Valid time intervals depend on the [`MetricKind`](/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of the metric value. The end time must not be earlier than the start time. When writing data points, the start time must not be more than 25 hours in the past and the end time must not be more than five minutes in the future.
+ * A closed time interval. It extends from the start time to the end time, and includes both: `[startTime, endTime]`. Valid time intervals depend on the [`MetricKind`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of the metric value. The end time must not be earlier than the start time. When writing data points, the start time must not be more than 25 hours in the past and the end time must not be more than five minutes in the future.
* * For `GAUGE` metrics, the `startTime` value is technically optional; if
* no value is specified, the start time defaults to the value of the
* end time, and the interval represents a single point in time. If both
@@ -433,7 +433,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
*
*
- * A closed time interval. It extends from the start time to the end time, and includes both: `[startTime, endTime]`. Valid time intervals depend on the [`MetricKind`](/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of the metric value. The end time must not be earlier than the start time. When writing data points, the start time must not be more than 25 hours in the past and the end time must not be more than five minutes in the future.
+ * A closed time interval. It extends from the start time to the end time, and includes both: `[startTime, endTime]`. Valid time intervals depend on the [`MetricKind`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of the metric value. The end time must not be earlier than the start time. When writing data points, the start time must not be more than 25 hours in the past and the end time must not be more than five minutes in the future.
* * For `GAUGE` metrics, the `startTime` value is technically optional; if
* no value is specified, the start time defaults to the value of the
* end time, and the interval represents a single point in time. If both
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java
index 71e071e8..a4eb9103 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java
@@ -246,7 +246,9 @@ public com.google.api.MetricOrBuilder getMetricOrBuilder() {
*
*
*
*
* The associated monitored resource. Custom metrics can use only certain
- * monitored resource types in their time series data.
+ * monitored resource types in their time series data. For more information,
+ * see [Monitored resources for custom
+ * metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
*
*
* .google.api.MonitoredResource resource = 2;
@@ -262,7 +264,9 @@ public boolean hasResource() {
*
*
* The associated monitored resource. Custom metrics can use only certain
- * monitored resource types in their time series data.
+ * monitored resource types in their time series data. For more information,
+ * see [Monitored resources for custom
+ * metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
*
*
* .google.api.MonitoredResource resource = 2;
@@ -278,7 +282,9 @@ public com.google.api.MonitoredResource getResource() {
*
*
* The associated monitored resource. Custom metrics can use only certain
- * monitored resource types in their time series data.
+ * monitored resource types in their time series data. For more information,
+ * see [Monitored resources for custom
+ * metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
*
*
* .google.api.MonitoredResource resource = 2;
@@ -622,7 +628,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (metadata_ != null) {
output.writeMessage(7, getMetadata());
}
- if (!getUnitBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, unit_);
}
unknownFields.writeTo(output);
@@ -654,7 +660,7 @@ public int getSerializedSize() {
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMetadata());
}
- if (!getUnitBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, unit_);
}
size += unknownFields.getSerializedSize();
@@ -1273,7 +1279,9 @@ public com.google.api.MetricOrBuilder getMetricOrBuilder() {
*
*
* The associated monitored resource. Custom metrics can use only certain
- * monitored resource types in their time series data.
+ * monitored resource types in their time series data. For more information,
+ * see [Monitored resources for custom
+ * metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
*
*
* .google.api.MonitoredResource resource = 2;
@@ -1288,7 +1296,9 @@ public boolean hasResource() {
*
*
* The associated monitored resource. Custom metrics can use only certain
- * monitored resource types in their time series data.
+ * monitored resource types in their time series data. For more information,
+ * see [Monitored resources for custom
+ * metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
*
*
* .google.api.MonitoredResource resource = 2;
@@ -1309,7 +1319,9 @@ public com.google.api.MonitoredResource getResource() {
*
*
* The associated monitored resource. Custom metrics can use only certain
- * monitored resource types in their time series data.
+ * monitored resource types in their time series data. For more information,
+ * see [Monitored resources for custom
+ * metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
*
*
* .google.api.MonitoredResource resource = 2;
@@ -1332,7 +1344,9 @@ public Builder setResource(com.google.api.MonitoredResource value) {
*
*
* The associated monitored resource. Custom metrics can use only certain
- * monitored resource types in their time series data.
+ * monitored resource types in their time series data. For more information,
+ * see [Monitored resources for custom
+ * metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
*
*
* .google.api.MonitoredResource resource = 2;
@@ -1352,7 +1366,9 @@ public Builder setResource(com.google.api.MonitoredResource.Builder builderForVa
*
*
* The associated monitored resource. Custom metrics can use only certain
- * monitored resource types in their time series data.
+ * monitored resource types in their time series data. For more information,
+ * see [Monitored resources for custom
+ * metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
*
*
* .google.api.MonitoredResource resource = 2;
@@ -1379,7 +1395,9 @@ public Builder mergeResource(com.google.api.MonitoredResource value) {
*
*
* The associated monitored resource. Custom metrics can use only certain
- * monitored resource types in their time series data.
+ * monitored resource types in their time series data. For more information,
+ * see [Monitored resources for custom
+ * metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
*
*
* .google.api.MonitoredResource resource = 2;
@@ -1400,7 +1418,9 @@ public Builder clearResource() {
*
*
* The associated monitored resource. Custom metrics can use only certain
- * monitored resource types in their time series data.
+ * monitored resource types in their time series data. For more information,
+ * see [Monitored resources for custom
+ * metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
*
*
* .google.api.MonitoredResource resource = 2;
@@ -1415,7 +1435,9 @@ public com.google.api.MonitoredResource.Builder getResourceBuilder() {
*
*
* The associated monitored resource. Custom metrics can use only certain
- * monitored resource types in their time series data.
+ * monitored resource types in their time series data. For more information,
+ * see [Monitored resources for custom
+ * metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
*
*
* .google.api.MonitoredResource resource = 2;
@@ -1434,7 +1456,9 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
*
*
* The associated monitored resource. Custom metrics can use only certain
- * monitored resource types in their time series data.
+ * monitored resource types in their time series data. For more information,
+ * see [Monitored resources for custom
+ * metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
*
*
* .google.api.MonitoredResource resource = 2;
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java
index d7b5ec04..93b5f3e5 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java
@@ -554,7 +554,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getKeyBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (valueType_
@@ -565,7 +565,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
!= com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) {
output.writeEnum(3, metricKind_);
}
- if (!getUnitBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, unit_);
}
unknownFields.writeTo(output);
@@ -577,7 +577,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getKeyBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (valueType_
@@ -588,7 +588,7 @@ public int getSerializedSize() {
!= com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, metricKind_);
}
- if (!getUnitBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, unit_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java
index 0394a661..96072eb6 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java
@@ -66,7 +66,9 @@ public interface TimeSeriesOrBuilder
*
*
* The associated monitored resource. Custom metrics can use only certain
- * monitored resource types in their time series data.
+ * monitored resource types in their time series data. For more information,
+ * see [Monitored resources for custom
+ * metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
*
*
* .google.api.MonitoredResource resource = 2;
@@ -79,7 +81,9 @@ public interface TimeSeriesOrBuilder
*
*
* The associated monitored resource. Custom metrics can use only certain
- * monitored resource types in their time series data.
+ * monitored resource types in their time series data. For more information,
+ * see [Monitored resources for custom
+ * metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
*
*
* .google.api.MonitoredResource resource = 2;
@@ -92,7 +96,9 @@ public interface TimeSeriesOrBuilder
*
*
* The associated monitored resource. Custom metrics can use only certain
- * monitored resource types in their time series data.
+ * monitored resource types in their time series data. For more information,
+ * see [Monitored resources for custom
+ * metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
*
*
* .google.api.MonitoredResource resource = 2;
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java
index 16bfce08..dfef860f 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java
@@ -313,13 +313,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getGoodServiceFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(goodServiceFilter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, goodServiceFilter_);
}
- if (!getBadServiceFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(badServiceFilter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, badServiceFilter_);
}
- if (!getTotalServiceFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(totalServiceFilter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, totalServiceFilter_);
}
unknownFields.writeTo(output);
@@ -331,13 +331,13 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getGoodServiceFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(goodServiceFilter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, goodServiceFilter_);
}
- if (!getBadServiceFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(badServiceFilter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, badServiceFilter_);
}
- if (!getTotalServiceFilterBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(totalServiceFilter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, totalServiceFilter_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java
index 95c1ec18..77ea5494 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java
@@ -557,7 +557,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getGroupIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, groupId_);
}
if (resourceType_
@@ -573,7 +573,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getGroupIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, groupId_);
}
if (resourceType_
@@ -2217,10 +2217,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getUsernameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_);
}
- if (!getPasswordBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_);
}
unknownFields.writeTo(output);
@@ -2232,10 +2232,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getUsernameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_);
}
- if (!getPasswordBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_);
}
size += unknownFields.getSerializedSize();
@@ -3294,7 +3294,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (useSsl_ != false) {
output.writeBool(1, useSsl_);
}
- if (!getPathBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_);
}
if (port_ != 0) {
@@ -3336,7 +3336,7 @@ public int getSerializedSize() {
if (useSsl_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, useSsl_);
}
- if (!getPathBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_);
}
if (port_ != 0) {
@@ -5723,6 +5723,7 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
*
* Selects regular-expression matching. The match succeeds of the output
* matches the regular expression specified in the `content` string.
+ * Regex matching is only supported for HTTP/HTTPS checks.
*
*
* MATCHES_REGEX = 3;
@@ -5734,7 +5735,8 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
*
* Selects negation of regular-expression matching. The match succeeds if
* the output does _NOT_ match the regular expression specified in the
- * `content` string.
+ * `content` string. Regex matching is only supported for HTTP/HTTPS
+ * checks.
*
*
* NOT_MATCHES_REGEX = 4;
@@ -5785,6 +5787,7 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
*
* Selects regular-expression matching. The match succeeds of the output
* matches the regular expression specified in the `content` string.
+ * Regex matching is only supported for HTTP/HTTPS checks.
*
*
* MATCHES_REGEX = 3;
@@ -5796,7 +5799,8 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
*
* Selects negation of regular-expression matching. The match succeeds if
* the output does _NOT_ match the regular expression specified in the
- * `content` string.
+ * `content` string. Regex matching is only supported for HTTP/HTTPS
+ * checks.
*
*
* NOT_MATCHES_REGEX = 4;
@@ -6007,7 +6011,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getContentBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_);
}
if (matcher_
@@ -6025,7 +6029,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getContentBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_);
}
if (matcher_
@@ -6832,12 +6836,13 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
* The [monitored
* resource](https://cloud.google.com/monitoring/api/resources) associated
* with the configuration.
- * The following monitored resource types are supported for Uptime checks:
+ * The following monitored resource types are valid for this field:
* `uptime_url`,
* `gce_instance`,
* `gae_app`,
* `aws_ec2_instance`,
* `aws_elb_load_balancer`
+ * `k8s_service`
* .google.api.MonitoredResource monitored_resource = 3;
@@ -6855,12 +6860,13 @@ public boolean hasMonitoredResource() {
* The [monitored
* resource](https://cloud.google.com/monitoring/api/resources) associated
* with the configuration.
- * The following monitored resource types are supported for Uptime checks:
+ * The following monitored resource types are valid for this field:
* `uptime_url`,
* `gce_instance`,
* `gae_app`,
* `aws_ec2_instance`,
* `aws_elb_load_balancer`
+ * `k8s_service`
* .google.api.MonitoredResource monitored_resource = 3;
@@ -6881,12 +6887,13 @@ public com.google.api.MonitoredResource getMonitoredResource() {
* The [monitored
* resource](https://cloud.google.com/monitoring/api/resources) associated
* with the configuration.
- * The following monitored resource types are supported for Uptime checks:
+ * The following monitored resource types are valid for this field:
* `uptime_url`,
* `gce_instance`,
* `gae_app`,
* `aws_ec2_instance`,
* `aws_elb_load_balancer`
+ * `k8s_service`
* .google.api.MonitoredResource monitored_resource = 3;
@@ -7509,10 +7516,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
getSerializedSize();
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
- if (!getDisplayNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
}
if (resourceCase_ == 3) {
@@ -7560,10 +7567,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
- if (!getDisplayNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
}
if (resourceCase_ == 3) {
@@ -8492,12 +8499,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
* The [monitored
* resource](https://cloud.google.com/monitoring/api/resources) associated
* with the configuration.
- * The following monitored resource types are supported for Uptime checks:
+ * The following monitored resource types are valid for this field:
* `uptime_url`,
* `gce_instance`,
* `gae_app`,
* `aws_ec2_instance`,
* `aws_elb_load_balancer`
+ * `k8s_service`
* .google.api.MonitoredResource monitored_resource = 3;
@@ -8515,12 +8523,13 @@ public boolean hasMonitoredResource() {
* The [monitored
* resource](https://cloud.google.com/monitoring/api/resources) associated
* with the configuration.
- * The following monitored resource types are supported for Uptime checks:
+ * The following monitored resource types are valid for this field:
* `uptime_url`,
* `gce_instance`,
* `gae_app`,
* `aws_ec2_instance`,
* `aws_elb_load_balancer`
+ * `k8s_service`
* .google.api.MonitoredResource monitored_resource = 3;
@@ -8548,12 +8557,13 @@ public com.google.api.MonitoredResource getMonitoredResource() {
* The [monitored
* resource](https://cloud.google.com/monitoring/api/resources) associated
* with the configuration.
- * The following monitored resource types are supported for Uptime checks:
+ * The following monitored resource types are valid for this field:
* `uptime_url`,
* `gce_instance`,
* `gae_app`,
* `aws_ec2_instance`,
* `aws_elb_load_balancer`
+ * `k8s_service`
* .google.api.MonitoredResource monitored_resource = 3;
@@ -8578,12 +8588,13 @@ public Builder setMonitoredResource(com.google.api.MonitoredResource value) {
* The [monitored
* resource](https://cloud.google.com/monitoring/api/resources) associated
* with the configuration.
- * The following monitored resource types are supported for Uptime checks:
+ * The following monitored resource types are valid for this field:
* `uptime_url`,
* `gce_instance`,
* `gae_app`,
* `aws_ec2_instance`,
* `aws_elb_load_balancer`
+ * `k8s_service`
* .google.api.MonitoredResource monitored_resource = 3;
@@ -8605,12 +8616,13 @@ public Builder setMonitoredResource(com.google.api.MonitoredResource.Builder bui
* The [monitored
* resource](https://cloud.google.com/monitoring/api/resources) associated
* with the configuration.
- * The following monitored resource types are supported for Uptime checks:
+ * The following monitored resource types are valid for this field:
* `uptime_url`,
* `gce_instance`,
* `gae_app`,
* `aws_ec2_instance`,
* `aws_elb_load_balancer`
+ * `k8s_service`
* .google.api.MonitoredResource monitored_resource = 3;
@@ -8644,12 +8656,13 @@ public Builder mergeMonitoredResource(com.google.api.MonitoredResource value) {
* The [monitored
* resource](https://cloud.google.com/monitoring/api/resources) associated
* with the configuration.
- * The following monitored resource types are supported for Uptime checks:
+ * The following monitored resource types are valid for this field:
* `uptime_url`,
* `gce_instance`,
* `gae_app`,
* `aws_ec2_instance`,
* `aws_elb_load_balancer`
+ * `k8s_service`
* .google.api.MonitoredResource monitored_resource = 3;
@@ -8677,12 +8690,13 @@ public Builder clearMonitoredResource() {
* The [monitored
* resource](https://cloud.google.com/monitoring/api/resources) associated
* with the configuration.
- * The following monitored resource types are supported for Uptime checks:
+ * The following monitored resource types are valid for this field:
* `uptime_url`,
* `gce_instance`,
* `gae_app`,
* `aws_ec2_instance`,
* `aws_elb_load_balancer`
+ * `k8s_service`
* .google.api.MonitoredResource monitored_resource = 3;
@@ -8697,12 +8711,13 @@ public com.google.api.MonitoredResource.Builder getMonitoredResourceBuilder() {
* The [monitored
* resource](https://cloud.google.com/monitoring/api/resources) associated
* with the configuration.
- * The following monitored resource types are supported for Uptime checks:
+ * The following monitored resource types are valid for this field:
* `uptime_url`,
* `gce_instance`,
* `gae_app`,
* `aws_ec2_instance`,
* `aws_elb_load_balancer`
+ * `k8s_service`
* .google.api.MonitoredResource monitored_resource = 3;
@@ -8725,12 +8740,13 @@ public com.google.api.MonitoredResourceOrBuilder getMonitoredResourceOrBuilder()
* The [monitored
* resource](https://cloud.google.com/monitoring/api/resources) associated
* with the configuration.
- * The following monitored resource types are supported for Uptime checks:
+ * The following monitored resource types are valid for this field:
* `uptime_url`,
* `gce_instance`,
* `gae_app`,
* `aws_ec2_instance`,
* `aws_elb_load_balancer`
+ * `k8s_service`
* .google.api.MonitoredResource monitored_resource = 3;
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java
index 9c303ffc..10625200 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java
@@ -96,12 +96,13 @@ public interface UptimeCheckConfigOrBuilder
* The [monitored
* resource](https://cloud.google.com/monitoring/api/resources) associated
* with the configuration.
- * The following monitored resource types are supported for Uptime checks:
+ * The following monitored resource types are valid for this field:
* `uptime_url`,
* `gce_instance`,
* `gae_app`,
* `aws_ec2_instance`,
* `aws_elb_load_balancer`
+ * `k8s_service`
* .google.api.MonitoredResource monitored_resource = 3;
@@ -116,12 +117,13 @@ public interface UptimeCheckConfigOrBuilder
* The [monitored
* resource](https://cloud.google.com/monitoring/api/resources) associated
* with the configuration.
- * The following monitored resource types are supported for Uptime checks:
+ * The following monitored resource types are valid for this field:
* `uptime_url`,
* `gce_instance`,
* `gae_app`,
* `aws_ec2_instance`,
* `aws_elb_load_balancer`
+ * `k8s_service`
* .google.api.MonitoredResource monitored_resource = 3;
@@ -136,12 +138,13 @@ public interface UptimeCheckConfigOrBuilder
* The [monitored
* resource](https://cloud.google.com/monitoring/api/resources) associated
* with the configuration.
- * The following monitored resource types are supported for Uptime checks:
+ * The following monitored resource types are valid for this field:
* `uptime_url`,
* `gce_instance`,
* `gae_app`,
* `aws_ec2_instance`,
* `aws_elb_load_balancer`
+ * `k8s_service`
* .google.api.MonitoredResource monitored_resource = 3;
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java
index eeda11d6..9c1b49c6 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java
@@ -291,10 +291,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (region_ != com.google.monitoring.v3.UptimeCheckRegion.REGION_UNSPECIFIED.getNumber()) {
output.writeEnum(1, region_);
}
- if (!getLocationBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, location_);
}
- if (!getIpAddressBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipAddress_);
}
unknownFields.writeTo(output);
@@ -309,10 +309,10 @@ public int getSerializedSize() {
if (region_ != com.google.monitoring.v3.UptimeCheckRegion.REGION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, region_);
}
- if (!getLocationBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_);
}
- if (!getIpAddressBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipAddress_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java
index 0361384c..31841ced 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java
@@ -72,75 +72,75 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "oto\022\024google.monitoring.v3\032\034google/api/an"
+ "notations.proto\032\027google/api/client.proto"
+ "\032\037google/api/field_behavior.proto\032\031googl"
- + "e/api/resource.proto\032!google/monitoring/"
- + "v3/uptime.proto\032\036google/protobuf/duratio"
- + "n.proto\032\033google/protobuf/empty.proto\032 go"
- + "ogle/protobuf/field_mask.proto\"\213\001\n\035ListU"
- + "ptimeCheckConfigsRequest\022C\n\006parent\030\001 \001(\t"
- + "B3\340A\002\372A-\022+monitoring.googleapis.com/Upti"
- + "meCheckConfig\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage"
- + "_token\030\004 \001(\t\"\224\001\n\036ListUptimeCheckConfigsR"
- + "esponse\022E\n\024uptime_check_configs\030\001 \003(\0132\'."
- + "google.monitoring.v3.UptimeCheckConfig\022\027"
- + "\n\017next_page_token\030\002 \001(\t\022\022\n\ntotal_size\030\003 "
- + "\001(\005\"`\n\033GetUptimeCheckConfigRequest\022A\n\004na"
- + "me\030\001 \001(\tB3\340A\002\372A-\n+monitoring.googleapis."
- + "com/UptimeCheckConfig\"\260\001\n\036CreateUptimeCh"
- + "eckConfigRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-"
- + "\022+monitoring.googleapis.com/UptimeCheckC"
- + "onfig\022I\n\023uptime_check_config\030\002 \001(\0132\'.goo"
- + "gle.monitoring.v3.UptimeCheckConfigB\003\340A\002"
- + "\"\234\001\n\036UpdateUptimeCheckConfigRequest\022/\n\013u"
- + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field"
- + "Mask\022I\n\023uptime_check_config\030\003 \001(\0132\'.goog"
- + "le.monitoring.v3.UptimeCheckConfigB\003\340A\002\""
- + "c\n\036DeleteUptimeCheckConfigRequest\022A\n\004nam"
- + "e\030\001 \001(\tB3\340A\002\372A-\n+monitoring.googleapis.c"
- + "om/UptimeCheckConfig\"B\n\031ListUptimeCheckI"
- + "psRequest\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok"
- + "en\030\003 \001(\t\"t\n\032ListUptimeCheckIpsResponse\022="
- + "\n\020uptime_check_ips\030\001 \003(\0132#.google.monito"
- + "ring.v3.UptimeCheckIp\022\027\n\017next_page_token"
- + "\030\002 \001(\t2\275\n\n\022UptimeCheckService\022\300\001\n\026ListUp"
- + "timeCheckConfigs\0223.google.monitoring.v3."
- + "ListUptimeCheckConfigsRequest\0324.google.m"
- + "onitoring.v3.ListUptimeCheckConfigsRespo"
- + "nse\";\202\323\344\223\002,\022*/v3/{parent=projects/*}/upt"
- + "imeCheckConfigs\332A\006parent\022\255\001\n\024GetUptimeCh"
- + "eckConfig\0221.google.monitoring.v3.GetUpti"
- + "meCheckConfigRequest\032\'.google.monitoring"
- + ".v3.UptimeCheckConfig\"9\202\323\344\223\002,\022*/v3/{name"
- + "=projects/*/uptimeCheckConfigs/*}\332A\004name"
- + "\022\336\001\n\027CreateUptimeCheckConfig\0224.google.mo"
- + "nitoring.v3.CreateUptimeCheckConfigReque"
- + "st\032\'.google.monitoring.v3.UptimeCheckCon"
- + "fig\"d\202\323\344\223\002A\"*/v3/{parent=projects/*}/upt"
- + "imeCheckConfigs:\023uptime_check_config\332A\032p"
- + "arent,uptime_check_config\022\353\001\n\027UpdateUpti"
- + "meCheckConfig\0224.google.monitoring.v3.Upd"
- + "ateUptimeCheckConfigRequest\032\'.google.mon"
- + "itoring.v3.UptimeCheckConfig\"q\202\323\344\223\002U2>/v"
- + "3/{uptime_check_config.name=projects/*/u"
- + "ptimeCheckConfigs/*}:\023uptime_check_confi"
- + "g\332A\023uptime_check_config\022\242\001\n\027DeleteUptime"
- + "CheckConfig\0224.google.monitoring.v3.Delet"
- + "eUptimeCheckConfigRequest\032\026.google.proto"
- + "buf.Empty\"9\202\323\344\223\002,**/v3/{name=projects/*/"
- + "uptimeCheckConfigs/*}\332A\004name\022\223\001\n\022ListUpt"
- + "imeCheckIps\022/.google.monitoring.v3.ListU"
- + "ptimeCheckIpsRequest\0320.google.monitoring"
- + ".v3.ListUptimeCheckIpsResponse\"\032\202\323\344\223\002\024\022\022"
- + "/v3/uptimeCheckIps\032\251\001\312A\031monitoring.googl"
- + "eapis.com\322A\211\001https://www.googleapis.com/"
- + "auth/cloud-platform,https://www.googleap"
- + "is.com/auth/monitoring,https://www.googl"
- + "eapis.com/auth/monitoring.readB\312\001\n\030com.g"
- + "oogle.monitoring.v3B\022UptimeServiceProtoP"
- + "\001Z>google.golang.org/genproto/googleapis"
- + "/monitoring/v3;monitoring\252\002\032Google.Cloud"
- + ".Monitoring.V3\312\002\032Google\\Cloud\\Monitoring"
- + "\\V3\352\002\035Google::Cloud::Monitoring::V3b\006pro"
- + "to3"
+ + "e/api/resource.proto\032#google/longrunning"
+ + "/operations.proto\032!google/monitoring/v3/"
+ + "uptime.proto\032\036google/protobuf/duration.p"
+ + "roto\032\033google/protobuf/empty.proto\032 googl"
+ + "e/protobuf/field_mask.proto\"\213\001\n\035ListUpti"
+ + "meCheckConfigsRequest\022C\n\006parent\030\001 \001(\tB3\340"
+ + "A\002\372A-\022+monitoring.googleapis.com/UptimeC"
+ + "heckConfig\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_to"
+ + "ken\030\004 \001(\t\"\224\001\n\036ListUptimeCheckConfigsResp"
+ + "onse\022E\n\024uptime_check_configs\030\001 \003(\0132\'.goo"
+ + "gle.monitoring.v3.UptimeCheckConfig\022\027\n\017n"
+ + "ext_page_token\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\005"
+ + "\"`\n\033GetUptimeCheckConfigRequest\022A\n\004name\030"
+ + "\001 \001(\tB3\340A\002\372A-\n+monitoring.googleapis.com"
+ + "/UptimeCheckConfig\"\260\001\n\036CreateUptimeCheck"
+ + "ConfigRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+m"
+ + "onitoring.googleapis.com/UptimeCheckConf"
+ + "ig\022I\n\023uptime_check_config\030\002 \001(\0132\'.google"
+ + ".monitoring.v3.UptimeCheckConfigB\003\340A\002\"\234\001"
+ + "\n\036UpdateUptimeCheckConfigRequest\022/\n\013upda"
+ + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas"
+ + "k\022I\n\023uptime_check_config\030\003 \001(\0132\'.google."
+ + "monitoring.v3.UptimeCheckConfigB\003\340A\002\"c\n\036"
+ + "DeleteUptimeCheckConfigRequest\022A\n\004name\030\001"
+ + " \001(\tB3\340A\002\372A-\n+monitoring.googleapis.com/"
+ + "UptimeCheckConfig\"B\n\031ListUptimeCheckIpsR"
+ + "equest\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030"
+ + "\003 \001(\t\"t\n\032ListUptimeCheckIpsResponse\022=\n\020u"
+ + "ptime_check_ips\030\001 \003(\0132#.google.monitorin"
+ + "g.v3.UptimeCheckIp\022\027\n\017next_page_token\030\002 "
+ + "\001(\t2\275\n\n\022UptimeCheckService\022\300\001\n\026ListUptim"
+ + "eCheckConfigs\0223.google.monitoring.v3.Lis"
+ + "tUptimeCheckConfigsRequest\0324.google.moni"
+ + "toring.v3.ListUptimeCheckConfigsResponse"
+ + "\";\202\323\344\223\002,\022*/v3/{parent=projects/*}/uptime"
+ + "CheckConfigs\332A\006parent\022\255\001\n\024GetUptimeCheck"
+ + "Config\0221.google.monitoring.v3.GetUptimeC"
+ + "heckConfigRequest\032\'.google.monitoring.v3"
+ + ".UptimeCheckConfig\"9\202\323\344\223\002,\022*/v3/{name=pr"
+ + "ojects/*/uptimeCheckConfigs/*}\332A\004name\022\336\001"
+ + "\n\027CreateUptimeCheckConfig\0224.google.monit"
+ + "oring.v3.CreateUptimeCheckConfigRequest\032"
+ + "\'.google.monitoring.v3.UptimeCheckConfig"
+ + "\"d\202\323\344\223\002A\"*/v3/{parent=projects/*}/uptime"
+ + "CheckConfigs:\023uptime_check_config\332A\032pare"
+ + "nt,uptime_check_config\022\353\001\n\027UpdateUptimeC"
+ + "heckConfig\0224.google.monitoring.v3.Update"
+ + "UptimeCheckConfigRequest\032\'.google.monito"
+ + "ring.v3.UptimeCheckConfig\"q\202\323\344\223\002U2>/v3/{"
+ + "uptime_check_config.name=projects/*/upti"
+ + "meCheckConfigs/*}:\023uptime_check_config\332A"
+ + "\023uptime_check_config\022\242\001\n\027DeleteUptimeChe"
+ + "ckConfig\0224.google.monitoring.v3.DeleteUp"
+ + "timeCheckConfigRequest\032\026.google.protobuf"
+ + ".Empty\"9\202\323\344\223\002,**/v3/{name=projects/*/upt"
+ + "imeCheckConfigs/*}\332A\004name\022\223\001\n\022ListUptime"
+ + "CheckIps\022/.google.monitoring.v3.ListUpti"
+ + "meCheckIpsRequest\0320.google.monitoring.v3"
+ + ".ListUptimeCheckIpsResponse\"\032\202\323\344\223\002\024\022\022/v3"
+ + "/uptimeCheckIps\032\251\001\312A\031monitoring.googleap"
+ + "is.com\322A\211\001https://www.googleapis.com/aut"
+ + "h/cloud-platform,https://www.googleapis."
+ + "com/auth/monitoring,https://www.googleap"
+ + "is.com/auth/monitoring.readB\312\001\n\030com.goog"
+ + "le.monitoring.v3B\022UptimeServiceProtoP\001Z>"
+ + "google.golang.org/genproto/googleapis/mo"
+ + "nitoring/v3;monitoring\252\002\032Google.Cloud.Mo"
+ + "nitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3"
+ + "\352\002\035Google::Cloud::Monitoring::V3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -150,6 +150,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.ClientProto.getDescriptor(),
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
+ com.google.longrunning.OperationsProto.getDescriptor(),
com.google.monitoring.v3.UptimeProto.getDescriptor(),
com.google.protobuf.DurationProto.getDescriptor(),
com.google.protobuf.EmptyProto.getDescriptor(),
@@ -233,6 +234,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.ClientProto.getDescriptor();
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
+ com.google.longrunning.OperationsProto.getDescriptor();
com.google.monitoring.v3.UptimeProto.getDescriptor();
com.google.protobuf.DurationProto.getDescriptor();
com.google.protobuf.EmptyProto.getDescriptor();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java
index a5cfa280..4134546d 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java
@@ -248,10 +248,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
- if (!getCodeBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, code_);
}
unknownFields.writeTo(output);
@@ -263,10 +263,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
- if (!getCodeBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, code_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java
index ef8a8300..9f24d80e 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java
@@ -1582,7 +1582,7 @@ public interface MetricRangeOrBuilder
*
*
* A `MetricRange` is used when each window is good when the value x of a
- * single `TimeSeries` satisfies `range.min <= x < range.max`. The provided
+ * single `TimeSeries` satisfies `range.min <= x <= range.max`. The provided
* `TimeSeries` must have `ValueType = INT64` or `ValueType = DOUBLE` and
* `MetricKind = GAUGE`.
*
@@ -1802,7 +1802,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getTimeSeriesBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeSeries_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, timeSeries_);
}
if (range_ != null) {
@@ -1817,7 +1817,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getTimeSeriesBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeSeries_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, timeSeries_);
}
if (range_ != null) {
@@ -1968,7 +1968,7 @@ protected Builder newBuilderForType(
*
*
* A `MetricRange` is used when each window is good when the value x of a
- * single `TimeSeries` satisfies `range.min <= x < range.max`. The provided
+ * single `TimeSeries` satisfies `range.min <= x <= range.max`. The provided
* `TimeSeries` must have `ValueType = INT64` or `ValueType = DOUBLE` and
* `MetricKind = GAUGE`.
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto b/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto
index 8d1cbf2e..a1d15510 100644
--- a/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto
+++ b/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto
@@ -106,7 +106,7 @@ message AlertPolicy {
// well as how to combine the retrieved time series together (such as
// when aggregating multiple streams on each resource to a single
// stream for each resource or when aggregating streams across all
- // members of a group of resrouces). Multiple aggregations
+ // members of a group of resources). Multiple aggregations
// are applied in the order specified.
//
// This field is similar to the one in the [`ListTimeSeries`
@@ -192,7 +192,7 @@ message AlertPolicy {
// well as how to combine the retrieved time series together (such as
// when aggregating multiple streams on each resource to a single
// stream for each resource or when aggregating streams across all
- // members of a group of resrouces). Multiple aggregations
+ // members of a group of resources). Multiple aggregations
// are applied in the order specified.
//
// This field is similar to the one in the [`ListTimeSeries`
@@ -217,6 +217,30 @@ message AlertPolicy {
Trigger trigger = 3;
}
+ // A condition type that checks whether a log message in the [scoping
+ // project](https://cloud.google.com/monitoring/api/v3#project_name)
+ // satisfies the given filter. Logs from other projects in the metrics
+ // scope are not evaluated.
+ message LogMatch {
+ // Required. A logs-based filter. See [Advanced Logs
+ // Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+ // for how this filter should be constructed.
+ string filter = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A map from a label key to an extractor expression, which is
+ // used to extract the value for this label key. Each entry in this map is
+ // a specification for how data should be extracted from log entries that
+ // match `filter`. Each combination of extracted values is treated as a
+ // separate rule for the purposes of triggering notifications. Label keys
+ // and corresponding values can be used in notifications generated by this
+ // condition.
+ //
+ // Please see [the documentation on logs-based metric
+ // `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+ // for syntax and examples.
+ map