diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 6908ea38..2358f47f 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -20,17 +20,22 @@ scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) ## cd to the parent directory, i.e. the root of the git repo cd ${scriptDir}/.. +# include common functions +source ${scriptDir}/common.sh + # Print out Java version java -version echo ${JOB_TYPE} -mvn install -B -V \ - -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true \ - -T 1C +# attempt to install 3 times with exponential backoff (starting with 10 seconds) +retry_with_backoff 3 10 \ + mvn install -B -V \ + -DskipTests=true \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -Dmaven.javadoc.skip=true \ + -Dgcloud.download.skip=true \ + -T 1C # if GOOGLE_APPLICATION_CREDIENTIALS is specified as a relative path prepend Kokoro root directory onto it if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then diff --git a/.kokoro/common.sh b/.kokoro/common.sh new file mode 100644 index 00000000..a3bbc5f6 --- /dev/null +++ b/.kokoro/common.sh @@ -0,0 +1,44 @@ +#!/bin/bash +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# set -eo pipefail + +function retry_with_backoff { + attempts_left=$1 + sleep_seconds=$2 + shift 2 + command=$@ + + echo "${command}" + ${command} + exit_code=$? + + if [[ $exit_code == 0 ]] + then + return 0 + fi + + # failure + if [[ ${attempts_left} > 0 ]] + then + echo "failure (${exit_code}), sleeping ${sleep_seconds}..." + sleep ${sleep_seconds} + new_attempts=$((${attempts_left} - 1)) + new_sleep=$((${sleep_seconds} * 2)) + retry_with_backoff ${new_attempts} ${new_sleep} ${command} + fi + + return $exit_code +} diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 50488ee3..0aade871 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -15,7 +15,13 @@ set -eo pipefail -cd github/java-monitoring/ +## Get the directory of the build script +scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) +## cd to the parent directory, i.e. the root of the git repo +cd ${scriptDir}/.. + +# include common functions +source ${scriptDir}/common.sh # Print out Java java -version @@ -24,8 +30,9 @@ echo $JOB_TYPE export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" # this should run maven enforcer -mvn install -B -V \ - -DskipTests=true \ - -Dclirr.skip=true +retry_with_backoff 3 10 \ + mvn install -B -V \ + -DskipTests=true \ + -Dclirr.skip=true mvn -B dependency:analyze -DfailOnWarning=true diff --git a/.kokoro/linkage-monitor.sh b/.kokoro/linkage-monitor.sh index 2ac0c7bf..759ab4e2 100755 --- a/.kokoro/linkage-monitor.sh +++ b/.kokoro/linkage-monitor.sh @@ -17,18 +17,26 @@ set -eo pipefail # Display commands being run. set -x -cd github/java-monitoring/ +## Get the directory of the build script +scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) +## cd to the parent directory, i.e. the root of the git repo +cd ${scriptDir}/.. + +# include common functions +source ${scriptDir}/common.sh # Print out Java version java -version echo ${JOB_TYPE} -mvn install -B -V \ - -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true +# attempt to install 3 times with exponential backoff (starting with 10 seconds) +retry_with_backoff 3 10 \ + mvn install -B -V \ + -DskipTests=true \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -Dmaven.javadoc.skip=true \ + -Dgcloud.download.skip=true # Kokoro job cloud-opensource-java/ubuntu/linkage-monitor-gcs creates this JAR JAR=linkage-monitor-latest-all-deps.jar 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 a89ac84f..aebda72b 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 @@ -175,7 +175,7 @@ public MetricServiceStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Lists monitored resource descriptors that match a filter. This method does not require a - * Stackdriver account. + * Workspace. * *
Sample code: * @@ -204,7 +204,7 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Lists monitored resource descriptors that match a filter. This method does not require a - * Stackdriver account. + * Workspace. * *
Sample code: * @@ -231,7 +231,7 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Lists monitored resource descriptors that match a filter. This method does not require a - * Stackdriver account. + * Workspace. * *
Sample code: * @@ -258,7 +258,7 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Lists monitored resource descriptors that match a filter. This method does not require a - * Stackdriver account. + * Workspace. * *
Sample code: * @@ -285,7 +285,7 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Lists monitored resource descriptors that match a filter. This method does not require a - * Stackdriver account. + * Workspace. * *
Sample code: * @@ -318,8 +318,7 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets a single monitored resource descriptor. This method does not require a Stackdriver - * account. + * Gets a single monitored resource descriptor. This method does not require a Workspace. * *
Sample code: * @@ -346,8 +345,7 @@ public final MonitoredResourceDescriptor getMonitoredResourceDescriptor( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets a single monitored resource descriptor. This method does not require a Stackdriver - * account. + * Gets a single monitored resource descriptor. This method does not require a Workspace. * *
Sample code: * @@ -371,8 +369,7 @@ public final MonitoredResourceDescriptor getMonitoredResourceDescriptor(String n // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets a single monitored resource descriptor. This method does not require a Stackdriver - * account. + * Gets a single monitored resource descriptor. This method does not require a Workspace. * *
Sample code: * @@ -396,8 +393,7 @@ public final MonitoredResourceDescriptor getMonitoredResourceDescriptor( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets a single monitored resource descriptor. This method does not require a Stackdriver - * account. + * Gets a single monitored resource descriptor. This method does not require a Workspace. * *
Sample code: * @@ -420,8 +416,7 @@ public final MonitoredResourceDescriptor getMonitoredResourceDescriptor( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists metric descriptors that match a filter. This method does not require a Stackdriver - * account. + * Lists metric descriptors that match a filter. This method does not require a Workspace. * *
Sample code: * @@ -448,8 +443,7 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(ProjectNam // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists metric descriptors that match a filter. This method does not require a Stackdriver - * account. + * Lists metric descriptors that match a filter. This method does not require a Workspace. * *
Sample code: * @@ -474,8 +468,7 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(String nam // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists metric descriptors that match a filter. This method does not require a Stackdriver - * account. + * Lists metric descriptors that match a filter. This method does not require a Workspace. * *
Sample code: * @@ -501,8 +494,7 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists metric descriptors that match a filter. This method does not require a Stackdriver - * account. + * Lists metric descriptors that match a filter. This method does not require a Workspace. * *
Sample code: * @@ -527,8 +519,7 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists metric descriptors that match a filter. This method does not require a Stackdriver - * account. + * Lists metric descriptors that match a filter. This method does not require a Workspace. * *
Sample code: * @@ -560,7 +551,7 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets a single metric descriptor. This method does not require a Stackdriver account. + * Gets a single metric descriptor. This method does not require a Workspace. * *
Sample code: * @@ -587,7 +578,7 @@ public final MetricDescriptor getMetricDescriptor(MetricDescriptorName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets a single metric descriptor. This method does not require a Stackdriver account. + * Gets a single metric descriptor. This method does not require a Workspace. * *
Sample code: * @@ -612,7 +603,7 @@ public final MetricDescriptor getMetricDescriptor(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets a single metric descriptor. This method does not require a Stackdriver account. + * Gets a single metric descriptor. This method does not require a Workspace. * *
Sample code: * @@ -635,7 +626,7 @@ public final MetricDescriptor getMetricDescriptor(GetMetricDescriptorRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets a single metric descriptor. This method does not require a Stackdriver account. + * Gets a single metric descriptor. This method does not require a Workspace. * *
Sample code: * @@ -872,7 +863,7 @@ public final void deleteMetricDescriptor(DeleteMetricDescriptorRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists time series that match a filter. This method does not require a Stackdriver account. + * Lists time series that match a filter. This method does not require a Workspace. * *
Sample code: * @@ -918,7 +909,7 @@ public final ListTimeSeriesPagedResponse listTimeSeries( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists time series that match a filter. This method does not require a Stackdriver account. + * Lists time series that match a filter. This method does not require a Workspace. * *
Sample code: * @@ -964,7 +955,7 @@ public final ListTimeSeriesPagedResponse listTimeSeries( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists time series that match a filter. This method does not require a Stackdriver account. + * Lists time series that match a filter. This method does not require a Workspace. * *
Sample code: * @@ -995,7 +986,7 @@ public final ListTimeSeriesPagedResponse listTimeSeries(ListTimeSeriesRequest re // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists time series that match a filter. This method does not require a Stackdriver account. + * Lists time series that match a filter. This method does not require a Workspace. * *
Sample code: * @@ -1026,7 +1017,7 @@ public final ListTimeSeriesPagedResponse listTimeSeries(ListTimeSeriesRequest re // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists time series that match a filter. This method does not require a Stackdriver account. + * Lists time series that match a filter. This method does not require a Workspace. * *
Sample code: * 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 91e2d542..1822f954 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 @@ -53,7 +53,7 @@ // AUTO-GENERATED DOCUMENTATION AND SERVICE /** - * Service Description: The Stackdriver Monitoring Service-Oriented Monitoring API has endpoints for + * Service Description: The Cloud Monitoring Service-Oriented Monitoring API has endpoints for * managing and querying aspects of a workspace's services. These include the `Service`'s monitored * resources, its Service-Level Objectives, and a taxonomy of categorized Health Metrics. * @@ -190,8 +190,8 @@ public ServiceMonitoringServiceStub getStub() { * } * * - * @param parent Required. Resource name of the parent workspace. Of the form - * `projects/{project_id}`. + * @param parent Required. Resource 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 */ @@ -218,8 +218,8 @@ public final Service createService(ProjectName parent, Service service) { * } * * - * @param parent Required. Resource name of the parent workspace. Of the form - * `projects/{project_id}`. + * @param parent Required. Resource 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
*/
@@ -291,8 +291,8 @@ public final UnaryCallable projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Service getService(ServiceName name) {
@@ -314,8 +314,8 @@ public final Service getService(ServiceName name) {
* }
*
*
- * @param name Required. Resource name of the `Service`. Of the form
- * `projects/{project_id}/services/{service_id}`.
+ * @param name Required. Resource name of the `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Service getService(String name) {
@@ -383,8 +383,9 @@ 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
*/
public final ListServicesPagedResponse listServices(ProjectName parent) {
@@ -410,8 +411,9 @@ public final ListServicesPagedResponse listServices(ProjectName parent) {
* }
*
*
- * @param parent Required. Resource name of the parent `Workspace`. Of the form
- * `projects/{project_id}`.
+ * @param parent Required. Resource name of the parent containing the listed services, either a
+ * project 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
*/
public final ListServicesPagedResponse listServices(String parent) {
@@ -580,8 +582,8 @@ public final UnaryCallable projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteService(ServiceName name) {
@@ -603,8 +605,8 @@ public final void deleteService(ServiceName name) {
* }
*
*
- * @param name Required. Resource name of the `Service` to delete. Of the form
- * `projects/{project_id}/services/{service_id}`.
+ * @param name Required. Resource name of the `Service` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteService(String name) {
@@ -671,8 +673,8 @@ public final UnaryCallable projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
* @param serviceLevelObjective Required. The `ServiceLevelObjective` to create. The provided
* `name` will be respected if no `ServiceLevelObjective` exists with this name.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -701,8 +703,8 @@ public final ServiceLevelObjective createServiceLevelObjective(
* }
*
*
- * @param parent Required. Resource name of the parent `Service`. Of the form
- * `projects/{project_id}/services/{service_id}`.
+ * @param parent Required. Resource name of the parent `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
* @param serviceLevelObjective Required. The `ServiceLevelObjective` to create. The provided
* `name` will be respected if no `ServiceLevelObjective` exists with this name.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -781,8 +783,8 @@ public final ServiceLevelObjective createServiceLevelObjective(
* }
*
*
- * @param name Required. Resource name of the `ServiceLevelObjective` to get. Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * @param name Required. Resource name of the `ServiceLevelObjective` to get. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ServiceLevelObjective getServiceLevelObjective(ServiceLevelObjectiveName name) {
@@ -806,8 +808,8 @@ public final ServiceLevelObjective getServiceLevelObjective(ServiceLevelObjectiv
* }
*
*
- * @param name Required. Resource name of the `ServiceLevelObjective` to get. Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * @param name Required. Resource name of the `ServiceLevelObjective` to get. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ServiceLevelObjective getServiceLevelObjective(String name) {
@@ -878,8 +880,10 @@ public final ServiceLevelObjective getServiceLevelObjective(
* }
*
*
- * @param parent Required. Resource name of the parent `Service`. Of the form
- * `projects/{project_id}/services/{service_id}`.
+ * @param parent Required. Resource name of the parent containing the listed SLOs, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListServiceLevelObjectivesPagedResponse listServiceLevelObjectives(
@@ -906,8 +910,10 @@ public final ListServiceLevelObjectivesPagedResponse listServiceLevelObjectives(
* }
*
*
- * @param parent Required. Resource name of the parent `Service`. Of the form
- * `projects/{project_id}/services/{service_id}`.
+ * @param parent Required. Resource name of the parent containing the listed SLOs, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListServiceLevelObjectivesPagedResponse listServiceLevelObjectives(String parent) {
@@ -1086,8 +1092,8 @@ public final ServiceLevelObjective updateServiceLevelObjective(
* }
*
*
- * @param name Required. Resource name of the `ServiceLevelObjective` to delete. Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * @param name Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteServiceLevelObjective(ServiceLevelObjectiveName name) {
@@ -1111,8 +1117,8 @@ public final void deleteServiceLevelObjective(ServiceLevelObjectiveName name) {
* }
*
*
- * @param name Required. Resource name of the `ServiceLevelObjective` to delete. Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * @param name Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteServiceLevelObjective(String name) {
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 fcd600e5..8bdf8ee1 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
@@ -186,8 +186,9 @@ public UptimeCheckServiceStub getStub() {
* }
*
*
- * @param parent Required. The project whose Uptime check configurations are listed. The format is
- * `projects/[PROJECT_ID]`.
+ * @param parent Required. The project 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
*/
public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(String parent) {
@@ -295,8 +296,8 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(
* }
*
*
- * @param name Required. The Uptime check configuration to retrieve. The format is
- * `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * @param name Required. The Uptime check configuration to retrieve. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final UptimeCheckConfig getUptimeCheckConfig(UptimeCheckConfigName name) {
@@ -320,8 +321,8 @@ public final UptimeCheckConfig getUptimeCheckConfig(UptimeCheckConfigName name)
* }
*
*
- * @param name Required. The Uptime check configuration to retrieve. The format is
- * `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * @param name Required. The Uptime check configuration to retrieve. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final UptimeCheckConfig getUptimeCheckConfig(String name) {
@@ -390,8 +391,8 @@ public final UptimeCheckConfig getUptimeCheckConfig(GetUptimeCheckConfigRequest
* }
*
*
- * @param parent Required. The project in which to create the Uptime check. The format is
- * `projects/[PROJECT_ID]`.
+ * @param parent Required. The project 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
*/
@@ -551,8 +552,8 @@ public final UptimeCheckConfig updateUptimeCheckConfig(UpdateUptimeCheckConfigRe
* }
*
*
- * @param name Required. The Uptime check configuration to delete. The format is
- * `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * @param name Required. The Uptime check configuration to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteUptimeCheckConfig(UptimeCheckConfigName name) {
@@ -578,8 +579,8 @@ public final void deleteUptimeCheckConfig(UptimeCheckConfigName name) {
* }
*
*
- * @param name Required. The Uptime check configuration to delete. The format is
- * `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * @param name Required. The Uptime check configuration to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteUptimeCheckConfig(String name) {
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java
index 4014e82e..9973605d 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java
@@ -15,7 +15,7 @@
*/
/**
- * A client to Stackdriver Monitoring API.
+ * A client to Cloud Monitoring API.
*
* The interfaces provided are listed below, along with usage samples.
*
@@ -97,9 +97,9 @@
*
* ============================== ServiceMonitoringServiceClient ==============================
*
- * Service Description: The Stackdriver Monitoring Service-Oriented Monitoring API has endpoints
- * for managing and querying aspects of a workspace's services. These include the `Service`'s
- * monitored resources, its Service-Level Objectives, and a taxonomy of categorized Health Metrics.
+ * Service Description: The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
+ * managing and querying aspects of a workspace's services. These include the `Service`'s monitored
+ * resources, its Service-Level Objectives, and a taxonomy of categorized Health Metrics.
*
* Sample for ServiceMonitoringServiceClient:
*
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java
index 212021bf..9bdd015c 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java
@@ -32,7 +32,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * Base stub class for Stackdriver Monitoring API.
+ * Base stub class for Cloud Monitoring API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java
index 1dd5dce9..3f6d0d94 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java
@@ -35,7 +35,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * Base stub class for Stackdriver Monitoring API.
+ * Base stub class for Cloud Monitoring API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java
index d29752e0..b39f1b6a 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java
@@ -36,7 +36,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * gRPC callable factory implementation for Stackdriver Monitoring API.
+ * gRPC callable factory implementation for Cloud Monitoring API.
*
* This class is for advanced usage.
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java
index c9acd620..2ebcffa8 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java
@@ -43,7 +43,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * gRPC stub implementation for Stackdriver Monitoring API.
+ * gRPC stub implementation for Cloud Monitoring API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java
index ac6808c5..4386b88a 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java
@@ -36,7 +36,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * gRPC callable factory implementation for Stackdriver Monitoring API.
+ * gRPC callable factory implementation for Cloud Monitoring API.
*
* This class is for advanced usage.
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java
index c9ad53ac..b49fb87f 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java
@@ -46,7 +46,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * gRPC stub implementation for Stackdriver Monitoring API.
+ * gRPC stub implementation for Cloud Monitoring API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java
index 64071f51..4dc4dafb 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java
@@ -36,7 +36,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * gRPC callable factory implementation for Stackdriver Monitoring API.
+ * gRPC callable factory implementation for Cloud Monitoring API.
*
* This class is for advanced usage.
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java
index 772c3ad0..560a3b61 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java
@@ -51,7 +51,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * gRPC stub implementation for Stackdriver Monitoring API.
+ * gRPC stub implementation for Cloud Monitoring API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java
index 4283ab08..a37b34b8 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java
@@ -36,7 +36,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * gRPC callable factory implementation for Stackdriver Monitoring API.
+ * gRPC callable factory implementation for Cloud Monitoring API.
*
* This class is for advanced usage.
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java
index 1b092fb1..05634628 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java
@@ -52,7 +52,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * gRPC stub implementation for Stackdriver Monitoring API.
+ * gRPC stub implementation for Cloud Monitoring API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java
index ceff3938..a662131c 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java
@@ -36,7 +36,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * gRPC callable factory implementation for Stackdriver Monitoring API.
+ * gRPC callable factory implementation for Cloud Monitoring API.
*
* This class is for advanced usage.
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java
index 1a73cc25..aa5b0f88 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java
@@ -51,7 +51,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * gRPC stub implementation for Stackdriver Monitoring API.
+ * gRPC stub implementation for Cloud Monitoring API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java
index 66cc8837..1b039464 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java
@@ -36,7 +36,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * gRPC callable factory implementation for Stackdriver Monitoring API.
+ * gRPC callable factory implementation for Cloud Monitoring API.
*
* This class is for advanced usage.
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java
index 06232eac..01f4f296 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java
@@ -46,7 +46,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * gRPC stub implementation for Stackdriver Monitoring API.
+ * gRPC stub implementation for Cloud Monitoring API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java
index d731519b..a7025349 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java
@@ -40,7 +40,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * Base stub class for Stackdriver Monitoring API.
+ * Base stub class for Cloud Monitoring API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java
index 3a8c561d..3d65e9b8 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java
@@ -41,7 +41,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * Base stub class for Stackdriver Monitoring API.
+ * Base stub class for Cloud Monitoring API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java
index 8d5f480e..dbe1fc11 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java
@@ -40,7 +40,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * Base stub class for Stackdriver Monitoring API.
+ * Base stub class for Cloud Monitoring API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java
index ec9f3b7a..fbde4c1b 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java
@@ -35,7 +35,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
- * Base stub class for Stackdriver Monitoring API.
+ * Base stub class for Cloud Monitoring API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
diff --git a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java
index 8d5e153c..9963b9c6 100644
--- a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java
+++ b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java
@@ -474,7 +474,7 @@ public abstract static class MetricServiceImplBase implements io.grpc.BindableSe
*
*
*
- * Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account.
+ * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
*
*/
public void listMonitoredResourceDescriptors(
@@ -489,7 +489,7 @@ public void listMonitoredResourceDescriptors(
*
*
*
- * Gets a single monitored resource descriptor. This method does not require a Stackdriver account.
+ * Gets a single monitored resource descriptor. This method does not require a Workspace.
*
*/
public void getMonitoredResourceDescriptor(
@@ -502,7 +502,7 @@ public void getMonitoredResourceDescriptor(
*
*
*
- * Lists metric descriptors that match a filter. This method does not require a Stackdriver account.
+ * Lists metric descriptors that match a filter. This method does not require a Workspace.
*
*/
public void listMetricDescriptors(
@@ -516,7 +516,7 @@ public void listMetricDescriptors(
*
*
*
- * Gets a single metric descriptor. This method does not require a Stackdriver account.
+ * Gets a single metric descriptor. This method does not require a Workspace.
*
*/
public void getMetricDescriptor(
@@ -559,7 +559,7 @@ public void deleteMetricDescriptor(
*
*
*
- * Lists time series that match a filter. This method does not require a Stackdriver account.
+ * Lists time series that match a filter. This method does not require a Workspace.
*
*/
public void listTimeSeries(
@@ -667,7 +667,7 @@ protected MetricServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions c
*
*
*
- * Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account.
+ * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
*
*/
public void listMonitoredResourceDescriptors(
@@ -685,7 +685,7 @@ public void listMonitoredResourceDescriptors(
*
*
*
- * Gets a single monitored resource descriptor. This method does not require a Stackdriver account.
+ * Gets a single monitored resource descriptor. This method does not require a Workspace.
*
*/
public void getMonitoredResourceDescriptor(
@@ -701,7 +701,7 @@ public void getMonitoredResourceDescriptor(
*
*
*
- * Lists metric descriptors that match a filter. This method does not require a Stackdriver account.
+ * Lists metric descriptors that match a filter. This method does not require a Workspace.
*
*/
public void listMetricDescriptors(
@@ -718,7 +718,7 @@ public void listMetricDescriptors(
*
*
*
- * Gets a single metric descriptor. This method does not require a Stackdriver account.
+ * Gets a single metric descriptor. This method does not require a Workspace.
*
*/
public void getMetricDescriptor(
@@ -770,7 +770,7 @@ public void deleteMetricDescriptor(
*
*
*
- * Lists time series that match a filter. This method does not require a Stackdriver account.
+ * Lists time series that match a filter. This method does not require a Workspace.
*
*/
public void listTimeSeries(
@@ -827,7 +827,7 @@ protected MetricServiceBlockingStub build(
*
*
*
- * Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account.
+ * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
*
*/
public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse
@@ -841,7 +841,7 @@ protected MetricServiceBlockingStub build(
*
*
*
- * Gets a single monitored resource descriptor. This method does not require a Stackdriver account.
+ * Gets a single monitored resource descriptor. This method does not require a Workspace.
*
*/
public com.google.api.MonitoredResourceDescriptor getMonitoredResourceDescriptor(
@@ -854,7 +854,7 @@ public com.google.api.MonitoredResourceDescriptor getMonitoredResourceDescriptor
*
*
*
- * Lists metric descriptors that match a filter. This method does not require a Stackdriver account.
+ * Lists metric descriptors that match a filter. This method does not require a Workspace.
*
*/
public com.google.monitoring.v3.ListMetricDescriptorsResponse listMetricDescriptors(
@@ -867,7 +867,7 @@ public com.google.monitoring.v3.ListMetricDescriptorsResponse listMetricDescript
*
*
*
- * Gets a single metric descriptor. This method does not require a Stackdriver account.
+ * Gets a single metric descriptor. This method does not require a Workspace.
*
*/
public com.google.api.MetricDescriptor getMetricDescriptor(
@@ -910,7 +910,7 @@ public com.google.protobuf.Empty deleteMetricDescriptor(
*
*
*
- * Lists time series that match a filter. This method does not require a Stackdriver account.
+ * Lists time series that match a filter. This method does not require a Workspace.
*
*/
public com.google.monitoring.v3.ListTimeSeriesResponse listTimeSeries(
@@ -959,7 +959,7 @@ protected MetricServiceFutureStub build(
*
*
*
- * Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account.
+ * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
@@ -975,7 +975,7 @@ protected MetricServiceFutureStub build(
*
*
*
- * Gets a single monitored resource descriptor. This method does not require a Stackdriver account.
+ * Gets a single monitored resource descriptor. This method does not require a Workspace.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
@@ -991,7 +991,7 @@ protected MetricServiceFutureStub build(
*
*
*
- * Lists metric descriptors that match a filter. This method does not require a Stackdriver account.
+ * Lists metric descriptors that match a filter. This method does not require a Workspace.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
@@ -1005,7 +1005,7 @@ protected MetricServiceFutureStub build(
*
*
*
- * Gets a single metric descriptor. This method does not require a Stackdriver account.
+ * Gets a single metric descriptor. This method does not require a Workspace.
*
*/
public com.google.common.util.concurrent.ListenableFuture
- * Lists time series that match a filter. This method does not require a Stackdriver account.
+ * Lists time series that match a filter. This method does not require a Workspace.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
diff --git a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java
index 4a465b7c..f0aa314d 100644
--- a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java
+++ b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java
@@ -26,7 +26,7 @@
*
*
*
- * The Stackdriver Monitoring Service-Oriented Monitoring API has endpoints for
+ * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
* managing and querying aspects of a workspace's services. These include the
* `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
* of categorized Health Metrics.
@@ -560,7 +560,7 @@ public ServiceMonitoringServiceFutureStub newStub(
*
*
*
*
@@ -2549,8 +2625,8 @@ public interface MetricThresholdOrBuilder
* members of a group of resrouces). Multiple aggregations
* are applied in the order specified.
* This field is similar to the one in the [`ListTimeSeries`
- * request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It
- * is advisable to use the `ListTimeSeries` method when debugging this
+ * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+ * It is advisable to use the `ListTimeSeries` method when debugging this
* field.
*
*
@@ -2568,8 +2644,8 @@ public interface MetricThresholdOrBuilder
* members of a group of resrouces). Multiple aggregations
* are applied in the order specified.
* This field is similar to the one in the [`ListTimeSeries`
- * request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It
- * is advisable to use the `ListTimeSeries` method when debugging this
+ * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+ * It is advisable to use the `ListTimeSeries` method when debugging this
* field.
*
*
@@ -2588,8 +2664,8 @@ public interface MetricThresholdOrBuilder
* members of a group of resrouces). Multiple aggregations
* are applied in the order specified.
* This field is similar to the one in the [`ListTimeSeries`
- * request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It
- * is advisable to use the `ListTimeSeries` method when debugging this
+ * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+ * It is advisable to use the `ListTimeSeries` method when debugging this
* field.
*
*
@@ -3077,8 +3153,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* identifies which time series should be compared with the threshold.
* The filter is similar to the one that is specified in the
* [`ListTimeSeries`
- * request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) (that
- * call is useful to verify the time series that will be retrieved /
+ * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
+ * (that call is useful to verify the time series that will be retrieved /
* processed) and must specify the metric type and optionally may contain
* restrictions on resource type, resource labels, and metric labels.
* This field may not exceed 2048 Unicode characters in length.
@@ -3107,8 +3183,8 @@ public java.lang.String getFilter() {
* identifies which time series should be compared with the threshold.
* The filter is similar to the one that is specified in the
* [`ListTimeSeries`
- * request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) (that
- * call is useful to verify the time series that will be retrieved /
+ * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
+ * (that call is useful to verify the time series that will be retrieved /
* processed) and must specify the metric type and optionally may contain
* restrictions on resource type, resource labels, and metric labels.
* This field may not exceed 2048 Unicode characters in length.
@@ -3143,8 +3219,8 @@ public com.google.protobuf.ByteString getFilterBytes() {
* members of a group of resrouces). Multiple aggregations
* are applied in the order specified.
* This field is similar to the one in the [`ListTimeSeries`
- * request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It
- * is advisable to use the `ListTimeSeries` method when debugging this
+ * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+ * It is advisable to use the `ListTimeSeries` method when debugging this
* field.
*
*
@@ -3164,8 +3240,8 @@ public java.util.List
- * The Stackdriver Monitoring Service-Oriented Monitoring API has endpoints for
+ * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
* managing and querying aspects of a workspace's services. These include the
* `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
* of categorized Health Metrics.
@@ -778,7 +778,7 @@ public final io.grpc.ServerServiceDefinition bindService() {
*
*
*
*
@@ -2530,8 +2606,8 @@ public interface MetricThresholdOrBuilder
* members of a group of resrouces). Multiple aggregations
* are applied in the order specified.
* This field is similar to the one in the [`ListTimeSeries`
- * request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It
- * is advisable to use the `ListTimeSeries` method when debugging this
+ * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+ * It is advisable to use the `ListTimeSeries` method when debugging this
* field.
*
- * The Stackdriver Monitoring Service-Oriented Monitoring API has endpoints for
+ * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
* managing and querying aspects of a workspace's services. These include the
* `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
* of categorized Health Metrics.
@@ -964,7 +964,7 @@ public void deleteServiceLevelObjective(
*
*
*
*
* Protobuf type {@code google.monitoring.v3.AlertPolicy}
@@ -1529,6 +1529,55 @@ public interface ConditionOrBuilder
com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder
getConditionAbsentOrBuilder();
+ /**
+ *
+ *
+ *
- * The Stackdriver Monitoring Service-Oriented Monitoring API has endpoints for
+ * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
* managing and querying aspects of a workspace's services. These include the
* `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
* of categorized Health Metrics.
@@ -1113,7 +1113,7 @@ public com.google.protobuf.Empty deleteServiceLevelObjective(
*
*
*
*
* Protobuf type {@code google.monitoring.v3.Aggregation}
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java
index afd14fc9..67330356 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java
@@ -25,7 +25,7 @@
* A description of the conditions under which some aspect of your system is
* considered to be "unhealthy" and the ways to notify people or services about
* this state. For an overview of alert policies, see
- * [Introduction to Alerting](/monitoring/alerts/).
+ * [Introduction to Alerting](https://cloud.google.com/monitoring/alerts/).
*
- * The Stackdriver Monitoring Service-Oriented Monitoring API has endpoints for
+ * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
* managing and querying aspects of a workspace's services. These include the
* `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
* of categorized Health Metrics.
diff --git a/proto-google-cloud-monitoring-v3/clirr-ignored-differences.xml b/proto-google-cloud-monitoring-v3/clirr-ignored-differences.xml
index 214ac4f4..95972285 100644
--- a/proto-google-cloud-monitoring-v3/clirr-ignored-differences.xml
+++ b/proto-google-cloud-monitoring-v3/clirr-ignored-differences.xml
@@ -1,9 +1,19 @@
*
* Protobuf type {@code google.monitoring.v3.Aggregation}
@@ -1866,7 +1866,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* representative data can be more easily graphed and comprehended, and the
* individual time series data is still available for later drilldown. For more
* details, see [Aggregating Time
- * Series](/monitoring/api/v3/metrics#aggregating_time_series).
+ * Series](https://cloud.google.com/monitoring/api/v3/metrics#aggregating_time_series).
*
+ * A condition that uses the time series query language format to define
+ * alerts.
+ * If set, no other conditions can be present.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition condition_time_series_query_language = 14;
+ *
+ *
+ * @return Whether the conditionTimeSeriesQueryLanguage field is set.
+ */
+ boolean hasConditionTimeSeriesQueryLanguage();
+ /**
+ *
+ *
+ *
+ * A condition that uses the time series query language format to define
+ * alerts.
+ * If set, no other conditions can be present.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition condition_time_series_query_language = 14;
+ *
+ *
+ * @return The conditionTimeSeriesQueryLanguage.
+ */
+ com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ getConditionTimeSeriesQueryLanguage();
+ /**
+ *
+ *
+ *
+ * A condition that uses the time series query language format to define
+ * alerts.
+ * If set, no other conditions can be present.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition condition_time_series_query_language = 14;
+ *
+ */
+ com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageConditionOrBuilder
+ getConditionTimeSeriesQueryLanguageOrBuilder();
+
public com.google.monitoring.v3.AlertPolicy.Condition.ConditionCase getConditionCase();
}
/**
@@ -1642,6 +1691,33 @@ private Condition(
name_ = s;
break;
}
+ case 114:
+ {
+ com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ .Builder
+ subBuilder = null;
+ if (conditionCase_ == 14) {
+ subBuilder =
+ ((com.google.monitoring.v3.AlertPolicy.Condition
+ .TimeSeriesQueryLanguageCondition)
+ condition_)
+ .toBuilder();
+ }
+ condition_ =
+ input.readMessage(
+ com.google.monitoring.v3.AlertPolicy.Condition
+ .TimeSeriesQueryLanguageCondition.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.monitoring.v3.AlertPolicy.Condition
+ .TimeSeriesQueryLanguageCondition)
+ condition_);
+ condition_ = subBuilder.buildPartial();
+ }
+ conditionCase_ = 14;
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -2467,8 +2543,8 @@ public interface MetricThresholdOrBuilder
* identifies which time series should be compared with the threshold.
* The filter is similar to the one that is specified in the
* [`ListTimeSeries`
- * request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) (that
- * call is useful to verify the time series that will be retrieved /
+ * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
+ * (that call is useful to verify the time series that will be retrieved /
* processed) and must specify the metric type and optionally may contain
* restrictions on resource type, resource labels, and metric labels.
* This field may not exceed 2048 Unicode characters in length.
@@ -2487,8 +2563,8 @@ public interface MetricThresholdOrBuilder
* identifies which time series should be compared with the threshold.
* The filter is similar to the one that is specified in the
* [`ListTimeSeries`
- * request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) (that
- * call is useful to verify the time series that will be retrieved /
+ * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
+ * (that call is useful to verify the time series that will be retrieved /
* processed) and must specify the metric type and optionally may contain
* restrictions on resource type, resource labels, and metric labels.
* This field may not exceed 2048 Unicode characters in length.
@@ -2511,8 +2587,8 @@ public interface MetricThresholdOrBuilder
* members of a group of resrouces). Multiple aggregations
* are applied in the order specified.
* This field is similar to the one in the [`ListTimeSeries`
- * request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It
- * is advisable to use the `ListTimeSeries` method when debugging this
+ * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+ * It is advisable to use the `ListTimeSeries` method when debugging this
* field.
*
+ * A query in the time series query language format that generates time
+ * series indicating points in time that the condition should be
+ * considered active.
+ *
+ *
+ * string query = 1;
+ *
+ * @return The query.
*/
- @java.lang.Deprecated
- public static ConditionCase valueOf(int value) {
- return forNumber(value);
- }
-
- public static ConditionCase forNumber(int value) {
- switch (value) {
- case 1:
- return CONDITION_THRESHOLD;
- case 2:
- return CONDITION_ABSENT;
- case 0:
- return CONDITION_NOT_SET;
- default:
- return null;
- }
- }
-
- public int getNumber() {
- return this.value;
- }
- };
+ java.lang.String getQuery();
+ /**
+ *
+ *
+ *
+ * A query in the time series query language format that generates time
+ * series indicating points in time that the condition should be
+ * considered active.
+ *
+ *
+ * string query = 1;
+ *
+ * @return The bytes for query.
+ */
+ com.google.protobuf.ByteString getQueryBytes();
- public ConditionCase getConditionCase() {
- return ConditionCase.forNumber(conditionCase_);
+ /**
+ *
+ *
+ *
+ * A short explanation of what the query represents. For example:
+ * "Error ratio exceeds 15% for >5% of servers in >2 regions"
+ *
+ *
+ * string summary = 2;
+ *
+ * @return The summary.
+ */
+ java.lang.String getSummary();
+ /**
+ *
+ *
+ *
+ * A short explanation of what the query represents. For example:
+ * "Error ratio exceeds 15% for >5% of servers in >2 regions"
+ *
+ *
+ * string summary = 2;
+ *
+ * @return The bytes for summary.
+ */
+ com.google.protobuf.ByteString getSummaryBytes();
}
-
- 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.
+ * A condition type that allows alert policies to be defined using the
+ * time series query language.
*
*
- * string name = 12;
- *
- * @return The name.
+ * Protobuf type {@code
+ * google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition}
*/
- 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;
+ public static final class TimeSeriesQueryLanguageCondition
+ extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition)
+ TimeSeriesQueryLanguageConditionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TimeSeriesQueryLanguageCondition.newBuilder() to construct.
+ private TimeSeriesQueryLanguageCondition(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(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 bytes for name.
- */
- public com.google.protobuf.ByteString getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+
+ private TimeSeriesQueryLanguageCondition() {
+ query_ = "";
+ summary_ = "";
}
- }
- 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.
- */
- 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;
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new TimeSeriesQueryLanguageCondition();
}
- }
- /**
- *
- *
- *
- * 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 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;
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
}
- }
- public static final int CONDITION_THRESHOLD_FIELD_NUMBER = 1;
- /**
- *
- *
- *
- * A condition that compares a time series against a threshold.
- *
- *
+ private TimeSeriesQueryLanguageCondition(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ query_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ summary_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.monitoring.v3.AlertProto
+ .internal_static_google_monitoring_v3_AlertPolicy_Condition_TimeSeriesQueryLanguageCondition_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.monitoring.v3.AlertProto
+ .internal_static_google_monitoring_v3_AlertPolicy_Condition_TimeSeriesQueryLanguageCondition_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ .class,
+ com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ .Builder.class);
+ }
+
+ public static final int QUERY_FIELD_NUMBER = 1;
+ private volatile java.lang.Object query_;
+ /**
+ *
+ *
+ *
+ * A query in the time series query language format that generates time
+ * series indicating points in time that the condition should be
+ * considered active.
+ *
+ *
+ * string query = 1;
+ *
+ * @return The query.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A query in the time series query language format that generates time
+ * series indicating points in time that the condition should be
+ * considered active.
+ *
+ *
+ * string query = 1;
+ *
+ * @return The bytes for query.
+ */
+ 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 static final int SUMMARY_FIELD_NUMBER = 2;
+ private volatile java.lang.Object summary_;
+ /**
+ *
+ *
+ *
+ * A short explanation of what the query represents. For example:
+ * "Error ratio exceeds 15% for >5% of servers in >2 regions"
+ *
+ *
+ * string summary = 2;
+ *
+ * @return The summary.
+ */
+ public java.lang.String getSummary() {
+ java.lang.Object ref = summary_;
+ 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();
+ summary_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A short explanation of what the query represents. For example:
+ * "Error ratio exceeds 15% for >5% of servers in >2 regions"
+ *
+ *
+ * string summary = 2;
+ *
+ * @return The bytes for summary.
+ */
+ public com.google.protobuf.ByteString getSummaryBytes() {
+ java.lang.Object ref = summary_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ summary_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getQueryBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_);
+ }
+ if (!getSummaryBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, summary_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getQueryBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_);
+ }
+ if (!getSummaryBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, summary_);
+ }
+ 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.TimeSeriesQueryLanguageCondition)) {
+ return super.equals(obj);
+ }
+ com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition other =
+ (com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition) obj;
+
+ if (!getQuery().equals(other.getQuery())) return false;
+ if (!getSummary().equals(other.getSummary())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + getQuery().hashCode();
+ hash = (37 * hash) + SUMMARY_FIELD_NUMBER;
+ hash = (53 * hash) + getSummary().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ 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.TimeSeriesQueryLanguageCondition
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ 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.TimeSeriesQueryLanguageCondition
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ 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.TimeSeriesQueryLanguageCondition
+ 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.TimeSeriesQueryLanguageCondition
+ 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.TimeSeriesQueryLanguageCondition
+ 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.TimeSeriesQueryLanguageCondition
+ 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.TimeSeriesQueryLanguageCondition
+ 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.TimeSeriesQueryLanguageCondition
+ 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.TimeSeriesQueryLanguageCondition
+ 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 the
+ * time series query language.
+ *
+ *
+ * Protobuf type {@code
+ * google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A query in the time series query language format that generates time
+ * series indicating points in time that the condition should be
+ * considered active.
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A query in the time series query language format that generates time
+ * series indicating points in time that the condition should be
+ * considered active.
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A query in the time series query language format that generates time
+ * series indicating points in time that the condition should be
+ * considered active.
+ *
+ *
+ * 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;
+ }
+ /**
+ *
+ *
+ *
+ * A query in the time series query language format that generates time
+ * series indicating points in time that the condition should be
+ * considered active.
+ *
+ *
+ * string query = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQuery() {
+
+ query_ = getDefaultInstance().getQuery();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A query in the time series query language format that generates time
+ * series indicating points in time that the condition should be
+ * considered active.
+ *
+ *
+ * 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 java.lang.Object summary_ = "";
+ /**
+ *
+ *
+ *
+ * A short explanation of what the query represents. For example:
+ * "Error ratio exceeds 15% for >5% of servers in >2 regions"
+ *
+ *
+ * string summary = 2;
+ *
+ * @return The summary.
+ */
+ public java.lang.String getSummary() {
+ java.lang.Object ref = summary_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ summary_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A short explanation of what the query represents. For example:
+ * "Error ratio exceeds 15% for >5% of servers in >2 regions"
+ *
+ *
+ * string summary = 2;
+ *
+ * @return The bytes for summary.
+ */
+ public com.google.protobuf.ByteString getSummaryBytes() {
+ java.lang.Object ref = summary_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ summary_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A short explanation of what the query represents. For example:
+ * "Error ratio exceeds 15% for >5% of servers in >2 regions"
+ *
+ *
+ * string summary = 2;
+ *
+ * @param value The summary to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSummary(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ summary_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A short explanation of what the query represents. For example:
+ * "Error ratio exceeds 15% for >5% of servers in >2 regions"
+ *
+ *
+ * string summary = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSummary() {
+
+ summary_ = getDefaultInstance().getSummary();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A short explanation of what the query represents. For example:
+ * "Error ratio exceeds 15% for >5% of servers in >2 regions"
+ *
+ *
+ * string summary = 2;
+ *
+ * @param value The bytes for summary to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSummaryBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ summary_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition)
+ private static final com.google.monitoring.v3.AlertPolicy.Condition
+ .TimeSeriesQueryLanguageCondition
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition();
+ }
+
+ public static com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ 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.
+ */
+ 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.
+ */
+ 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.
+ */
+ 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.
+ */
+ 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;
*
*
@@ -8732,6 +9733,72 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getCondition
return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance();
}
+ public static final int CONDITION_TIME_SERIES_QUERY_LANGUAGE_FIELD_NUMBER = 14;
+ /**
+ *
+ *
+ *
+ * A condition that uses the time series query language format to define
+ * alerts.
+ * If set, no other conditions can be present.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition condition_time_series_query_language = 14;
+ *
+ *
+ * @return Whether the conditionTimeSeriesQueryLanguage field is set.
+ */
+ public boolean hasConditionTimeSeriesQueryLanguage() {
+ return conditionCase_ == 14;
+ }
+ /**
+ *
+ *
+ *
+ * A condition that uses the time series query language format to define
+ * alerts.
+ * If set, no other conditions can be present.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition condition_time_series_query_language = 14;
+ *
+ *
+ * @return The conditionTimeSeriesQueryLanguage.
+ */
+ public com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ getConditionTimeSeriesQueryLanguage() {
+ if (conditionCase_ == 14) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition)
+ condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * A condition that uses the time series query language format to define
+ * alerts.
+ * If set, no other conditions can be present.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition condition_time_series_query_language = 14;
+ *
+ */
+ public com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageConditionOrBuilder
+ getConditionTimeSeriesQueryLanguageOrBuilder() {
+ if (conditionCase_ == 14) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition)
+ condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ .getDefaultInstance();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -8760,6 +9827,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, name_);
}
+ if (conditionCase_ == 14) {
+ output.writeMessage(
+ 14,
+ (com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition)
+ condition_);
+ }
unknownFields.writeTo(output);
}
@@ -8785,6 +9858,13 @@ public int getSerializedSize() {
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, name_);
}
+ if (conditionCase_ == 14) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 14,
+ (com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition)
+ condition_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -8811,6 +9891,10 @@ public boolean equals(final java.lang.Object obj) {
case 2:
if (!getConditionAbsent().equals(other.getConditionAbsent())) return false;
break;
+ case 14:
+ if (!getConditionTimeSeriesQueryLanguage()
+ .equals(other.getConditionTimeSeriesQueryLanguage())) return false;
+ break;
case 0:
default:
}
@@ -8838,6 +9922,10 @@ public int hashCode() {
hash = (37 * hash) + CONDITION_ABSENT_FIELD_NUMBER;
hash = (53 * hash) + getConditionAbsent().hashCode();
break;
+ case 14:
+ hash = (37 * hash) + CONDITION_TIME_SERIES_QUERY_LANGUAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getConditionTimeSeriesQueryLanguage().hashCode();
+ break;
case 0:
default:
}
@@ -9039,6 +10127,13 @@ public com.google.monitoring.v3.AlertPolicy.Condition buildPartial() {
result.condition_ = conditionAbsentBuilder_.build();
}
}
+ if (conditionCase_ == 14) {
+ if (conditionTimeSeriesQueryLanguageBuilder_ == null) {
+ result.condition_ = condition_;
+ } else {
+ result.condition_ = conditionTimeSeriesQueryLanguageBuilder_.build();
+ }
+ }
result.conditionCase_ = conditionCase_;
onBuilt();
return result;
@@ -9111,6 +10206,11 @@ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition other) {
mergeConditionAbsent(other.getConditionAbsent());
break;
}
+ case CONDITION_TIME_SERIES_QUERY_LANGUAGE:
+ {
+ mergeConditionTimeSeriesQueryLanguage(other.getConditionTimeSeriesQueryLanguage());
+ break;
+ }
case CONDITION_NOT_SET:
{
break;
@@ -9933,6 +11033,274 @@ public Builder clearConditionAbsent() {
return conditionAbsentBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition,
+ com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ .Builder,
+ com.google.monitoring.v3.AlertPolicy.Condition
+ .TimeSeriesQueryLanguageConditionOrBuilder>
+ conditionTimeSeriesQueryLanguageBuilder_;
+ /**
+ *
+ *
+ *
+ * A condition that uses the time series query language format to define
+ * alerts.
+ * If set, no other conditions can be present.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition condition_time_series_query_language = 14;
+ *
+ *
+ * @return Whether the conditionTimeSeriesQueryLanguage field is set.
+ */
+ public boolean hasConditionTimeSeriesQueryLanguage() {
+ return conditionCase_ == 14;
+ }
+ /**
+ *
+ *
+ *
+ * A condition that uses the time series query language format to define
+ * alerts.
+ * If set, no other conditions can be present.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition condition_time_series_query_language = 14;
+ *
+ *
+ * @return The conditionTimeSeriesQueryLanguage.
+ */
+ public com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ getConditionTimeSeriesQueryLanguage() {
+ if (conditionTimeSeriesQueryLanguageBuilder_ == null) {
+ if (conditionCase_ == 14) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition)
+ condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ .getDefaultInstance();
+ } else {
+ if (conditionCase_ == 14) {
+ return conditionTimeSeriesQueryLanguageBuilder_.getMessage();
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A condition that uses the time series query language format to define
+ * alerts.
+ * If set, no other conditions can be present.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition condition_time_series_query_language = 14;
+ *
+ */
+ public Builder setConditionTimeSeriesQueryLanguage(
+ com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition value) {
+ if (conditionTimeSeriesQueryLanguageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ condition_ = value;
+ onChanged();
+ } else {
+ conditionTimeSeriesQueryLanguageBuilder_.setMessage(value);
+ }
+ conditionCase_ = 14;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A condition that uses the time series query language format to define
+ * alerts.
+ * If set, no other conditions can be present.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition condition_time_series_query_language = 14;
+ *
+ */
+ public Builder setConditionTimeSeriesQueryLanguage(
+ com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition.Builder
+ builderForValue) {
+ if (conditionTimeSeriesQueryLanguageBuilder_ == null) {
+ condition_ = builderForValue.build();
+ onChanged();
+ } else {
+ conditionTimeSeriesQueryLanguageBuilder_.setMessage(builderForValue.build());
+ }
+ conditionCase_ = 14;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A condition that uses the time series query language format to define
+ * alerts.
+ * If set, no other conditions can be present.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition condition_time_series_query_language = 14;
+ *
+ */
+ public Builder mergeConditionTimeSeriesQueryLanguage(
+ com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition value) {
+ if (conditionTimeSeriesQueryLanguageBuilder_ == null) {
+ if (conditionCase_ == 14
+ && condition_
+ != com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ .getDefaultInstance()) {
+ condition_ =
+ com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ .newBuilder(
+ (com.google.monitoring.v3.AlertPolicy.Condition
+ .TimeSeriesQueryLanguageCondition)
+ condition_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ condition_ = value;
+ }
+ onChanged();
+ } else {
+ if (conditionCase_ == 14) {
+ conditionTimeSeriesQueryLanguageBuilder_.mergeFrom(value);
+ }
+ conditionTimeSeriesQueryLanguageBuilder_.setMessage(value);
+ }
+ conditionCase_ = 14;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A condition that uses the time series query language format to define
+ * alerts.
+ * If set, no other conditions can be present.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition condition_time_series_query_language = 14;
+ *
+ */
+ public Builder clearConditionTimeSeriesQueryLanguage() {
+ if (conditionTimeSeriesQueryLanguageBuilder_ == null) {
+ if (conditionCase_ == 14) {
+ conditionCase_ = 0;
+ condition_ = null;
+ onChanged();
+ }
+ } else {
+ if (conditionCase_ == 14) {
+ conditionCase_ = 0;
+ condition_ = null;
+ }
+ conditionTimeSeriesQueryLanguageBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A condition that uses the time series query language format to define
+ * alerts.
+ * If set, no other conditions can be present.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition condition_time_series_query_language = 14;
+ *
+ */
+ public com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition.Builder
+ getConditionTimeSeriesQueryLanguageBuilder() {
+ return getConditionTimeSeriesQueryLanguageFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * A condition that uses the time series query language format to define
+ * alerts.
+ * If set, no other conditions can be present.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition condition_time_series_query_language = 14;
+ *
+ */
+ public com.google.monitoring.v3.AlertPolicy.Condition
+ .TimeSeriesQueryLanguageConditionOrBuilder
+ getConditionTimeSeriesQueryLanguageOrBuilder() {
+ if ((conditionCase_ == 14) && (conditionTimeSeriesQueryLanguageBuilder_ != null)) {
+ return conditionTimeSeriesQueryLanguageBuilder_.getMessageOrBuilder();
+ } else {
+ if (conditionCase_ == 14) {
+ return (com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition)
+ condition_;
+ }
+ return com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A condition that uses the time series query language format to define
+ * alerts.
+ * If set, no other conditions can be present.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition condition_time_series_query_language = 14;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition,
+ com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ .Builder,
+ com.google.monitoring.v3.AlertPolicy.Condition
+ .TimeSeriesQueryLanguageConditionOrBuilder>
+ getConditionTimeSeriesQueryLanguageFieldBuilder() {
+ if (conditionTimeSeriesQueryLanguageBuilder_ == null) {
+ if (!(conditionCase_ == 14)) {
+ condition_ =
+ com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ .getDefaultInstance();
+ }
+ conditionTimeSeriesQueryLanguageBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition,
+ com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition
+ .Builder,
+ com.google.monitoring.v3.AlertPolicy.Condition
+ .TimeSeriesQueryLanguageConditionOrBuilder>(
+ (com.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition)
+ condition_,
+ getParentForChildren(),
+ isClean());
+ condition_ = null;
+ }
+ conditionCase_ = 14;
+ onChanged();
+ ;
+ return conditionTimeSeriesQueryLanguageBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -10992,7 +12360,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* A description of the conditions under which some aspect of your system is
* considered to be "unhealthy" and the ways to notify people or services about
* this state. For an overview of alert policies, see
- * [Introduction to Alerting](/monitoring/alerts/).
+ * [Introduction to Alerting](https://cloud.google.com/monitoring/alerts/).
*
*
* Protobuf type {@code google.monitoring.v3.AlertPolicy}
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 a6ccd2f9..07ce6bf0 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,6 +51,10 @@ 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_TimeSeriesQueryLanguageCondition_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_TimeSeriesQueryLanguageCondition_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -70,7 +74,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "google/monitoring/v3/mutation_record.pro"
+ "to\032\036google/protobuf/duration.proto\032\036goog"
+ "le/protobuf/wrappers.proto\032\027google/rpc/s"
- + "tatus.proto\"\351\020\n\013AlertPolicy\022\014\n\004name\030\001 \001("
+ + "tatus.proto\"\253\022\n\013AlertPolicy\022\014\n\004name\030\001 \001("
+ "\t\022\024\n\014display_name\030\002 \001(\t\022F\n\rdocumentation"
+ "\030\r \001(\0132/.google.monitoring.v3.AlertPolic"
+ "y.Documentation\022F\n\013user_labels\030\020 \003(\01321.g"
@@ -86,49 +90,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "cord\022=\n\017mutation_record\030\013 \001(\0132$.google.m"
+ "onitoring.v3.MutationRecord\0323\n\rDocumenta"
+ "tion\022\017\n\007content\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t"
- + "\032\222\t\n\tCondition\022\014\n\004name\030\014 \001(\t\022\024\n\014display_"
+ + "\032\324\n\n\tCondition\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"
+ ";.google.monitoring.v3.AlertPolicy.Condi"
+ "tion.MetricThresholdH\000\022U\n\020condition_abse"
+ "nt\030\002 \001(\01329.google.monitoring.v3.AlertPol"
- + "icy.Condition.MetricAbsenceH\000\0325\n\007Trigger"
- + "\022\017\n\005count\030\001 \001(\005H\000\022\021\n\007percent\030\002 \001(\001H\000B\006\n\004"
- + "type\032\201\003\n\017MetricThreshold\022\016\n\006filter\030\002 \001(\t"
- + "\0227\n\014aggregations\030\010 \003(\0132!.google.monitori"
- + "ng.v3.Aggregation\022\032\n\022denominator_filter\030"
- + "\t \001(\t\022C\n\030denominator_aggregations\030\n \003(\0132"
- + "!.google.monitoring.v3.Aggregation\0228\n\nco"
- + "mparison\030\004 \001(\0162$.google.monitoring.v3.Co"
- + "mparisonType\022\027\n\017threshold_value\030\005 \001(\001\022+\n"
- + "\010duration\030\006 \001(\0132\031.google.protobuf.Durati"
- + "on\022D\n\007trigger\030\007 \001(\01323.google.monitoring."
- + "v3.AlertPolicy.Condition.Trigger\032\313\001\n\rMet"
- + "ricAbsence\022\016\n\006filter\030\001 \001(\t\0227\n\014aggregatio"
- + "ns\030\005 \003(\0132!.google.monitoring.v3.Aggregat"
- + "ion\022+\n\010duration\030\002 \001(\0132\031.google.protobuf."
- + "Duration\022D\n\007trigger\030\003 \001(\01323.google.monit"
- + "oring.v3.AlertPolicy.Condition.Trigger:\227"
- + "\002\352A\223\002\n.monitoring.googleapis.com/AlertPo"
- + "licyCondition\022Fprojects/{project}/alertP"
- + "olicies/{alert_policy}/conditions/{condi"
- + "tion}\022Porganizations/{organization}/aler"
- + "tPolicies/{alert_policy}/conditions/{con"
- + "dition}\022Dfolders/{folder}/alertPolicies/"
- + "{alert_policy}/conditions/{condition}\022\001*"
- + "B\013\n\tcondition\0321\n\017UserLabelsEntry\022\013\n\003key\030"
- + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"a\n\025ConditionCom"
- + "binerType\022\027\n\023COMBINE_UNSPECIFIED\020\000\022\007\n\003AN"
- + "D\020\001\022\006\n\002OR\020\002\022\036\n\032AND_WITH_MATCHING_RESOURC"
- + "E\020\003:\311\001\352A\305\001\n%monitoring.googleapis.com/Al"
- + "ertPolicy\022/projects/{project}/alertPolic"
- + "ies/{alert_policy}\0229organizations/{organ"
- + "ization}/alertPolicies/{alert_policy}\022-f"
- + "olders/{folder}/alertPolicies/{alert_pol"
- + "icy}\022\001*B\242\001\n\030com.google.monitoring.v3B\nAl"
- + "ertProtoP\001Z>google.golang.org/genproto/g"
- + "oogleapis/monitoring/v3;monitoring\252\002\032Goo"
- + "gle.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\M"
- + "onitoring\\V3b\006proto3"
+ + "icy.Condition.MetricAbsenceH\000\022|\n$conditi"
+ + "on_time_series_query_language\030\016 \001(\0132L.go"
+ + "ogle.monitoring.v3.AlertPolicy.Condition"
+ + ".TimeSeriesQueryLanguageConditionH\000\0325\n\007T"
+ + "rigger\022\017\n\005count\030\001 \001(\005H\000\022\021\n\007percent\030\002 \001(\001"
+ + "H\000B\006\n\004type\032\201\003\n\017MetricThreshold\022\016\n\006filter"
+ + "\030\002 \001(\t\0227\n\014aggregations\030\010 \003(\0132!.google.mo"
+ + "nitoring.v3.Aggregation\022\032\n\022denominator_f"
+ + "ilter\030\t \001(\t\022C\n\030denominator_aggregations\030"
+ + "\n \003(\0132!.google.monitoring.v3.Aggregation"
+ + "\0228\n\ncomparison\030\004 \001(\0162$.google.monitoring"
+ + ".v3.ComparisonType\022\027\n\017threshold_value\030\005 "
+ + "\001(\001\022+\n\010duration\030\006 \001(\0132\031.google.protobuf."
+ + "Duration\022D\n\007trigger\030\007 \001(\01323.google.monit"
+ + "oring.v3.AlertPolicy.Condition.Trigger\032\313"
+ + "\001\n\rMetricAbsence\022\016\n\006filter\030\001 \001(\t\0227\n\014aggr"
+ + "egations\030\005 \003(\0132!.google.monitoring.v3.Ag"
+ + "gregation\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\032B\n TimeSeriesQueryLanguageCondition"
+ + "\022\r\n\005query\030\001 \001(\t\022\017\n\007summary\030\002 \001(\t:\227\002\352A\223\002\n"
+ + ".monitoring.googleapis.com/AlertPolicyCo"
+ + "ndition\022Fprojects/{project}/alertPolicie"
+ + "s/{alert_policy}/conditions/{condition}\022"
+ + "Porganizations/{organization}/alertPolic"
+ + "ies/{alert_policy}/conditions/{condition"
+ + "}\022Dfolders/{folder}/alertPolicies/{alert"
+ + "_policy}/conditions/{condition}\022\001*B\013\n\tco"
+ + "ndition\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022"
+ + "\r\n\005value\030\002 \001(\t:\0028\001\"a\n\025ConditionCombinerT"
+ + "ype\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/AlertPol"
+ + "icy\022/projects/{project}/alertPolicies/{a"
+ + "lert_policy}\0229organizations/{organizatio"
+ + "n}/alertPolicies/{alert_policy}\022-folders"
+ + "/{folder}/alertPolicies/{alert_policy}\022\001"
+ + "*B\242\001\n\030com.google.monitoring.v3B\nAlertPro"
+ + "toP\001Z>google.golang.org/genproto/googlea"
+ + "pis/monitoring/v3;monitoring\252\002\032Google.Cl"
+ + "oud.Monitoring.V3\312\002\032Google\\Cloud\\Monitor"
+ + "ing\\V3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -173,7 +182,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor,
new java.lang.String[] {
- "Name", "DisplayName", "ConditionThreshold", "ConditionAbsent", "Condition",
+ "Name",
+ "DisplayName",
+ "ConditionThreshold",
+ "ConditionAbsent",
+ "ConditionTimeSeriesQueryLanguage",
+ "Condition",
});
internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor =
internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor
@@ -212,6 +226,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Filter", "Aggregations", "Duration", "Trigger",
});
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_TimeSeriesQueryLanguageCondition_descriptor =
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor
+ .getNestedTypes()
+ .get(3);
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_TimeSeriesQueryLanguageCondition_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_AlertPolicy_Condition_TimeSeriesQueryLanguageCondition_descriptor,
+ new java.lang.String[] {
+ "Query", "Summary",
+ });
internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor =
internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(2);
internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_fieldAccessorTable =
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 640f39ae..1205c6c4 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
@@ -142,8 +142,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -167,8 +167,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -197,7 +197,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* Optional. The ServiceLevelObjective id to use for this
* ServiceLevelObjective. If omitted, an id will be generated instead. Must
- * match the pattern [a-z0-9\-]+
+ * match the pattern `[a-z0-9\-]+`
*
*
* string service_level_objective_id = 3;
@@ -221,7 +221,7 @@ public java.lang.String getServiceLevelObjectiveId() {
*
* Optional. The ServiceLevelObjective id to use for this
* ServiceLevelObjective. If omitted, an id will be generated instead. Must
- * match the pattern [a-z0-9\-]+
+ * match the pattern `[a-z0-9\-]+`
*
*
* string service_level_objective_id = 3;
@@ -667,8 +667,8 @@ public Builder mergeFrom(
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -692,8 +692,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -717,8 +717,8 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -741,8 +741,8 @@ public Builder setParent(java.lang.String value) {
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -761,8 +761,8 @@ public Builder clearParent() {
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -790,7 +790,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
*
* Optional. The ServiceLevelObjective id to use for this
* ServiceLevelObjective. If omitted, an id will be generated instead. Must
- * match the pattern [a-z0-9\-]+
+ * match the pattern `[a-z0-9\-]+`
*
*
* string service_level_objective_id = 3;
@@ -814,7 +814,7 @@ public java.lang.String getServiceLevelObjectiveId() {
*
* Optional. The ServiceLevelObjective id to use for this
* ServiceLevelObjective. If omitted, an id will be generated instead. Must
- * match the pattern [a-z0-9\-]+
+ * match the pattern `[a-z0-9\-]+`
*
*
* string service_level_objective_id = 3;
@@ -838,7 +838,7 @@ public com.google.protobuf.ByteString getServiceLevelObjectiveIdBytes() {
*
* Optional. The ServiceLevelObjective id to use for this
* ServiceLevelObjective. If omitted, an id will be generated instead. Must
- * match the pattern [a-z0-9\-]+
+ * match the pattern `[a-z0-9\-]+`
*
*
* string service_level_objective_id = 3;
@@ -861,7 +861,7 @@ public Builder setServiceLevelObjectiveId(java.lang.String value) {
*
* Optional. The ServiceLevelObjective id to use for this
* ServiceLevelObjective. If omitted, an id will be generated instead. Must
- * match the pattern [a-z0-9\-]+
+ * match the pattern `[a-z0-9\-]+`
*
*
* string service_level_objective_id = 3;
@@ -880,7 +880,7 @@ public Builder clearServiceLevelObjectiveId() {
*
* Optional. The ServiceLevelObjective id to use for this
* ServiceLevelObjective. If omitted, an id will be generated instead. Must
- * match the pattern [a-z0-9\-]+
+ * match the pattern `[a-z0-9\-]+`
*
*
* string service_level_objective_id = 3;
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java
index 83c18ef3..488f0661 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java
@@ -27,8 +27,8 @@ public interface CreateServiceLevelObjectiveRequestOrBuilder
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -42,8 +42,8 @@ public interface CreateServiceLevelObjectiveRequestOrBuilder
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -60,7 +60,7 @@ public interface CreateServiceLevelObjectiveRequestOrBuilder
*
* Optional. The ServiceLevelObjective id to use for this
* ServiceLevelObjective. If omitted, an id will be generated instead. Must
- * match the pattern [a-z0-9\-]+
+ * match the pattern `[a-z0-9\-]+`
*
*
* string service_level_objective_id = 3;
@@ -74,7 +74,7 @@ public interface CreateServiceLevelObjectiveRequestOrBuilder
*
* Optional. The ServiceLevelObjective id to use for this
* ServiceLevelObjective. If omitted, an id will be generated instead. Must
- * match the pattern [a-z0-9\-]+
+ * match the pattern `[a-z0-9\-]+`
*
*
* string service_level_objective_id = 3;
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 8b43f2b5..706e51a2 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,8 +140,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. Resource name of the parent workspace.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent workspace. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -165,8 +165,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. Resource name of the parent workspace.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent workspace. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -194,7 +194,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
* Optional. The Service id to use for this Service. If omitted, an id will be
- * generated instead. Must match the pattern [a-z0-9\-]+
+ * generated instead. Must match the pattern `[a-z0-9\-]+`
*
*
* string service_id = 3;
@@ -217,7 +217,7 @@ public java.lang.String getServiceId() {
*
*
* Optional. The Service id to use for this Service. If omitted, an id will be
- * generated instead. Must match the pattern [a-z0-9\-]+
+ * generated instead. Must match the pattern `[a-z0-9\-]+`
*
*
* string service_id = 3;
@@ -647,8 +647,8 @@ public Builder mergeFrom(
*
*
*
- * Required. Resource name of the parent workspace.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent workspace. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -672,8 +672,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. Resource name of the parent workspace.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent workspace. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -697,8 +697,8 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. Resource name of the parent workspace.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent workspace. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -721,8 +721,8 @@ public Builder setParent(java.lang.String value) {
*
*
*
- * Required. Resource name of the parent workspace.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent workspace. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -741,8 +741,8 @@ public Builder clearParent() {
*
*
*
- * Required. Resource name of the parent workspace.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent workspace. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -769,7 +769,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
*
*
* Optional. The Service id to use for this Service. If omitted, an id will be
- * generated instead. Must match the pattern [a-z0-9\-]+
+ * generated instead. Must match the pattern `[a-z0-9\-]+`
*
*
* string service_id = 3;
@@ -792,7 +792,7 @@ public java.lang.String getServiceId() {
*
*
* Optional. The Service id to use for this Service. If omitted, an id will be
- * generated instead. Must match the pattern [a-z0-9\-]+
+ * generated instead. Must match the pattern `[a-z0-9\-]+`
*
*
* string service_id = 3;
@@ -815,7 +815,7 @@ public com.google.protobuf.ByteString getServiceIdBytes() {
*
*
* Optional. The Service id to use for this Service. If omitted, an id will be
- * generated instead. Must match the pattern [a-z0-9\-]+
+ * generated instead. Must match the pattern `[a-z0-9\-]+`
*
*
* string service_id = 3;
@@ -837,7 +837,7 @@ public Builder setServiceId(java.lang.String value) {
*
*
* Optional. The Service id to use for this Service. If omitted, an id will be
- * generated instead. Must match the pattern [a-z0-9\-]+
+ * generated instead. Must match the pattern `[a-z0-9\-]+`
*
*
* string service_id = 3;
@@ -855,7 +855,7 @@ public Builder clearServiceId() {
*
*
* Optional. The Service id to use for this Service. If omitted, an id will be
- * generated instead. Must match the pattern [a-z0-9\-]+
+ * generated instead. Must match the pattern `[a-z0-9\-]+`
*
*
* string service_id = 3;
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 84824c0d..e0a3536b 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,8 +27,8 @@ public interface CreateServiceRequestOrBuilder
*
*
*
- * Required. Resource name of the parent workspace.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent workspace. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -42,8 +42,8 @@ public interface CreateServiceRequestOrBuilder
*
*
*
- * Required. Resource name of the parent workspace.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent workspace. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -59,7 +59,7 @@ public interface CreateServiceRequestOrBuilder
*
*
* Optional. The Service id to use for this Service. If omitted, an id will be
- * generated instead. Must match the pattern [a-z0-9\-]+
+ * generated instead. Must match the pattern `[a-z0-9\-]+`
*
*
* string service_id = 3;
@@ -72,7 +72,7 @@ public interface CreateServiceRequestOrBuilder
*
*
* Optional. The Service id to use for this Service. If omitted, an id will be
- * generated instead. Must match the pattern [a-z0-9\-]+
+ * generated instead. Must match the pattern `[a-z0-9\-]+`
*
*
* string service_id = 3;
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 da15a1e4..88cbaee0 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,8 +134,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The project in which to create the Uptime check. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project in which to create the Uptime check. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -159,8 +159,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. The project in which to create the Uptime check. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project in which to create the Uptime check. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -584,8 +584,8 @@ public Builder mergeFrom(
*
*
*
- * Required. The project in which to create the Uptime check. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project in which to create the Uptime check. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -609,8 +609,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. The project in which to create the Uptime check. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project in which to create the Uptime check. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -634,8 +634,8 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. The project in which to create the Uptime check. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project in which to create the Uptime check. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -658,8 +658,8 @@ public Builder setParent(java.lang.String value) {
*
*
*
- * Required. The project in which to create the Uptime check. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project in which to create the Uptime check. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -678,8 +678,8 @@ public Builder clearParent() {
*
*
*
- * Required. The project in which to create the Uptime check. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project 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 c3c99941..82320e43 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,8 +27,8 @@ public interface CreateUptimeCheckConfigRequestOrBuilder
*
*
*
- * Required. The project in which to create the Uptime check. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project in which to create the Uptime check. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -42,8 +42,8 @@ public interface CreateUptimeCheckConfigRequestOrBuilder
*
*
*
- * Required. The project in which to create the Uptime check. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project 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/DeleteServiceLevelObjectiveRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java
index 400ff7af..b2b6b836 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
@@ -118,9 +118,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to delete.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
@@ -144,9 +143,8 @@ public java.lang.String getName() {
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to delete.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
@@ -491,9 +489,8 @@ public Builder mergeFrom(
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to delete.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
@@ -517,9 +514,8 @@ public java.lang.String getName() {
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to delete.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
@@ -543,9 +539,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to delete.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
@@ -568,9 +563,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to delete.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
@@ -589,9 +583,8 @@ public Builder clearName() {
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to delete.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java
index 207a45e5..5e758a38 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java
@@ -27,9 +27,8 @@ public interface DeleteServiceLevelObjectiveRequestOrBuilder
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to delete.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
@@ -43,9 +42,8 @@ public interface DeleteServiceLevelObjectiveRequestOrBuilder
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to delete.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
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 24145289..4f99d6f4 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
@@ -117,8 +117,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. Resource name of the `Service` to delete.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -142,8 +142,8 @@ public java.lang.String getName() {
*
*
*
- * Required. Resource name of the `Service` to delete.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -485,8 +485,8 @@ public Builder mergeFrom(
*
*
*
- * Required. Resource name of the `Service` to delete.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -510,8 +510,8 @@ public java.lang.String getName() {
*
*
*
- * Required. Resource name of the `Service` to delete.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -535,8 +535,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. Resource name of the `Service` to delete.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -559,8 +559,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. Resource name of the `Service` to delete.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -579,8 +579,8 @@ public Builder clearName() {
*
*
*
- * Required. Resource name of the `Service` to delete.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java
index c3753191..47244917 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java
@@ -27,8 +27,8 @@ public interface DeleteServiceRequestOrBuilder
*
*
*
- * Required. Resource name of the `Service` to delete.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -42,8 +42,8 @@ public interface DeleteServiceRequestOrBuilder
*
*
*
- * Required. Resource name of the `Service` to delete.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service` to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
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 410bc20c..c023fbcf 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
@@ -118,8 +118,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The Uptime check configuration to delete. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
@@ -143,8 +143,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The Uptime check configuration to delete. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
@@ -489,8 +489,8 @@ public Builder mergeFrom(
*
*
*
- * Required. The Uptime check configuration to delete. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
@@ -514,8 +514,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The Uptime check configuration to delete. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
@@ -539,8 +539,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. The Uptime check configuration to delete. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
@@ -563,8 +563,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. The Uptime check configuration to delete. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
@@ -583,8 +583,8 @@ public Builder clearName() {
*
*
*
- * Required. The Uptime check configuration to delete. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java
index 03feead5..250843a8 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java
@@ -27,8 +27,8 @@ public interface DeleteUptimeCheckConfigRequestOrBuilder
*
*
*
- * Required. The Uptime check configuration to delete. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
@@ -42,8 +42,8 @@ public interface DeleteUptimeCheckConfigRequestOrBuilder
*
*
*
- * Required. The Uptime check configuration to delete. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to delete. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
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 97704e7c..04ddb079 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
@@ -126,9 +126,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to get.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
@@ -152,9 +151,8 @@ public java.lang.String getName() {
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to get.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
@@ -556,9 +554,8 @@ public Builder mergeFrom(
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to get.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
@@ -582,9 +579,8 @@ public java.lang.String getName() {
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to get.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
@@ -608,9 +604,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to get.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
@@ -633,9 +628,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to get.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
@@ -654,9 +648,8 @@ public Builder clearName() {
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to get.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java
index cbb87171..ea7d080f 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java
@@ -27,9 +27,8 @@ public interface GetServiceLevelObjectiveRequestOrBuilder
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to get.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
@@ -43,9 +42,8 @@ public interface GetServiceLevelObjectiveRequestOrBuilder
*
*
*
- * Required. Resource name of the `ServiceLevelObjective` to get.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
*
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 b1597bfa..a281cc1a 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
@@ -117,8 +117,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. Resource name of the `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -142,8 +142,8 @@ public java.lang.String getName() {
*
*
*
- * Required. Resource name of the `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -485,8 +485,8 @@ public Builder mergeFrom(
*
*
*
- * Required. Resource name of the `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -510,8 +510,8 @@ public java.lang.String getName() {
*
*
*
- * Required. Resource name of the `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -535,8 +535,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. Resource name of the `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -559,8 +559,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. Resource name of the `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -579,8 +579,8 @@ public Builder clearName() {
*
*
*
- * Required. Resource name of the `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java
index 8bc9f5d9..1ae5d7e3 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java
@@ -27,8 +27,8 @@ public interface GetServiceRequestOrBuilder
*
*
*
- * Required. Resource name of the `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
@@ -42,8 +42,8 @@ public interface GetServiceRequestOrBuilder
*
*
*
- * Required. Resource name of the `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the `Service`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
*
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 e48fea43..87453d0e 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
@@ -117,8 +117,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The Uptime check configuration to retrieve. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to retrieve. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
@@ -142,8 +142,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The Uptime check configuration to retrieve. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to retrieve. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
@@ -487,8 +487,8 @@ public Builder mergeFrom(
*
*
*
- * Required. The Uptime check configuration to retrieve. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to retrieve. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
@@ -512,8 +512,8 @@ public java.lang.String getName() {
*
*
*
- * Required. The Uptime check configuration to retrieve. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to retrieve. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
@@ -537,8 +537,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. The Uptime check configuration to retrieve. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to retrieve. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
@@ -561,8 +561,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. The Uptime check configuration to retrieve. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to retrieve. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
@@ -581,8 +581,8 @@ public Builder clearName() {
*
*
*
- * Required. The Uptime check configuration to retrieve. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to retrieve. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java
index e80c6191..5a4b7dde 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java
@@ -27,8 +27,8 @@ public interface GetUptimeCheckConfigRequestOrBuilder
*
*
*
- * Required. The Uptime check configuration to retrieve. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to retrieve. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
@@ -42,8 +42,8 @@ public interface GetUptimeCheckConfigRequestOrBuilder
*
*
*
- * Required. The Uptime check configuration to retrieve. The format
- * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * Required. The Uptime check configuration to retrieve. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
*
*
*
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 faa3ab36..930629f5 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
@@ -167,11 +167,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Output only. The name of this group. The format is
- * `"projects/{project_id_or_number}/groups/{group_id}"`.
+ * Output only. The name of this group. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
* When creating a group, this field is ignored and a new name is created
* consisting of the project specified in the call to `CreateGroup`
- * and a unique `{group_id}` that is generated automatically.
+ * and a unique `[GROUP_ID]` that is generated automatically.
*
*
* string name = 1;
@@ -193,11 +193,11 @@ public java.lang.String getName() {
*
*
*
- * Output only. The name of this group. The format is
- * `"projects/{project_id_or_number}/groups/{group_id}"`.
+ * Output only. The name of this group. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
* When creating a group, this field is ignored and a new name is created
* consisting of the project specified in the call to `CreateGroup`
- * and a unique `{group_id}` that is generated automatically.
+ * and a unique `[GROUP_ID]` that is generated automatically.
*
*
* string name = 1;
@@ -269,9 +269,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
*
- * The name of the group's parent, if it has one.
- * The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
- * For groups with no parent, `parentName` is the empty string, `""`.
+ * The name of the group's parent, if it has one. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
+ * For groups with no parent, `parent_name` is the empty string, `""`.
*
*
* string parent_name = 3;
@@ -293,9 +293,9 @@ public java.lang.String getParentName() {
*
*
*
- * The name of the group's parent, if it has one.
- * The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
- * For groups with no parent, `parentName` is the empty string, `""`.
+ * The name of the group's parent, if it has one. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
+ * For groups with no parent, `parent_name` is the empty string, `""`.
*
*
* string parent_name = 3;
@@ -783,11 +783,11 @@ public Builder mergeFrom(
*
*
*
- * Output only. The name of this group. The format is
- * `"projects/{project_id_or_number}/groups/{group_id}"`.
+ * Output only. The name of this group. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
* When creating a group, this field is ignored and a new name is created
* consisting of the project specified in the call to `CreateGroup`
- * and a unique `{group_id}` that is generated automatically.
+ * and a unique `[GROUP_ID]` that is generated automatically.
*
*
* string name = 1;
@@ -809,11 +809,11 @@ public java.lang.String getName() {
*
*
*
- * Output only. The name of this group. The format is
- * `"projects/{project_id_or_number}/groups/{group_id}"`.
+ * Output only. The name of this group. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
* When creating a group, this field is ignored and a new name is created
* consisting of the project specified in the call to `CreateGroup`
- * and a unique `{group_id}` that is generated automatically.
+ * and a unique `[GROUP_ID]` that is generated automatically.
*
*
* string name = 1;
@@ -835,11 +835,11 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Output only. The name of this group. The format is
- * `"projects/{project_id_or_number}/groups/{group_id}"`.
+ * Output only. The name of this group. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
* When creating a group, this field is ignored and a new name is created
* consisting of the project specified in the call to `CreateGroup`
- * and a unique `{group_id}` that is generated automatically.
+ * and a unique `[GROUP_ID]` that is generated automatically.
*
*
* string name = 1;
@@ -860,11 +860,11 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Output only. The name of this group. The format is
- * `"projects/{project_id_or_number}/groups/{group_id}"`.
+ * Output only. The name of this group. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
* When creating a group, this field is ignored and a new name is created
* consisting of the project specified in the call to `CreateGroup`
- * and a unique `{group_id}` that is generated automatically.
+ * and a unique `[GROUP_ID]` that is generated automatically.
*
*
* string name = 1;
@@ -881,11 +881,11 @@ public Builder clearName() {
*
*
*
- * Output only. The name of this group. The format is
- * `"projects/{project_id_or_number}/groups/{group_id}"`.
+ * Output only. The name of this group. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
* When creating a group, this field is ignored and a new name is created
* consisting of the project specified in the call to `CreateGroup`
- * and a unique `{group_id}` that is generated automatically.
+ * and a unique `[GROUP_ID]` that is generated automatically.
*
*
* string name = 1;
@@ -1015,9 +1015,9 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
*
*
*
- * The name of the group's parent, if it has one.
- * The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
- * For groups with no parent, `parentName` is the empty string, `""`.
+ * The name of the group's parent, if it has one. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
+ * For groups with no parent, `parent_name` is the empty string, `""`.
*
*
* string parent_name = 3;
@@ -1039,9 +1039,9 @@ public java.lang.String getParentName() {
*
*
*
- * The name of the group's parent, if it has one.
- * The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
- * For groups with no parent, `parentName` is the empty string, `""`.
+ * The name of the group's parent, if it has one. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
+ * For groups with no parent, `parent_name` is the empty string, `""`.
*
*
* string parent_name = 3;
@@ -1063,9 +1063,9 @@ public com.google.protobuf.ByteString getParentNameBytes() {
*
*
*
- * The name of the group's parent, if it has one.
- * The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
- * For groups with no parent, `parentName` is the empty string, `""`.
+ * The name of the group's parent, if it has one. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
+ * For groups with no parent, `parent_name` is the empty string, `""`.
*
*
* string parent_name = 3;
@@ -1086,9 +1086,9 @@ public Builder setParentName(java.lang.String value) {
*
*
*
- * The name of the group's parent, if it has one.
- * The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
- * For groups with no parent, `parentName` is the empty string, `""`.
+ * The name of the group's parent, if it has one. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
+ * For groups with no parent, `parent_name` is the empty string, `""`.
*
*
* string parent_name = 3;
@@ -1105,9 +1105,9 @@ public Builder clearParentName() {
*
*
*
- * The name of the group's parent, if it has one.
- * The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
- * For groups with no parent, `parentName` is the empty string, `""`.
+ * The name of the group's parent, if it has one. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
+ * For groups with no parent, `parent_name` is the empty string, `""`.
*
*
* string parent_name = 3;
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java
index 7898a3a9..86948e1d 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java
@@ -27,11 +27,11 @@ public interface GroupOrBuilder
*
*
*
- * Output only. The name of this group. The format is
- * `"projects/{project_id_or_number}/groups/{group_id}"`.
+ * Output only. The name of this group. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
* When creating a group, this field is ignored and a new name is created
* consisting of the project specified in the call to `CreateGroup`
- * and a unique `{group_id}` that is generated automatically.
+ * and a unique `[GROUP_ID]` that is generated automatically.
*
*
* string name = 1;
@@ -43,11 +43,11 @@ public interface GroupOrBuilder
*
*
*
- * Output only. The name of this group. The format is
- * `"projects/{project_id_or_number}/groups/{group_id}"`.
+ * Output only. The name of this group. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
* When creating a group, this field is ignored and a new name is created
* consisting of the project specified in the call to `CreateGroup`
- * and a unique `{group_id}` that is generated automatically.
+ * and a unique `[GROUP_ID]` that is generated automatically.
*
*
* string name = 1;
@@ -85,9 +85,9 @@ public interface GroupOrBuilder
*
*
*
- * The name of the group's parent, if it has one.
- * The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
- * For groups with no parent, `parentName` is the empty string, `""`.
+ * The name of the group's parent, if it has one. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
+ * For groups with no parent, `parent_name` is the empty string, `""`.
*
*
* string parent_name = 3;
@@ -99,9 +99,9 @@ public interface GroupOrBuilder
*
*
*
- * The name of the group's parent, if it has one.
- * The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
- * For groups with no parent, `parentName` is the empty string, `""`.
+ * The name of the group's parent, if it has one. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
+ * For groups with no parent, `parent_name` is the empty string, `""`.
*
*
* string parent_name = 3;
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 1af79cb8..ef277dac 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
@@ -333,8 +333,8 @@ private State(int value) {
*
*
* A unique resource name for this InternalChecker. The format is:
- * `projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID]`.
- * `[PROJECT_ID]` is the Stackdriver Workspace project for the
+ * projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]
+ * `[PROJECT_ID_OR_NUMBER]` is the Stackdriver Workspace project for the
* Uptime check config associated with the internal checker.
*
*
@@ -358,8 +358,8 @@ public java.lang.String getName() {
*
*
* A unique resource name for this InternalChecker. The format is:
- * `projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID]`.
- * `[PROJECT_ID]` is the Stackdriver Workspace project for the
+ * projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]
+ * `[PROJECT_ID_OR_NUMBER]` is the Stackdriver Workspace project for the
* Uptime check config associated with the internal checker.
*
*
@@ -1012,8 +1012,8 @@ public Builder mergeFrom(
*
*
* A unique resource name for this InternalChecker. The format is:
- * `projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID]`.
- * `[PROJECT_ID]` is the Stackdriver Workspace project for the
+ * projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]
+ * `[PROJECT_ID_OR_NUMBER]` is the Stackdriver Workspace project for the
* Uptime check config associated with the internal checker.
*
*
@@ -1037,8 +1037,8 @@ public java.lang.String getName() {
*
*
* A unique resource name for this InternalChecker. The format is:
- * `projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID]`.
- * `[PROJECT_ID]` is the Stackdriver Workspace project for the
+ * projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]
+ * `[PROJECT_ID_OR_NUMBER]` is the Stackdriver Workspace project for the
* Uptime check config associated with the internal checker.
*
*
@@ -1062,8 +1062,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* A unique resource name for this InternalChecker. The format is:
- * `projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID]`.
- * `[PROJECT_ID]` is the Stackdriver Workspace project for the
+ * projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]
+ * `[PROJECT_ID_OR_NUMBER]` is the Stackdriver Workspace project for the
* Uptime check config associated with the internal checker.
*
*
@@ -1086,8 +1086,8 @@ public Builder setName(java.lang.String value) {
*
*
* A unique resource name for this InternalChecker. The format is:
- * `projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID]`.
- * `[PROJECT_ID]` is the Stackdriver Workspace project for the
+ * projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]
+ * `[PROJECT_ID_OR_NUMBER]` is the Stackdriver Workspace project for the
* Uptime check config associated with the internal checker.
*
*
@@ -1106,8 +1106,8 @@ public Builder clearName() {
*
*
* A unique resource name for this InternalChecker. The format is:
- * `projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID]`.
- * `[PROJECT_ID]` is the Stackdriver Workspace project for the
+ * projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]
+ * `[PROJECT_ID_OR_NUMBER]` is the Stackdriver Workspace project for the
* Uptime check config associated with the internal checker.
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java
index f740beea..fed6e5b2 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java
@@ -29,8 +29,8 @@ public interface InternalCheckerOrBuilder
*
*
* A unique resource name for this InternalChecker. The format is:
- * `projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID]`.
- * `[PROJECT_ID]` is the Stackdriver Workspace project for the
+ * projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]
+ * `[PROJECT_ID_OR_NUMBER]` is the Stackdriver Workspace project for the
* Uptime check config associated with the internal checker.
*
*
@@ -44,8 +44,8 @@ public interface InternalCheckerOrBuilder
*
*
* A unique resource name for this InternalChecker. The format is:
- * `projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID]`.
- * `[PROJECT_ID]` is the Stackdriver Workspace project for the
+ * projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]
+ * `[PROJECT_ID_OR_NUMBER]` is the Stackdriver Workspace project for the
* Uptime check config associated with the internal checker.
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java
new file mode 100644
index 00000000..0dc0f67d
--- /dev/null
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java
@@ -0,0 +1,942 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/monitoring/v3/metric.proto
+
+package com.google.monitoring.v3;
+
+/**
+ *
+ *
+ *
+ * A label value.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.LabelValue}
+ */
+public final class LabelValue extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.LabelValue)
+ LabelValueOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use LabelValue.newBuilder() to construct.
+ private LabelValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private LabelValue() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new LabelValue();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private LabelValue(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ valueCase_ = 1;
+ value_ = input.readBool();
+ break;
+ }
+ case 16:
+ {
+ valueCase_ = 2;
+ value_ = input.readInt64();
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ valueCase_ = 3;
+ value_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.monitoring.v3.MetricProto
+ .internal_static_google_monitoring_v3_LabelValue_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.monitoring.v3.MetricProto
+ .internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.monitoring.v3.LabelValue.class,
+ com.google.monitoring.v3.LabelValue.Builder.class);
+ }
+
+ private int valueCase_ = 0;
+ private java.lang.Object value_;
+
+ public enum ValueCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ BOOL_VALUE(1),
+ INT64_VALUE(2),
+ STRING_VALUE(3),
+ VALUE_NOT_SET(0);
+ private final int value;
+
+ private ValueCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ValueCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static ValueCase forNumber(int value) {
+ switch (value) {
+ case 1:
+ return BOOL_VALUE;
+ case 2:
+ return INT64_VALUE;
+ case 3:
+ return STRING_VALUE;
+ case 0:
+ return VALUE_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public ValueCase getValueCase() {
+ return ValueCase.forNumber(valueCase_);
+ }
+
+ public static final int BOOL_VALUE_FIELD_NUMBER = 1;
+ /**
+ *
+ *
+ *
+ * A bool label value.
+ *
+ *
+ * bool bool_value = 1;
+ *
+ * @return The boolValue.
+ */
+ public boolean getBoolValue() {
+ if (valueCase_ == 1) {
+ return (java.lang.Boolean) value_;
+ }
+ return false;
+ }
+
+ public static final int INT64_VALUE_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ *
+ * An int64 label value.
+ *
+ *
+ * int64 int64_value = 2;
+ *
+ * @return The int64Value.
+ */
+ public long getInt64Value() {
+ if (valueCase_ == 2) {
+ return (java.lang.Long) value_;
+ }
+ return 0L;
+ }
+
+ public static final int STRING_VALUE_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ *
+ * A string label value.
+ *
+ *
+ * string string_value = 3;
+ *
+ * @return The stringValue.
+ */
+ public java.lang.String getStringValue() {
+ java.lang.Object ref = "";
+ if (valueCase_ == 3) {
+ ref = value_;
+ }
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (valueCase_ == 3) {
+ value_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A string label value.
+ *
+ *
+ * string string_value = 3;
+ *
+ * @return The bytes for stringValue.
+ */
+ public com.google.protobuf.ByteString getStringValueBytes() {
+ java.lang.Object ref = "";
+ if (valueCase_ == 3) {
+ ref = value_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (valueCase_ == 3) {
+ value_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (valueCase_ == 1) {
+ output.writeBool(1, (boolean) ((java.lang.Boolean) value_));
+ }
+ if (valueCase_ == 2) {
+ output.writeInt64(2, (long) ((java.lang.Long) value_));
+ }
+ if (valueCase_ == 3) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (valueCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBoolSize(
+ 1, (boolean) ((java.lang.Boolean) value_));
+ }
+ if (valueCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt64Size(
+ 2, (long) ((java.lang.Long) value_));
+ }
+ if (valueCase_ == 3) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_);
+ }
+ 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.LabelValue)) {
+ return super.equals(obj);
+ }
+ com.google.monitoring.v3.LabelValue other = (com.google.monitoring.v3.LabelValue) obj;
+
+ if (!getValueCase().equals(other.getValueCase())) return false;
+ switch (valueCase_) {
+ case 1:
+ if (getBoolValue() != other.getBoolValue()) return false;
+ break;
+ case 2:
+ if (getInt64Value() != other.getInt64Value()) return false;
+ break;
+ case 3:
+ if (!getStringValue().equals(other.getStringValue())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (valueCase_) {
+ case 1:
+ hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoolValue());
+ break;
+ case 2:
+ hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInt64Value());
+ break;
+ case 3:
+ hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getStringValue().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.monitoring.v3.LabelValue parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.LabelValue 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.LabelValue parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.LabelValue 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.LabelValue parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.LabelValue parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.v3.LabelValue parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.LabelValue 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.LabelValue parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.LabelValue 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.LabelValue parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.LabelValue 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.LabelValue 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 label value.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.LabelValue}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A bool label value.
+ *
+ *
+ * bool bool_value = 1;
+ *
+ * @return The boolValue.
+ */
+ public boolean getBoolValue() {
+ if (valueCase_ == 1) {
+ return (java.lang.Boolean) value_;
+ }
+ return false;
+ }
+ /**
+ *
+ *
+ *
+ * A bool label value.
+ *
+ *
+ * bool bool_value = 1;
+ *
+ * @param value The boolValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBoolValue(boolean value) {
+ valueCase_ = 1;
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A bool label value.
+ *
+ *
+ * bool bool_value = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBoolValue() {
+ if (valueCase_ == 1) {
+ valueCase_ = 0;
+ value_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * An int64 label value.
+ *
+ *
+ * int64 int64_value = 2;
+ *
+ * @return The int64Value.
+ */
+ public long getInt64Value() {
+ if (valueCase_ == 2) {
+ return (java.lang.Long) value_;
+ }
+ return 0L;
+ }
+ /**
+ *
+ *
+ *
+ * An int64 label value.
+ *
+ *
+ * int64 int64_value = 2;
+ *
+ * @param value The int64Value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInt64Value(long value) {
+ valueCase_ = 2;
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * An int64 label value.
+ *
+ *
+ * int64 int64_value = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInt64Value() {
+ if (valueCase_ == 2) {
+ valueCase_ = 0;
+ value_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * A string label value.
+ *
+ *
+ * string string_value = 3;
+ *
+ * @return The stringValue.
+ */
+ public java.lang.String getStringValue() {
+ java.lang.Object ref = "";
+ if (valueCase_ == 3) {
+ ref = value_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (valueCase_ == 3) {
+ value_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A string label value.
+ *
+ *
+ * string string_value = 3;
+ *
+ * @return The bytes for stringValue.
+ */
+ public com.google.protobuf.ByteString getStringValueBytes() {
+ java.lang.Object ref = "";
+ if (valueCase_ == 3) {
+ ref = value_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (valueCase_ == 3) {
+ value_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A string label value.
+ *
+ *
+ * string string_value = 3;
+ *
+ * @param value The stringValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStringValue(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ valueCase_ = 3;
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A string label value.
+ *
+ *
+ * string string_value = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearStringValue() {
+ if (valueCase_ == 3) {
+ valueCase_ = 0;
+ value_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A string label value.
+ *
+ *
+ * string string_value = 3;
+ *
+ * @param value The bytes for stringValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStringValueBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ valueCase_ = 3;
+ value_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.monitoring.v3.LabelValue)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.monitoring.v3.LabelValue)
+ private static final com.google.monitoring.v3.LabelValue DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.monitoring.v3.LabelValue();
+ }
+
+ public static com.google.monitoring.v3.LabelValue getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * A bool label value.
+ *
+ *
+ * bool bool_value = 1;
+ *
+ * @return The boolValue.
+ */
+ boolean getBoolValue();
+
+ /**
+ *
+ *
+ *
+ * An int64 label value.
+ *
+ *
+ * int64 int64_value = 2;
+ *
+ * @return The int64Value.
+ */
+ long getInt64Value();
+
+ /**
+ *
+ *
+ *
+ * A string label value.
+ *
+ *
+ * string string_value = 3;
+ *
+ * @return The stringValue.
+ */
+ java.lang.String getStringValue();
+ /**
+ *
+ *
+ *
+ * A string label value.
+ *
+ *
+ * string string_value = 3;
+ *
+ * @return The bytes for stringValue.
+ */
+ com.google.protobuf.ByteString getStringValueBytes();
+
+ public com.google.monitoring.v3.LabelValue.ValueCase getValueCase();
+}
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 45c5e47c..960b0b29 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
@@ -147,8 +147,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent containing the listed SLOs, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
*
*
*
@@ -172,8 +174,10 @@ public java.lang.String getParent() {
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent containing the listed SLOs, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
*
*
*
@@ -738,8 +742,10 @@ public Builder mergeFrom(
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent containing the listed SLOs, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
*
*
*
@@ -763,8 +769,10 @@ public java.lang.String getParent() {
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent containing the listed SLOs, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
*
*
*
@@ -788,8 +796,10 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent containing the listed SLOs, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
*
*
*
@@ -812,8 +822,10 @@ public Builder setParent(java.lang.String value) {
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent containing the listed SLOs, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
*
*
*
@@ -832,8 +844,10 @@ public Builder clearParent() {
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent containing the listed SLOs, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
*
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java
index b4e52375..a1d79112 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java
@@ -27,8 +27,10 @@ public interface ListServiceLevelObjectivesRequestOrBuilder
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent containing the listed SLOs, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
*
*
*
@@ -42,8 +44,10 @@ public interface ListServiceLevelObjectivesRequestOrBuilder
*
*
*
- * Required. Resource name of the parent `Service`.
- * Of the form `projects/{project_id}/services/{service_id}`.
+ * Required. Resource name of the parent containing the listed SLOs, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
*
*
*
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 48150f2b..0ea2cdb7 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
@@ -203,7 +203,7 @@ public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelOb
*
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
@@ -227,7 +227,7 @@ public java.lang.String getNextPageToken() {
*
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
@@ -1013,7 +1013,7 @@ public com.google.monitoring.v3.ServiceLevelObjective.Builder addServiceLevelObj
*
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
@@ -1037,7 +1037,7 @@ public java.lang.String getNextPageToken() {
*
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
@@ -1061,7 +1061,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
*
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
@@ -1084,7 +1084,7 @@ public Builder setNextPageToken(java.lang.String value) {
*
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
@@ -1103,7 +1103,7 @@ public Builder clearNextPageToken() {
*
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java
index d7df7fba..03df5937 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java
@@ -82,7 +82,7 @@ com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjective
*
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
@@ -96,7 +96,7 @@ com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjective
*
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
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 05bedf6b..1b6f47e0 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
@@ -138,8 +138,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. Resource name of the parent `Workspace`.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent containing the listed services, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]
*
*
*
@@ -163,8 +165,10 @@ public java.lang.String getParent() {
*
*
*
- * Required. Resource name of the parent `Workspace`.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent containing the listed services, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]
*
*
*
@@ -693,8 +697,10 @@ public Builder mergeFrom(
*
*
*
- * Required. Resource name of the parent `Workspace`.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent containing the listed services, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]
*
*
*
@@ -718,8 +724,10 @@ public java.lang.String getParent() {
*
*
*
- * Required. Resource name of the parent `Workspace`.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent containing the listed services, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]
*
*
*
@@ -743,8 +751,10 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. Resource name of the parent `Workspace`.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent containing the listed services, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]
*
*
*
@@ -767,8 +777,10 @@ public Builder setParent(java.lang.String value) {
*
*
*
- * Required. Resource name of the parent `Workspace`.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent containing the listed services, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]
*
*
*
@@ -787,8 +799,10 @@ public Builder clearParent() {
*
*
*
- * Required. Resource name of the parent `Workspace`.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent containing the listed services, either a
+ * project 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 9ede23a7..1eee23ef 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
@@ -27,8 +27,10 @@ public interface ListServicesRequestOrBuilder
*
*
*
- * Required. Resource name of the parent `Workspace`.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent containing the listed services, either a
+ * project or a Monitoring Workspace. The formats are:
+ * projects/[PROJECT_ID_OR_NUMBER]
+ * workspaces/[HOST_PROJECT_ID_OR_NUMBER]
*
*
*
@@ -42,8 +44,10 @@ public interface ListServicesRequestOrBuilder
*
*
*
- * Required. Resource name of the parent `Workspace`.
- * Of the form `projects/{project_id}`.
+ * Required. Resource name of the parent containing the listed services, either a
+ * project 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 f2f99ddf..2ef3a21c 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
@@ -198,7 +198,7 @@ public com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder(int index)
*
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
@@ -222,7 +222,7 @@ public java.lang.String getNextPageToken() {
*
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
@@ -970,7 +970,7 @@ public java.util.List
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
@@ -994,7 +994,7 @@ public java.lang.String getNextPageToken() {
*
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
@@ -1018,7 +1018,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
*
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
@@ -1041,7 +1041,7 @@ public Builder setNextPageToken(java.lang.String value) {
*
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
@@ -1060,7 +1060,7 @@ public Builder clearNextPageToken() {
*
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java
index dc5e5d4d..b5d24acc 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java
@@ -80,7 +80,7 @@ public interface ListServicesResponseOrBuilder
*
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
@@ -94,7 +94,7 @@ public interface ListServicesResponseOrBuilder
*
* If there are more results than have been returned, then this field is set
* to a non-empty value. To see the additional results,
- * use that value as `pageToken` in the next call to this method.
+ * use that value as `page_token` in the next call to this method.
*
*
* string next_page_token = 2;
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 45ae33f1..230e623c 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,8 +130,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The project whose Uptime check configurations are listed. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project whose Uptime check configurations are listed. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -155,8 +155,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. The project whose Uptime check configurations are listed. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project whose Uptime check configurations are listed. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -603,8 +603,8 @@ public Builder mergeFrom(
*
*
*
- * Required. The project whose Uptime check configurations are listed. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project whose Uptime check configurations are listed. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -628,8 +628,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. The project whose Uptime check configurations are listed. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project whose Uptime check configurations are listed. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -653,8 +653,8 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. The project whose Uptime check configurations are listed. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project whose Uptime check configurations are listed. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -677,8 +677,8 @@ public Builder setParent(java.lang.String value) {
*
*
*
- * Required. The project whose Uptime check configurations are listed. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project whose Uptime check configurations are listed. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -697,8 +697,8 @@ public Builder clearParent() {
*
*
*
- * Required. The project whose Uptime check configurations are listed. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project 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 d059a1ba..99c24295 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,8 +27,8 @@ public interface ListUptimeCheckConfigsRequestOrBuilder
*
*
*
- * Required. The project whose Uptime check configurations are listed. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project whose Uptime check configurations are listed. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
*
*
*
@@ -42,8 +42,8 @@ public interface ListUptimeCheckConfigsRequestOrBuilder
*
*
*
- * Required. The project whose Uptime check configurations are listed. The format
- * is `projects/[PROJECT_ID]`.
+ * Required. The project 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/MetricProto.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java
index f27104f9..aa5a4f76 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java
@@ -35,6 +35,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_monitoring_v3_TimeSeries_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_TimeSeriesData_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_LabelValue_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_QueryError_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_QueryError_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_TextLocator_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_TextLocator_Position_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -49,22 +81,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "on.proto\032\026google/api/label.proto\032\027google"
+ "/api/metric.proto\032#google/api/monitored_"
+ "resource.proto\032!google/monitoring/v3/com"
- + "mon.proto\"n\n\005Point\0224\n\010interval\030\001 \001(\0132\".g"
- + "oogle.monitoring.v3.TimeInterval\022/\n\005valu"
- + "e\030\002 \001(\0132 .google.monitoring.v3.TypedValu"
- + "e\"\301\002\n\nTimeSeries\022\"\n\006metric\030\001 \001(\0132\022.googl"
- + "e.api.Metric\022/\n\010resource\030\002 \001(\0132\035.google."
- + "api.MonitoredResource\0227\n\010metadata\030\007 \001(\0132"
- + "%.google.api.MonitoredResourceMetadata\022<"
- + "\n\013metric_kind\030\003 \001(\0162\'.google.api.MetricD"
- + "escriptor.MetricKind\022:\n\nvalue_type\030\004 \001(\016"
- + "2&.google.api.MetricDescriptor.ValueType"
- + "\022+\n\006points\030\005 \003(\0132\033.google.monitoring.v3."
- + "PointB\243\001\n\030com.google.monitoring.v3B\013Metr"
- + "icProtoP\001Z>google.golang.org/genproto/go"
- + "ogleapis/monitoring/v3;monitoring\252\002\032Goog"
- + "le.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Mo"
- + "nitoring\\V3b\006proto3"
+ + "mon.proto\032\036google/protobuf/duration.prot"
+ + "o\"n\n\005Point\0224\n\010interval\030\001 \001(\0132\".google.mo"
+ + "nitoring.v3.TimeInterval\022/\n\005value\030\002 \001(\0132"
+ + " .google.monitoring.v3.TypedValue\"\301\002\n\nTi"
+ + "meSeries\022\"\n\006metric\030\001 \001(\0132\022.google.api.Me"
+ + "tric\022/\n\010resource\030\002 \001(\0132\035.google.api.Moni"
+ + "toredResource\0227\n\010metadata\030\007 \001(\0132%.google"
+ + ".api.MonitoredResourceMetadata\022<\n\013metric"
+ + "_kind\030\003 \001(\0162\'.google.api.MetricDescripto"
+ + "r.MetricKind\022:\n\nvalue_type\030\004 \001(\0162&.googl"
+ + "e.api.MetricDescriptor.ValueType\022+\n\006poin"
+ + "ts\030\005 \003(\0132\033.google.monitoring.v3.Point\"\300\002"
+ + "\n\024TimeSeriesDescriptor\0226\n\021label_descript"
+ + "ors\030\001 \003(\0132\033.google.api.LabelDescriptor\022U"
+ + "\n\021point_descriptors\030\005 \003(\0132:.google.monit"
+ + "oring.v3.TimeSeriesDescriptor.ValueDescr"
+ + "iptor\032\230\001\n\017ValueDescriptor\022\013\n\003key\030\001 \001(\t\022:"
+ + "\n\nvalue_type\030\002 \001(\0162&.google.api.MetricDe"
+ + "scriptor.ValueType\022<\n\013metric_kind\030\003 \001(\0162"
+ + "\'.google.api.MetricDescriptor.MetricKind"
+ + "\"\206\002\n\016TimeSeriesData\0226\n\014label_values\030\001 \003("
+ + "\0132 .google.monitoring.v3.LabelValue\022B\n\np"
+ + "oint_data\030\002 \003(\0132..google.monitoring.v3.T"
+ + "imeSeriesData.PointData\032x\n\tPointData\0220\n\006"
+ + "values\030\001 \003(\0132 .google.monitoring.v3.Type"
+ + "dValue\0229\n\rtime_interval\030\002 \001(\0132\".google.m"
+ + "onitoring.v3.TimeInterval\"Z\n\nLabelValue\022"
+ + "\024\n\nbool_value\030\001 \001(\010H\000\022\025\n\013int64_value\030\002 \001"
+ + "(\003H\000\022\026\n\014string_value\030\003 \001(\tH\000B\007\n\005value\"Q\n"
+ + "\nQueryError\0222\n\007locator\030\001 \001(\0132!.google.mo"
+ + "nitoring.v3.TextLocator\022\017\n\007message\030\002 \001(\t"
+ + "\"\240\002\n\013TextLocator\022\016\n\006source\030\001 \001(\t\022B\n\016star"
+ + "t_position\030\002 \001(\0132*.google.monitoring.v3."
+ + "TextLocator.Position\022@\n\014end_position\030\003 \001"
+ + "(\0132*.google.monitoring.v3.TextLocator.Po"
+ + "sition\0229\n\016nested_locator\030\004 \001(\0132!.google."
+ + "monitoring.v3.TextLocator\022\026\n\016nesting_rea"
+ + "son\030\005 \001(\t\032(\n\010Position\022\014\n\004line\030\001 \001(\005\022\016\n\006c"
+ + "olumn\030\002 \001(\005B\243\001\n\030com.google.monitoring.v3"
+ + "B\013MetricProtoP\001Z>google.golang.org/genpr"
+ + "oto/googleapis/monitoring/v3;monitoring\252"
+ + "\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cl"
+ + "oud\\Monitoring\\V3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -75,6 +134,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.MetricProto.getDescriptor(),
com.google.api.MonitoredResourceProto.getDescriptor(),
com.google.monitoring.v3.CommonProto.getDescriptor(),
+ com.google.protobuf.DurationProto.getDescriptor(),
});
internal_static_google_monitoring_v3_Point_descriptor =
getDescriptor().getMessageTypes().get(0);
@@ -92,11 +152,78 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Metric", "Resource", "Metadata", "MetricKind", "ValueType", "Points",
});
+ internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor,
+ new java.lang.String[] {
+ "LabelDescriptors", "PointDescriptors",
+ });
+ internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor =
+ internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor,
+ new java.lang.String[] {
+ "Key", "ValueType", "MetricKind",
+ });
+ internal_static_google_monitoring_v3_TimeSeriesData_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_TimeSeriesData_descriptor,
+ new java.lang.String[] {
+ "LabelValues", "PointData",
+ });
+ internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor =
+ internal_static_google_monitoring_v3_TimeSeriesData_descriptor.getNestedTypes().get(0);
+ internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor,
+ new java.lang.String[] {
+ "Values", "TimeInterval",
+ });
+ internal_static_google_monitoring_v3_LabelValue_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_LabelValue_descriptor,
+ new java.lang.String[] {
+ "BoolValue", "Int64Value", "StringValue", "Value",
+ });
+ internal_static_google_monitoring_v3_QueryError_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_google_monitoring_v3_QueryError_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_QueryError_descriptor,
+ new java.lang.String[] {
+ "Locator", "Message",
+ });
+ internal_static_google_monitoring_v3_TextLocator_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_TextLocator_descriptor,
+ new java.lang.String[] {
+ "Source", "StartPosition", "EndPosition", "NestedLocator", "NestingReason",
+ });
+ internal_static_google_monitoring_v3_TextLocator_Position_descriptor =
+ internal_static_google_monitoring_v3_TextLocator_descriptor.getNestedTypes().get(0);
+ internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_TextLocator_Position_descriptor,
+ new java.lang.String[] {
+ "Line", "Column",
+ });
com.google.api.DistributionProto.getDescriptor();
com.google.api.LabelProto.getDescriptor();
com.google.api.MetricProto.getDescriptor();
com.google.api.MonitoredResourceProto.getDescriptor();
com.google.monitoring.v3.CommonProto.getDescriptor();
+ com.google.protobuf.DurationProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
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 d9328b3a..b883754e 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
@@ -83,6 +83,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_QueryErrorList_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -155,69 +167,80 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "oint_count\030\002 \001(\005\022C\n\006errors\030\003 \003(\01323.googl"
+ "e.monitoring.v3.CreateTimeSeriesSummary."
+ "Error\032@\n\005Error\022\"\n\006status\030\001 \001(\0132\022.google."
- + "rpc.Status\022\023\n\013point_count\030\002 \001(\0052\276\r\n\rMetr"
- + "icService\022\344\001\n ListMonitoredResourceDescr"
- + "iptors\022=.google.monitoring.v3.ListMonito"
- + "redResourceDescriptorsRequest\032>.google.m"
- + "onitoring.v3.ListMonitoredResourceDescri"
- + "ptorsResponse\"A\202\323\344\223\0024\0222/v3/{name=project"
- + "s/*}/monitoredResourceDescriptors\332A\004name"
- + "\022\314\001\n\036GetMonitoredResourceDescriptor\022;.go"
- + "ogle.monitoring.v3.GetMonitoredResourceD"
- + "escriptorRequest\032\'.google.api.MonitoredR"
- + "esourceDescriptor\"D\202\323\344\223\0027\0225/v3/{name=pro"
- + "jects/*/monitoredResourceDescriptors/**}"
- + "\332A\004name\022\270\001\n\025ListMetricDescriptors\0222.goog"
- + "le.monitoring.v3.ListMetricDescriptorsRe"
- + "quest\0323.google.monitoring.v3.ListMetricD"
- + "escriptorsResponse\"6\202\323\344\223\002)\022\'/v3/{name=pr"
- + "ojects/*}/metricDescriptors\332A\004name\022\240\001\n\023G"
- + "etMetricDescriptor\0220.google.monitoring.v"
- + "3.GetMetricDescriptorRequest\032\034.google.ap"
- + "i.MetricDescriptor\"9\202\323\344\223\002,\022*/v3/{name=pr"
- + "ojects/*/metricDescriptors/**}\332A\004name\022\310\001"
- + "\n\026CreateMetricDescriptor\0223.google.monito"
- + "ring.v3.CreateMetricDescriptorRequest\032\034."
- + "google.api.MetricDescriptor\"[\202\323\344\223\002<\"\'/v3"
- + "/{name=projects/*}/metricDescriptors:\021me"
- + "tric_descriptor\332A\026name,metric_descriptor"
- + "\022\240\001\n\026DeleteMetricDescriptor\0223.google.mon"
- + "itoring.v3.DeleteMetricDescriptorRequest"
- + "\032\026.google.protobuf.Empty\"9\202\323\344\223\002,**/v3/{n"
- + "ame=projects/*/metricDescriptors/**}\332A\004n"
- + "ame\022\261\001\n\016ListTimeSeries\022+.google.monitori"
- + "ng.v3.ListTimeSeriesRequest\032,.google.mon"
- + "itoring.v3.ListTimeSeriesResponse\"D\202\323\344\223\002"
- + "\"\022 /v3/{name=projects/*}/timeSeries\332A\031na"
- + "me,filter,interval,view\022\231\001\n\020CreateTimeSe"
- + "ries\022-.google.monitoring.v3.CreateTimeSe"
- + "riesRequest\032\026.google.protobuf.Empty\">\202\323\344"
- + "\223\002%\" /v3/{name=projects/*}/timeSeries:\001*"
- + "\332A\020name,time_series\032\332\001\312A\031monitoring.goog"
- + "leapis.com\322A\272\001https://www.googleapis.com"
- + "/auth/cloud-platform,https://www.googlea"
- + "pis.com/auth/monitoring,https://www.goog"
- + "leapis.com/auth/monitoring.read,https://"
- + "www.googleapis.com/auth/monitoring.write"
- + "B\331\005\n\030com.google.monitoring.v3B\022MetricSer"
- + "viceProtoP\001Z>google.golang.org/genproto/"
- + "googleapis/monitoring/v3;monitoring\252\002\032Go"
- + "ogle.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\"
- + "Monitoring\\V3\352A\360\001\n*monitoring.googleapis"
- + ".com/MetricDescriptor\022;projects/{project"
- + "}/metricDescriptors/{metric_descriptor=*"
- + "*}\022Eorganizations/{organization}/metricD"
- + "escriptors/{metric_descriptor=**}\0229folde"
- + "rs/{folder}/metricDescriptors/{metric_de"
- + "scriptor=**}\022\001* \001\352A\267\002\n5monitoring.google"
- + "apis.com/MonitoredResourceDescriptor\022Opr"
- + "ojects/{project}/monitoredResourceDescri"
- + "ptors/{monitored_resource_descriptor}\022Yo"
- + "rganizations/{organization}/monitoredRes"
- + "ourceDescriptors/{monitored_resource_des"
- + "criptor}\022Mfolders/{folder}/monitoredReso"
- + "urceDescriptors/{monitored_resource_desc"
- + "riptor}\022\001* \001b\006proto3"
+ + "rpc.Status\022\023\n\013point_count\030\002 \001(\005\"\\\n\026Query"
+ + "TimeSeriesRequest\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\026tim"
+ + "e_series_descriptor\030\010 \001(\0132*.google.monit"
+ + "oring.v3.TimeSeriesDescriptor\022>\n\020time_se"
+ + "ries_data\030\t \003(\0132$.google.monitoring.v3.T"
+ + "imeSeriesData\022\027\n\017next_page_token\030\n \001(\t\022*"
+ + "\n\016partial_errors\030\013 \003(\0132\022.google.rpc.Stat"
+ + "us\"Y\n\016QueryErrorList\0220\n\006errors\030\001 \003(\0132 .g"
+ + "oogle.monitoring.v3.QueryError\022\025\n\rerror_"
+ + "summary\030\002 \001(\t2\276\r\n\rMetricService\022\344\001\n List"
+ + "MonitoredResourceDescriptors\022=.google.mo"
+ + "nitoring.v3.ListMonitoredResourceDescrip"
+ + "torsRequest\032>.google.monitoring.v3.ListM"
+ + "onitoredResourceDescriptorsResponse\"A\202\323\344"
+ + "\223\0024\0222/v3/{name=projects/*}/monitoredReso"
+ + "urceDescriptors\332A\004name\022\314\001\n\036GetMonitoredR"
+ + "esourceDescriptor\022;.google.monitoring.v3"
+ + ".GetMonitoredResourceDescriptorRequest\032\'"
+ + ".google.api.MonitoredResourceDescriptor\""
+ + "D\202\323\344\223\0027\0225/v3/{name=projects/*/monitoredR"
+ + "esourceDescriptors/**}\332A\004name\022\270\001\n\025ListMe"
+ + "tricDescriptors\0222.google.monitoring.v3.L"
+ + "istMetricDescriptorsRequest\0323.google.mon"
+ + "itoring.v3.ListMetricDescriptorsResponse"
+ + "\"6\202\323\344\223\002)\022\'/v3/{name=projects/*}/metricDe"
+ + "scriptors\332A\004name\022\240\001\n\023GetMetricDescriptor"
+ + "\0220.google.monitoring.v3.GetMetricDescrip"
+ + "torRequest\032\034.google.api.MetricDescriptor"
+ + "\"9\202\323\344\223\002,\022*/v3/{name=projects/*/metricDes"
+ + "criptors/**}\332A\004name\022\310\001\n\026CreateMetricDesc"
+ + "riptor\0223.google.monitoring.v3.CreateMetr"
+ + "icDescriptorRequest\032\034.google.api.MetricD"
+ + "escriptor\"[\202\323\344\223\002<\"\'/v3/{name=projects/*}"
+ + "/metricDescriptors:\021metric_descriptor\332A\026"
+ + "name,metric_descriptor\022\240\001\n\026DeleteMetricD"
+ + "escriptor\0223.google.monitoring.v3.DeleteM"
+ + "etricDescriptorRequest\032\026.google.protobuf"
+ + ".Empty\"9\202\323\344\223\002,**/v3/{name=projects/*/met"
+ + "ricDescriptors/**}\332A\004name\022\261\001\n\016ListTimeSe"
+ + "ries\022+.google.monitoring.v3.ListTimeSeri"
+ + "esRequest\032,.google.monitoring.v3.ListTim"
+ + "eSeriesResponse\"D\202\323\344\223\002\"\022 /v3/{name=proje"
+ + "cts/*}/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\032\332\001\312A\031monitoring.googleapis.com\322A\272\001http"
+ + "s://www.googleapis.com/auth/cloud-platfo"
+ + "rm,https://www.googleapis.com/auth/monit"
+ + "oring,https://www.googleapis.com/auth/mo"
+ + "nitoring.read,https://www.googleapis.com"
+ + "/auth/monitoring.writeB\331\005\n\030com.google.mo"
+ + "nitoring.v3B\022MetricServiceProtoP\001Z>googl"
+ + "e.golang.org/genproto/googleapis/monitor"
+ + "ing/v3;monitoring\252\002\032Google.Cloud.Monitor"
+ + "ing.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352A\360\001\n"
+ + "*monitoring.googleapis.com/MetricDescrip"
+ + "tor\022;projects/{project}/metricDescriptor"
+ + "s/{metric_descriptor=**}\022Eorganizations/"
+ + "{organization}/metricDescriptors/{metric"
+ + "_descriptor=**}\0229folders/{folder}/metric"
+ + "Descriptors/{metric_descriptor=**}\022\001* \001\352"
+ + "A\267\002\n5monitoring.googleapis.com/Monitored"
+ + "ResourceDescriptor\022Oprojects/{project}/m"
+ + "onitoredResourceDescriptors/{monitored_r"
+ + "esource_descriptor}\022Yorganizations/{orga"
+ + "nization}/monitoredResourceDescriptors/{"
+ + "monitored_resource_descriptor}\022Mfolders/"
+ + "{folder}/monitoredResourceDescriptors/{m"
+ + "onitored_resource_descriptor}\022\001* \001b\006prot"
+ + "o3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -357,6 +380,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Status", "PointCount",
});
+ internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor =
+ getDescriptor().getMessageTypes().get(13);
+ internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor,
+ new java.lang.String[] {
+ "Name", "Query", "PageSize", "PageToken",
+ });
+ internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor =
+ getDescriptor().getMessageTypes().get(14);
+ internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor,
+ new java.lang.String[] {
+ "TimeSeriesDescriptor", "TimeSeriesData", "NextPageToken", "PartialErrors",
+ });
+ internal_static_google_monitoring_v3_QueryErrorList_descriptor =
+ getDescriptor().getMessageTypes().get(15);
+ internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_QueryErrorList_descriptor,
+ new java.lang.String[] {
+ "Errors", "ErrorSummary",
+ });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.ClientProto.defaultHost);
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 3001cf02..fa03b3b1 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
@@ -434,8 +434,8 @@ public com.google.protobuf.ByteString getTypeBytes() {
*
*
*
- * The full REST resource name for this channel. The syntax is:
- * projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
+ * The full REST resource name for this channel. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
* The `[CHANNEL_ID]` is automatically assigned by the server on creation.
*
*
@@ -458,8 +458,8 @@ public java.lang.String getName() {
*
*
*
- * The full REST resource name for this channel. The syntax is:
- * projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
+ * The full REST resource name for this channel. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
* The `[CHANNEL_ID]` is automatically assigned by the server on creation.
*
*
@@ -1539,8 +1539,8 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
*
*
*
- * The full REST resource name for this channel. The syntax is:
- * projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
+ * The full REST resource name for this channel. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
* The `[CHANNEL_ID]` is automatically assigned by the server on creation.
*
*
@@ -1563,8 +1563,8 @@ public java.lang.String getName() {
*
*
*
- * The full REST resource name for this channel. The syntax is:
- * projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
+ * The full REST resource name for this channel. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
* The `[CHANNEL_ID]` is automatically assigned by the server on creation.
*
*
@@ -1587,8 +1587,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * The full REST resource name for this channel. The syntax is:
- * projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
+ * The full REST resource name for this channel. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
* The `[CHANNEL_ID]` is automatically assigned by the server on creation.
*
*
@@ -1610,8 +1610,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * The full REST resource name for this channel. The syntax is:
- * projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
+ * The full REST resource name for this channel. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
* The `[CHANNEL_ID]` is automatically assigned by the server on creation.
*
*
@@ -1629,8 +1629,8 @@ public Builder clearName() {
*
*
*
- * The full REST resource name for this channel. The syntax is:
- * projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
+ * The full REST resource name for this channel. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
* The `[CHANNEL_ID]` is automatically assigned by the server on creation.
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java
index f7b23e25..218dce05 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java
@@ -195,8 +195,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * The full REST resource name for this descriptor. The syntax is:
- * projects/[PROJECT_ID]/notificationChannelDescriptors/[TYPE]
+ * The full REST resource name for this descriptor. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE]
* In the above, `[TYPE]` is the value of the `type` field.
*
*
@@ -219,8 +219,8 @@ public java.lang.String getName() {
*
*
*
- * The full REST resource name for this descriptor. The syntax is:
- * projects/[PROJECT_ID]/notificationChannelDescriptors/[TYPE]
+ * The full REST resource name for this descriptor. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE]
* In the above, `[TYPE]` is the value of the `type` field.
*
*
@@ -1092,8 +1092,8 @@ public Builder mergeFrom(
*
*
*
- * The full REST resource name for this descriptor. The syntax is:
- * projects/[PROJECT_ID]/notificationChannelDescriptors/[TYPE]
+ * The full REST resource name for this descriptor. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE]
* In the above, `[TYPE]` is the value of the `type` field.
*
*
@@ -1116,8 +1116,8 @@ public java.lang.String getName() {
*
*
*
- * The full REST resource name for this descriptor. The syntax is:
- * projects/[PROJECT_ID]/notificationChannelDescriptors/[TYPE]
+ * The full REST resource name for this descriptor. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE]
* In the above, `[TYPE]` is the value of the `type` field.
*
*
@@ -1140,8 +1140,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * The full REST resource name for this descriptor. The syntax is:
- * projects/[PROJECT_ID]/notificationChannelDescriptors/[TYPE]
+ * The full REST resource name for this descriptor. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE]
* In the above, `[TYPE]` is the value of the `type` field.
*
*
@@ -1163,8 +1163,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * The full REST resource name for this descriptor. The syntax is:
- * projects/[PROJECT_ID]/notificationChannelDescriptors/[TYPE]
+ * The full REST resource name for this descriptor. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE]
* In the above, `[TYPE]` is the value of the `type` field.
*
*
@@ -1182,8 +1182,8 @@ public Builder clearName() {
*
*
*
- * The full REST resource name for this descriptor. The syntax is:
- * projects/[PROJECT_ID]/notificationChannelDescriptors/[TYPE]
+ * The full REST resource name for this descriptor. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE]
* In the above, `[TYPE]` is the value of the `type` field.
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java
index 153b9ce9..c7a04458 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java
@@ -27,8 +27,8 @@ public interface NotificationChannelDescriptorOrBuilder
*
*
*
- * The full REST resource name for this descriptor. The syntax is:
- * projects/[PROJECT_ID]/notificationChannelDescriptors/[TYPE]
+ * The full REST resource name for this descriptor. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE]
* In the above, `[TYPE]` is the value of the `type` field.
*
*
@@ -41,8 +41,8 @@ public interface NotificationChannelDescriptorOrBuilder
*
*
*
- * The full REST resource name for this descriptor. The syntax is:
- * projects/[PROJECT_ID]/notificationChannelDescriptors/[TYPE]
+ * The full REST resource name for this descriptor. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE]
* In the above, `[TYPE]` is the value of the `type` field.
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java
index d5b4eee8..132b4f52 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java
@@ -54,8 +54,8 @@ public interface NotificationChannelOrBuilder
*
*
*
- * The full REST resource name for this channel. The syntax is:
- * projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
+ * The full REST resource name for this channel. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
* The `[CHANNEL_ID]` is automatically assigned by the server on creation.
*
*
@@ -68,8 +68,8 @@ public interface NotificationChannelOrBuilder
*
*
*
- * The full REST resource name for this channel. The syntax is:
- * projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
+ * The full REST resource name for this channel. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
* The `[CHANNEL_ID]` is automatically assigned by the server on creation.
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java
new file mode 100644
index 00000000..fc4371fe
--- /dev/null
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java
@@ -0,0 +1,913 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/monitoring/v3/metric.proto
+
+package com.google.monitoring.v3;
+
+/**
+ *
+ *
+ *
+ * An error associated with a query in the time series query language format.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.QueryError}
+ */
+public final class QueryError extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.QueryError)
+ QueryErrorOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use QueryError.newBuilder() to construct.
+ private QueryError(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private QueryError() {
+ message_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new QueryError();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private QueryError(
+ 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.TextLocator.Builder subBuilder = null;
+ if (locator_ != null) {
+ subBuilder = locator_.toBuilder();
+ }
+ locator_ =
+ input.readMessage(
+ com.google.monitoring.v3.TextLocator.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(locator_);
+ locator_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ message_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.monitoring.v3.MetricProto
+ .internal_static_google_monitoring_v3_QueryError_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.monitoring.v3.MetricProto
+ .internal_static_google_monitoring_v3_QueryError_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.monitoring.v3.QueryError.class,
+ com.google.monitoring.v3.QueryError.Builder.class);
+ }
+
+ public static final int LOCATOR_FIELD_NUMBER = 1;
+ private com.google.monitoring.v3.TextLocator locator_;
+ /**
+ *
+ *
+ *
+ * The location of the time series query language text that this error applies
+ * to.
+ *
+ *
+ * .google.monitoring.v3.TextLocator locator = 1;
+ *
+ * @return Whether the locator field is set.
+ */
+ public boolean hasLocator() {
+ return locator_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The location of the time series query language text that this error applies
+ * to.
+ *
+ *
+ * .google.monitoring.v3.TextLocator locator = 1;
+ *
+ * @return The locator.
+ */
+ public com.google.monitoring.v3.TextLocator getLocator() {
+ return locator_ == null ? com.google.monitoring.v3.TextLocator.getDefaultInstance() : locator_;
+ }
+ /**
+ *
+ *
+ *
+ * The location of the time series query language text that this error applies
+ * to.
+ *
+ *
+ * .google.monitoring.v3.TextLocator locator = 1;
+ */
+ public com.google.monitoring.v3.TextLocatorOrBuilder getLocatorOrBuilder() {
+ return getLocator();
+ }
+
+ public static final int MESSAGE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object message_;
+ /**
+ *
+ *
+ *
+ * The error message.
+ *
+ *
+ * string message = 2;
+ *
+ * @return The message.
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ 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();
+ message_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The error message.
+ *
+ *
+ * string message = 2;
+ *
+ * @return The bytes for message.
+ */
+ public com.google.protobuf.ByteString getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (locator_ != null) {
+ output.writeMessage(1, getLocator());
+ }
+ if (!getMessageBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (locator_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLocator());
+ }
+ if (!getMessageBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
+ }
+ 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.QueryError)) {
+ return super.equals(obj);
+ }
+ com.google.monitoring.v3.QueryError other = (com.google.monitoring.v3.QueryError) obj;
+
+ if (hasLocator() != other.hasLocator()) return false;
+ if (hasLocator()) {
+ if (!getLocator().equals(other.getLocator())) return false;
+ }
+ if (!getMessage().equals(other.getMessage())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasLocator()) {
+ hash = (37 * hash) + LOCATOR_FIELD_NUMBER;
+ hash = (53 * hash) + getLocator().hashCode();
+ }
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessage().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.monitoring.v3.QueryError parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.QueryError 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.QueryError parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.QueryError 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.QueryError parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.QueryError parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.v3.QueryError parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.QueryError 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.QueryError parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.QueryError 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.QueryError parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.QueryError 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.QueryError 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;
+ }
+ /**
+ *
+ *
+ *
+ * An error associated with a query in the time series query language format.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.QueryError}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The location of the time series query language text that this error applies
+ * to.
+ *
+ *
+ * .google.monitoring.v3.TextLocator locator = 1;
+ *
+ * @return Whether the locator field is set.
+ */
+ public boolean hasLocator() {
+ return locatorBuilder_ != null || locator_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The location of the time series query language text that this error applies
+ * to.
+ *
+ *
+ * .google.monitoring.v3.TextLocator locator = 1;
+ *
+ * @return The locator.
+ */
+ public com.google.monitoring.v3.TextLocator getLocator() {
+ if (locatorBuilder_ == null) {
+ return locator_ == null
+ ? com.google.monitoring.v3.TextLocator.getDefaultInstance()
+ : locator_;
+ } else {
+ return locatorBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The location of the time series query language text that this error applies
+ * to.
+ *
+ *
+ * .google.monitoring.v3.TextLocator locator = 1;
+ */
+ public Builder setLocator(com.google.monitoring.v3.TextLocator value) {
+ if (locatorBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ locator_ = value;
+ onChanged();
+ } else {
+ locatorBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The location of the time series query language text that this error applies
+ * to.
+ *
+ *
+ * .google.monitoring.v3.TextLocator locator = 1;
+ */
+ public Builder setLocator(com.google.monitoring.v3.TextLocator.Builder builderForValue) {
+ if (locatorBuilder_ == null) {
+ locator_ = builderForValue.build();
+ onChanged();
+ } else {
+ locatorBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The location of the time series query language text that this error applies
+ * to.
+ *
+ *
+ * .google.monitoring.v3.TextLocator locator = 1;
+ */
+ public Builder mergeLocator(com.google.monitoring.v3.TextLocator value) {
+ if (locatorBuilder_ == null) {
+ if (locator_ != null) {
+ locator_ =
+ com.google.monitoring.v3.TextLocator.newBuilder(locator_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ locator_ = value;
+ }
+ onChanged();
+ } else {
+ locatorBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The location of the time series query language text that this error applies
+ * to.
+ *
+ *
+ * .google.monitoring.v3.TextLocator locator = 1;
+ */
+ public Builder clearLocator() {
+ if (locatorBuilder_ == null) {
+ locator_ = null;
+ onChanged();
+ } else {
+ locator_ = null;
+ locatorBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The location of the time series query language text that this error applies
+ * to.
+ *
+ *
+ * .google.monitoring.v3.TextLocator locator = 1;
+ */
+ public com.google.monitoring.v3.TextLocator.Builder getLocatorBuilder() {
+
+ onChanged();
+ return getLocatorFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The location of the time series query language text that this error applies
+ * to.
+ *
+ *
+ * .google.monitoring.v3.TextLocator locator = 1;
+ */
+ public com.google.monitoring.v3.TextLocatorOrBuilder getLocatorOrBuilder() {
+ if (locatorBuilder_ != null) {
+ return locatorBuilder_.getMessageOrBuilder();
+ } else {
+ return locator_ == null
+ ? com.google.monitoring.v3.TextLocator.getDefaultInstance()
+ : locator_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The location of the time series query language text that this error applies
+ * to.
+ *
+ *
+ * .google.monitoring.v3.TextLocator locator = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.TextLocator,
+ com.google.monitoring.v3.TextLocator.Builder,
+ com.google.monitoring.v3.TextLocatorOrBuilder>
+ getLocatorFieldBuilder() {
+ if (locatorBuilder_ == null) {
+ locatorBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.TextLocator,
+ com.google.monitoring.v3.TextLocator.Builder,
+ com.google.monitoring.v3.TextLocatorOrBuilder>(
+ getLocator(), getParentForChildren(), isClean());
+ locator_ = null;
+ }
+ return locatorBuilder_;
+ }
+
+ private java.lang.Object message_ = "";
+ /**
+ *
+ *
+ *
+ * The error message.
+ *
+ *
+ * string message = 2;
+ *
+ * @return The message.
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The error message.
+ *
+ *
+ * string message = 2;
+ *
+ * @return The bytes for message.
+ */
+ public com.google.protobuf.ByteString getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The error message.
+ *
+ *
+ * string message = 2;
+ *
+ * @param value The message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessage(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ message_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The error message.
+ *
+ *
+ * string message = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMessage() {
+
+ message_ = getDefaultInstance().getMessage();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The error message.
+ *
+ *
+ * string message = 2;
+ *
+ * @param value The bytes for message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessageBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ message_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.monitoring.v3.QueryError)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.monitoring.v3.QueryError)
+ private static final com.google.monitoring.v3.QueryError DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.monitoring.v3.QueryError();
+ }
+
+ public static com.google.monitoring.v3.QueryError getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * This is an error detail intended to be used with INVALID_ARGUMENT errors.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.QueryErrorList}
+ */
+public final class QueryErrorList extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.QueryErrorList)
+ QueryErrorListOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use QueryErrorList.newBuilder() to construct.
+ private QueryErrorList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private QueryErrorList() {
+ errors_ = java.util.Collections.emptyList();
+ errorSummary_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new QueryErrorList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private QueryErrorList(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ errors_ = new java.util.ArrayList
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public java.util.List
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public java.util.List extends com.google.monitoring.v3.QueryErrorOrBuilder>
+ getErrorsOrBuilderList() {
+ return errors_;
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public int getErrorsCount() {
+ return errors_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public com.google.monitoring.v3.QueryError getErrors(int index) {
+ return errors_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(int index) {
+ return errors_.get(index);
+ }
+
+ public static final int ERROR_SUMMARY_FIELD_NUMBER = 2;
+ private volatile java.lang.Object errorSummary_;
+ /**
+ *
+ *
+ *
+ * A summary of all the errors.
+ *
+ *
+ * string error_summary = 2;
+ *
+ * @return The errorSummary.
+ */
+ public java.lang.String getErrorSummary() {
+ java.lang.Object ref = errorSummary_;
+ 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();
+ errorSummary_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A summary of all the errors.
+ *
+ *
+ * string error_summary = 2;
+ *
+ * @return The bytes for errorSummary.
+ */
+ public com.google.protobuf.ByteString getErrorSummaryBytes() {
+ java.lang.Object ref = errorSummary_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ errorSummary_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < errors_.size(); i++) {
+ output.writeMessage(1, errors_.get(i));
+ }
+ if (!getErrorSummaryBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorSummary_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < errors_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errors_.get(i));
+ }
+ if (!getErrorSummaryBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorSummary_);
+ }
+ 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.QueryErrorList)) {
+ return super.equals(obj);
+ }
+ com.google.monitoring.v3.QueryErrorList other = (com.google.monitoring.v3.QueryErrorList) obj;
+
+ if (!getErrorsList().equals(other.getErrorsList())) return false;
+ if (!getErrorSummary().equals(other.getErrorSummary())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getErrorsCount() > 0) {
+ hash = (37 * hash) + ERRORS_FIELD_NUMBER;
+ hash = (53 * hash) + getErrorsList().hashCode();
+ }
+ hash = (37 * hash) + ERROR_SUMMARY_FIELD_NUMBER;
+ hash = (53 * hash) + getErrorSummary().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.monitoring.v3.QueryErrorList parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.QueryErrorList 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.QueryErrorList parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.QueryErrorList 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.QueryErrorList parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.QueryErrorList parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.v3.QueryErrorList parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.QueryErrorList 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.QueryErrorList parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.QueryErrorList 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.QueryErrorList parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.QueryErrorList 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.QueryErrorList 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;
+ }
+ /**
+ *
+ *
+ *
+ * This is an error detail intended to be used with INVALID_ARGUMENT errors.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.QueryErrorList}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public java.util.List
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public int getErrorsCount() {
+ if (errorsBuilder_ == null) {
+ return errors_.size();
+ } else {
+ return errorsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public com.google.monitoring.v3.QueryError getErrors(int index) {
+ if (errorsBuilder_ == null) {
+ return errors_.get(index);
+ } else {
+ return errorsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public Builder setErrors(int index, com.google.monitoring.v3.QueryError value) {
+ if (errorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureErrorsIsMutable();
+ errors_.set(index, value);
+ onChanged();
+ } else {
+ errorsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public Builder setErrors(
+ int index, com.google.monitoring.v3.QueryError.Builder builderForValue) {
+ if (errorsBuilder_ == null) {
+ ensureErrorsIsMutable();
+ errors_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ errorsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public Builder addErrors(com.google.monitoring.v3.QueryError value) {
+ if (errorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureErrorsIsMutable();
+ errors_.add(value);
+ onChanged();
+ } else {
+ errorsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public Builder addErrors(int index, com.google.monitoring.v3.QueryError value) {
+ if (errorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureErrorsIsMutable();
+ errors_.add(index, value);
+ onChanged();
+ } else {
+ errorsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public Builder addErrors(com.google.monitoring.v3.QueryError.Builder builderForValue) {
+ if (errorsBuilder_ == null) {
+ ensureErrorsIsMutable();
+ errors_.add(builderForValue.build());
+ onChanged();
+ } else {
+ errorsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public Builder addErrors(
+ int index, com.google.monitoring.v3.QueryError.Builder builderForValue) {
+ if (errorsBuilder_ == null) {
+ ensureErrorsIsMutable();
+ errors_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ errorsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public Builder addAllErrors(
+ java.lang.Iterable extends com.google.monitoring.v3.QueryError> values) {
+ if (errorsBuilder_ == null) {
+ ensureErrorsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_);
+ onChanged();
+ } else {
+ errorsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public Builder clearErrors() {
+ if (errorsBuilder_ == null) {
+ errors_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ errorsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public Builder removeErrors(int index) {
+ if (errorsBuilder_ == null) {
+ ensureErrorsIsMutable();
+ errors_.remove(index);
+ onChanged();
+ } else {
+ errorsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public com.google.monitoring.v3.QueryError.Builder getErrorsBuilder(int index) {
+ return getErrorsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(int index) {
+ if (errorsBuilder_ == null) {
+ return errors_.get(index);
+ } else {
+ return errorsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public java.util.List extends com.google.monitoring.v3.QueryErrorOrBuilder>
+ getErrorsOrBuilderList() {
+ if (errorsBuilder_ != null) {
+ return errorsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(errors_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public com.google.monitoring.v3.QueryError.Builder addErrorsBuilder() {
+ return getErrorsFieldBuilder()
+ .addBuilder(com.google.monitoring.v3.QueryError.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public com.google.monitoring.v3.QueryError.Builder addErrorsBuilder(int index) {
+ return getErrorsFieldBuilder()
+ .addBuilder(index, com.google.monitoring.v3.QueryError.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ public java.util.List
+ * A summary of all the errors.
+ *
+ *
+ * string error_summary = 2;
+ *
+ * @return The errorSummary.
+ */
+ public java.lang.String getErrorSummary() {
+ java.lang.Object ref = errorSummary_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ errorSummary_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A summary of all the errors.
+ *
+ *
+ * string error_summary = 2;
+ *
+ * @return The bytes for errorSummary.
+ */
+ public com.google.protobuf.ByteString getErrorSummaryBytes() {
+ java.lang.Object ref = errorSummary_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ errorSummary_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A summary of all the errors.
+ *
+ *
+ * string error_summary = 2;
+ *
+ * @param value The errorSummary to set.
+ * @return This builder for chaining.
+ */
+ public Builder setErrorSummary(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ errorSummary_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A summary of all the errors.
+ *
+ *
+ * string error_summary = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearErrorSummary() {
+
+ errorSummary_ = getDefaultInstance().getErrorSummary();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A summary of all the errors.
+ *
+ *
+ * string error_summary = 2;
+ *
+ * @param value The bytes for errorSummary to set.
+ * @return This builder for chaining.
+ */
+ public Builder setErrorSummaryBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ errorSummary_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.monitoring.v3.QueryErrorList)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.monitoring.v3.QueryErrorList)
+ private static final com.google.monitoring.v3.QueryErrorList DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.monitoring.v3.QueryErrorList();
+ }
+
+ public static com.google.monitoring.v3.QueryErrorList getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ java.util.List
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ com.google.monitoring.v3.QueryError getErrors(int index);
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ int getErrorsCount();
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ java.util.List extends com.google.monitoring.v3.QueryErrorOrBuilder> getErrorsOrBuilderList();
+ /**
+ *
+ *
+ *
+ * Errors in parsing the time series query language text. The number of errors
+ * in the response may be limited.
+ *
+ *
+ * repeated .google.monitoring.v3.QueryError errors = 1;
+ */
+ com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * A summary of all the errors.
+ *
+ *
+ * string error_summary = 2;
+ *
+ * @return The errorSummary.
+ */
+ java.lang.String getErrorSummary();
+ /**
+ *
+ *
+ *
+ * A summary of all the errors.
+ *
+ *
+ * string error_summary = 2;
+ *
+ * @return The bytes for errorSummary.
+ */
+ com.google.protobuf.ByteString getErrorSummaryBytes();
+}
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorOrBuilder.java
new file mode 100644
index 00000000..43c59bc7
--- /dev/null
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorOrBuilder.java
@@ -0,0 +1,88 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/monitoring/v3/metric.proto
+
+package com.google.monitoring.v3;
+
+public interface QueryErrorOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.monitoring.v3.QueryError)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The location of the time series query language text that this error applies
+ * to.
+ *
+ *
+ * .google.monitoring.v3.TextLocator locator = 1;
+ *
+ * @return Whether the locator field is set.
+ */
+ boolean hasLocator();
+ /**
+ *
+ *
+ *
+ * The location of the time series query language text that this error applies
+ * to.
+ *
+ *
+ * .google.monitoring.v3.TextLocator locator = 1;
+ *
+ * @return The locator.
+ */
+ com.google.monitoring.v3.TextLocator getLocator();
+ /**
+ *
+ *
+ *
+ * The location of the time series query language text that this error applies
+ * to.
+ *
+ *
+ * .google.monitoring.v3.TextLocator locator = 1;
+ */
+ com.google.monitoring.v3.TextLocatorOrBuilder getLocatorOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The error message.
+ *
+ *
+ * string message = 2;
+ *
+ * @return The message.
+ */
+ java.lang.String getMessage();
+ /**
+ *
+ *
+ *
+ * The error message.
+ *
+ *
+ * string message = 2;
+ *
+ * @return The bytes for message.
+ */
+ com.google.protobuf.ByteString getMessageBytes();
+}
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java
new file mode 100644
index 00000000..024a0e44
--- /dev/null
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java
@@ -0,0 +1,1103 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/monitoring/v3/metric_service.proto
+
+package com.google.monitoring.v3;
+
+/**
+ *
+ *
+ *
+ * The `QueryTimeSeries` request.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.QueryTimeSeriesRequest}
+ */
+public final class QueryTimeSeriesRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.QueryTimeSeriesRequest)
+ QueryTimeSeriesRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use QueryTimeSeriesRequest.newBuilder() to construct.
+ private QueryTimeSeriesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private QueryTimeSeriesRequest() {
+ name_ = "";
+ query_ = "";
+ pageToken_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new QueryTimeSeriesRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private QueryTimeSeriesRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ case 58:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ query_ = s;
+ break;
+ }
+ case 72:
+ {
+ pageSize_ = input.readInt32();
+ break;
+ }
+ case 82:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ pageToken_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.monitoring.v3.MetricServiceProto
+ .internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.monitoring.v3.MetricServiceProto
+ .internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.monitoring.v3.QueryTimeSeriesRequest.class,
+ com.google.monitoring.v3.QueryTimeSeriesRequest.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ *
+ * Required. The project on which to execute the request. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
+ *
+ *
+ * string name = 1;
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The project on which to execute the request. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
+ *
+ *
+ * string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ 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 QUERY_FIELD_NUMBER = 7;
+ private volatile java.lang.Object query_;
+ /**
+ *
+ *
+ *
+ * Required. The query in the time series query language format. The default
+ * time zone is in UTC.
+ *
+ *
+ * string query = 7;
+ *
+ * @return The query.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The query in the time series query language format. The default
+ * time zone is in UTC.
+ *
+ *
+ * string query = 7;
+ *
+ * @return The bytes for query.
+ */
+ 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 static final int PAGE_SIZE_FIELD_NUMBER = 9;
+ private int pageSize_;
+ /**
+ *
+ *
+ *
+ * A positive number that is the maximum number of time_series_data to return.
+ *
+ *
+ * int32 page_size = 9;
+ *
+ * @return The pageSize.
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+
+ public static final int PAGE_TOKEN_FIELD_NUMBER = 10;
+ private volatile java.lang.Object pageToken_;
+ /**
+ *
+ *
+ *
+ * If this field is not empty then it must contain the `nextPageToken` value
+ * returned by a previous call to this method. Using this field causes the
+ * method to return additional results from the previous method call.
+ *
+ *
+ * string page_token = 10;
+ *
+ * @return The pageToken.
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ 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();
+ pageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * If this field is not empty then it must contain the `nextPageToken` value
+ * returned by a previous call to this method. Using this field causes the
+ * method to return additional results from the previous method call.
+ *
+ *
+ * string page_token = 10;
+ *
+ * @return The bytes for pageToken.
+ */
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!getQueryBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, query_);
+ }
+ if (pageSize_ != 0) {
+ output.writeInt32(9, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 10, pageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!getQueryBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, query_);
+ }
+ if (pageSize_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, pageToken_);
+ }
+ 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.QueryTimeSeriesRequest)) {
+ return super.equals(obj);
+ }
+ com.google.monitoring.v3.QueryTimeSeriesRequest other =
+ (com.google.monitoring.v3.QueryTimeSeriesRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getQuery().equals(other.getQuery())) return false;
+ if (getPageSize() != other.getPageSize()) return false;
+ if (!getPageToken().equals(other.getPageToken())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + getQuery().hashCode();
+ hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getPageSize();
+ hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.QueryTimeSeriesRequest 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.QueryTimeSeriesRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.QueryTimeSeriesRequest 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.QueryTimeSeriesRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.QueryTimeSeriesRequest 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.QueryTimeSeriesRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.QueryTimeSeriesRequest 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.QueryTimeSeriesRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.QueryTimeSeriesRequest 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.QueryTimeSeriesRequest 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;
+ }
+ /**
+ *
+ *
+ *
+ * The `QueryTimeSeries` request.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.QueryTimeSeriesRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The project on which to execute the request. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
+ *
+ *
+ * string name = 1;
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The project on which to execute the request. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
+ *
+ *
+ * string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The project on which to execute the request. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
+ *
+ *
+ * string name = 1;
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The project on which to execute the request. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
+ *
+ *
+ * string name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The project on which to execute the request. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
+ *
+ *
+ * string name = 1;
+ *
+ * @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 query_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The query in the time series query language format. The default
+ * time zone is in UTC.
+ *
+ *
+ * string query = 7;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The query in the time series query language format. The default
+ * time zone is in UTC.
+ *
+ *
+ * string query = 7;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The query in the time series query language format. The default
+ * time zone is in UTC.
+ *
+ *
+ * string query = 7;
+ *
+ * @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;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The query in the time series query language format. The default
+ * time zone is in UTC.
+ *
+ *
+ * string query = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQuery() {
+
+ query_ = getDefaultInstance().getQuery();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The query in the time series query language format. The default
+ * time zone is in UTC.
+ *
+ *
+ * string query = 7;
+ *
+ * @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 int pageSize_;
+ /**
+ *
+ *
+ *
+ * A positive number that is the maximum number of time_series_data to return.
+ *
+ *
+ * int32 page_size = 9;
+ *
+ * @return The pageSize.
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+ /**
+ *
+ *
+ *
+ * A positive number that is the maximum number of time_series_data to return.
+ *
+ *
+ * int32 page_size = 9;
+ *
+ * @param value The pageSize to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPageSize(int value) {
+
+ pageSize_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A positive number that is the maximum number of time_series_data to return.
+ *
+ *
+ * int32 page_size = 9;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPageSize() {
+
+ pageSize_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pageToken_ = "";
+ /**
+ *
+ *
+ *
+ * If this field is not empty then it must contain the `nextPageToken` value
+ * returned by a previous call to this method. Using this field causes the
+ * method to return additional results from the previous method call.
+ *
+ *
+ * string page_token = 10;
+ *
+ * @return The pageToken.
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * If this field is not empty then it must contain the `nextPageToken` value
+ * returned by a previous call to this method. Using this field causes the
+ * method to return additional results from the previous method call.
+ *
+ *
+ * string page_token = 10;
+ *
+ * @return The bytes for pageToken.
+ */
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * If this field is not empty then it must contain the `nextPageToken` value
+ * returned by a previous call to this method. Using this field causes the
+ * method to return additional results from the previous method call.
+ *
+ *
+ * string page_token = 10;
+ *
+ * @param value The pageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * If this field is not empty then it must contain the `nextPageToken` value
+ * returned by a previous call to this method. Using this field causes the
+ * method to return additional results from the previous method call.
+ *
+ *
+ * string page_token = 10;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPageToken() {
+
+ pageToken_ = getDefaultInstance().getPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * If this field is not empty then it must contain the `nextPageToken` value
+ * returned by a previous call to this method. Using this field causes the
+ * method to return additional results from the previous method call.
+ *
+ *
+ * string page_token = 10;
+ *
+ * @param value The bytes for pageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.monitoring.v3.QueryTimeSeriesRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.monitoring.v3.QueryTimeSeriesRequest)
+ private static final com.google.monitoring.v3.QueryTimeSeriesRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.monitoring.v3.QueryTimeSeriesRequest();
+ }
+
+ public static com.google.monitoring.v3.QueryTimeSeriesRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Required. The project on which to execute the request. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
+ *
+ *
+ * string name = 1;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Required. The project on which to execute the request. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]
+ *
+ *
+ * string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Required. The query in the time series query language format. The default
+ * time zone is in UTC.
+ *
+ *
+ * string query = 7;
+ *
+ * @return The query.
+ */
+ java.lang.String getQuery();
+ /**
+ *
+ *
+ *
+ * Required. The query in the time series query language format. The default
+ * time zone is in UTC.
+ *
+ *
+ * string query = 7;
+ *
+ * @return The bytes for query.
+ */
+ com.google.protobuf.ByteString getQueryBytes();
+
+ /**
+ *
+ *
+ *
+ * A positive number that is the maximum number of time_series_data to return.
+ *
+ *
+ * int32 page_size = 9;
+ *
+ * @return The pageSize.
+ */
+ int getPageSize();
+
+ /**
+ *
+ *
+ *
+ * If this field is not empty then it must contain the `nextPageToken` value
+ * returned by a previous call to this method. Using this field causes the
+ * method to return additional results from the previous method call.
+ *
+ *
+ * string page_token = 10;
+ *
+ * @return The pageToken.
+ */
+ java.lang.String getPageToken();
+ /**
+ *
+ *
+ *
+ * If this field is not empty then it must contain the `nextPageToken` value
+ * returned by a previous call to this method. Using this field causes the
+ * method to return additional results from the previous method call.
+ *
+ *
+ * string page_token = 10;
+ *
+ * @return The bytes for pageToken.
+ */
+ com.google.protobuf.ByteString getPageTokenBytes();
+}
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
new file mode 100644
index 00000000..e32cb3b0
--- /dev/null
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java
@@ -0,0 +1,1937 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/monitoring/v3/metric_service.proto
+
+package com.google.monitoring.v3;
+
+/**
+ *
+ *
+ *
+ * The `QueryTimeSeries` response.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.QueryTimeSeriesResponse}
+ */
+public final class QueryTimeSeriesResponse extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.QueryTimeSeriesResponse)
+ QueryTimeSeriesResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use QueryTimeSeriesResponse.newBuilder() to construct.
+ private QueryTimeSeriesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private QueryTimeSeriesResponse() {
+ timeSeriesData_ = java.util.Collections.emptyList();
+ nextPageToken_ = "";
+ partialErrors_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new QueryTimeSeriesResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private QueryTimeSeriesResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 66:
+ {
+ com.google.monitoring.v3.TimeSeriesDescriptor.Builder subBuilder = null;
+ if (timeSeriesDescriptor_ != null) {
+ subBuilder = timeSeriesDescriptor_.toBuilder();
+ }
+ timeSeriesDescriptor_ =
+ input.readMessage(
+ com.google.monitoring.v3.TimeSeriesDescriptor.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(timeSeriesDescriptor_);
+ timeSeriesDescriptor_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 74:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ timeSeriesData_ =
+ new java.util.ArrayList
+ * The descriptor for the time series data.
+ *
+ *
+ * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;
+ *
+ * @return Whether the timeSeriesDescriptor field is set.
+ */
+ public boolean hasTimeSeriesDescriptor() {
+ return timeSeriesDescriptor_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The descriptor for the time series data.
+ *
+ *
+ * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;
+ *
+ * @return The timeSeriesDescriptor.
+ */
+ public com.google.monitoring.v3.TimeSeriesDescriptor getTimeSeriesDescriptor() {
+ return timeSeriesDescriptor_ == null
+ ? com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance()
+ : timeSeriesDescriptor_;
+ }
+ /**
+ *
+ *
+ *
+ * The descriptor for the time series data.
+ *
+ *
+ * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;
+ */
+ public com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder getTimeSeriesDescriptorOrBuilder() {
+ return getTimeSeriesDescriptor();
+ }
+
+ public static final int TIME_SERIES_DATA_FIELD_NUMBER = 9;
+ private java.util.List
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public java.util.List
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public java.util.List extends com.google.monitoring.v3.TimeSeriesDataOrBuilder>
+ getTimeSeriesDataOrBuilderList() {
+ return timeSeriesData_;
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public int getTimeSeriesDataCount() {
+ return timeSeriesData_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public com.google.monitoring.v3.TimeSeriesData getTimeSeriesData(int index) {
+ return timeSeriesData_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(int index) {
+ return timeSeriesData_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 10;
+ private volatile java.lang.Object nextPageToken_;
+ /**
+ *
+ *
+ *
+ * If there are more results than have been returned, then this field is set
+ * to a non-empty value. To see the additional results, use that value as
+ * `page_token` in the next call to this method.
+ *
+ *
+ * string next_page_token = 10;
+ *
+ * @return The nextPageToken.
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ 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();
+ nextPageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * If there are more results than have been returned, then this field is set
+ * to a non-empty value. To see the additional results, use that value as
+ * `page_token` in the next call to this method.
+ *
+ *
+ * string next_page_token = 10;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARTIAL_ERRORS_FIELD_NUMBER = 11;
+ private java.util.List
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public java.util.List
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public java.util.List extends com.google.rpc.StatusOrBuilder> getPartialErrorsOrBuilderList() {
+ return partialErrors_;
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public int getPartialErrorsCount() {
+ return partialErrors_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public com.google.rpc.Status getPartialErrors(int index) {
+ return partialErrors_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) {
+ return partialErrors_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (timeSeriesDescriptor_ != null) {
+ output.writeMessage(8, getTimeSeriesDescriptor());
+ }
+ for (int i = 0; i < timeSeriesData_.size(); i++) {
+ output.writeMessage(9, timeSeriesData_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 10, nextPageToken_);
+ }
+ for (int i = 0; i < partialErrors_.size(); i++) {
+ output.writeMessage(11, partialErrors_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (timeSeriesDescriptor_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTimeSeriesDescriptor());
+ }
+ for (int i = 0; i < timeSeriesData_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, timeSeriesData_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nextPageToken_);
+ }
+ for (int i = 0; i < partialErrors_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, partialErrors_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.monitoring.v3.QueryTimeSeriesResponse)) {
+ return super.equals(obj);
+ }
+ com.google.monitoring.v3.QueryTimeSeriesResponse other =
+ (com.google.monitoring.v3.QueryTimeSeriesResponse) obj;
+
+ if (hasTimeSeriesDescriptor() != other.hasTimeSeriesDescriptor()) return false;
+ if (hasTimeSeriesDescriptor()) {
+ if (!getTimeSeriesDescriptor().equals(other.getTimeSeriesDescriptor())) return false;
+ }
+ if (!getTimeSeriesDataList().equals(other.getTimeSeriesDataList())) return false;
+ if (!getNextPageToken().equals(other.getNextPageToken())) return false;
+ if (!getPartialErrorsList().equals(other.getPartialErrorsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasTimeSeriesDescriptor()) {
+ hash = (37 * hash) + TIME_SERIES_DESCRIPTOR_FIELD_NUMBER;
+ hash = (53 * hash) + getTimeSeriesDescriptor().hashCode();
+ }
+ if (getTimeSeriesDataCount() > 0) {
+ hash = (37 * hash) + TIME_SERIES_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getTimeSeriesDataList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ if (getPartialErrorsCount() > 0) {
+ hash = (37 * hash) + PARTIAL_ERRORS_FIELD_NUMBER;
+ hash = (53 * hash) + getPartialErrorsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.QueryTimeSeriesResponse 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.QueryTimeSeriesResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.QueryTimeSeriesResponse 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.QueryTimeSeriesResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.QueryTimeSeriesResponse 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.QueryTimeSeriesResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.QueryTimeSeriesResponse 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.QueryTimeSeriesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.QueryTimeSeriesResponse 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.QueryTimeSeriesResponse 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;
+ }
+ /**
+ *
+ *
+ *
+ * The `QueryTimeSeries` response.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.QueryTimeSeriesResponse}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The descriptor for the time series data.
+ *
+ *
+ * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;
+ *
+ * @return Whether the timeSeriesDescriptor field is set.
+ */
+ public boolean hasTimeSeriesDescriptor() {
+ return timeSeriesDescriptorBuilder_ != null || timeSeriesDescriptor_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The descriptor for the time series data.
+ *
+ *
+ * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;
+ *
+ * @return The timeSeriesDescriptor.
+ */
+ public com.google.monitoring.v3.TimeSeriesDescriptor getTimeSeriesDescriptor() {
+ if (timeSeriesDescriptorBuilder_ == null) {
+ return timeSeriesDescriptor_ == null
+ ? com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance()
+ : timeSeriesDescriptor_;
+ } else {
+ return timeSeriesDescriptorBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The descriptor for the time series data.
+ *
+ *
+ * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;
+ */
+ public Builder setTimeSeriesDescriptor(com.google.monitoring.v3.TimeSeriesDescriptor value) {
+ if (timeSeriesDescriptorBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ timeSeriesDescriptor_ = value;
+ onChanged();
+ } else {
+ timeSeriesDescriptorBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The descriptor for the time series data.
+ *
+ *
+ * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;
+ */
+ public Builder setTimeSeriesDescriptor(
+ com.google.monitoring.v3.TimeSeriesDescriptor.Builder builderForValue) {
+ if (timeSeriesDescriptorBuilder_ == null) {
+ timeSeriesDescriptor_ = builderForValue.build();
+ onChanged();
+ } else {
+ timeSeriesDescriptorBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The descriptor for the time series data.
+ *
+ *
+ * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;
+ */
+ public Builder mergeTimeSeriesDescriptor(com.google.monitoring.v3.TimeSeriesDescriptor value) {
+ if (timeSeriesDescriptorBuilder_ == null) {
+ if (timeSeriesDescriptor_ != null) {
+ timeSeriesDescriptor_ =
+ com.google.monitoring.v3.TimeSeriesDescriptor.newBuilder(timeSeriesDescriptor_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ timeSeriesDescriptor_ = value;
+ }
+ onChanged();
+ } else {
+ timeSeriesDescriptorBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The descriptor for the time series data.
+ *
+ *
+ * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;
+ */
+ public Builder clearTimeSeriesDescriptor() {
+ if (timeSeriesDescriptorBuilder_ == null) {
+ timeSeriesDescriptor_ = null;
+ onChanged();
+ } else {
+ timeSeriesDescriptor_ = null;
+ timeSeriesDescriptorBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The descriptor for the time series data.
+ *
+ *
+ * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;
+ */
+ public com.google.monitoring.v3.TimeSeriesDescriptor.Builder getTimeSeriesDescriptorBuilder() {
+
+ onChanged();
+ return getTimeSeriesDescriptorFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The descriptor for the time series data.
+ *
+ *
+ * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;
+ */
+ public com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder
+ getTimeSeriesDescriptorOrBuilder() {
+ if (timeSeriesDescriptorBuilder_ != null) {
+ return timeSeriesDescriptorBuilder_.getMessageOrBuilder();
+ } else {
+ return timeSeriesDescriptor_ == null
+ ? com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance()
+ : timeSeriesDescriptor_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The descriptor for the time series data.
+ *
+ *
+ * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.TimeSeriesDescriptor,
+ com.google.monitoring.v3.TimeSeriesDescriptor.Builder,
+ com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder>
+ getTimeSeriesDescriptorFieldBuilder() {
+ if (timeSeriesDescriptorBuilder_ == null) {
+ timeSeriesDescriptorBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.TimeSeriesDescriptor,
+ com.google.monitoring.v3.TimeSeriesDescriptor.Builder,
+ com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder>(
+ getTimeSeriesDescriptor(), getParentForChildren(), isClean());
+ timeSeriesDescriptor_ = null;
+ }
+ return timeSeriesDescriptorBuilder_;
+ }
+
+ private java.util.List
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public java.util.List
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public int getTimeSeriesDataCount() {
+ if (timeSeriesDataBuilder_ == null) {
+ return timeSeriesData_.size();
+ } else {
+ return timeSeriesDataBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public com.google.monitoring.v3.TimeSeriesData getTimeSeriesData(int index) {
+ if (timeSeriesDataBuilder_ == null) {
+ return timeSeriesData_.get(index);
+ } else {
+ return timeSeriesDataBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public Builder setTimeSeriesData(int index, com.google.monitoring.v3.TimeSeriesData value) {
+ if (timeSeriesDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTimeSeriesDataIsMutable();
+ timeSeriesData_.set(index, value);
+ onChanged();
+ } else {
+ timeSeriesDataBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public Builder setTimeSeriesData(
+ int index, com.google.monitoring.v3.TimeSeriesData.Builder builderForValue) {
+ if (timeSeriesDataBuilder_ == null) {
+ ensureTimeSeriesDataIsMutable();
+ timeSeriesData_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ timeSeriesDataBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public Builder addTimeSeriesData(com.google.monitoring.v3.TimeSeriesData value) {
+ if (timeSeriesDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTimeSeriesDataIsMutable();
+ timeSeriesData_.add(value);
+ onChanged();
+ } else {
+ timeSeriesDataBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public Builder addTimeSeriesData(int index, com.google.monitoring.v3.TimeSeriesData value) {
+ if (timeSeriesDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTimeSeriesDataIsMutable();
+ timeSeriesData_.add(index, value);
+ onChanged();
+ } else {
+ timeSeriesDataBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public Builder addTimeSeriesData(
+ com.google.monitoring.v3.TimeSeriesData.Builder builderForValue) {
+ if (timeSeriesDataBuilder_ == null) {
+ ensureTimeSeriesDataIsMutable();
+ timeSeriesData_.add(builderForValue.build());
+ onChanged();
+ } else {
+ timeSeriesDataBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public Builder addTimeSeriesData(
+ int index, com.google.monitoring.v3.TimeSeriesData.Builder builderForValue) {
+ if (timeSeriesDataBuilder_ == null) {
+ ensureTimeSeriesDataIsMutable();
+ timeSeriesData_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ timeSeriesDataBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public Builder addAllTimeSeriesData(
+ java.lang.Iterable extends com.google.monitoring.v3.TimeSeriesData> values) {
+ if (timeSeriesDataBuilder_ == null) {
+ ensureTimeSeriesDataIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeSeriesData_);
+ onChanged();
+ } else {
+ timeSeriesDataBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public Builder clearTimeSeriesData() {
+ if (timeSeriesDataBuilder_ == null) {
+ timeSeriesData_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ timeSeriesDataBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public Builder removeTimeSeriesData(int index) {
+ if (timeSeriesDataBuilder_ == null) {
+ ensureTimeSeriesDataIsMutable();
+ timeSeriesData_.remove(index);
+ onChanged();
+ } else {
+ timeSeriesDataBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public com.google.monitoring.v3.TimeSeriesData.Builder getTimeSeriesDataBuilder(int index) {
+ return getTimeSeriesDataFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(int index) {
+ if (timeSeriesDataBuilder_ == null) {
+ return timeSeriesData_.get(index);
+ } else {
+ return timeSeriesDataBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public java.util.List extends com.google.monitoring.v3.TimeSeriesDataOrBuilder>
+ getTimeSeriesDataOrBuilderList() {
+ if (timeSeriesDataBuilder_ != null) {
+ return timeSeriesDataBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(timeSeriesData_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public com.google.monitoring.v3.TimeSeriesData.Builder addTimeSeriesDataBuilder() {
+ return getTimeSeriesDataFieldBuilder()
+ .addBuilder(com.google.monitoring.v3.TimeSeriesData.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public com.google.monitoring.v3.TimeSeriesData.Builder addTimeSeriesDataBuilder(int index) {
+ return getTimeSeriesDataFieldBuilder()
+ .addBuilder(index, com.google.monitoring.v3.TimeSeriesData.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ public java.util.List
+ * If there are more results than have been returned, then this field is set
+ * to a non-empty value. To see the additional results, use that value as
+ * `page_token` in the next call to this method.
+ *
+ *
+ * string next_page_token = 10;
+ *
+ * @return The nextPageToken.
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * If there are more results than have been returned, then this field is set
+ * to a non-empty value. To see the additional results, use that value as
+ * `page_token` in the next call to this method.
+ *
+ *
+ * string next_page_token = 10;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * If there are more results than have been returned, then this field is set
+ * to a non-empty value. To see the additional results, use that value as
+ * `page_token` in the next call to this method.
+ *
+ *
+ * string next_page_token = 10;
+ *
+ * @param value The nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * If there are more results than have been returned, then this field is set
+ * to a non-empty value. To see the additional results, use that value as
+ * `page_token` in the next call to this method.
+ *
+ *
+ * string next_page_token = 10;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNextPageToken() {
+
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * If there are more results than have been returned, then this field is set
+ * to a non-empty value. To see the additional results, use that value as
+ * `page_token` in the next call to this method.
+ *
+ *
+ * string next_page_token = 10;
+ *
+ * @param value The bytes for nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public java.util.List
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public int getPartialErrorsCount() {
+ if (partialErrorsBuilder_ == null) {
+ return partialErrors_.size();
+ } else {
+ return partialErrorsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public com.google.rpc.Status getPartialErrors(int index) {
+ if (partialErrorsBuilder_ == null) {
+ return partialErrors_.get(index);
+ } else {
+ return partialErrorsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public Builder setPartialErrors(int index, com.google.rpc.Status value) {
+ if (partialErrorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartialErrorsIsMutable();
+ partialErrors_.set(index, value);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public Builder setPartialErrors(int index, com.google.rpc.Status.Builder builderForValue) {
+ if (partialErrorsBuilder_ == null) {
+ ensurePartialErrorsIsMutable();
+ partialErrors_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ partialErrorsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public Builder addPartialErrors(com.google.rpc.Status value) {
+ if (partialErrorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartialErrorsIsMutable();
+ partialErrors_.add(value);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public Builder addPartialErrors(int index, com.google.rpc.Status value) {
+ if (partialErrorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartialErrorsIsMutable();
+ partialErrors_.add(index, value);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public Builder addPartialErrors(com.google.rpc.Status.Builder builderForValue) {
+ if (partialErrorsBuilder_ == null) {
+ ensurePartialErrorsIsMutable();
+ partialErrors_.add(builderForValue.build());
+ onChanged();
+ } else {
+ partialErrorsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public Builder addPartialErrors(int index, com.google.rpc.Status.Builder builderForValue) {
+ if (partialErrorsBuilder_ == null) {
+ ensurePartialErrorsIsMutable();
+ partialErrors_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ partialErrorsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public Builder addAllPartialErrors(java.lang.Iterable extends com.google.rpc.Status> values) {
+ if (partialErrorsBuilder_ == null) {
+ ensurePartialErrorsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialErrors_);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public Builder clearPartialErrors() {
+ if (partialErrorsBuilder_ == null) {
+ partialErrors_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public Builder removePartialErrors(int index) {
+ if (partialErrorsBuilder_ == null) {
+ ensurePartialErrorsIsMutable();
+ partialErrors_.remove(index);
+ onChanged();
+ } else {
+ partialErrorsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public com.google.rpc.Status.Builder getPartialErrorsBuilder(int index) {
+ return getPartialErrorsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) {
+ if (partialErrorsBuilder_ == null) {
+ return partialErrors_.get(index);
+ } else {
+ return partialErrorsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public java.util.List extends com.google.rpc.StatusOrBuilder>
+ getPartialErrorsOrBuilderList() {
+ if (partialErrorsBuilder_ != null) {
+ return partialErrorsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(partialErrors_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public com.google.rpc.Status.Builder addPartialErrorsBuilder() {
+ return getPartialErrorsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public com.google.rpc.Status.Builder addPartialErrorsBuilder(int index) {
+ return getPartialErrorsFieldBuilder()
+ .addBuilder(index, com.google.rpc.Status.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ public java.util.List
+ * The descriptor for the time series data.
+ *
+ *
+ * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;
+ *
+ * @return Whether the timeSeriesDescriptor field is set.
+ */
+ boolean hasTimeSeriesDescriptor();
+ /**
+ *
+ *
+ *
+ * The descriptor for the time series data.
+ *
+ *
+ * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;
+ *
+ * @return The timeSeriesDescriptor.
+ */
+ com.google.monitoring.v3.TimeSeriesDescriptor getTimeSeriesDescriptor();
+ /**
+ *
+ *
+ *
+ * The descriptor for the time series data.
+ *
+ *
+ * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;
+ */
+ com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder getTimeSeriesDescriptorOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ java.util.List
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ com.google.monitoring.v3.TimeSeriesData getTimeSeriesData(int index);
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ int getTimeSeriesDataCount();
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ java.util.List extends com.google.monitoring.v3.TimeSeriesDataOrBuilder>
+ getTimeSeriesDataOrBuilderList();
+ /**
+ *
+ *
+ *
+ * The time series data.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;
+ */
+ com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * If there are more results than have been returned, then this field is set
+ * to a non-empty value. To see the additional results, use that value as
+ * `page_token` in the next call to this method.
+ *
+ *
+ * string next_page_token = 10;
+ *
+ * @return The nextPageToken.
+ */
+ java.lang.String getNextPageToken();
+ /**
+ *
+ *
+ *
+ * If there are more results than have been returned, then this field is set
+ * to a non-empty value. To see the additional results, use that value as
+ * `page_token` in the next call to this method.
+ *
+ *
+ * string next_page_token = 10;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ com.google.protobuf.ByteString getNextPageTokenBytes();
+
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ java.util.List
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ com.google.rpc.Status getPartialErrors(int index);
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ int getPartialErrorsCount();
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ java.util.List extends com.google.rpc.StatusOrBuilder> getPartialErrorsOrBuilderList();
+ /**
+ *
+ *
+ *
+ * Query execution errors that may have caused the time series data returned
+ * to be incomplete. The available data will be available in the
+ * response.
+ *
+ *
+ * repeated .google.rpc.Status partial_errors = 11;
+ */
+ com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index);
+}
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 a14c6f5a..1ce08915 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
@@ -25,7 +25,7 @@
* A `Service` is a discrete, autonomous, and network-accessible unit, designed
* to solve an individual concern
* ([Wikipedia](https://en.wikipedia.org/wiki/Service-orientation)). In
- * Stackdriver Monitoring, a `Service` acts as the root resource under which
+ * Cloud Monitoring, a `Service` acts as the root resource under which
* operational aspects of the service are accessible.
*
*
@@ -155,6 +155,22 @@ private Service(
identifierCase_ = 9;
break;
}
+ case 82:
+ {
+ com.google.monitoring.v3.Service.MeshIstio.Builder subBuilder = null;
+ if (identifierCase_ == 10) {
+ subBuilder = ((com.google.monitoring.v3.Service.MeshIstio) identifier_).toBuilder();
+ }
+ identifier_ =
+ input.readMessage(
+ com.google.monitoring.v3.Service.MeshIstio.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.google.monitoring.v3.Service.MeshIstio) identifier_);
+ identifier_ = subBuilder.buildPartial();
+ }
+ identifierCase_ = 10;
+ break;
+ }
case 106:
{
com.google.monitoring.v3.Service.Telemetry.Builder subBuilder = null;
@@ -1983,6 +1999,7 @@ public com.google.monitoring.v3.Service.CloudEndpoints getDefaultInstanceForType
}
}
+ @java.lang.Deprecated
public interface ClusterIstioOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service.ClusterIstio)
@@ -2104,11 +2121,13 @@ public interface ClusterIstioOrBuilder
*
*
*
- * Istio service. Learn more at http://istio.io.
+ * Istio service scoped to a single Kubernetes cluster. Learn more at
+ * http://istio.io.
*
*
* Protobuf type {@code google.monitoring.v3.Service.ClusterIstio}
*/
+ @java.lang.Deprecated
public static final class ClusterIstio extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.ClusterIstio)
@@ -2608,7 +2627,8 @@ protected Builder newBuilderForType(
*
*
*
- * Istio service. Learn more at http://istio.io.
+ * Istio service scoped to a single Kubernetes cluster. Learn more at
+ * http://istio.io.
*
*
* Protobuf type {@code google.monitoring.v3.Service.ClusterIstio}
@@ -3292,65 +3312,121 @@ public com.google.monitoring.v3.Service.ClusterIstio getDefaultInstanceForType()
}
}
- public interface TelemetryOrBuilder
+ public interface MeshIstioOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service.Telemetry)
+ // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service.MeshIstio)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
- * The full name of the resource that defines this service. Formatted as
- * described in https://cloud.google.com/apis/design/resource_names.
+ * Identifier for the mesh in which this Istio service is defined.
+ * Corresponds to the `mesh_uid` metric label in Istio metrics.
*
*
- * string resource_name = 1;
+ * string mesh_uid = 1;
*
- * @return The resourceName.
+ * @return The meshUid.
*/
- java.lang.String getResourceName();
+ java.lang.String getMeshUid();
/**
*
*
*
- * The full name of the resource that defines this service. Formatted as
- * described in https://cloud.google.com/apis/design/resource_names.
+ * Identifier for the mesh in which this Istio service is defined.
+ * Corresponds to the `mesh_uid` metric label in Istio metrics.
*
*
- * string resource_name = 1;
+ * string mesh_uid = 1;
*
- * @return The bytes for resourceName.
+ * @return The bytes for meshUid.
*/
- com.google.protobuf.ByteString getResourceNameBytes();
+ com.google.protobuf.ByteString getMeshUidBytes();
+
+ /**
+ *
+ *
+ *
+ * The namespace of the Istio service underlying this service. Corresponds
+ * to the `destination_service_namespace` metric label in Istio metrics.
+ *
+ *
+ * string service_namespace = 3;
+ *
+ * @return The serviceNamespace.
+ */
+ java.lang.String getServiceNamespace();
+ /**
+ *
+ *
+ *
+ * The namespace of the Istio service underlying this service. Corresponds
+ * to the `destination_service_namespace` metric label in Istio metrics.
+ *
+ *
+ * string service_namespace = 3;
+ *
+ * @return The bytes for serviceNamespace.
+ */
+ com.google.protobuf.ByteString getServiceNamespaceBytes();
+
+ /**
+ *
+ *
+ *
+ * The name of the Istio service underlying this service. Corresponds to the
+ * `destination_service_name` metric label in Istio metrics.
+ *
+ *
+ * string service_name = 4;
+ *
+ * @return The serviceName.
+ */
+ java.lang.String getServiceName();
+ /**
+ *
+ *
+ *
+ * The name of the Istio service underlying this service. Corresponds to the
+ * `destination_service_name` metric label in Istio metrics.
+ *
+ *
+ * string service_name = 4;
+ *
+ * @return The bytes for serviceName.
+ */
+ com.google.protobuf.ByteString getServiceNameBytes();
}
/**
*
*
*
- * Configuration for how to query telemetry on a Service.
+ * Istio service scoped to an Istio mesh
*
*
- * Protobuf type {@code google.monitoring.v3.Service.Telemetry}
+ * Protobuf type {@code google.monitoring.v3.Service.MeshIstio}
*/
- public static final class Telemetry extends com.google.protobuf.GeneratedMessageV3
+ public static final class MeshIstio extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.Telemetry)
- TelemetryOrBuilder {
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.MeshIstio)
+ MeshIstioOrBuilder {
private static final long serialVersionUID = 0L;
- // Use Telemetry.newBuilder() to construct.
- private Telemetry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use MeshIstio.newBuilder() to construct.
+ private MeshIstio(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private Telemetry() {
- resourceName_ = "";
+ private MeshIstio() {
+ meshUid_ = "";
+ serviceNamespace_ = "";
+ serviceName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
- return new Telemetry();
+ return new MeshIstio();
}
@java.lang.Override
@@ -3358,7 +3434,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
- private Telemetry(
+ private MeshIstio(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -3380,7 +3456,21 @@ private Telemetry(
{
java.lang.String s = input.readStringRequireUtf8();
- resourceName_ = s;
+ meshUid_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ serviceNamespace_ = s;
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ serviceName_ = s;
break;
}
default:
@@ -3404,41 +3494,41 @@ private Telemetry(
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.monitoring.v3.ServiceMonitoringProto
- .internal_static_google_monitoring_v3_Service_Telemetry_descriptor;
+ .internal_static_google_monitoring_v3_Service_MeshIstio_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.monitoring.v3.ServiceMonitoringProto
- .internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable
+ .internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.monitoring.v3.Service.Telemetry.class,
- com.google.monitoring.v3.Service.Telemetry.Builder.class);
+ com.google.monitoring.v3.Service.MeshIstio.class,
+ com.google.monitoring.v3.Service.MeshIstio.Builder.class);
}
- public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object resourceName_;
+ public static final int MESH_UID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object meshUid_;
/**
*
*
*
- * The full name of the resource that defines this service. Formatted as
- * described in https://cloud.google.com/apis/design/resource_names.
+ * Identifier for the mesh in which this Istio service is defined.
+ * Corresponds to the `mesh_uid` metric label in Istio metrics.
*
*
- * string resource_name = 1;
+ * string mesh_uid = 1;
*
- * @return The resourceName.
+ * @return The meshUid.
*/
- public java.lang.String getResourceName() {
- java.lang.Object ref = resourceName_;
+ public java.lang.String getMeshUid() {
+ java.lang.Object ref = meshUid_;
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();
- resourceName_ = s;
+ meshUid_ = s;
return s;
}
}
@@ -3446,20 +3536,118 @@ public java.lang.String getResourceName() {
*
*
*
- * The full name of the resource that defines this service. Formatted as
- * described in https://cloud.google.com/apis/design/resource_names.
+ * Identifier for the mesh in which this Istio service is defined.
+ * Corresponds to the `mesh_uid` metric label in Istio metrics.
*
*
- * string resource_name = 1;
+ * string mesh_uid = 1;
*
- * @return The bytes for resourceName.
+ * @return The bytes for meshUid.
*/
- public com.google.protobuf.ByteString getResourceNameBytes() {
- java.lang.Object ref = resourceName_;
+ public com.google.protobuf.ByteString getMeshUidBytes() {
+ java.lang.Object ref = meshUid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- resourceName_ = b;
+ meshUid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SERVICE_NAMESPACE_FIELD_NUMBER = 3;
+ private volatile java.lang.Object serviceNamespace_;
+ /**
+ *
+ *
+ *
+ * The namespace of the Istio service underlying this service. Corresponds
+ * to the `destination_service_namespace` metric label in Istio metrics.
+ *
+ *
+ * string service_namespace = 3;
+ *
+ * @return The serviceNamespace.
+ */
+ public java.lang.String getServiceNamespace() {
+ java.lang.Object ref = serviceNamespace_;
+ 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();
+ serviceNamespace_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The namespace of the Istio service underlying this service. Corresponds
+ * to the `destination_service_namespace` metric label in Istio metrics.
+ *
+ *
+ * string service_namespace = 3;
+ *
+ * @return The bytes for serviceNamespace.
+ */
+ public com.google.protobuf.ByteString getServiceNamespaceBytes() {
+ java.lang.Object ref = serviceNamespace_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ serviceNamespace_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SERVICE_NAME_FIELD_NUMBER = 4;
+ private volatile java.lang.Object serviceName_;
+ /**
+ *
+ *
+ *
+ * The name of the Istio service underlying this service. Corresponds to the
+ * `destination_service_name` metric label in Istio metrics.
+ *
+ *
+ * string service_name = 4;
+ *
+ * @return The serviceName.
+ */
+ public java.lang.String getServiceName() {
+ java.lang.Object ref = serviceName_;
+ 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();
+ serviceName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The name of the Istio service underlying this service. Corresponds to the
+ * `destination_service_name` metric label in Istio metrics.
+ *
+ *
+ * string service_name = 4;
+ *
+ * @return The bytes for serviceName.
+ */
+ public com.google.protobuf.ByteString getServiceNameBytes() {
+ java.lang.Object ref = serviceName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -3480,8 +3668,14 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getResourceNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
+ if (!getMeshUidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, meshUid_);
+ }
+ if (!getServiceNamespaceBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceNamespace_);
+ }
+ if (!getServiceNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, serviceName_);
}
unknownFields.writeTo(output);
}
@@ -3492,8 +3686,14 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getResourceNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_);
+ if (!getMeshUidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, meshUid_);
+ }
+ if (!getServiceNamespaceBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceNamespace_);
+ }
+ if (!getServiceNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, serviceName_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -3505,13 +3705,15 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.monitoring.v3.Service.Telemetry)) {
+ if (!(obj instanceof com.google.monitoring.v3.Service.MeshIstio)) {
return super.equals(obj);
}
- com.google.monitoring.v3.Service.Telemetry other =
- (com.google.monitoring.v3.Service.Telemetry) obj;
+ com.google.monitoring.v3.Service.MeshIstio other =
+ (com.google.monitoring.v3.Service.MeshIstio) obj;
- if (!getResourceName().equals(other.getResourceName())) return false;
+ if (!getMeshUid().equals(other.getMeshUid())) return false;
+ if (!getServiceNamespace().equals(other.getServiceNamespace())) return false;
+ if (!getServiceName().equals(other.getServiceName())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -3523,49 +3725,946 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
- hash = (53 * hash) + getResourceName().hashCode();
+ hash = (37 * hash) + MESH_UID_FIELD_NUMBER;
+ hash = (53 * hash) + getMeshUid().hashCode();
+ hash = (37 * hash) + SERVICE_NAMESPACE_FIELD_NUMBER;
+ hash = (53 * hash) + getServiceNamespace().hashCode();
+ hash = (37 * hash) + SERVICE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getServiceName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
- public static com.google.monitoring.v3.Service.Telemetry parseFrom(java.nio.ByteBuffer data)
+ public static com.google.monitoring.v3.Service.MeshIstio parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.monitoring.v3.Service.Telemetry parseFrom(
+ public static com.google.monitoring.v3.Service.MeshIstio 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.Service.Telemetry parseFrom(
+ public static com.google.monitoring.v3.Service.MeshIstio parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.monitoring.v3.Service.Telemetry parseFrom(
+ public static com.google.monitoring.v3.Service.MeshIstio 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.Service.Telemetry parseFrom(byte[] data)
+ public static com.google.monitoring.v3.Service.MeshIstio parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.monitoring.v3.Service.Telemetry parseFrom(
+ public static com.google.monitoring.v3.Service.MeshIstio parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.monitoring.v3.Service.Telemetry parseFrom(java.io.InputStream input)
+ public static com.google.monitoring.v3.Service.MeshIstio parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.Service.MeshIstio 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.Service.MeshIstio parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.Service.MeshIstio 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.Service.MeshIstio parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.Service.MeshIstio 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.Service.MeshIstio 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;
+ }
+ /**
+ *
+ *
+ *
+ * Istio service scoped to an Istio mesh
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.Service.MeshIstio}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Identifier for the mesh in which this Istio service is defined.
+ * Corresponds to the `mesh_uid` metric label in Istio metrics.
+ *
+ *
+ * string mesh_uid = 1;
+ *
+ * @return The meshUid.
+ */
+ public java.lang.String getMeshUid() {
+ java.lang.Object ref = meshUid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ meshUid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Identifier for the mesh in which this Istio service is defined.
+ * Corresponds to the `mesh_uid` metric label in Istio metrics.
+ *
+ *
+ * string mesh_uid = 1;
+ *
+ * @return The bytes for meshUid.
+ */
+ public com.google.protobuf.ByteString getMeshUidBytes() {
+ java.lang.Object ref = meshUid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ meshUid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Identifier for the mesh in which this Istio service is defined.
+ * Corresponds to the `mesh_uid` metric label in Istio metrics.
+ *
+ *
+ * string mesh_uid = 1;
+ *
+ * @param value The meshUid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMeshUid(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ meshUid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Identifier for the mesh in which this Istio service is defined.
+ * Corresponds to the `mesh_uid` metric label in Istio metrics.
+ *
+ *
+ * string mesh_uid = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMeshUid() {
+
+ meshUid_ = getDefaultInstance().getMeshUid();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Identifier for the mesh in which this Istio service is defined.
+ * Corresponds to the `mesh_uid` metric label in Istio metrics.
+ *
+ *
+ * string mesh_uid = 1;
+ *
+ * @param value The bytes for meshUid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMeshUidBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ meshUid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object serviceNamespace_ = "";
+ /**
+ *
+ *
+ *
+ * The namespace of the Istio service underlying this service. Corresponds
+ * to the `destination_service_namespace` metric label in Istio metrics.
+ *
+ *
+ * string service_namespace = 3;
+ *
+ * @return The serviceNamespace.
+ */
+ public java.lang.String getServiceNamespace() {
+ java.lang.Object ref = serviceNamespace_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceNamespace_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The namespace of the Istio service underlying this service. Corresponds
+ * to the `destination_service_namespace` metric label in Istio metrics.
+ *
+ *
+ * string service_namespace = 3;
+ *
+ * @return The bytes for serviceNamespace.
+ */
+ public com.google.protobuf.ByteString getServiceNamespaceBytes() {
+ java.lang.Object ref = serviceNamespace_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ serviceNamespace_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The namespace of the Istio service underlying this service. Corresponds
+ * to the `destination_service_namespace` metric label in Istio metrics.
+ *
+ *
+ * string service_namespace = 3;
+ *
+ * @param value The serviceNamespace to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceNamespace(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ serviceNamespace_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The namespace of the Istio service underlying this service. Corresponds
+ * to the `destination_service_namespace` metric label in Istio metrics.
+ *
+ *
+ * string service_namespace = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearServiceNamespace() {
+
+ serviceNamespace_ = getDefaultInstance().getServiceNamespace();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The namespace of the Istio service underlying this service. Corresponds
+ * to the `destination_service_namespace` metric label in Istio metrics.
+ *
+ *
+ * string service_namespace = 3;
+ *
+ * @param value The bytes for serviceNamespace to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceNamespaceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ serviceNamespace_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object serviceName_ = "";
+ /**
+ *
+ *
+ *
+ * The name of the Istio service underlying this service. Corresponds to the
+ * `destination_service_name` metric label in Istio metrics.
+ *
+ *
+ * string service_name = 4;
+ *
+ * @return The serviceName.
+ */
+ public java.lang.String getServiceName() {
+ java.lang.Object ref = serviceName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The name of the Istio service underlying this service. Corresponds to the
+ * `destination_service_name` metric label in Istio metrics.
+ *
+ *
+ * string service_name = 4;
+ *
+ * @return The bytes for serviceName.
+ */
+ public com.google.protobuf.ByteString getServiceNameBytes() {
+ java.lang.Object ref = serviceName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ serviceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The name of the Istio service underlying this service. Corresponds to the
+ * `destination_service_name` metric label in Istio metrics.
+ *
+ *
+ * string service_name = 4;
+ *
+ * @param value The serviceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ serviceName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The name of the Istio service underlying this service. Corresponds to the
+ * `destination_service_name` metric label in Istio metrics.
+ *
+ *
+ * string service_name = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearServiceName() {
+
+ serviceName_ = getDefaultInstance().getServiceName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The name of the Istio service underlying this service. Corresponds to the
+ * `destination_service_name` metric label in Istio metrics.
+ *
+ *
+ * string service_name = 4;
+ *
+ * @param value The bytes for serviceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ serviceName_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Service.MeshIstio)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.MeshIstio)
+ private static final com.google.monitoring.v3.Service.MeshIstio DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.monitoring.v3.Service.MeshIstio();
+ }
+
+ public static com.google.monitoring.v3.Service.MeshIstio getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * The full name of the resource that defines this service. Formatted as
+ * described in https://cloud.google.com/apis/design/resource_names.
+ *
+ *
+ * string resource_name = 1;
+ *
+ * @return The resourceName.
+ */
+ java.lang.String getResourceName();
+ /**
+ *
+ *
+ *
+ * The full name of the resource that defines this service. Formatted as
+ * described in https://cloud.google.com/apis/design/resource_names.
+ *
+ *
+ * string resource_name = 1;
+ *
+ * @return The bytes for resourceName.
+ */
+ com.google.protobuf.ByteString getResourceNameBytes();
+ }
+ /**
+ *
+ *
+ *
+ * Configuration for how to query telemetry on a Service.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.Service.Telemetry}
+ */
+ public static final class Telemetry extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.Telemetry)
+ TelemetryOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Telemetry.newBuilder() to construct.
+ private Telemetry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private Telemetry() {
+ resourceName_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Telemetry();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Telemetry(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ resourceName_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.monitoring.v3.ServiceMonitoringProto
+ .internal_static_google_monitoring_v3_Service_Telemetry_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.monitoring.v3.ServiceMonitoringProto
+ .internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.monitoring.v3.Service.Telemetry.class,
+ com.google.monitoring.v3.Service.Telemetry.Builder.class);
+ }
+
+ public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object resourceName_;
+ /**
+ *
+ *
+ *
+ * The full name of the resource that defines this service. Formatted as
+ * described in https://cloud.google.com/apis/design/resource_names.
+ *
+ *
+ * string resource_name = 1;
+ *
+ * @return The resourceName.
+ */
+ public java.lang.String getResourceName() {
+ java.lang.Object ref = resourceName_;
+ 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();
+ resourceName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full name of the resource that defines this service. Formatted as
+ * described in https://cloud.google.com/apis/design/resource_names.
+ *
+ *
+ * string resource_name = 1;
+ *
+ * @return The bytes for resourceName.
+ */
+ public com.google.protobuf.ByteString getResourceNameBytes() {
+ java.lang.Object ref = resourceName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ resourceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getResourceNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getResourceNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_);
+ }
+ 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.Service.Telemetry)) {
+ return super.equals(obj);
+ }
+ com.google.monitoring.v3.Service.Telemetry other =
+ (com.google.monitoring.v3.Service.Telemetry) obj;
+
+ if (!getResourceName().equals(other.getResourceName())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getResourceName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.monitoring.v3.Service.Telemetry parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.Service.Telemetry 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.Service.Telemetry parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.Service.Telemetry 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.Service.Telemetry parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.Service.Telemetry parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.v3.Service.Telemetry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
@@ -3959,7 +5058,9 @@ public enum IdentifierCase
CUSTOM(6),
APP_ENGINE(7),
CLOUD_ENDPOINTS(8),
+ @java.lang.Deprecated
CLUSTER_ISTIO(9),
+ MESH_ISTIO(10),
IDENTIFIER_NOT_SET(0);
private final int value;
@@ -3986,6 +5087,8 @@ public static IdentifierCase forNumber(int value) {
return CLOUD_ENDPOINTS;
case 9:
return CLUSTER_ISTIO;
+ case 10:
+ return MESH_ISTIO;
case 0:
return IDENTIFIER_NOT_SET;
default:
@@ -4008,8 +5111,8 @@ public IdentifierCase getIdentifierCase() {
*
*
*
- * Resource name for this Service. Of the form
- * `projects/{project_id}/services/{service_id}`.
+ * Resource name for this Service. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
* string name = 1;
@@ -4031,8 +5134,8 @@ public java.lang.String getName() {
*
*
*
- * Resource name for this Service. Of the form
- * `projects/{project_id}/services/{service_id}`.
+ * Resource name for this Service. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
* string name = 1;
@@ -4250,10 +5353,11 @@ public com.google.monitoring.v3.Service.CloudEndpointsOrBuilder getCloudEndpoint
* Type used for Istio services that live in a Kubernetes cluster.
*
*
- * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
+ * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9 [deprecated = true];
*
* @return Whether the clusterIstio field is set.
*/
+ @java.lang.Deprecated
public boolean hasClusterIstio() {
return identifierCase_ == 9;
}
@@ -4264,10 +5368,11 @@ public boolean hasClusterIstio() {
* Type used for Istio services that live in a Kubernetes cluster.
*
*
- * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
+ * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9 [deprecated = true];
*
* @return The clusterIstio.
*/
+ @java.lang.Deprecated
public com.google.monitoring.v3.Service.ClusterIstio getClusterIstio() {
if (identifierCase_ == 9) {
return (com.google.monitoring.v3.Service.ClusterIstio) identifier_;
@@ -4281,8 +5386,9 @@ public com.google.monitoring.v3.Service.ClusterIstio getClusterIstio() {
* Type used for Istio services that live in a Kubernetes cluster.
*
*
- * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
+ * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9 [deprecated = true];
*/
+ @java.lang.Deprecated
public com.google.monitoring.v3.Service.ClusterIstioOrBuilder getClusterIstioOrBuilder() {
if (identifierCase_ == 9) {
return (com.google.monitoring.v3.Service.ClusterIstio) identifier_;
@@ -4290,6 +5396,54 @@ public com.google.monitoring.v3.Service.ClusterIstioOrBuilder getClusterIstioOrB
return com.google.monitoring.v3.Service.ClusterIstio.getDefaultInstance();
}
+ public static final int MESH_ISTIO_FIELD_NUMBER = 10;
+ /**
+ *
+ *
+ *
+ * Type used for Istio services scoped to an Istio mesh.
+ *
+ *
+ * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
+ *
+ * @return Whether the meshIstio field is set.
+ */
+ public boolean hasMeshIstio() {
+ return identifierCase_ == 10;
+ }
+ /**
+ *
+ *
+ *
+ * Type used for Istio services scoped to an Istio mesh.
+ *
+ *
+ * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
+ *
+ * @return The meshIstio.
+ */
+ public com.google.monitoring.v3.Service.MeshIstio getMeshIstio() {
+ if (identifierCase_ == 10) {
+ return (com.google.monitoring.v3.Service.MeshIstio) identifier_;
+ }
+ return com.google.monitoring.v3.Service.MeshIstio.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Type used for Istio services scoped to an Istio mesh.
+ *
+ *
+ * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
+ */
+ public com.google.monitoring.v3.Service.MeshIstioOrBuilder getMeshIstioOrBuilder() {
+ if (identifierCase_ == 10) {
+ return (com.google.monitoring.v3.Service.MeshIstio) identifier_;
+ }
+ return com.google.monitoring.v3.Service.MeshIstio.getDefaultInstance();
+ }
+
public static final int TELEMETRY_FIELD_NUMBER = 13;
private com.google.monitoring.v3.Service.Telemetry telemetry_;
/**
@@ -4367,6 +5521,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (identifierCase_ == 9) {
output.writeMessage(9, (com.google.monitoring.v3.Service.ClusterIstio) identifier_);
}
+ if (identifierCase_ == 10) {
+ output.writeMessage(10, (com.google.monitoring.v3.Service.MeshIstio) identifier_);
+ }
if (telemetry_ != null) {
output.writeMessage(13, getTelemetry());
}
@@ -4405,6 +5562,11 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
9, (com.google.monitoring.v3.Service.ClusterIstio) identifier_);
}
+ if (identifierCase_ == 10) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 10, (com.google.monitoring.v3.Service.MeshIstio) identifier_);
+ }
if (telemetry_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getTelemetry());
}
@@ -4443,6 +5605,9 @@ public boolean equals(final java.lang.Object obj) {
case 9:
if (!getClusterIstio().equals(other.getClusterIstio())) return false;
break;
+ case 10:
+ if (!getMeshIstio().equals(other.getMeshIstio())) return false;
+ break;
case 0:
default:
}
@@ -4482,6 +5647,10 @@ public int hashCode() {
hash = (37 * hash) + CLUSTER_ISTIO_FIELD_NUMBER;
hash = (53 * hash) + getClusterIstio().hashCode();
break;
+ case 10:
+ hash = (37 * hash) + MESH_ISTIO_FIELD_NUMBER;
+ hash = (53 * hash) + getMeshIstio().hashCode();
+ break;
case 0:
default:
}
@@ -4591,7 +5760,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* A `Service` is a discrete, autonomous, and network-accessible unit, designed
* to solve an individual concern
* ([Wikipedia](https://en.wikipedia.org/wiki/Service-orientation)). In
- * Stackdriver Monitoring, a `Service` acts as the root resource under which
+ * Cloud Monitoring, a `Service` acts as the root resource under which
* operational aspects of the service are accessible.
*
*
@@ -4701,6 +5870,13 @@ public com.google.monitoring.v3.Service buildPartial() {
result.identifier_ = clusterIstioBuilder_.build();
}
}
+ if (identifierCase_ == 10) {
+ if (meshIstioBuilder_ == null) {
+ result.identifier_ = identifier_;
+ } else {
+ result.identifier_ = meshIstioBuilder_.build();
+ }
+ }
if (telemetryBuilder_ == null) {
result.telemetry_ = telemetry_;
} else {
@@ -4788,6 +5964,11 @@ public Builder mergeFrom(com.google.monitoring.v3.Service other) {
mergeClusterIstio(other.getClusterIstio());
break;
}
+ case MESH_ISTIO:
+ {
+ mergeMeshIstio(other.getMeshIstio());
+ break;
+ }
case IDENTIFIER_NOT_SET:
{
break;
@@ -4841,8 +6022,8 @@ public Builder clearIdentifier() {
*
*
*
- * Resource name for this Service. Of the form
- * `projects/{project_id}/services/{service_id}`.
+ * Resource name for this Service. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
* string name = 1;
@@ -4864,8 +6045,8 @@ public java.lang.String getName() {
*
*
*
- * Resource name for this Service. Of the form
- * `projects/{project_id}/services/{service_id}`.
+ * Resource name for this Service. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
* string name = 1;
@@ -4887,8 +6068,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Resource name for this Service. Of the form
- * `projects/{project_id}/services/{service_id}`.
+ * Resource name for this Service. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
* string name = 1;
@@ -4909,8 +6090,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Resource name for this Service. Of the form
- * `projects/{project_id}/services/{service_id}`.
+ * Resource name for this Service. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
* string name = 1;
@@ -4927,8 +6108,8 @@ public Builder clearName() {
*
*
*
- * Resource name for this Service. Of the form
- * `projects/{project_id}/services/{service_id}`.
+ * Resource name for this Service. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
* string name = 1;
@@ -5683,10 +6864,12 @@ public com.google.monitoring.v3.Service.CloudEndpointsOrBuilder getCloudEndpoint
* Type used for Istio services that live in a Kubernetes cluster.
*
*
- * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
+ * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9 [deprecated = true];
+ *
*
* @return Whether the clusterIstio field is set.
*/
+ @java.lang.Deprecated
public boolean hasClusterIstio() {
return identifierCase_ == 9;
}
@@ -5697,10 +6880,12 @@ public boolean hasClusterIstio() {
* Type used for Istio services that live in a Kubernetes cluster.
*
*
- * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
+ * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9 [deprecated = true];
+ *
*
* @return The clusterIstio.
*/
+ @java.lang.Deprecated
public com.google.monitoring.v3.Service.ClusterIstio getClusterIstio() {
if (clusterIstioBuilder_ == null) {
if (identifierCase_ == 9) {
@@ -5721,8 +6906,10 @@ public com.google.monitoring.v3.Service.ClusterIstio getClusterIstio() {
* Type used for Istio services that live in a Kubernetes cluster.
*
*
- * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
+ * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9 [deprecated = true];
+ *
*/
+ @java.lang.Deprecated
public Builder setClusterIstio(com.google.monitoring.v3.Service.ClusterIstio value) {
if (clusterIstioBuilder_ == null) {
if (value == null) {
@@ -5743,8 +6930,10 @@ public Builder setClusterIstio(com.google.monitoring.v3.Service.ClusterIstio val
* Type used for Istio services that live in a Kubernetes cluster.
*
*
- * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
+ * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9 [deprecated = true];
+ *
*/
+ @java.lang.Deprecated
public Builder setClusterIstio(
com.google.monitoring.v3.Service.ClusterIstio.Builder builderForValue) {
if (clusterIstioBuilder_ == null) {
@@ -5763,8 +6952,10 @@ public Builder setClusterIstio(
* Type used for Istio services that live in a Kubernetes cluster.
*
*
- * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
+ * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9 [deprecated = true];
+ *
*/
+ @java.lang.Deprecated
public Builder mergeClusterIstio(com.google.monitoring.v3.Service.ClusterIstio value) {
if (clusterIstioBuilder_ == null) {
if (identifierCase_ == 9
@@ -5794,8 +6985,10 @@ public Builder mergeClusterIstio(com.google.monitoring.v3.Service.ClusterIstio v
* Type used for Istio services that live in a Kubernetes cluster.
*
*
- * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
+ * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9 [deprecated = true];
+ *
*/
+ @java.lang.Deprecated
public Builder clearClusterIstio() {
if (clusterIstioBuilder_ == null) {
if (identifierCase_ == 9) {
@@ -5819,8 +7012,10 @@ public Builder clearClusterIstio() {
* Type used for Istio services that live in a Kubernetes cluster.
*
*
- * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
+ * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9 [deprecated = true];
+ *
*/
+ @java.lang.Deprecated
public com.google.monitoring.v3.Service.ClusterIstio.Builder getClusterIstioBuilder() {
return getClusterIstioFieldBuilder().getBuilder();
}
@@ -5831,8 +7026,10 @@ public com.google.monitoring.v3.Service.ClusterIstio.Builder getClusterIstioBuil
* Type used for Istio services that live in a Kubernetes cluster.
*
*
- * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
+ * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9 [deprecated = true];
+ *
*/
+ @java.lang.Deprecated
public com.google.monitoring.v3.Service.ClusterIstioOrBuilder getClusterIstioOrBuilder() {
if ((identifierCase_ == 9) && (clusterIstioBuilder_ != null)) {
return clusterIstioBuilder_.getMessageOrBuilder();
@@ -5850,7 +7047,8 @@ public com.google.monitoring.v3.Service.ClusterIstioOrBuilder getClusterIstioOrB
* Type used for Istio services that live in a Kubernetes cluster.
*
*
- * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
+ * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9 [deprecated = true];
+ *
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.monitoring.v3.Service.ClusterIstio,
@@ -5877,6 +7075,212 @@ public com.google.monitoring.v3.Service.ClusterIstioOrBuilder getClusterIstioOrB
return clusterIstioBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.Service.MeshIstio,
+ com.google.monitoring.v3.Service.MeshIstio.Builder,
+ com.google.monitoring.v3.Service.MeshIstioOrBuilder>
+ meshIstioBuilder_;
+ /**
+ *
+ *
+ *
+ * Type used for Istio services scoped to an Istio mesh.
+ *
+ *
+ * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
+ *
+ * @return Whether the meshIstio field is set.
+ */
+ public boolean hasMeshIstio() {
+ return identifierCase_ == 10;
+ }
+ /**
+ *
+ *
+ *
+ * Type used for Istio services scoped to an Istio mesh.
+ *
+ *
+ * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
+ *
+ * @return The meshIstio.
+ */
+ public com.google.monitoring.v3.Service.MeshIstio getMeshIstio() {
+ if (meshIstioBuilder_ == null) {
+ if (identifierCase_ == 10) {
+ return (com.google.monitoring.v3.Service.MeshIstio) identifier_;
+ }
+ return com.google.monitoring.v3.Service.MeshIstio.getDefaultInstance();
+ } else {
+ if (identifierCase_ == 10) {
+ return meshIstioBuilder_.getMessage();
+ }
+ return com.google.monitoring.v3.Service.MeshIstio.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Type used for Istio services scoped to an Istio mesh.
+ *
+ *
+ * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
+ */
+ public Builder setMeshIstio(com.google.monitoring.v3.Service.MeshIstio value) {
+ if (meshIstioBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ identifier_ = value;
+ onChanged();
+ } else {
+ meshIstioBuilder_.setMessage(value);
+ }
+ identifierCase_ = 10;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Type used for Istio services scoped to an Istio mesh.
+ *
+ *
+ * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
+ */
+ public Builder setMeshIstio(
+ com.google.monitoring.v3.Service.MeshIstio.Builder builderForValue) {
+ if (meshIstioBuilder_ == null) {
+ identifier_ = builderForValue.build();
+ onChanged();
+ } else {
+ meshIstioBuilder_.setMessage(builderForValue.build());
+ }
+ identifierCase_ = 10;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Type used for Istio services scoped to an Istio mesh.
+ *
+ *
+ * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
+ */
+ public Builder mergeMeshIstio(com.google.monitoring.v3.Service.MeshIstio value) {
+ if (meshIstioBuilder_ == null) {
+ if (identifierCase_ == 10
+ && identifier_ != com.google.monitoring.v3.Service.MeshIstio.getDefaultInstance()) {
+ identifier_ =
+ com.google.monitoring.v3.Service.MeshIstio.newBuilder(
+ (com.google.monitoring.v3.Service.MeshIstio) identifier_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ identifier_ = value;
+ }
+ onChanged();
+ } else {
+ if (identifierCase_ == 10) {
+ meshIstioBuilder_.mergeFrom(value);
+ }
+ meshIstioBuilder_.setMessage(value);
+ }
+ identifierCase_ = 10;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Type used for Istio services scoped to an Istio mesh.
+ *
+ *
+ * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
+ */
+ public Builder clearMeshIstio() {
+ if (meshIstioBuilder_ == null) {
+ if (identifierCase_ == 10) {
+ identifierCase_ = 0;
+ identifier_ = null;
+ onChanged();
+ }
+ } else {
+ if (identifierCase_ == 10) {
+ identifierCase_ = 0;
+ identifier_ = null;
+ }
+ meshIstioBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Type used for Istio services scoped to an Istio mesh.
+ *
+ *
+ * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
+ */
+ public com.google.monitoring.v3.Service.MeshIstio.Builder getMeshIstioBuilder() {
+ return getMeshIstioFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Type used for Istio services scoped to an Istio mesh.
+ *
+ *
+ * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
+ */
+ public com.google.monitoring.v3.Service.MeshIstioOrBuilder getMeshIstioOrBuilder() {
+ if ((identifierCase_ == 10) && (meshIstioBuilder_ != null)) {
+ return meshIstioBuilder_.getMessageOrBuilder();
+ } else {
+ if (identifierCase_ == 10) {
+ return (com.google.monitoring.v3.Service.MeshIstio) identifier_;
+ }
+ return com.google.monitoring.v3.Service.MeshIstio.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Type used for Istio services scoped to an Istio mesh.
+ *
+ *
+ * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.Service.MeshIstio,
+ com.google.monitoring.v3.Service.MeshIstio.Builder,
+ com.google.monitoring.v3.Service.MeshIstioOrBuilder>
+ getMeshIstioFieldBuilder() {
+ if (meshIstioBuilder_ == null) {
+ if (!(identifierCase_ == 10)) {
+ identifier_ = com.google.monitoring.v3.Service.MeshIstio.getDefaultInstance();
+ }
+ meshIstioBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.Service.MeshIstio,
+ com.google.monitoring.v3.Service.MeshIstio.Builder,
+ com.google.monitoring.v3.Service.MeshIstioOrBuilder>(
+ (com.google.monitoring.v3.Service.MeshIstio) identifier_,
+ getParentForChildren(),
+ isClean());
+ identifier_ = null;
+ }
+ identifierCase_ = 10;
+ onChanged();
+ ;
+ return meshIstioBuilder_;
+ }
+
private com.google.monitoring.v3.Service.Telemetry telemetry_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.monitoring.v3.Service.Telemetry,
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java
index 89867002..3dafc7bd 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java
@@ -384,9 +384,8 @@ public PeriodCase getPeriodCase() {
*
*
*
- * Resource name for this `ServiceLevelObjective`.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Resource name for this `ServiceLevelObjective`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
* string name = 1;
@@ -408,9 +407,8 @@ public java.lang.String getName() {
*
*
*
- * Resource name for this `ServiceLevelObjective`.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Resource name for this `ServiceLevelObjective`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
* string name = 1;
@@ -1110,9 +1108,8 @@ public Builder clearPeriod() {
*
*
*
- * Resource name for this `ServiceLevelObjective`.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Resource name for this `ServiceLevelObjective`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
* string name = 1;
@@ -1134,9 +1131,8 @@ public java.lang.String getName() {
*
*
*
- * Resource name for this `ServiceLevelObjective`.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Resource name for this `ServiceLevelObjective`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
* string name = 1;
@@ -1158,9 +1154,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Resource name for this `ServiceLevelObjective`.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Resource name for this `ServiceLevelObjective`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
* string name = 1;
@@ -1181,9 +1176,8 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Resource name for this `ServiceLevelObjective`.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Resource name for this `ServiceLevelObjective`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
* string name = 1;
@@ -1200,9 +1194,8 @@ public Builder clearName() {
*
*
*
- * Resource name for this `ServiceLevelObjective`.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Resource name for this `ServiceLevelObjective`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
* string name = 1;
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java
index 3f6acc15..43137e0d 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java
@@ -27,9 +27,8 @@ public interface ServiceLevelObjectiveOrBuilder
*
*
*
- * Resource name for this `ServiceLevelObjective`.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Resource name for this `ServiceLevelObjective`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
* string name = 1;
@@ -41,9 +40,8 @@ public interface ServiceLevelObjectiveOrBuilder
*
*
*
- * Resource name for this `ServiceLevelObjective`.
- * Of the form
- * `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
+ * Resource name for this `ServiceLevelObjective`. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
*
*
* string name = 1;
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 1ba87719..84c53961 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
@@ -47,6 +47,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_monitoring_v3_Service_ClusterIstio_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_monitoring_v3_Service_MeshIstio_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_monitoring_v3_Service_Telemetry_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -113,87 +117,90 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "_resource.proto\032\031google/api/resource.pro"
+ "to\032\036google/protobuf/duration.proto\032\037goog"
+ "le/protobuf/timestamp.proto\032!google/type"
- + "/calendar_period.proto\"\200\006\n\007Service\022\014\n\004na"
+ + "/calendar_period.proto\"\227\007\n\007Service\022\014\n\004na"
+ "me\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\0226\n\006custom"
+ "\030\006 \001(\0132$.google.monitoring.v3.Service.Cu"
+ "stomH\000\022=\n\napp_engine\030\007 \001(\0132\'.google.moni"
+ "toring.v3.Service.AppEngineH\000\022G\n\017cloud_e"
+ "ndpoints\030\010 \001(\0132,.google.monitoring.v3.Se"
- + "rvice.CloudEndpointsH\000\022C\n\rcluster_istio\030"
+ + "rvice.CloudEndpointsH\000\022G\n\rcluster_istio\030"
+ "\t \001(\0132*.google.monitoring.v3.Service.Clu"
- + "sterIstioH\000\022:\n\ttelemetry\030\r \001(\0132\'.google."
- + "monitoring.v3.Service.Telemetry\032\010\n\006Custo"
- + "m\032\036\n\tAppEngine\022\021\n\tmodule_id\030\001 \001(\t\032!\n\016Clo"
- + "udEndpoints\022\017\n\007service\030\001 \001(\t\032g\n\014ClusterI"
- + "stio\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\014servi"
- + "ce_name\030\004 \001(\t\032\"\n\tTelemetry\022\025\n\rresource_n"
- + "ame\030\001 \001(\t:\247\001\352A\243\001\n!monitoring.googleapis."
- + "com/Service\022%projects/{project}/services"
- + "/{service}\022/organizations/{organization}"
- + "/services/{service}\022#folders/{folder}/se"
- + "rvices/{service}\022\001*B\014\n\nidentifier\"\221\005\n\025Se"
- + "rviceLevelObjective\022\014\n\004name\030\001 \001(\t\022\024\n\014dis"
- + "play_name\030\013 \001(\t\022L\n\027service_level_indicat"
- + "or\030\003 \001(\0132+.google.monitoring.v3.ServiceL"
- + "evelIndicator\022\014\n\004goal\030\004 \001(\001\0223\n\016rolling_p"
- + "eriod\030\005 \001(\0132\031.google.protobuf.DurationH\000"
- + "\0226\n\017calendar_period\030\006 \001(\0162\033.google.type."
- + "CalendarPeriodH\000\"4\n\004View\022\024\n\020VIEW_UNSPECI"
- + "FIED\020\000\022\010\n\004FULL\020\002\022\014\n\010EXPLICIT\020\001:\312\002\352A\306\002\n/m"
- + "onitoring.googleapis.com/ServiceLevelObj"
- + "ective\022Vprojects/{project}/services/{ser"
- + "vice}/serviceLevelObjectives/{service_le"
- + "vel_objective}\022`organizations/{organizat"
- + "ion}/services/{service}/serviceLevelObje"
- + "ctives/{service_level_objective}\022Tfolder"
- + "s/{folder}/services/{service}/serviceLev"
- + "elObjectives/{service_level_objective}\022\001"
- + "* \001B\010\n\006period\"\324\001\n\025ServiceLevelIndicator\022"
- + "3\n\tbasic_sli\030\004 \001(\0132\036.google.monitoring.v"
- + "3.BasicSliH\000\022>\n\rrequest_based\030\001 \001(\0132%.go"
- + "ogle.monitoring.v3.RequestBasedSliH\000\022>\n\r"
- + "windows_based\030\002 \001(\0132%.google.monitoring."
- + "v3.WindowsBasedSliH\000B\006\n\004type\"\266\002\n\010BasicSl"
- + "i\022\016\n\006method\030\007 \003(\t\022\020\n\010location\030\010 \003(\t\022\017\n\007v"
- + "ersion\030\t \003(\t\022K\n\014availability\030\002 \001(\01323.goo"
- + "gle.monitoring.v3.BasicSli.AvailabilityC"
- + "riteriaH\000\022A\n\007latency\030\003 \001(\0132..google.moni"
- + "toring.v3.BasicSli.LatencyCriteriaH\000\032\026\n\024"
- + "AvailabilityCriteria\032?\n\017LatencyCriteria\022"
- + ",\n\tthreshold\030\003 \001(\0132\031.google.protobuf.Dur"
- + "ationB\016\n\014sli_criteria\"!\n\005Range\022\013\n\003min\030\001 "
- + "\001(\001\022\013\n\003max\030\002 \001(\001\"\241\001\n\017RequestBasedSli\022A\n\020"
- + "good_total_ratio\030\001 \001(\0132%.google.monitori"
- + "ng.v3.TimeSeriesRatioH\000\022A\n\020distribution_"
- + "cut\030\003 \001(\0132%.google.monitoring.v3.Distrib"
- + "utionCutH\000B\010\n\006method\"h\n\017TimeSeriesRatio\022"
- + "\033\n\023good_service_filter\030\004 \001(\t\022\032\n\022bad_serv"
- + "ice_filter\030\005 \001(\t\022\034\n\024total_service_filter"
- + "\030\006 \001(\t\"Z\n\017DistributionCut\022\033\n\023distributio"
- + "n_filter\030\004 \001(\t\022*\n\005range\030\005 \001(\0132\033.google.m"
- + "onitoring.v3.Range\"\203\005\n\017WindowsBasedSli\022 "
- + "\n\026good_bad_metric_filter\030\005 \001(\tH\000\022`\n\032good"
- + "_total_ratio_threshold\030\002 \001(\0132:.google.mo"
- + "nitoring.v3.WindowsBasedSli.PerformanceT"
- + "hresholdH\000\022Q\n\024metric_mean_in_range\030\006 \001(\013"
- + "21.google.monitoring.v3.WindowsBasedSli."
- + "MetricRangeH\000\022P\n\023metric_sum_in_range\030\007 \001"
- + "(\01321.google.monitoring.v3.WindowsBasedSl"
- + "i.MetricRangeH\000\0220\n\rwindow_period\030\004 \001(\0132\031"
- + ".google.protobuf.Duration\032\260\001\n\024Performanc"
- + "eThreshold\022<\n\013performance\030\001 \001(\0132%.google"
- + ".monitoring.v3.RequestBasedSliH\000\022?\n\025basi"
- + "c_sli_performance\030\003 \001(\0132\036.google.monitor"
- + "ing.v3.BasicSliH\000\022\021\n\tthreshold\030\002 \001(\001B\006\n\004"
- + "type\032N\n\013MetricRange\022\023\n\013time_series\030\001 \001(\t"
- + "\022*\n\005range\030\004 \001(\0132\033.google.monitoring.v3.R"
- + "angeB\022\n\020window_criterionB\256\001\n\030com.google."
- + "monitoring.v3B\026ServiceMonitoringProtoP\001Z"
- + ">google.golang.org/genproto/googleapis/m"
- + "onitoring/v3;monitoring\252\002\032Google.Cloud.M"
- + "onitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V"
- + "3b\006proto3"
+ + "sterIstioB\002\030\001H\000\022=\n\nmesh_istio\030\n \001(\0132\'.go"
+ + "ogle.monitoring.v3.Service.MeshIstioH\000\022:"
+ + "\n\ttelemetry\030\r \001(\0132\'.google.monitoring.v3"
+ + ".Service.Telemetry\032\010\n\006Custom\032\036\n\tAppEngin"
+ + "e\022\021\n\tmodule_id\030\001 \001(\t\032!\n\016CloudEndpoints\022\017"
+ + "\n\007service\030\001 \001(\t\032k\n\014ClusterIstio\022\020\n\010locat"
+ + "ion\030\001 \001(\t\022\024\n\014cluster_name\030\002 \001(\t\022\031\n\021servi"
+ + "ce_namespace\030\003 \001(\t\022\024\n\014service_name\030\004 \001(\t"
+ + ":\002\030\001\032N\n\tMeshIstio\022\020\n\010mesh_uid\030\001 \001(\t\022\031\n\021s"
+ + "ervice_namespace\030\003 \001(\t\022\024\n\014service_name\030\004"
+ + " \001(\t\032\"\n\tTelemetry\022\025\n\rresource_name\030\001 \001(\t"
+ + ":\247\001\352A\243\001\n!monitoring.googleapis.com/Servi"
+ + "ce\022%projects/{project}/services/{service"
+ + "}\022/organizations/{organization}/services"
+ + "/{service}\022#folders/{folder}/services/{s"
+ + "ervice}\022\001*B\014\n\nidentifier\"\221\005\n\025ServiceLeve"
+ + "lObjective\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.monitoring.v3.ServiceLevelIndic"
+ + "ator\022\014\n\004goal\030\004 \001(\001\0223\n\016rolling_period\030\005 \001"
+ + "(\0132\031.google.protobuf.DurationH\000\0226\n\017calen"
+ + "dar_period\030\006 \001(\0162\033.google.type.CalendarP"
+ + "eriodH\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"
+ + ".googleapis.com/ServiceLevelObjective\022Vp"
+ + "rojects/{project}/services/{service}/ser"
+ + "viceLevelObjectives/{service_level_objec"
+ + "tive}\022`organizations/{organization}/serv"
+ + "ices/{service}/serviceLevelObjectives/{s"
+ + "ervice_level_objective}\022Tfolders/{folder"
+ + "}/services/{service}/serviceLevelObjecti"
+ + "ves/{service_level_objective}\022\001* \001B\010\n\006pe"
+ + "riod\"\324\001\n\025ServiceLevelIndicator\0223\n\tbasic_"
+ + "sli\030\004 \001(\0132\036.google.monitoring.v3.BasicSl"
+ + "iH\000\022>\n\rrequest_based\030\001 \001(\0132%.google.moni"
+ + "toring.v3.RequestBasedSliH\000\022>\n\rwindows_b"
+ + "ased\030\002 \001(\0132%.google.monitoring.v3.Window"
+ + "sBasedSliH\000B\006\n\004type\"\266\002\n\010BasicSli\022\016\n\006meth"
+ + "od\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.monit"
+ + "oring.v3.BasicSli.AvailabilityCriteriaH\000"
+ + "\022A\n\007latency\030\003 \001(\0132..google.monitoring.v3"
+ + ".BasicSli.LatencyCriteriaH\000\032\026\n\024Availabil"
+ + "ityCriteria\032?\n\017LatencyCriteria\022,\n\tthresh"
+ + "old\030\003 \001(\0132\031.google.protobuf.DurationB\016\n\014"
+ + "sli_criteria\"!\n\005Range\022\013\n\003min\030\001 \001(\001\022\013\n\003ma"
+ + "x\030\002 \001(\001\"\241\001\n\017RequestBasedSli\022A\n\020good_tota"
+ + "l_ratio\030\001 \001(\0132%.google.monitoring.v3.Tim"
+ + "eSeriesRatioH\000\022A\n\020distribution_cut\030\003 \001(\013"
+ + "2%.google.monitoring.v3.DistributionCutH"
+ + "\000B\010\n\006method\"h\n\017TimeSeriesRatio\022\033\n\023good_s"
+ + "ervice_filter\030\004 \001(\t\022\032\n\022bad_service_filte"
+ + "r\030\005 \001(\t\022\034\n\024total_service_filter\030\006 \001(\t\"Z\n"
+ + "\017DistributionCut\022\033\n\023distribution_filter\030"
+ + "\004 \001(\t\022*\n\005range\030\005 \001(\0132\033.google.monitoring"
+ + ".v3.Range\"\203\005\n\017WindowsBasedSli\022 \n\026good_ba"
+ + "d_metric_filter\030\005 \001(\tH\000\022`\n\032good_total_ra"
+ + "tio_threshold\030\002 \001(\0132:.google.monitoring."
+ + "v3.WindowsBasedSli.PerformanceThresholdH"
+ + "\000\022Q\n\024metric_mean_in_range\030\006 \001(\01321.google"
+ + ".monitoring.v3.WindowsBasedSli.MetricRan"
+ + "geH\000\022P\n\023metric_sum_in_range\030\007 \001(\01321.goog"
+ + "le.monitoring.v3.WindowsBasedSli.MetricR"
+ + "angeH\000\0220\n\rwindow_period\030\004 \001(\0132\031.google.p"
+ + "rotobuf.Duration\032\260\001\n\024PerformanceThreshol"
+ + "d\022<\n\013performance\030\001 \001(\0132%.google.monitori"
+ + "ng.v3.RequestBasedSliH\000\022?\n\025basic_sli_per"
+ + "formance\030\003 \001(\0132\036.google.monitoring.v3.Ba"
+ + "sicSliH\000\022\021\n\tthreshold\030\002 \001(\001B\006\n\004type\032N\n\013M"
+ + "etricRange\022\023\n\013time_series\030\001 \001(\t\022*\n\005range"
+ + "\030\004 \001(\0132\033.google.monitoring.v3.RangeB\022\n\020w"
+ + "indow_criterionB\256\001\n\030com.google.monitorin"
+ + "g.v3B\026ServiceMonitoringProtoP\001Z>google.g"
+ + "olang.org/genproto/googleapis/monitoring"
+ + "/v3;monitoring\252\002\032Google.Cloud.Monitoring"
+ + ".V3\312\002\032Google\\Cloud\\Monitoring\\V3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -217,6 +224,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"AppEngine",
"CloudEndpoints",
"ClusterIstio",
+ "MeshIstio",
"Telemetry",
"Identifier",
});
@@ -250,8 +258,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Location", "ClusterName", "ServiceNamespace", "ServiceName",
});
- internal_static_google_monitoring_v3_Service_Telemetry_descriptor =
+ internal_static_google_monitoring_v3_Service_MeshIstio_descriptor =
internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(4);
+ internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_monitoring_v3_Service_MeshIstio_descriptor,
+ new java.lang.String[] {
+ "MeshUid", "ServiceNamespace", "ServiceName",
+ });
+ internal_static_google_monitoring_v3_Service_Telemetry_descriptor =
+ internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(5);
internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_monitoring_v3_Service_Telemetry_descriptor,
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java
index dee9929e..7f6422f4 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java
@@ -87,110 +87,109 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n*google/monitoring/v3/service_service.p"
+ "roto\022\024google.monitoring.v3\032\034google/api/a"
+ "nnotations.proto\032\027google/api/client.prot"
- + "o\032\037google/api/field_behavior.proto\032#goog"
- + "le/api/monitored_resource.proto\032\031google/"
- + "api/resource.proto\032\"google/monitoring/v3"
- + "/service.proto\032\033google/protobuf/empty.pr"
- + "oto\032 google/protobuf/field_mask.proto\"\232\001"
- + "\n\024CreateServiceRequest\0229\n\006parent\030\001 \001(\tB)"
- + "\340A\002\372A#\022!monitoring.googleapis.com/Servic"
- + "e\022\022\n\nservice_id\030\003 \001(\t\0223\n\007service\030\002 \001(\0132\035"
- + ".google.monitoring.v3.ServiceB\003\340A\002\"L\n\021Ge"
- + "tServiceRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!m"
- + "onitoring.googleapis.com/Service\"\207\001\n\023Lis"
- + "tServicesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#"
- + "\022!monitoring.googleapis.com/Service\022\016\n\006f"
- + "ilter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_t"
- + "oken\030\004 \001(\t\"`\n\024ListServicesResponse\022/\n\010se"
- + "rvices\030\001 \003(\0132\035.google.monitoring.v3.Serv"
- + "ice\022\027\n\017next_page_token\030\002 \001(\t\"|\n\024UpdateSe"
- + "rviceRequest\0223\n\007service\030\001 \001(\0132\035.google.m"
- + "onitoring.v3.ServiceB\003\340A\002\022/\n\013update_mask"
- + "\030\002 \001(\0132\032.google.protobuf.FieldMask\"O\n\024De"
- + "leteServiceRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#"
- + "\n!monitoring.googleapis.com/Service\"\326\001\n\""
- + "CreateServiceLevelObjectiveRequest\0229\n\006pa"
- + "rent\030\001 \001(\tB)\340A\002\372A#\n!monitoring.googleapi"
- + "s.com/Service\022\"\n\032service_level_objective"
- + "_id\030\003 \001(\t\022Q\n\027service_level_objective\030\002 \001"
- + "(\0132+.google.monitoring.v3.ServiceLevelOb"
- + "jectiveB\003\340A\002\"\250\001\n\037GetServiceLevelObjectiv"
- + "eRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/monitori"
- + "ng.googleapis.com/ServiceLevelObjective\022"
- + ">\n\004view\030\002 \001(\01620.google.monitoring.v3.Ser"
- + "viceLevelObjective.View\"\325\001\n!ListServiceL"
- + "evelObjectivesRequest\0229\n\006parent\030\001 \001(\tB)\340"
- + "A\002\372A#\n!monitoring.googleapis.com/Service"
- + "\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\np"
- + "age_token\030\004 \001(\t\022>\n\004view\030\005 \001(\01620.google.m"
- + "onitoring.v3.ServiceLevelObjective.View\""
- + "\214\001\n\"ListServiceLevelObjectivesResponse\022M"
- + "\n\030service_level_objectives\030\001 \003(\0132+.googl"
- + "e.monitoring.v3.ServiceLevelObjective\022\027\n"
- + "\017next_page_token\030\002 \001(\t\"\250\001\n\"UpdateService"
- + "LevelObjectiveRequest\022Q\n\027service_level_o"
- + "bjective\030\001 \001(\0132+.google.monitoring.v3.Se"
- + "rviceLevelObjectiveB\003\340A\002\022/\n\013update_mask\030"
- + "\002 \001(\0132\032.google.protobuf.FieldMask\"k\n\"Del"
- + "eteServiceLevelObjectiveRequest\022E\n\004name\030"
- + "\001 \001(\tB7\340A\002\372A1\n/monitoring.googleapis.com"
- + "/ServiceLevelObjective2\352\017\n\030ServiceMonito"
- + "ringService\022\227\001\n\rCreateService\022*.google.m"
- + "onitoring.v3.CreateServiceRequest\032\035.goog"
- + "le.monitoring.v3.Service\";\202\323\344\223\002$\"\031/v3/{p"
- + "arent=*/*}/services:\007service\332A\016parent,se"
- + "rvice\022~\n\nGetService\022\'.google.monitoring."
- + "v3.GetServiceRequest\032\035.google.monitoring"
- + ".v3.Service\"(\202\323\344\223\002\033\022\031/v3/{name=*/*/servi"
- + "ces/*}\332A\004name\022\221\001\n\014ListServices\022).google."
- + "monitoring.v3.ListServicesRequest\032*.goog"
- + "le.monitoring.v3.ListServicesResponse\"*\202"
- + "\323\344\223\002\033\022\031/v3/{parent=*/*}/services\332A\006paren"
- + "t\022\230\001\n\rUpdateService\022*.google.monitoring."
- + "v3.UpdateServiceRequest\032\035.google.monitor"
- + "ing.v3.Service\"<\202\323\344\223\002,2!/v3/{service.nam"
- + "e=*/*/services/*}:\007service\332A\007service\022}\n\r"
- + "DeleteService\022*.google.monitoring.v3.Del"
- + "eteServiceRequest\032\026.google.protobuf.Empt"
- + "y\"(\202\323\344\223\002\033*\031/v3/{name=*/*/services/*}\332A\004n"
- + "ame\022\372\001\n\033CreateServiceLevelObjective\0228.go"
- + "ogle.monitoring.v3.CreateServiceLevelObj"
- + "ectiveRequest\032+.google.monitoring.v3.Ser"
- + "viceLevelObjective\"t\202\323\344\223\002M\"2/v3/{parent="
- + "*/*/services/*}/serviceLevelObjectives:\027"
- + "service_level_objective\332A\036parent,service"
- + "_level_objective\022\301\001\n\030GetServiceLevelObje"
- + "ctive\0225.google.monitoring.v3.GetServiceL"
- + "evelObjectiveRequest\032+.google.monitoring"
- + ".v3.ServiceLevelObjective\"A\202\323\344\223\0024\0222/v3/{"
- + "name=*/*/services/*/serviceLevelObjectiv"
- + "es/*}\332A\004name\022\324\001\n\032ListServiceLevelObjecti"
- + "ves\0227.google.monitoring.v3.ListServiceLe"
- + "velObjectivesRequest\0328.google.monitoring"
- + ".v3.ListServiceLevelObjectivesResponse\"C"
- + "\202\323\344\223\0024\0222/v3/{parent=*/*/services/*}/serv"
- + "iceLevelObjectives\332A\006parent\022\214\002\n\033UpdateSe"
- + "rviceLevelObjective\0228.google.monitoring."
- + "v3.UpdateServiceLevelObjectiveRequest\032+."
- + "google.monitoring.v3.ServiceLevelObjecti"
- + "ve\"\205\001\202\323\344\223\002e2J/v3/{service_level_objectiv"
- + "e.name=*/*/services/*/serviceLevelObject"
- + "ives/*}:\027service_level_objective\332A\027servi"
- + "ce_level_objective\022\262\001\n\033DeleteServiceLeve"
- + "lObjective\0228.google.monitoring.v3.Delete"
- + "ServiceLevelObjectiveRequest\032\026.google.pr"
- + "otobuf.Empty\"A\202\323\344\223\0024*2/v3/{name=*/*/serv"
- + "ices/*/serviceLevelObjectives/*}\332A\004name\032"
- + "\251\001\312A\031monitoring.googleapis.com\322A\211\001https:"
- + "//www.googleapis.com/auth/cloud-platform"
- + ",https://www.googleapis.com/auth/monitor"
- + "ing,https://www.googleapis.com/auth/moni"
- + "toring.readB\265\001\n\030com.google.monitoring.v3"
- + "B\035ServiceMonitoringServiceProtoP\001Z>googl"
- + "e.golang.org/genproto/googleapis/monitor"
- + "ing/v3;monitoring\252\002\032Google.Cloud.Monitor"
- + "ing.V3\312\002\032Google\\Cloud\\Monitoring\\V3b\006pro"
- + "to3"
+ + "o\032\037google/api/field_behavior.proto\032\031goog"
+ + "le/api/resource.proto\032\"google/monitoring"
+ + "/v3/service.proto\032\033google/protobuf/empty"
+ + ".proto\032 google/protobuf/field_mask.proto"
+ + "\"\232\001\n\024CreateServiceRequest\0229\n\006parent\030\001 \001("
+ + "\tB)\340A\002\372A#\022!monitoring.googleapis.com/Ser"
+ + "vice\022\022\n\nservice_id\030\003 \001(\t\0223\n\007service\030\002 \001("
+ + "\0132\035.google.monitoring.v3.ServiceB\003\340A\002\"L\n"
+ + "\021GetServiceRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#"
+ + "\n!monitoring.googleapis.com/Service\"\207\001\n\023"
+ + "ListServicesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002"
+ + "\372A#\022!monitoring.googleapis.com/Service\022\016"
+ + "\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npag"
+ + "e_token\030\004 \001(\t\"`\n\024ListServicesResponse\022/\n"
+ + "\010services\030\001 \003(\0132\035.google.monitoring.v3.S"
+ + "ervice\022\027\n\017next_page_token\030\002 \001(\t\"|\n\024Updat"
+ + "eServiceRequest\0223\n\007service\030\001 \001(\0132\035.googl"
+ + "e.monitoring.v3.ServiceB\003\340A\002\022/\n\013update_m"
+ + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\"O\n"
+ + "\024DeleteServiceRequest\0227\n\004name\030\001 \001(\tB)\340A\002"
+ + "\372A#\n!monitoring.googleapis.com/Service\"\326"
+ + "\001\n\"CreateServiceLevelObjectiveRequest\0229\n"
+ + "\006parent\030\001 \001(\tB)\340A\002\372A#\n!monitoring.google"
+ + "apis.com/Service\022\"\n\032service_level_object"
+ + "ive_id\030\003 \001(\t\022Q\n\027service_level_objective\030"
+ + "\002 \001(\0132+.google.monitoring.v3.ServiceLeve"
+ + "lObjectiveB\003\340A\002\"\250\001\n\037GetServiceLevelObjec"
+ + "tiveRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/monit"
+ + "oring.googleapis.com/ServiceLevelObjecti"
+ + "ve\022>\n\004view\030\002 \001(\01620.google.monitoring.v3."
+ + "ServiceLevelObjective.View\"\325\001\n!ListServi"
+ + "ceLevelObjectivesRequest\0229\n\006parent\030\001 \001(\t"
+ + "B)\340A\002\372A#\n!monitoring.googleapis.com/Serv"
+ + "ice\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022"
+ + "\n\npage_token\030\004 \001(\t\022>\n\004view\030\005 \001(\01620.googl"
+ + "e.monitoring.v3.ServiceLevelObjective.Vi"
+ + "ew\"\214\001\n\"ListServiceLevelObjectivesRespons"
+ + "e\022M\n\030service_level_objectives\030\001 \003(\0132+.go"
+ + "ogle.monitoring.v3.ServiceLevelObjective"
+ + "\022\027\n\017next_page_token\030\002 \001(\t\"\250\001\n\"UpdateServ"
+ + "iceLevelObjectiveRequest\022Q\n\027service_leve"
+ + "l_objective\030\001 \001(\0132+.google.monitoring.v3"
+ + ".ServiceLevelObjectiveB\003\340A\002\022/\n\013update_ma"
+ + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"k\n\""
+ + "DeleteServiceLevelObjectiveRequest\022E\n\004na"
+ + "me\030\001 \001(\tB7\340A\002\372A1\n/monitoring.googleapis."
+ + "com/ServiceLevelObjective2\352\017\n\030ServiceMon"
+ + "itoringService\022\227\001\n\rCreateService\022*.googl"
+ + "e.monitoring.v3.CreateServiceRequest\032\035.g"
+ + "oogle.monitoring.v3.Service\";\202\323\344\223\002$\"\031/v3"
+ + "/{parent=*/*}/services:\007service\332A\016parent"
+ + ",service\022~\n\nGetService\022\'.google.monitori"
+ + "ng.v3.GetServiceRequest\032\035.google.monitor"
+ + "ing.v3.Service\"(\202\323\344\223\002\033\022\031/v3/{name=*/*/se"
+ + "rvices/*}\332A\004name\022\221\001\n\014ListServices\022).goog"
+ + "le.monitoring.v3.ListServicesRequest\032*.g"
+ + "oogle.monitoring.v3.ListServicesResponse"
+ + "\"*\202\323\344\223\002\033\022\031/v3/{parent=*/*}/services\332A\006pa"
+ + "rent\022\230\001\n\rUpdateService\022*.google.monitori"
+ + "ng.v3.UpdateServiceRequest\032\035.google.moni"
+ + "toring.v3.Service\"<\202\323\344\223\002,2!/v3/{service."
+ + "name=*/*/services/*}:\007service\332A\007service\022"
+ + "}\n\rDeleteService\022*.google.monitoring.v3."
+ + "DeleteServiceRequest\032\026.google.protobuf.E"
+ + "mpty\"(\202\323\344\223\002\033*\031/v3/{name=*/*/services/*}\332"
+ + "A\004name\022\372\001\n\033CreateServiceLevelObjective\0228"
+ + ".google.monitoring.v3.CreateServiceLevel"
+ + "ObjectiveRequest\032+.google.monitoring.v3."
+ + "ServiceLevelObjective\"t\202\323\344\223\002M\"2/v3/{pare"
+ + "nt=*/*/services/*}/serviceLevelObjective"
+ + "s:\027service_level_objective\332A\036parent,serv"
+ + "ice_level_objective\022\301\001\n\030GetServiceLevelO"
+ + "bjective\0225.google.monitoring.v3.GetServi"
+ + "ceLevelObjectiveRequest\032+.google.monitor"
+ + "ing.v3.ServiceLevelObjective\"A\202\323\344\223\0024\0222/v"
+ + "3/{name=*/*/services/*/serviceLevelObjec"
+ + "tives/*}\332A\004name\022\324\001\n\032ListServiceLevelObje"
+ + "ctives\0227.google.monitoring.v3.ListServic"
+ + "eLevelObjectivesRequest\0328.google.monitor"
+ + "ing.v3.ListServiceLevelObjectivesRespons"
+ + "e\"C\202\323\344\223\0024\0222/v3/{parent=*/*/services/*}/s"
+ + "erviceLevelObjectives\332A\006parent\022\214\002\n\033Updat"
+ + "eServiceLevelObjective\0228.google.monitori"
+ + "ng.v3.UpdateServiceLevelObjectiveRequest"
+ + "\032+.google.monitoring.v3.ServiceLevelObje"
+ + "ctive\"\205\001\202\323\344\223\002e2J/v3/{service_level_objec"
+ + "tive.name=*/*/services/*/serviceLevelObj"
+ + "ectives/*}:\027service_level_objective\332A\027se"
+ + "rvice_level_objective\022\262\001\n\033DeleteServiceL"
+ + "evelObjective\0228.google.monitoring.v3.Del"
+ + "eteServiceLevelObjectiveRequest\032\026.google"
+ + ".protobuf.Empty\"A\202\323\344\223\0024*2/v3/{name=*/*/s"
+ + "ervices/*/serviceLevelObjectives/*}\332A\004na"
+ + "me\032\251\001\312A\031monitoring.googleapis.com\322A\211\001htt"
+ + "ps://www.googleapis.com/auth/cloud-platf"
+ + "orm,https://www.googleapis.com/auth/moni"
+ + "toring,https://www.googleapis.com/auth/m"
+ + "onitoring.readB\265\001\n\030com.google.monitoring"
+ + ".v3B\035ServiceMonitoringServiceProtoP\001Z>go"
+ + "ogle.golang.org/genproto/googleapis/moni"
+ + "toring/v3;monitoring\252\002\032Google.Cloud.Moni"
+ + "toring.V3\312\002\032Google\\Cloud\\Monitoring\\V3b\006"
+ + "proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -199,7 +198,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.AnnotationsProto.getDescriptor(),
com.google.api.ClientProto.getDescriptor(),
com.google.api.FieldBehaviorProto.getDescriptor(),
- com.google.api.MonitoredResourceProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.monitoring.v3.ServiceMonitoringProto.getDescriptor(),
com.google.protobuf.EmptyProto.getDescriptor(),
@@ -314,7 +312,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.AnnotationsProto.getDescriptor();
com.google.api.ClientProto.getDescriptor();
com.google.api.FieldBehaviorProto.getDescriptor();
- com.google.api.MonitoredResourceProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.monitoring.v3.ServiceMonitoringProto.getDescriptor();
com.google.protobuf.EmptyProto.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 75752b74..af66f2d5 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
@@ -27,8 +27,8 @@ public interface ServiceOrBuilder
*
*
*
- * Resource name for this Service. Of the form
- * `projects/{project_id}/services/{service_id}`.
+ * Resource name for this Service. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
* string name = 1;
@@ -40,8 +40,8 @@ public interface ServiceOrBuilder
*
*
*
- * Resource name for this Service. Of the form
- * `projects/{project_id}/services/{service_id}`.
+ * Resource name for this Service. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
*
*
* string name = 1;
@@ -187,10 +187,11 @@ public interface ServiceOrBuilder
* Type used for Istio services that live in a Kubernetes cluster.
*
*
- * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
+ * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9 [deprecated = true];
*
* @return Whether the clusterIstio field is set.
*/
+ @java.lang.Deprecated
boolean hasClusterIstio();
/**
*
@@ -199,10 +200,11 @@ public interface ServiceOrBuilder
* Type used for Istio services that live in a Kubernetes cluster.
*
*
- * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
+ * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9 [deprecated = true];
*
* @return The clusterIstio.
*/
+ @java.lang.Deprecated
com.google.monitoring.v3.Service.ClusterIstio getClusterIstio();
/**
*
@@ -211,10 +213,46 @@ public interface ServiceOrBuilder
* Type used for Istio services that live in a Kubernetes cluster.
*
*
- * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
+ * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9 [deprecated = true];
*/
+ @java.lang.Deprecated
com.google.monitoring.v3.Service.ClusterIstioOrBuilder getClusterIstioOrBuilder();
+ /**
+ *
+ *
+ *
+ * Type used for Istio services scoped to an Istio mesh.
+ *
+ *
+ * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
+ *
+ * @return Whether the meshIstio field is set.
+ */
+ boolean hasMeshIstio();
+ /**
+ *
+ *
+ *
+ * Type used for Istio services scoped to an Istio mesh.
+ *
+ *
+ * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
+ *
+ * @return The meshIstio.
+ */
+ com.google.monitoring.v3.Service.MeshIstio getMeshIstio();
+ /**
+ *
+ *
+ *
+ * Type used for Istio services scoped to an Istio mesh.
+ *
+ *
+ * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
+ */
+ com.google.monitoring.v3.Service.MeshIstioOrBuilder getMeshIstioOrBuilder();
+
/**
*
*
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 9d71b3a8..f93361b9 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,10 +22,11 @@
*
*
*
- * The context of a span, attached to google.api.Distribution.Exemplars
- * in google.api.Distribution values during aggregation.
+ * The context of a span, attached to
+ * [Exemplars][google.api.Distribution.Exemplars]
+ * in [Distribution][google.api.Distribution] values during aggregation.
* It contains the name of a span with format:
- * projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
+ * projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
*
*
* Protobuf type {@code google.monitoring.v3.SpanContext}
@@ -120,11 +121,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * The resource name of the span in the following format:
- * projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
- * [TRACE_ID] is a unique identifier for a trace within a project;
+ * The resource name of the span. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
+ * `[TRACE_ID]` is a unique identifier for a trace within a project;
* it is a 32-character hexadecimal encoding of a 16-byte array.
- * [SPAN_ID] is a unique identifier for a span within a trace; it
+ * `[SPAN_ID]` is a unique identifier for a span within a trace; it
* is a 16-character hexadecimal encoding of an 8-byte array.
*
*
@@ -147,11 +148,11 @@ public java.lang.String getSpanName() {
*
*
*
- * The resource name of the span in the following format:
- * projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
- * [TRACE_ID] is a unique identifier for a trace within a project;
+ * The resource name of the span. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
+ * `[TRACE_ID]` is a unique identifier for a trace within a project;
* it is a 32-character hexadecimal encoding of a 16-byte array.
- * [SPAN_ID] is a unique identifier for a span within a trace; it
+ * `[SPAN_ID]` is a unique identifier for a span within a trace; it
* is a 16-character hexadecimal encoding of an 8-byte array.
*
*
@@ -332,10 +333,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The context of a span, attached to google.api.Distribution.Exemplars
- * in google.api.Distribution values during aggregation.
+ * The context of a span, attached to
+ * [Exemplars][google.api.Distribution.Exemplars]
+ * in [Distribution][google.api.Distribution] values during aggregation.
* It contains the name of a span with format:
- * projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
+ * projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
*
*
* Protobuf type {@code google.monitoring.v3.SpanContext}
@@ -492,11 +494,11 @@ public Builder mergeFrom(
*
*
*
- * The resource name of the span in the following format:
- * projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
- * [TRACE_ID] is a unique identifier for a trace within a project;
+ * The resource name of the span. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
+ * `[TRACE_ID]` is a unique identifier for a trace within a project;
* it is a 32-character hexadecimal encoding of a 16-byte array.
- * [SPAN_ID] is a unique identifier for a span within a trace; it
+ * `[SPAN_ID]` is a unique identifier for a span within a trace; it
* is a 16-character hexadecimal encoding of an 8-byte array.
*
*
@@ -519,11 +521,11 @@ public java.lang.String getSpanName() {
*
*
*
- * The resource name of the span in the following format:
- * projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
- * [TRACE_ID] is a unique identifier for a trace within a project;
+ * The resource name of the span. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
+ * `[TRACE_ID]` is a unique identifier for a trace within a project;
* it is a 32-character hexadecimal encoding of a 16-byte array.
- * [SPAN_ID] is a unique identifier for a span within a trace; it
+ * `[SPAN_ID]` is a unique identifier for a span within a trace; it
* is a 16-character hexadecimal encoding of an 8-byte array.
*
*
@@ -546,11 +548,11 @@ public com.google.protobuf.ByteString getSpanNameBytes() {
*
*
*
- * The resource name of the span in the following format:
- * projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
- * [TRACE_ID] is a unique identifier for a trace within a project;
+ * The resource name of the span. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
+ * `[TRACE_ID]` is a unique identifier for a trace within a project;
* it is a 32-character hexadecimal encoding of a 16-byte array.
- * [SPAN_ID] is a unique identifier for a span within a trace; it
+ * `[SPAN_ID]` is a unique identifier for a span within a trace; it
* is a 16-character hexadecimal encoding of an 8-byte array.
*
*
@@ -572,11 +574,11 @@ public Builder setSpanName(java.lang.String value) {
*
*
*
- * The resource name of the span in the following format:
- * projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
- * [TRACE_ID] is a unique identifier for a trace within a project;
+ * The resource name of the span. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
+ * `[TRACE_ID]` is a unique identifier for a trace within a project;
* it is a 32-character hexadecimal encoding of a 16-byte array.
- * [SPAN_ID] is a unique identifier for a span within a trace; it
+ * `[SPAN_ID]` is a unique identifier for a span within a trace; it
* is a 16-character hexadecimal encoding of an 8-byte array.
*
*
@@ -594,11 +596,11 @@ public Builder clearSpanName() {
*
*
*
- * The resource name of the span in the following format:
- * projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
- * [TRACE_ID] is a unique identifier for a trace within a project;
+ * The resource name of the span. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
+ * `[TRACE_ID]` is a unique identifier for a trace within a project;
* it is a 32-character hexadecimal encoding of a 16-byte array.
- * [SPAN_ID] is a unique identifier for a span within a trace; it
+ * `[SPAN_ID]` is a unique identifier for a span within a trace; it
* is a 16-character hexadecimal encoding of an 8-byte array.
*
*
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java
index 9a9e770b..a444343f 100644
--- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java
@@ -27,11 +27,11 @@ public interface SpanContextOrBuilder
*
*
*
- * The resource name of the span in the following format:
- * projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
- * [TRACE_ID] is a unique identifier for a trace within a project;
+ * The resource name of the span. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
+ * `[TRACE_ID]` is a unique identifier for a trace within a project;
* it is a 32-character hexadecimal encoding of a 16-byte array.
- * [SPAN_ID] is a unique identifier for a span within a trace; it
+ * `[SPAN_ID]` is a unique identifier for a span within a trace; it
* is a 16-character hexadecimal encoding of an 8-byte array.
*
*
@@ -44,11 +44,11 @@ public interface SpanContextOrBuilder
*
*
*
- * The resource name of the span in the following format:
- * projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
- * [TRACE_ID] is a unique identifier for a trace within a project;
+ * The resource name of the span. The format is:
+ * projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
+ * `[TRACE_ID]` is a unique identifier for a trace within a project;
* it is a 32-character hexadecimal encoding of a 16-byte array.
- * [SPAN_ID] is a unique identifier for a span within a trace; it
+ * `[SPAN_ID]` is a unique identifier for a span within a trace; it
* is a 16-character hexadecimal encoding of an 8-byte array.
*
*
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
new file mode 100644
index 00000000..97d3b8ac
--- /dev/null
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java
@@ -0,0 +1,2424 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/monitoring/v3/metric.proto
+
+package com.google.monitoring.v3;
+
+/**
+ *
+ *
+ *
+ * A locator for text. Indicates a particular part of the text of a request or
+ * of an object referenced in the request.
+ * For example, suppose the request field `text` contains:
+ * text: "The quick brown fox jumps over the lazy dog."
+ * Then the locator:
+ * source: "text"
+ * start_position {
+ * line: 1
+ * column: 17
+ * }
+ * end_position {
+ * line: 1
+ * column: 19
+ * }
+ * refers to the part of the text: "fox".
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.TextLocator}
+ */
+public final class TextLocator extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.TextLocator)
+ TextLocatorOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TextLocator.newBuilder() to construct.
+ private TextLocator(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private TextLocator() {
+ source_ = "";
+ nestingReason_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new TextLocator();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private TextLocator(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ source_ = s;
+ break;
+ }
+ case 18:
+ {
+ com.google.monitoring.v3.TextLocator.Position.Builder subBuilder = null;
+ if (startPosition_ != null) {
+ subBuilder = startPosition_.toBuilder();
+ }
+ startPosition_ =
+ input.readMessage(
+ com.google.monitoring.v3.TextLocator.Position.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(startPosition_);
+ startPosition_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 26:
+ {
+ com.google.monitoring.v3.TextLocator.Position.Builder subBuilder = null;
+ if (endPosition_ != null) {
+ subBuilder = endPosition_.toBuilder();
+ }
+ endPosition_ =
+ input.readMessage(
+ com.google.monitoring.v3.TextLocator.Position.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(endPosition_);
+ endPosition_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 34:
+ {
+ com.google.monitoring.v3.TextLocator.Builder subBuilder = null;
+ if (nestedLocator_ != null) {
+ subBuilder = nestedLocator_.toBuilder();
+ }
+ nestedLocator_ =
+ input.readMessage(
+ com.google.monitoring.v3.TextLocator.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(nestedLocator_);
+ nestedLocator_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 42:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ nestingReason_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.monitoring.v3.MetricProto
+ .internal_static_google_monitoring_v3_TextLocator_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.monitoring.v3.MetricProto
+ .internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.monitoring.v3.TextLocator.class,
+ com.google.monitoring.v3.TextLocator.Builder.class);
+ }
+
+ public interface PositionOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TextLocator.Position)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The line, starting with 1, where the byte is positioned.
+ *
+ *
+ * int32 line = 1;
+ *
+ * @return The line.
+ */
+ int getLine();
+
+ /**
+ *
+ *
+ *
+ * The column within the line, starting with 1, where the byte is
+ * positioned. This is a byte index even though the text is UTF-8.
+ *
+ *
+ * int32 column = 2;
+ *
+ * @return The column.
+ */
+ int getColumn();
+ }
+ /**
+ *
+ *
+ *
+ * The position of a byte within the text.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.TextLocator.Position}
+ */
+ public static final class Position extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.TextLocator.Position)
+ PositionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Position.newBuilder() to construct.
+ private Position(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private Position() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Position();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Position(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ line_ = input.readInt32();
+ break;
+ }
+ case 16:
+ {
+ column_ = input.readInt32();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.monitoring.v3.MetricProto
+ .internal_static_google_monitoring_v3_TextLocator_Position_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.monitoring.v3.MetricProto
+ .internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.monitoring.v3.TextLocator.Position.class,
+ com.google.monitoring.v3.TextLocator.Position.Builder.class);
+ }
+
+ public static final int LINE_FIELD_NUMBER = 1;
+ private int line_;
+ /**
+ *
+ *
+ *
+ * The line, starting with 1, where the byte is positioned.
+ *
+ *
+ * int32 line = 1;
+ *
+ * @return The line.
+ */
+ public int getLine() {
+ return line_;
+ }
+
+ public static final int COLUMN_FIELD_NUMBER = 2;
+ private int column_;
+ /**
+ *
+ *
+ *
+ * The column within the line, starting with 1, where the byte is
+ * positioned. This is a byte index even though the text is UTF-8.
+ *
+ *
+ * int32 column = 2;
+ *
+ * @return The column.
+ */
+ public int getColumn() {
+ return column_;
+ }
+
+ 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 (line_ != 0) {
+ output.writeInt32(1, line_);
+ }
+ if (column_ != 0) {
+ output.writeInt32(2, column_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (line_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, line_);
+ }
+ if (column_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, column_);
+ }
+ 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.TextLocator.Position)) {
+ return super.equals(obj);
+ }
+ com.google.monitoring.v3.TextLocator.Position other =
+ (com.google.monitoring.v3.TextLocator.Position) obj;
+
+ if (getLine() != other.getLine()) return false;
+ if (getColumn() != other.getColumn()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + LINE_FIELD_NUMBER;
+ hash = (53 * hash) + getLine();
+ hash = (37 * hash) + COLUMN_FIELD_NUMBER;
+ hash = (53 * hash) + getColumn();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.monitoring.v3.TextLocator.Position parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TextLocator.Position 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.TextLocator.Position parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TextLocator.Position 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.TextLocator.Position parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TextLocator.Position parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.v3.TextLocator.Position parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TextLocator.Position 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.TextLocator.Position parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TextLocator.Position 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.TextLocator.Position parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TextLocator.Position 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.TextLocator.Position 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;
+ }
+ /**
+ *
+ *
+ *
+ * The position of a byte within the text.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.TextLocator.Position}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The line, starting with 1, where the byte is positioned.
+ *
+ *
+ * int32 line = 1;
+ *
+ * @return The line.
+ */
+ public int getLine() {
+ return line_;
+ }
+ /**
+ *
+ *
+ *
+ * The line, starting with 1, where the byte is positioned.
+ *
+ *
+ * int32 line = 1;
+ *
+ * @param value The line to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLine(int value) {
+
+ line_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The line, starting with 1, where the byte is positioned.
+ *
+ *
+ * int32 line = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLine() {
+
+ line_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int column_;
+ /**
+ *
+ *
+ *
+ * The column within the line, starting with 1, where the byte is
+ * positioned. This is a byte index even though the text is UTF-8.
+ *
+ *
+ * int32 column = 2;
+ *
+ * @return The column.
+ */
+ public int getColumn() {
+ return column_;
+ }
+ /**
+ *
+ *
+ *
+ * The column within the line, starting with 1, where the byte is
+ * positioned. This is a byte index even though the text is UTF-8.
+ *
+ *
+ * int32 column = 2;
+ *
+ * @param value The column to set.
+ * @return This builder for chaining.
+ */
+ public Builder setColumn(int value) {
+
+ column_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The column within the line, starting with 1, where the byte is
+ * positioned. This is a byte index even though the text is UTF-8.
+ *
+ *
+ * int32 column = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearColumn() {
+
+ column_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TextLocator.Position)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.monitoring.v3.TextLocator.Position)
+ private static final com.google.monitoring.v3.TextLocator.Position DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.monitoring.v3.TextLocator.Position();
+ }
+
+ public static com.google.monitoring.v3.TextLocator.Position getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * The source of the text. The source may be a field in the request, in which
+ * case its format is the format of the
+ * google.rpc.BadRequest.FieldViolation.field field in
+ * https://cloud.google.com/apis/design/errors#error_details. It may also be
+ * be a source other than the request field (e.g. a macro definition
+ * referenced in the text of the query), in which case this is the name of
+ * the source (e.g. the macro name).
+ *
+ *
+ * string source = 1;
+ *
+ * @return The source.
+ */
+ public java.lang.String getSource() {
+ java.lang.Object ref = source_;
+ 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();
+ source_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The source of the text. The source may be a field in the request, in which
+ * case its format is the format of the
+ * google.rpc.BadRequest.FieldViolation.field field in
+ * https://cloud.google.com/apis/design/errors#error_details. It may also be
+ * be a source other than the request field (e.g. a macro definition
+ * referenced in the text of the query), in which case this is the name of
+ * the source (e.g. the macro name).
+ *
+ *
+ * string source = 1;
+ *
+ * @return The bytes for source.
+ */
+ public com.google.protobuf.ByteString getSourceBytes() {
+ java.lang.Object ref = source_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ source_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int START_POSITION_FIELD_NUMBER = 2;
+ private com.google.monitoring.v3.TextLocator.Position startPosition_;
+ /**
+ *
+ *
+ *
+ * The position of the first byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position start_position = 2;
+ *
+ * @return Whether the startPosition field is set.
+ */
+ public boolean hasStartPosition() {
+ return startPosition_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The position of the first byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position start_position = 2;
+ *
+ * @return The startPosition.
+ */
+ public com.google.monitoring.v3.TextLocator.Position getStartPosition() {
+ return startPosition_ == null
+ ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()
+ : startPosition_;
+ }
+ /**
+ *
+ *
+ *
+ * The position of the first byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position start_position = 2;
+ */
+ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getStartPositionOrBuilder() {
+ return getStartPosition();
+ }
+
+ public static final int END_POSITION_FIELD_NUMBER = 3;
+ private com.google.monitoring.v3.TextLocator.Position endPosition_;
+ /**
+ *
+ *
+ *
+ * The position of the last byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position end_position = 3;
+ *
+ * @return Whether the endPosition field is set.
+ */
+ public boolean hasEndPosition() {
+ return endPosition_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The position of the last byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position end_position = 3;
+ *
+ * @return The endPosition.
+ */
+ public com.google.monitoring.v3.TextLocator.Position getEndPosition() {
+ return endPosition_ == null
+ ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()
+ : endPosition_;
+ }
+ /**
+ *
+ *
+ *
+ * The position of the last byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position end_position = 3;
+ */
+ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getEndPositionOrBuilder() {
+ return getEndPosition();
+ }
+
+ public static final int NESTED_LOCATOR_FIELD_NUMBER = 4;
+ private com.google.monitoring.v3.TextLocator nestedLocator_;
+ /**
+ *
+ *
+ *
+ * If `source`, `start_position`, and `end_position` describe a call on
+ * some object (e.g. a macro in the time series query language text) and a
+ * location is to be designated in that object's text, `nested_locator`
+ * identifies the location within that object.
+ *
+ *
+ * .google.monitoring.v3.TextLocator nested_locator = 4;
+ *
+ * @return Whether the nestedLocator field is set.
+ */
+ public boolean hasNestedLocator() {
+ return nestedLocator_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * If `source`, `start_position`, and `end_position` describe a call on
+ * some object (e.g. a macro in the time series query language text) and a
+ * location is to be designated in that object's text, `nested_locator`
+ * identifies the location within that object.
+ *
+ *
+ * .google.monitoring.v3.TextLocator nested_locator = 4;
+ *
+ * @return The nestedLocator.
+ */
+ public com.google.monitoring.v3.TextLocator getNestedLocator() {
+ return nestedLocator_ == null
+ ? com.google.monitoring.v3.TextLocator.getDefaultInstance()
+ : nestedLocator_;
+ }
+ /**
+ *
+ *
+ *
+ * If `source`, `start_position`, and `end_position` describe a call on
+ * some object (e.g. a macro in the time series query language text) and a
+ * location is to be designated in that object's text, `nested_locator`
+ * identifies the location within that object.
+ *
+ *
+ * .google.monitoring.v3.TextLocator nested_locator = 4;
+ */
+ public com.google.monitoring.v3.TextLocatorOrBuilder getNestedLocatorOrBuilder() {
+ return getNestedLocator();
+ }
+
+ public static final int NESTING_REASON_FIELD_NUMBER = 5;
+ private volatile java.lang.Object nestingReason_;
+ /**
+ *
+ *
+ *
+ * When `nested_locator` is set, this field gives the reason for the nesting.
+ * Usually, the reason is a macro invocation. In that case, the macro name
+ * (including the leading '@') signals the location of the macro call
+ * in the text and a macro argument name (including the leading '$') signals
+ * the location of the macro argument inside the macro body that got
+ * substituted away.
+ *
+ *
+ * string nesting_reason = 5;
+ *
+ * @return The nestingReason.
+ */
+ public java.lang.String getNestingReason() {
+ java.lang.Object ref = nestingReason_;
+ 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();
+ nestingReason_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * When `nested_locator` is set, this field gives the reason for the nesting.
+ * Usually, the reason is a macro invocation. In that case, the macro name
+ * (including the leading '@') signals the location of the macro call
+ * in the text and a macro argument name (including the leading '$') signals
+ * the location of the macro argument inside the macro body that got
+ * substituted away.
+ *
+ *
+ * string nesting_reason = 5;
+ *
+ * @return The bytes for nestingReason.
+ */
+ public com.google.protobuf.ByteString getNestingReasonBytes() {
+ java.lang.Object ref = nestingReason_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nestingReason_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getSourceBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
+ }
+ if (startPosition_ != null) {
+ output.writeMessage(2, getStartPosition());
+ }
+ if (endPosition_ != null) {
+ output.writeMessage(3, getEndPosition());
+ }
+ if (nestedLocator_ != null) {
+ output.writeMessage(4, getNestedLocator());
+ }
+ if (!getNestingReasonBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nestingReason_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getSourceBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_);
+ }
+ if (startPosition_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartPosition());
+ }
+ if (endPosition_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndPosition());
+ }
+ if (nestedLocator_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNestedLocator());
+ }
+ if (!getNestingReasonBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nestingReason_);
+ }
+ 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.TextLocator)) {
+ return super.equals(obj);
+ }
+ com.google.monitoring.v3.TextLocator other = (com.google.monitoring.v3.TextLocator) obj;
+
+ if (!getSource().equals(other.getSource())) return false;
+ if (hasStartPosition() != other.hasStartPosition()) return false;
+ if (hasStartPosition()) {
+ if (!getStartPosition().equals(other.getStartPosition())) return false;
+ }
+ if (hasEndPosition() != other.hasEndPosition()) return false;
+ if (hasEndPosition()) {
+ if (!getEndPosition().equals(other.getEndPosition())) return false;
+ }
+ if (hasNestedLocator() != other.hasNestedLocator()) return false;
+ if (hasNestedLocator()) {
+ if (!getNestedLocator().equals(other.getNestedLocator())) return false;
+ }
+ if (!getNestingReason().equals(other.getNestingReason())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getSource().hashCode();
+ if (hasStartPosition()) {
+ hash = (37 * hash) + START_POSITION_FIELD_NUMBER;
+ hash = (53 * hash) + getStartPosition().hashCode();
+ }
+ if (hasEndPosition()) {
+ hash = (37 * hash) + END_POSITION_FIELD_NUMBER;
+ hash = (53 * hash) + getEndPosition().hashCode();
+ }
+ if (hasNestedLocator()) {
+ hash = (37 * hash) + NESTED_LOCATOR_FIELD_NUMBER;
+ hash = (53 * hash) + getNestedLocator().hashCode();
+ }
+ hash = (37 * hash) + NESTING_REASON_FIELD_NUMBER;
+ hash = (53 * hash) + getNestingReason().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.monitoring.v3.TextLocator parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TextLocator 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.TextLocator parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TextLocator 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.TextLocator parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TextLocator parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.v3.TextLocator parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TextLocator 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.TextLocator parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TextLocator 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.TextLocator parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TextLocator 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.TextLocator 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 locator for text. Indicates a particular part of the text of a request or
+ * of an object referenced in the request.
+ * For example, suppose the request field `text` contains:
+ * text: "The quick brown fox jumps over the lazy dog."
+ * Then the locator:
+ * source: "text"
+ * start_position {
+ * line: 1
+ * column: 17
+ * }
+ * end_position {
+ * line: 1
+ * column: 19
+ * }
+ * refers to the part of the text: "fox".
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.TextLocator}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The source of the text. The source may be a field in the request, in which
+ * case its format is the format of the
+ * google.rpc.BadRequest.FieldViolation.field field in
+ * https://cloud.google.com/apis/design/errors#error_details. It may also be
+ * be a source other than the request field (e.g. a macro definition
+ * referenced in the text of the query), in which case this is the name of
+ * the source (e.g. the macro name).
+ *
+ *
+ * string source = 1;
+ *
+ * @return The source.
+ */
+ public java.lang.String getSource() {
+ java.lang.Object ref = source_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ source_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The source of the text. The source may be a field in the request, in which
+ * case its format is the format of the
+ * google.rpc.BadRequest.FieldViolation.field field in
+ * https://cloud.google.com/apis/design/errors#error_details. It may also be
+ * be a source other than the request field (e.g. a macro definition
+ * referenced in the text of the query), in which case this is the name of
+ * the source (e.g. the macro name).
+ *
+ *
+ * string source = 1;
+ *
+ * @return The bytes for source.
+ */
+ public com.google.protobuf.ByteString getSourceBytes() {
+ java.lang.Object ref = source_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ source_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The source of the text. The source may be a field in the request, in which
+ * case its format is the format of the
+ * google.rpc.BadRequest.FieldViolation.field field in
+ * https://cloud.google.com/apis/design/errors#error_details. It may also be
+ * be a source other than the request field (e.g. a macro definition
+ * referenced in the text of the query), in which case this is the name of
+ * the source (e.g. the macro name).
+ *
+ *
+ * string source = 1;
+ *
+ * @param value The source to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSource(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ source_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The source of the text. The source may be a field in the request, in which
+ * case its format is the format of the
+ * google.rpc.BadRequest.FieldViolation.field field in
+ * https://cloud.google.com/apis/design/errors#error_details. It may also be
+ * be a source other than the request field (e.g. a macro definition
+ * referenced in the text of the query), in which case this is the name of
+ * the source (e.g. the macro name).
+ *
+ *
+ * string source = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSource() {
+
+ source_ = getDefaultInstance().getSource();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The source of the text. The source may be a field in the request, in which
+ * case its format is the format of the
+ * google.rpc.BadRequest.FieldViolation.field field in
+ * https://cloud.google.com/apis/design/errors#error_details. It may also be
+ * be a source other than the request field (e.g. a macro definition
+ * referenced in the text of the query), in which case this is the name of
+ * the source (e.g. the macro name).
+ *
+ *
+ * string source = 1;
+ *
+ * @param value The bytes for source to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ source_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.monitoring.v3.TextLocator.Position startPosition_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.TextLocator.Position,
+ com.google.monitoring.v3.TextLocator.Position.Builder,
+ com.google.monitoring.v3.TextLocator.PositionOrBuilder>
+ startPositionBuilder_;
+ /**
+ *
+ *
+ *
+ * The position of the first byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position start_position = 2;
+ *
+ * @return Whether the startPosition field is set.
+ */
+ public boolean hasStartPosition() {
+ return startPositionBuilder_ != null || startPosition_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The position of the first byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position start_position = 2;
+ *
+ * @return The startPosition.
+ */
+ public com.google.monitoring.v3.TextLocator.Position getStartPosition() {
+ if (startPositionBuilder_ == null) {
+ return startPosition_ == null
+ ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()
+ : startPosition_;
+ } else {
+ return startPositionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The position of the first byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position start_position = 2;
+ */
+ public Builder setStartPosition(com.google.monitoring.v3.TextLocator.Position value) {
+ if (startPositionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ startPosition_ = value;
+ onChanged();
+ } else {
+ startPositionBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The position of the first byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position start_position = 2;
+ */
+ public Builder setStartPosition(
+ com.google.monitoring.v3.TextLocator.Position.Builder builderForValue) {
+ if (startPositionBuilder_ == null) {
+ startPosition_ = builderForValue.build();
+ onChanged();
+ } else {
+ startPositionBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The position of the first byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position start_position = 2;
+ */
+ public Builder mergeStartPosition(com.google.monitoring.v3.TextLocator.Position value) {
+ if (startPositionBuilder_ == null) {
+ if (startPosition_ != null) {
+ startPosition_ =
+ com.google.monitoring.v3.TextLocator.Position.newBuilder(startPosition_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ startPosition_ = value;
+ }
+ onChanged();
+ } else {
+ startPositionBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The position of the first byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position start_position = 2;
+ */
+ public Builder clearStartPosition() {
+ if (startPositionBuilder_ == null) {
+ startPosition_ = null;
+ onChanged();
+ } else {
+ startPosition_ = null;
+ startPositionBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The position of the first byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position start_position = 2;
+ */
+ public com.google.monitoring.v3.TextLocator.Position.Builder getStartPositionBuilder() {
+
+ onChanged();
+ return getStartPositionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The position of the first byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position start_position = 2;
+ */
+ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getStartPositionOrBuilder() {
+ if (startPositionBuilder_ != null) {
+ return startPositionBuilder_.getMessageOrBuilder();
+ } else {
+ return startPosition_ == null
+ ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()
+ : startPosition_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The position of the first byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position start_position = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.TextLocator.Position,
+ com.google.monitoring.v3.TextLocator.Position.Builder,
+ com.google.monitoring.v3.TextLocator.PositionOrBuilder>
+ getStartPositionFieldBuilder() {
+ if (startPositionBuilder_ == null) {
+ startPositionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.TextLocator.Position,
+ com.google.monitoring.v3.TextLocator.Position.Builder,
+ com.google.monitoring.v3.TextLocator.PositionOrBuilder>(
+ getStartPosition(), getParentForChildren(), isClean());
+ startPosition_ = null;
+ }
+ return startPositionBuilder_;
+ }
+
+ private com.google.monitoring.v3.TextLocator.Position endPosition_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.TextLocator.Position,
+ com.google.monitoring.v3.TextLocator.Position.Builder,
+ com.google.monitoring.v3.TextLocator.PositionOrBuilder>
+ endPositionBuilder_;
+ /**
+ *
+ *
+ *
+ * The position of the last byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position end_position = 3;
+ *
+ * @return Whether the endPosition field is set.
+ */
+ public boolean hasEndPosition() {
+ return endPositionBuilder_ != null || endPosition_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The position of the last byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position end_position = 3;
+ *
+ * @return The endPosition.
+ */
+ public com.google.monitoring.v3.TextLocator.Position getEndPosition() {
+ if (endPositionBuilder_ == null) {
+ return endPosition_ == null
+ ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()
+ : endPosition_;
+ } else {
+ return endPositionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The position of the last byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position end_position = 3;
+ */
+ public Builder setEndPosition(com.google.monitoring.v3.TextLocator.Position value) {
+ if (endPositionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ endPosition_ = value;
+ onChanged();
+ } else {
+ endPositionBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The position of the last byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position end_position = 3;
+ */
+ public Builder setEndPosition(
+ com.google.monitoring.v3.TextLocator.Position.Builder builderForValue) {
+ if (endPositionBuilder_ == null) {
+ endPosition_ = builderForValue.build();
+ onChanged();
+ } else {
+ endPositionBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The position of the last byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position end_position = 3;
+ */
+ public Builder mergeEndPosition(com.google.monitoring.v3.TextLocator.Position value) {
+ if (endPositionBuilder_ == null) {
+ if (endPosition_ != null) {
+ endPosition_ =
+ com.google.monitoring.v3.TextLocator.Position.newBuilder(endPosition_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ endPosition_ = value;
+ }
+ onChanged();
+ } else {
+ endPositionBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The position of the last byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position end_position = 3;
+ */
+ public Builder clearEndPosition() {
+ if (endPositionBuilder_ == null) {
+ endPosition_ = null;
+ onChanged();
+ } else {
+ endPosition_ = null;
+ endPositionBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The position of the last byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position end_position = 3;
+ */
+ public com.google.monitoring.v3.TextLocator.Position.Builder getEndPositionBuilder() {
+
+ onChanged();
+ return getEndPositionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The position of the last byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position end_position = 3;
+ */
+ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getEndPositionOrBuilder() {
+ if (endPositionBuilder_ != null) {
+ return endPositionBuilder_.getMessageOrBuilder();
+ } else {
+ return endPosition_ == null
+ ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()
+ : endPosition_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The position of the last byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position end_position = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.TextLocator.Position,
+ com.google.monitoring.v3.TextLocator.Position.Builder,
+ com.google.monitoring.v3.TextLocator.PositionOrBuilder>
+ getEndPositionFieldBuilder() {
+ if (endPositionBuilder_ == null) {
+ endPositionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.TextLocator.Position,
+ com.google.monitoring.v3.TextLocator.Position.Builder,
+ com.google.monitoring.v3.TextLocator.PositionOrBuilder>(
+ getEndPosition(), getParentForChildren(), isClean());
+ endPosition_ = null;
+ }
+ return endPositionBuilder_;
+ }
+
+ private com.google.monitoring.v3.TextLocator nestedLocator_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.TextLocator,
+ com.google.monitoring.v3.TextLocator.Builder,
+ com.google.monitoring.v3.TextLocatorOrBuilder>
+ nestedLocatorBuilder_;
+ /**
+ *
+ *
+ *
+ * If `source`, `start_position`, and `end_position` describe a call on
+ * some object (e.g. a macro in the time series query language text) and a
+ * location is to be designated in that object's text, `nested_locator`
+ * identifies the location within that object.
+ *
+ *
+ * .google.monitoring.v3.TextLocator nested_locator = 4;
+ *
+ * @return Whether the nestedLocator field is set.
+ */
+ public boolean hasNestedLocator() {
+ return nestedLocatorBuilder_ != null || nestedLocator_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * If `source`, `start_position`, and `end_position` describe a call on
+ * some object (e.g. a macro in the time series query language text) and a
+ * location is to be designated in that object's text, `nested_locator`
+ * identifies the location within that object.
+ *
+ *
+ * .google.monitoring.v3.TextLocator nested_locator = 4;
+ *
+ * @return The nestedLocator.
+ */
+ public com.google.monitoring.v3.TextLocator getNestedLocator() {
+ if (nestedLocatorBuilder_ == null) {
+ return nestedLocator_ == null
+ ? com.google.monitoring.v3.TextLocator.getDefaultInstance()
+ : nestedLocator_;
+ } else {
+ return nestedLocatorBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * If `source`, `start_position`, and `end_position` describe a call on
+ * some object (e.g. a macro in the time series query language text) and a
+ * location is to be designated in that object's text, `nested_locator`
+ * identifies the location within that object.
+ *
+ *
+ * .google.monitoring.v3.TextLocator nested_locator = 4;
+ */
+ public Builder setNestedLocator(com.google.monitoring.v3.TextLocator value) {
+ if (nestedLocatorBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nestedLocator_ = value;
+ onChanged();
+ } else {
+ nestedLocatorBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * If `source`, `start_position`, and `end_position` describe a call on
+ * some object (e.g. a macro in the time series query language text) and a
+ * location is to be designated in that object's text, `nested_locator`
+ * identifies the location within that object.
+ *
+ *
+ * .google.monitoring.v3.TextLocator nested_locator = 4;
+ */
+ public Builder setNestedLocator(com.google.monitoring.v3.TextLocator.Builder builderForValue) {
+ if (nestedLocatorBuilder_ == null) {
+ nestedLocator_ = builderForValue.build();
+ onChanged();
+ } else {
+ nestedLocatorBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * If `source`, `start_position`, and `end_position` describe a call on
+ * some object (e.g. a macro in the time series query language text) and a
+ * location is to be designated in that object's text, `nested_locator`
+ * identifies the location within that object.
+ *
+ *
+ * .google.monitoring.v3.TextLocator nested_locator = 4;
+ */
+ public Builder mergeNestedLocator(com.google.monitoring.v3.TextLocator value) {
+ if (nestedLocatorBuilder_ == null) {
+ if (nestedLocator_ != null) {
+ nestedLocator_ =
+ com.google.monitoring.v3.TextLocator.newBuilder(nestedLocator_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ nestedLocator_ = value;
+ }
+ onChanged();
+ } else {
+ nestedLocatorBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * If `source`, `start_position`, and `end_position` describe a call on
+ * some object (e.g. a macro in the time series query language text) and a
+ * location is to be designated in that object's text, `nested_locator`
+ * identifies the location within that object.
+ *
+ *
+ * .google.monitoring.v3.TextLocator nested_locator = 4;
+ */
+ public Builder clearNestedLocator() {
+ if (nestedLocatorBuilder_ == null) {
+ nestedLocator_ = null;
+ onChanged();
+ } else {
+ nestedLocator_ = null;
+ nestedLocatorBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * If `source`, `start_position`, and `end_position` describe a call on
+ * some object (e.g. a macro in the time series query language text) and a
+ * location is to be designated in that object's text, `nested_locator`
+ * identifies the location within that object.
+ *
+ *
+ * .google.monitoring.v3.TextLocator nested_locator = 4;
+ */
+ public com.google.monitoring.v3.TextLocator.Builder getNestedLocatorBuilder() {
+
+ onChanged();
+ return getNestedLocatorFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * If `source`, `start_position`, and `end_position` describe a call on
+ * some object (e.g. a macro in the time series query language text) and a
+ * location is to be designated in that object's text, `nested_locator`
+ * identifies the location within that object.
+ *
+ *
+ * .google.monitoring.v3.TextLocator nested_locator = 4;
+ */
+ public com.google.monitoring.v3.TextLocatorOrBuilder getNestedLocatorOrBuilder() {
+ if (nestedLocatorBuilder_ != null) {
+ return nestedLocatorBuilder_.getMessageOrBuilder();
+ } else {
+ return nestedLocator_ == null
+ ? com.google.monitoring.v3.TextLocator.getDefaultInstance()
+ : nestedLocator_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * If `source`, `start_position`, and `end_position` describe a call on
+ * some object (e.g. a macro in the time series query language text) and a
+ * location is to be designated in that object's text, `nested_locator`
+ * identifies the location within that object.
+ *
+ *
+ * .google.monitoring.v3.TextLocator nested_locator = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.TextLocator,
+ com.google.monitoring.v3.TextLocator.Builder,
+ com.google.monitoring.v3.TextLocatorOrBuilder>
+ getNestedLocatorFieldBuilder() {
+ if (nestedLocatorBuilder_ == null) {
+ nestedLocatorBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.TextLocator,
+ com.google.monitoring.v3.TextLocator.Builder,
+ com.google.monitoring.v3.TextLocatorOrBuilder>(
+ getNestedLocator(), getParentForChildren(), isClean());
+ nestedLocator_ = null;
+ }
+ return nestedLocatorBuilder_;
+ }
+
+ private java.lang.Object nestingReason_ = "";
+ /**
+ *
+ *
+ *
+ * When `nested_locator` is set, this field gives the reason for the nesting.
+ * Usually, the reason is a macro invocation. In that case, the macro name
+ * (including the leading '@') signals the location of the macro call
+ * in the text and a macro argument name (including the leading '$') signals
+ * the location of the macro argument inside the macro body that got
+ * substituted away.
+ *
+ *
+ * string nesting_reason = 5;
+ *
+ * @return The nestingReason.
+ */
+ public java.lang.String getNestingReason() {
+ java.lang.Object ref = nestingReason_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nestingReason_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * When `nested_locator` is set, this field gives the reason for the nesting.
+ * Usually, the reason is a macro invocation. In that case, the macro name
+ * (including the leading '@') signals the location of the macro call
+ * in the text and a macro argument name (including the leading '$') signals
+ * the location of the macro argument inside the macro body that got
+ * substituted away.
+ *
+ *
+ * string nesting_reason = 5;
+ *
+ * @return The bytes for nestingReason.
+ */
+ public com.google.protobuf.ByteString getNestingReasonBytes() {
+ java.lang.Object ref = nestingReason_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nestingReason_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * When `nested_locator` is set, this field gives the reason for the nesting.
+ * Usually, the reason is a macro invocation. In that case, the macro name
+ * (including the leading '@') signals the location of the macro call
+ * in the text and a macro argument name (including the leading '$') signals
+ * the location of the macro argument inside the macro body that got
+ * substituted away.
+ *
+ *
+ * string nesting_reason = 5;
+ *
+ * @param value The nestingReason to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNestingReason(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ nestingReason_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * When `nested_locator` is set, this field gives the reason for the nesting.
+ * Usually, the reason is a macro invocation. In that case, the macro name
+ * (including the leading '@') signals the location of the macro call
+ * in the text and a macro argument name (including the leading '$') signals
+ * the location of the macro argument inside the macro body that got
+ * substituted away.
+ *
+ *
+ * string nesting_reason = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNestingReason() {
+
+ nestingReason_ = getDefaultInstance().getNestingReason();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * When `nested_locator` is set, this field gives the reason for the nesting.
+ * Usually, the reason is a macro invocation. In that case, the macro name
+ * (including the leading '@') signals the location of the macro call
+ * in the text and a macro argument name (including the leading '$') signals
+ * the location of the macro argument inside the macro body that got
+ * substituted away.
+ *
+ *
+ * string nesting_reason = 5;
+ *
+ * @param value The bytes for nestingReason to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNestingReasonBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ nestingReason_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TextLocator)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.monitoring.v3.TextLocator)
+ private static final com.google.monitoring.v3.TextLocator DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.monitoring.v3.TextLocator();
+ }
+
+ public static com.google.monitoring.v3.TextLocator getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * The source of the text. The source may be a field in the request, in which
+ * case its format is the format of the
+ * google.rpc.BadRequest.FieldViolation.field field in
+ * https://cloud.google.com/apis/design/errors#error_details. It may also be
+ * be a source other than the request field (e.g. a macro definition
+ * referenced in the text of the query), in which case this is the name of
+ * the source (e.g. the macro name).
+ *
+ *
+ * string source = 1;
+ *
+ * @return The source.
+ */
+ java.lang.String getSource();
+ /**
+ *
+ *
+ *
+ * The source of the text. The source may be a field in the request, in which
+ * case its format is the format of the
+ * google.rpc.BadRequest.FieldViolation.field field in
+ * https://cloud.google.com/apis/design/errors#error_details. It may also be
+ * be a source other than the request field (e.g. a macro definition
+ * referenced in the text of the query), in which case this is the name of
+ * the source (e.g. the macro name).
+ *
+ *
+ * string source = 1;
+ *
+ * @return The bytes for source.
+ */
+ com.google.protobuf.ByteString getSourceBytes();
+
+ /**
+ *
+ *
+ *
+ * The position of the first byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position start_position = 2;
+ *
+ * @return Whether the startPosition field is set.
+ */
+ boolean hasStartPosition();
+ /**
+ *
+ *
+ *
+ * The position of the first byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position start_position = 2;
+ *
+ * @return The startPosition.
+ */
+ com.google.monitoring.v3.TextLocator.Position getStartPosition();
+ /**
+ *
+ *
+ *
+ * The position of the first byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position start_position = 2;
+ */
+ com.google.monitoring.v3.TextLocator.PositionOrBuilder getStartPositionOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The position of the last byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position end_position = 3;
+ *
+ * @return Whether the endPosition field is set.
+ */
+ boolean hasEndPosition();
+ /**
+ *
+ *
+ *
+ * The position of the last byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position end_position = 3;
+ *
+ * @return The endPosition.
+ */
+ com.google.monitoring.v3.TextLocator.Position getEndPosition();
+ /**
+ *
+ *
+ *
+ * The position of the last byte within the text.
+ *
+ *
+ * .google.monitoring.v3.TextLocator.Position end_position = 3;
+ */
+ com.google.monitoring.v3.TextLocator.PositionOrBuilder getEndPositionOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * If `source`, `start_position`, and `end_position` describe a call on
+ * some object (e.g. a macro in the time series query language text) and a
+ * location is to be designated in that object's text, `nested_locator`
+ * identifies the location within that object.
+ *
+ *
+ * .google.monitoring.v3.TextLocator nested_locator = 4;
+ *
+ * @return Whether the nestedLocator field is set.
+ */
+ boolean hasNestedLocator();
+ /**
+ *
+ *
+ *
+ * If `source`, `start_position`, and `end_position` describe a call on
+ * some object (e.g. a macro in the time series query language text) and a
+ * location is to be designated in that object's text, `nested_locator`
+ * identifies the location within that object.
+ *
+ *
+ * .google.monitoring.v3.TextLocator nested_locator = 4;
+ *
+ * @return The nestedLocator.
+ */
+ com.google.monitoring.v3.TextLocator getNestedLocator();
+ /**
+ *
+ *
+ *
+ * If `source`, `start_position`, and `end_position` describe a call on
+ * some object (e.g. a macro in the time series query language text) and a
+ * location is to be designated in that object's text, `nested_locator`
+ * identifies the location within that object.
+ *
+ *
+ * .google.monitoring.v3.TextLocator nested_locator = 4;
+ */
+ com.google.monitoring.v3.TextLocatorOrBuilder getNestedLocatorOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * When `nested_locator` is set, this field gives the reason for the nesting.
+ * Usually, the reason is a macro invocation. In that case, the macro name
+ * (including the leading '@') signals the location of the macro call
+ * in the text and a macro argument name (including the leading '$') signals
+ * the location of the macro argument inside the macro body that got
+ * substituted away.
+ *
+ *
+ * string nesting_reason = 5;
+ *
+ * @return The nestingReason.
+ */
+ java.lang.String getNestingReason();
+ /**
+ *
+ *
+ *
+ * When `nested_locator` is set, this field gives the reason for the nesting.
+ * Usually, the reason is a macro invocation. In that case, the macro name
+ * (including the leading '@') signals the location of the macro call
+ * in the text and a macro argument name (including the leading '$') signals
+ * the location of the macro argument inside the macro body that got
+ * substituted away.
+ *
+ *
+ * string nesting_reason = 5;
+ *
+ * @return The bytes for nestingReason.
+ */
+ com.google.protobuf.ByteString getNestingReasonBytes();
+}
diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java
new file mode 100644
index 00000000..b056d85e
--- /dev/null
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java
@@ -0,0 +1,2803 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/monitoring/v3/metric.proto
+
+package com.google.monitoring.v3;
+
+/**
+ *
+ *
+ *
+ * Represents the values of a time series associated with a
+ * TimeSeriesDescriptor.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.TimeSeriesData}
+ */
+public final class TimeSeriesData extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeSeriesData)
+ TimeSeriesDataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TimeSeriesData.newBuilder() to construct.
+ private TimeSeriesData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private TimeSeriesData() {
+ labelValues_ = java.util.Collections.emptyList();
+ pointData_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new TimeSeriesData();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private TimeSeriesData(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ labelValues_ = new java.util.ArrayList
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ java.util.List
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ com.google.monitoring.v3.TypedValue getValues(int index);
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ int getValuesCount();
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ java.util.List extends com.google.monitoring.v3.TypedValueOrBuilder> getValuesOrBuilderList();
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * The time interval associated with the point.
+ *
+ *
+ * .google.monitoring.v3.TimeInterval time_interval = 2;
+ *
+ * @return Whether the timeInterval field is set.
+ */
+ boolean hasTimeInterval();
+ /**
+ *
+ *
+ *
+ * The time interval associated with the point.
+ *
+ *
+ * .google.monitoring.v3.TimeInterval time_interval = 2;
+ *
+ * @return The timeInterval.
+ */
+ com.google.monitoring.v3.TimeInterval getTimeInterval();
+ /**
+ *
+ *
+ *
+ * The time interval associated with the point.
+ *
+ *
+ * .google.monitoring.v3.TimeInterval time_interval = 2;
+ */
+ com.google.monitoring.v3.TimeIntervalOrBuilder getTimeIntervalOrBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * A point's value columns and time interval. Each point has one or more
+ * point values corresponding to the entries in `point_descriptors` field in
+ * the TimeSeriesDescriptor associated with this object.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.TimeSeriesData.PointData}
+ */
+ public static final class PointData extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeSeriesData.PointData)
+ PointDataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use PointData.newBuilder() to construct.
+ private PointData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private PointData() {
+ values_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new PointData();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private PointData(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ values_ = new java.util.ArrayList
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public java.util.List
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public java.util.List extends com.google.monitoring.v3.TypedValueOrBuilder>
+ getValuesOrBuilderList() {
+ return values_;
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public com.google.monitoring.v3.TypedValue getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder(int index) {
+ return values_.get(index);
+ }
+
+ public static final int TIME_INTERVAL_FIELD_NUMBER = 2;
+ private com.google.monitoring.v3.TimeInterval timeInterval_;
+ /**
+ *
+ *
+ *
+ * The time interval associated with the point.
+ *
+ *
+ * .google.monitoring.v3.TimeInterval time_interval = 2;
+ *
+ * @return Whether the timeInterval field is set.
+ */
+ public boolean hasTimeInterval() {
+ return timeInterval_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The time interval associated with the point.
+ *
+ *
+ * .google.monitoring.v3.TimeInterval time_interval = 2;
+ *
+ * @return The timeInterval.
+ */
+ public com.google.monitoring.v3.TimeInterval getTimeInterval() {
+ return timeInterval_ == null
+ ? com.google.monitoring.v3.TimeInterval.getDefaultInstance()
+ : timeInterval_;
+ }
+ /**
+ *
+ *
+ *
+ * The time interval associated with the point.
+ *
+ *
+ * .google.monitoring.v3.TimeInterval time_interval = 2;
+ */
+ public com.google.monitoring.v3.TimeIntervalOrBuilder getTimeIntervalOrBuilder() {
+ return getTimeInterval();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < values_.size(); i++) {
+ output.writeMessage(1, values_.get(i));
+ }
+ if (timeInterval_ != null) {
+ output.writeMessage(2, getTimeInterval());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < values_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, values_.get(i));
+ }
+ if (timeInterval_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeInterval());
+ }
+ 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.TimeSeriesData.PointData)) {
+ return super.equals(obj);
+ }
+ com.google.monitoring.v3.TimeSeriesData.PointData other =
+ (com.google.monitoring.v3.TimeSeriesData.PointData) obj;
+
+ if (!getValuesList().equals(other.getValuesList())) return false;
+ if (hasTimeInterval() != other.hasTimeInterval()) return false;
+ if (hasTimeInterval()) {
+ if (!getTimeInterval().equals(other.getTimeInterval())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValuesCount() > 0) {
+ hash = (37 * hash) + VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getValuesList().hashCode();
+ }
+ if (hasTimeInterval()) {
+ hash = (37 * hash) + TIME_INTERVAL_FIELD_NUMBER;
+ hash = (53 * hash) + getTimeInterval().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesData.PointData 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.TimeSeriesData.PointData parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesData.PointData 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.TimeSeriesData.PointData parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesData.PointData 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.TimeSeriesData.PointData parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesData.PointData 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.TimeSeriesData.PointData parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesData.PointData 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.TimeSeriesData.PointData 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 point's value columns and time interval. Each point has one or more
+ * point values corresponding to the entries in `point_descriptors` field in
+ * the TimeSeriesDescriptor associated with this object.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.TimeSeriesData.PointData}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public java.util.List
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public int getValuesCount() {
+ if (valuesBuilder_ == null) {
+ return values_.size();
+ } else {
+ return valuesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public com.google.monitoring.v3.TypedValue getValues(int index) {
+ if (valuesBuilder_ == null) {
+ return values_.get(index);
+ } else {
+ return valuesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public Builder setValues(int index, com.google.monitoring.v3.TypedValue value) {
+ if (valuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.set(index, value);
+ onChanged();
+ } else {
+ valuesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public Builder setValues(
+ int index, com.google.monitoring.v3.TypedValue.Builder builderForValue) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valuesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public Builder addValues(com.google.monitoring.v3.TypedValue value) {
+ if (valuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(value);
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public Builder addValues(int index, com.google.monitoring.v3.TypedValue value) {
+ if (valuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(index, value);
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public Builder addValues(com.google.monitoring.v3.TypedValue.Builder builderForValue) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public Builder addValues(
+ int index, com.google.monitoring.v3.TypedValue.Builder builderForValue) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public Builder addAllValues(
+ java.lang.Iterable extends com.google.monitoring.v3.TypedValue> values) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_);
+ onChanged();
+ } else {
+ valuesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public Builder clearValues() {
+ if (valuesBuilder_ == null) {
+ values_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valuesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public Builder removeValues(int index) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.remove(index);
+ onChanged();
+ } else {
+ valuesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public com.google.monitoring.v3.TypedValue.Builder getValuesBuilder(int index) {
+ return getValuesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder(int index) {
+ if (valuesBuilder_ == null) {
+ return values_.get(index);
+ } else {
+ return valuesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public java.util.List extends com.google.monitoring.v3.TypedValueOrBuilder>
+ getValuesOrBuilderList() {
+ if (valuesBuilder_ != null) {
+ return valuesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(values_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public com.google.monitoring.v3.TypedValue.Builder addValuesBuilder() {
+ return getValuesFieldBuilder()
+ .addBuilder(com.google.monitoring.v3.TypedValue.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public com.google.monitoring.v3.TypedValue.Builder addValuesBuilder(int index) {
+ return getValuesFieldBuilder()
+ .addBuilder(index, com.google.monitoring.v3.TypedValue.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The values that make up the point.
+ *
+ *
+ * repeated .google.monitoring.v3.TypedValue values = 1;
+ */
+ public java.util.List
+ * The time interval associated with the point.
+ *
+ *
+ * .google.monitoring.v3.TimeInterval time_interval = 2;
+ *
+ * @return Whether the timeInterval field is set.
+ */
+ public boolean hasTimeInterval() {
+ return timeIntervalBuilder_ != null || timeInterval_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The time interval associated with the point.
+ *
+ *
+ * .google.monitoring.v3.TimeInterval time_interval = 2;
+ *
+ * @return The timeInterval.
+ */
+ public com.google.monitoring.v3.TimeInterval getTimeInterval() {
+ if (timeIntervalBuilder_ == null) {
+ return timeInterval_ == null
+ ? com.google.monitoring.v3.TimeInterval.getDefaultInstance()
+ : timeInterval_;
+ } else {
+ return timeIntervalBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The time interval associated with the point.
+ *
+ *
+ * .google.monitoring.v3.TimeInterval time_interval = 2;
+ */
+ public Builder setTimeInterval(com.google.monitoring.v3.TimeInterval value) {
+ if (timeIntervalBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ timeInterval_ = value;
+ onChanged();
+ } else {
+ timeIntervalBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The time interval associated with the point.
+ *
+ *
+ * .google.monitoring.v3.TimeInterval time_interval = 2;
+ */
+ public Builder setTimeInterval(
+ com.google.monitoring.v3.TimeInterval.Builder builderForValue) {
+ if (timeIntervalBuilder_ == null) {
+ timeInterval_ = builderForValue.build();
+ onChanged();
+ } else {
+ timeIntervalBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The time interval associated with the point.
+ *
+ *
+ * .google.monitoring.v3.TimeInterval time_interval = 2;
+ */
+ public Builder mergeTimeInterval(com.google.monitoring.v3.TimeInterval value) {
+ if (timeIntervalBuilder_ == null) {
+ if (timeInterval_ != null) {
+ timeInterval_ =
+ com.google.monitoring.v3.TimeInterval.newBuilder(timeInterval_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ timeInterval_ = value;
+ }
+ onChanged();
+ } else {
+ timeIntervalBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The time interval associated with the point.
+ *
+ *
+ * .google.monitoring.v3.TimeInterval time_interval = 2;
+ */
+ public Builder clearTimeInterval() {
+ if (timeIntervalBuilder_ == null) {
+ timeInterval_ = null;
+ onChanged();
+ } else {
+ timeInterval_ = null;
+ timeIntervalBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The time interval associated with the point.
+ *
+ *
+ * .google.monitoring.v3.TimeInterval time_interval = 2;
+ */
+ public com.google.monitoring.v3.TimeInterval.Builder getTimeIntervalBuilder() {
+
+ onChanged();
+ return getTimeIntervalFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The time interval associated with the point.
+ *
+ *
+ * .google.monitoring.v3.TimeInterval time_interval = 2;
+ */
+ public com.google.monitoring.v3.TimeIntervalOrBuilder getTimeIntervalOrBuilder() {
+ if (timeIntervalBuilder_ != null) {
+ return timeIntervalBuilder_.getMessageOrBuilder();
+ } else {
+ return timeInterval_ == null
+ ? com.google.monitoring.v3.TimeInterval.getDefaultInstance()
+ : timeInterval_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The time interval associated with the point.
+ *
+ *
+ * .google.monitoring.v3.TimeInterval time_interval = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.TimeInterval,
+ com.google.monitoring.v3.TimeInterval.Builder,
+ com.google.monitoring.v3.TimeIntervalOrBuilder>
+ getTimeIntervalFieldBuilder() {
+ if (timeIntervalBuilder_ == null) {
+ timeIntervalBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.monitoring.v3.TimeInterval,
+ com.google.monitoring.v3.TimeInterval.Builder,
+ com.google.monitoring.v3.TimeIntervalOrBuilder>(
+ getTimeInterval(), getParentForChildren(), isClean());
+ timeInterval_ = null;
+ }
+ return timeIntervalBuilder_;
+ }
+
+ @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.TimeSeriesData.PointData)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeriesData.PointData)
+ private static final com.google.monitoring.v3.TimeSeriesData.PointData DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.monitoring.v3.TimeSeriesData.PointData();
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesData.PointData getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public java.util.List
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public java.util.List extends com.google.monitoring.v3.LabelValueOrBuilder>
+ getLabelValuesOrBuilderList() {
+ return labelValues_;
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public int getLabelValuesCount() {
+ return labelValues_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public com.google.monitoring.v3.LabelValue getLabelValues(int index) {
+ return labelValues_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(int index) {
+ return labelValues_.get(index);
+ }
+
+ public static final int POINT_DATA_FIELD_NUMBER = 2;
+ private java.util.List
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public java.util.List
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public java.util.List extends com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder>
+ getPointDataOrBuilderList() {
+ return pointData_;
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public int getPointDataCount() {
+ return pointData_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public com.google.monitoring.v3.TimeSeriesData.PointData getPointData(int index) {
+ return pointData_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder getPointDataOrBuilder(
+ int index) {
+ return pointData_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < labelValues_.size(); i++) {
+ output.writeMessage(1, labelValues_.get(i));
+ }
+ for (int i = 0; i < pointData_.size(); i++) {
+ output.writeMessage(2, pointData_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < labelValues_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, labelValues_.get(i));
+ }
+ for (int i = 0; i < pointData_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, pointData_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.monitoring.v3.TimeSeriesData)) {
+ return super.equals(obj);
+ }
+ com.google.monitoring.v3.TimeSeriesData other = (com.google.monitoring.v3.TimeSeriesData) obj;
+
+ if (!getLabelValuesList().equals(other.getLabelValuesList())) return false;
+ if (!getPointDataList().equals(other.getPointDataList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getLabelValuesCount() > 0) {
+ hash = (37 * hash) + LABEL_VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getLabelValuesList().hashCode();
+ }
+ if (getPointDataCount() > 0) {
+ hash = (37 * hash) + POINT_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getPointDataList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesData parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesData 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.TimeSeriesData parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesData 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.TimeSeriesData parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesData parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesData parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesData 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.TimeSeriesData parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesData 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.TimeSeriesData parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesData 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.TimeSeriesData 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;
+ }
+ /**
+ *
+ *
+ *
+ * Represents the values of a time series associated with a
+ * TimeSeriesDescriptor.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.TimeSeriesData}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public java.util.List
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public int getLabelValuesCount() {
+ if (labelValuesBuilder_ == null) {
+ return labelValues_.size();
+ } else {
+ return labelValuesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public com.google.monitoring.v3.LabelValue getLabelValues(int index) {
+ if (labelValuesBuilder_ == null) {
+ return labelValues_.get(index);
+ } else {
+ return labelValuesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public Builder setLabelValues(int index, com.google.monitoring.v3.LabelValue value) {
+ if (labelValuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLabelValuesIsMutable();
+ labelValues_.set(index, value);
+ onChanged();
+ } else {
+ labelValuesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public Builder setLabelValues(
+ int index, com.google.monitoring.v3.LabelValue.Builder builderForValue) {
+ if (labelValuesBuilder_ == null) {
+ ensureLabelValuesIsMutable();
+ labelValues_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ labelValuesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public Builder addLabelValues(com.google.monitoring.v3.LabelValue value) {
+ if (labelValuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLabelValuesIsMutable();
+ labelValues_.add(value);
+ onChanged();
+ } else {
+ labelValuesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public Builder addLabelValues(int index, com.google.monitoring.v3.LabelValue value) {
+ if (labelValuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLabelValuesIsMutable();
+ labelValues_.add(index, value);
+ onChanged();
+ } else {
+ labelValuesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public Builder addLabelValues(com.google.monitoring.v3.LabelValue.Builder builderForValue) {
+ if (labelValuesBuilder_ == null) {
+ ensureLabelValuesIsMutable();
+ labelValues_.add(builderForValue.build());
+ onChanged();
+ } else {
+ labelValuesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public Builder addLabelValues(
+ int index, com.google.monitoring.v3.LabelValue.Builder builderForValue) {
+ if (labelValuesBuilder_ == null) {
+ ensureLabelValuesIsMutable();
+ labelValues_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ labelValuesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public Builder addAllLabelValues(
+ java.lang.Iterable extends com.google.monitoring.v3.LabelValue> values) {
+ if (labelValuesBuilder_ == null) {
+ ensureLabelValuesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelValues_);
+ onChanged();
+ } else {
+ labelValuesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public Builder clearLabelValues() {
+ if (labelValuesBuilder_ == null) {
+ labelValues_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ labelValuesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public Builder removeLabelValues(int index) {
+ if (labelValuesBuilder_ == null) {
+ ensureLabelValuesIsMutable();
+ labelValues_.remove(index);
+ onChanged();
+ } else {
+ labelValuesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public com.google.monitoring.v3.LabelValue.Builder getLabelValuesBuilder(int index) {
+ return getLabelValuesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(int index) {
+ if (labelValuesBuilder_ == null) {
+ return labelValues_.get(index);
+ } else {
+ return labelValuesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public java.util.List extends com.google.monitoring.v3.LabelValueOrBuilder>
+ getLabelValuesOrBuilderList() {
+ if (labelValuesBuilder_ != null) {
+ return labelValuesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(labelValues_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public com.google.monitoring.v3.LabelValue.Builder addLabelValuesBuilder() {
+ return getLabelValuesFieldBuilder()
+ .addBuilder(com.google.monitoring.v3.LabelValue.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public com.google.monitoring.v3.LabelValue.Builder addLabelValuesBuilder(int index) {
+ return getLabelValuesFieldBuilder()
+ .addBuilder(index, com.google.monitoring.v3.LabelValue.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ public java.util.List
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public java.util.List
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public int getPointDataCount() {
+ if (pointDataBuilder_ == null) {
+ return pointData_.size();
+ } else {
+ return pointDataBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public com.google.monitoring.v3.TimeSeriesData.PointData getPointData(int index) {
+ if (pointDataBuilder_ == null) {
+ return pointData_.get(index);
+ } else {
+ return pointDataBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public Builder setPointData(
+ int index, com.google.monitoring.v3.TimeSeriesData.PointData value) {
+ if (pointDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePointDataIsMutable();
+ pointData_.set(index, value);
+ onChanged();
+ } else {
+ pointDataBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public Builder setPointData(
+ int index, com.google.monitoring.v3.TimeSeriesData.PointData.Builder builderForValue) {
+ if (pointDataBuilder_ == null) {
+ ensurePointDataIsMutable();
+ pointData_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ pointDataBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public Builder addPointData(com.google.monitoring.v3.TimeSeriesData.PointData value) {
+ if (pointDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePointDataIsMutable();
+ pointData_.add(value);
+ onChanged();
+ } else {
+ pointDataBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public Builder addPointData(
+ int index, com.google.monitoring.v3.TimeSeriesData.PointData value) {
+ if (pointDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePointDataIsMutable();
+ pointData_.add(index, value);
+ onChanged();
+ } else {
+ pointDataBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public Builder addPointData(
+ com.google.monitoring.v3.TimeSeriesData.PointData.Builder builderForValue) {
+ if (pointDataBuilder_ == null) {
+ ensurePointDataIsMutable();
+ pointData_.add(builderForValue.build());
+ onChanged();
+ } else {
+ pointDataBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public Builder addPointData(
+ int index, com.google.monitoring.v3.TimeSeriesData.PointData.Builder builderForValue) {
+ if (pointDataBuilder_ == null) {
+ ensurePointDataIsMutable();
+ pointData_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ pointDataBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public Builder addAllPointData(
+ java.lang.Iterable extends com.google.monitoring.v3.TimeSeriesData.PointData> values) {
+ if (pointDataBuilder_ == null) {
+ ensurePointDataIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pointData_);
+ onChanged();
+ } else {
+ pointDataBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public Builder clearPointData() {
+ if (pointDataBuilder_ == null) {
+ pointData_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ pointDataBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public Builder removePointData(int index) {
+ if (pointDataBuilder_ == null) {
+ ensurePointDataIsMutable();
+ pointData_.remove(index);
+ onChanged();
+ } else {
+ pointDataBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public com.google.monitoring.v3.TimeSeriesData.PointData.Builder getPointDataBuilder(
+ int index) {
+ return getPointDataFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder getPointDataOrBuilder(
+ int index) {
+ if (pointDataBuilder_ == null) {
+ return pointData_.get(index);
+ } else {
+ return pointDataBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public java.util.List extends com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder>
+ getPointDataOrBuilderList() {
+ if (pointDataBuilder_ != null) {
+ return pointDataBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(pointData_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public com.google.monitoring.v3.TimeSeriesData.PointData.Builder addPointDataBuilder() {
+ return getPointDataFieldBuilder()
+ .addBuilder(com.google.monitoring.v3.TimeSeriesData.PointData.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public com.google.monitoring.v3.TimeSeriesData.PointData.Builder addPointDataBuilder(
+ int index) {
+ return getPointDataFieldBuilder()
+ .addBuilder(
+ index, com.google.monitoring.v3.TimeSeriesData.PointData.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ public java.util.List
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ java.util.List
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ com.google.monitoring.v3.LabelValue getLabelValues(int index);
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ int getLabelValuesCount();
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ java.util.List extends com.google.monitoring.v3.LabelValueOrBuilder>
+ getLabelValuesOrBuilderList();
+ /**
+ *
+ *
+ *
+ * The values of the labels in the time series identifier, given in the same
+ * order as the `label_descriptors` field of the TimeSeriesDescriptor
+ * associated with this object. Each value must have a value of the type
+ * given in the corresponding entry of `label_descriptors`.
+ *
+ *
+ * repeated .google.monitoring.v3.LabelValue label_values = 1;
+ */
+ com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ java.util.List
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ com.google.monitoring.v3.TimeSeriesData.PointData getPointData(int index);
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ int getPointDataCount();
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ java.util.List extends com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder>
+ getPointDataOrBuilderList();
+ /**
+ *
+ *
+ *
+ * The points in the time series.
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
+ */
+ com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder getPointDataOrBuilder(int index);
+}
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
new file mode 100644
index 00000000..d681a75e
--- /dev/null
+++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java
@@ -0,0 +1,2504 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/monitoring/v3/metric.proto
+
+package com.google.monitoring.v3;
+
+/**
+ *
+ *
+ *
+ * A descriptor for the labels and points in a timeseries.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.TimeSeriesDescriptor}
+ */
+public final class TimeSeriesDescriptor extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeSeriesDescriptor)
+ TimeSeriesDescriptorOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TimeSeriesDescriptor.newBuilder() to construct.
+ private TimeSeriesDescriptor(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private TimeSeriesDescriptor() {
+ labelDescriptors_ = java.util.Collections.emptyList();
+ pointDescriptors_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new TimeSeriesDescriptor();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private TimeSeriesDescriptor(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ labelDescriptors_ = new java.util.ArrayList
+ * The value key.
+ *
+ *
+ * string key = 1;
+ *
+ * @return The key.
+ */
+ java.lang.String getKey();
+ /**
+ *
+ *
+ *
+ * The value key.
+ *
+ *
+ * string key = 1;
+ *
+ * @return The bytes for key.
+ */
+ com.google.protobuf.ByteString getKeyBytes();
+
+ /**
+ *
+ *
+ *
+ * The value type.
+ *
+ *
+ * .google.api.MetricDescriptor.ValueType value_type = 2;
+ *
+ * @return The enum numeric value on the wire for valueType.
+ */
+ int getValueTypeValue();
+ /**
+ *
+ *
+ *
+ * The value type.
+ *
+ *
+ * .google.api.MetricDescriptor.ValueType value_type = 2;
+ *
+ * @return The valueType.
+ */
+ com.google.api.MetricDescriptor.ValueType getValueType();
+
+ /**
+ *
+ *
+ *
+ * The value stream kind.
+ *
+ *
+ * .google.api.MetricDescriptor.MetricKind metric_kind = 3;
+ *
+ * @return The enum numeric value on the wire for metricKind.
+ */
+ int getMetricKindValue();
+ /**
+ *
+ *
+ *
+ * The value stream kind.
+ *
+ *
+ * .google.api.MetricDescriptor.MetricKind metric_kind = 3;
+ *
+ * @return The metricKind.
+ */
+ com.google.api.MetricDescriptor.MetricKind getMetricKind();
+ }
+ /**
+ *
+ *
+ *
+ * A descriptor for the value columns in a data point.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor}
+ */
+ public static final class ValueDescriptor extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor)
+ ValueDescriptorOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ValueDescriptor.newBuilder() to construct.
+ private ValueDescriptor(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ValueDescriptor() {
+ key_ = "";
+ valueType_ = 0;
+ metricKind_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ValueDescriptor();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ValueDescriptor(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ case 16:
+ {
+ int rawValue = input.readEnum();
+
+ valueType_ = rawValue;
+ break;
+ }
+ case 24:
+ {
+ int rawValue = input.readEnum();
+
+ metricKind_ = rawValue;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.monitoring.v3.MetricProto
+ .internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.monitoring.v3.MetricProto
+ .internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.class,
+ com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder.class);
+ }
+
+ public static final int KEY_FIELD_NUMBER = 1;
+ private volatile java.lang.Object key_;
+ /**
+ *
+ *
+ *
+ * The value key.
+ *
+ *
+ * string key = 1;
+ *
+ * @return The key.
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ 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();
+ key_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The value key.
+ *
+ *
+ * string key = 1;
+ *
+ * @return The bytes for key.
+ */
+ public com.google.protobuf.ByteString getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUE_TYPE_FIELD_NUMBER = 2;
+ private int valueType_;
+ /**
+ *
+ *
+ *
+ * The value type.
+ *
+ *
+ * .google.api.MetricDescriptor.ValueType value_type = 2;
+ *
+ * @return The enum numeric value on the wire for valueType.
+ */
+ public int getValueTypeValue() {
+ return valueType_;
+ }
+ /**
+ *
+ *
+ *
+ * The value type.
+ *
+ *
+ * .google.api.MetricDescriptor.ValueType value_type = 2;
+ *
+ * @return The valueType.
+ */
+ public com.google.api.MetricDescriptor.ValueType getValueType() {
+ @SuppressWarnings("deprecation")
+ com.google.api.MetricDescriptor.ValueType result =
+ com.google.api.MetricDescriptor.ValueType.valueOf(valueType_);
+ return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result;
+ }
+
+ public static final int METRIC_KIND_FIELD_NUMBER = 3;
+ private int metricKind_;
+ /**
+ *
+ *
+ *
+ * The value stream kind.
+ *
+ *
+ * .google.api.MetricDescriptor.MetricKind metric_kind = 3;
+ *
+ * @return The enum numeric value on the wire for metricKind.
+ */
+ public int getMetricKindValue() {
+ return metricKind_;
+ }
+ /**
+ *
+ *
+ *
+ * The value stream kind.
+ *
+ *
+ * .google.api.MetricDescriptor.MetricKind metric_kind = 3;
+ *
+ * @return The metricKind.
+ */
+ public com.google.api.MetricDescriptor.MetricKind getMetricKind() {
+ @SuppressWarnings("deprecation")
+ com.google.api.MetricDescriptor.MetricKind result =
+ com.google.api.MetricDescriptor.MetricKind.valueOf(metricKind_);
+ return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getKeyBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
+ }
+ if (valueType_
+ != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(2, valueType_);
+ }
+ if (metricKind_
+ != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) {
+ output.writeEnum(3, metricKind_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getKeyBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
+ }
+ if (valueType_
+ != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, valueType_);
+ }
+ if (metricKind_
+ != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, metricKind_);
+ }
+ 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.TimeSeriesDescriptor.ValueDescriptor)) {
+ return super.equals(obj);
+ }
+ com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor other =
+ (com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) obj;
+
+ if (!getKey().equals(other.getKey())) return false;
+ if (valueType_ != other.valueType_) return false;
+ if (metricKind_ != other.metricKind_) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getKey().hashCode();
+ hash = (37 * hash) + VALUE_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + valueType_;
+ hash = (37 * hash) + METRIC_KIND_FIELD_NUMBER;
+ hash = (53 * hash) + metricKind_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor 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.TimeSeriesDescriptor.ValueDescriptor parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor 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.TimeSeriesDescriptor.ValueDescriptor parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor 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.TimeSeriesDescriptor.ValueDescriptor parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor 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.TimeSeriesDescriptor.ValueDescriptor parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor 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.TimeSeriesDescriptor.ValueDescriptor 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 descriptor for the value columns in a data point.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The value key.
+ *
+ *
+ * string key = 1;
+ *
+ * @return The key.
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The value key.
+ *
+ *
+ * string key = 1;
+ *
+ * @return The bytes for key.
+ */
+ public com.google.protobuf.ByteString getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The value key.
+ *
+ *
+ * string key = 1;
+ *
+ * @param value The key to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKey(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The value key.
+ *
+ *
+ * string key = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The value key.
+ *
+ *
+ * string key = 1;
+ *
+ * @param value The bytes for key to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKeyBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int valueType_ = 0;
+ /**
+ *
+ *
+ *
+ * The value type.
+ *
+ *
+ * .google.api.MetricDescriptor.ValueType value_type = 2;
+ *
+ * @return The enum numeric value on the wire for valueType.
+ */
+ public int getValueTypeValue() {
+ return valueType_;
+ }
+ /**
+ *
+ *
+ *
+ * The value type.
+ *
+ *
+ * .google.api.MetricDescriptor.ValueType value_type = 2;
+ *
+ * @param value The enum numeric value on the wire for valueType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValueTypeValue(int value) {
+ valueType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The value type.
+ *
+ *
+ * .google.api.MetricDescriptor.ValueType value_type = 2;
+ *
+ * @return The valueType.
+ */
+ public com.google.api.MetricDescriptor.ValueType getValueType() {
+ @SuppressWarnings("deprecation")
+ com.google.api.MetricDescriptor.ValueType result =
+ com.google.api.MetricDescriptor.ValueType.valueOf(valueType_);
+ return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ *
+ * The value type.
+ *
+ *
+ * .google.api.MetricDescriptor.ValueType value_type = 2;
+ *
+ * @param value The valueType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValueType(com.google.api.MetricDescriptor.ValueType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ valueType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The value type.
+ *
+ *
+ * .google.api.MetricDescriptor.ValueType value_type = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearValueType() {
+
+ valueType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int metricKind_ = 0;
+ /**
+ *
+ *
+ *
+ * The value stream kind.
+ *
+ *
+ * .google.api.MetricDescriptor.MetricKind metric_kind = 3;
+ *
+ * @return The enum numeric value on the wire for metricKind.
+ */
+ public int getMetricKindValue() {
+ return metricKind_;
+ }
+ /**
+ *
+ *
+ *
+ * The value stream kind.
+ *
+ *
+ * .google.api.MetricDescriptor.MetricKind metric_kind = 3;
+ *
+ * @param value The enum numeric value on the wire for metricKind to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMetricKindValue(int value) {
+ metricKind_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The value stream kind.
+ *
+ *
+ * .google.api.MetricDescriptor.MetricKind metric_kind = 3;
+ *
+ * @return The metricKind.
+ */
+ public com.google.api.MetricDescriptor.MetricKind getMetricKind() {
+ @SuppressWarnings("deprecation")
+ com.google.api.MetricDescriptor.MetricKind result =
+ com.google.api.MetricDescriptor.MetricKind.valueOf(metricKind_);
+ return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ *
+ * The value stream kind.
+ *
+ *
+ * .google.api.MetricDescriptor.MetricKind metric_kind = 3;
+ *
+ * @param value The metricKind to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMetricKind(com.google.api.MetricDescriptor.MetricKind value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ metricKind_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The value stream kind.
+ *
+ *
+ * .google.api.MetricDescriptor.MetricKind metric_kind = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMetricKind() {
+
+ metricKind_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor)
+ private static final com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor();
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public java.util.List
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public java.util.List extends com.google.api.LabelDescriptorOrBuilder>
+ getLabelDescriptorsOrBuilderList() {
+ return labelDescriptors_;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public int getLabelDescriptorsCount() {
+ return labelDescriptors_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public com.google.api.LabelDescriptor getLabelDescriptors(int index) {
+ return labelDescriptors_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder(int index) {
+ return labelDescriptors_.get(index);
+ }
+
+ public static final int POINT_DESCRIPTORS_FIELD_NUMBER = 5;
+ private java.util.List
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public java.util.List
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder>
+ getPointDescriptorsOrBuilderList() {
+ return pointDescriptors_;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public int getPointDescriptorsCount() {
+ return pointDescriptors_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getPointDescriptors(
+ int index) {
+ return pointDescriptors_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder
+ getPointDescriptorsOrBuilder(int index) {
+ return pointDescriptors_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < labelDescriptors_.size(); i++) {
+ output.writeMessage(1, labelDescriptors_.get(i));
+ }
+ for (int i = 0; i < pointDescriptors_.size(); i++) {
+ output.writeMessage(5, pointDescriptors_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < labelDescriptors_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, labelDescriptors_.get(i));
+ }
+ for (int i = 0; i < pointDescriptors_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, pointDescriptors_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.monitoring.v3.TimeSeriesDescriptor)) {
+ return super.equals(obj);
+ }
+ com.google.monitoring.v3.TimeSeriesDescriptor other =
+ (com.google.monitoring.v3.TimeSeriesDescriptor) obj;
+
+ if (!getLabelDescriptorsList().equals(other.getLabelDescriptorsList())) return false;
+ if (!getPointDescriptorsList().equals(other.getPointDescriptorsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getLabelDescriptorsCount() > 0) {
+ hash = (37 * hash) + LABEL_DESCRIPTORS_FIELD_NUMBER;
+ hash = (53 * hash) + getLabelDescriptorsList().hashCode();
+ }
+ if (getPointDescriptorsCount() > 0) {
+ hash = (37 * hash) + POINT_DESCRIPTORS_FIELD_NUMBER;
+ hash = (53 * hash) + getPointDescriptorsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesDescriptor 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.TimeSeriesDescriptor parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesDescriptor 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.TimeSeriesDescriptor parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesDescriptor 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.TimeSeriesDescriptor parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesDescriptor 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.TimeSeriesDescriptor parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.monitoring.v3.TimeSeriesDescriptor 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.TimeSeriesDescriptor 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 descriptor for the labels and points in a timeseries.
+ *
+ *
+ * Protobuf type {@code google.monitoring.v3.TimeSeriesDescriptor}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public java.util.List
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public int getLabelDescriptorsCount() {
+ if (labelDescriptorsBuilder_ == null) {
+ return labelDescriptors_.size();
+ } else {
+ return labelDescriptorsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public com.google.api.LabelDescriptor getLabelDescriptors(int index) {
+ if (labelDescriptorsBuilder_ == null) {
+ return labelDescriptors_.get(index);
+ } else {
+ return labelDescriptorsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public Builder setLabelDescriptors(int index, com.google.api.LabelDescriptor value) {
+ if (labelDescriptorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLabelDescriptorsIsMutable();
+ labelDescriptors_.set(index, value);
+ onChanged();
+ } else {
+ labelDescriptorsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public Builder setLabelDescriptors(
+ int index, com.google.api.LabelDescriptor.Builder builderForValue) {
+ if (labelDescriptorsBuilder_ == null) {
+ ensureLabelDescriptorsIsMutable();
+ labelDescriptors_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ labelDescriptorsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public Builder addLabelDescriptors(com.google.api.LabelDescriptor value) {
+ if (labelDescriptorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLabelDescriptorsIsMutable();
+ labelDescriptors_.add(value);
+ onChanged();
+ } else {
+ labelDescriptorsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public Builder addLabelDescriptors(int index, com.google.api.LabelDescriptor value) {
+ if (labelDescriptorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLabelDescriptorsIsMutable();
+ labelDescriptors_.add(index, value);
+ onChanged();
+ } else {
+ labelDescriptorsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public Builder addLabelDescriptors(com.google.api.LabelDescriptor.Builder builderForValue) {
+ if (labelDescriptorsBuilder_ == null) {
+ ensureLabelDescriptorsIsMutable();
+ labelDescriptors_.add(builderForValue.build());
+ onChanged();
+ } else {
+ labelDescriptorsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public Builder addLabelDescriptors(
+ int index, com.google.api.LabelDescriptor.Builder builderForValue) {
+ if (labelDescriptorsBuilder_ == null) {
+ ensureLabelDescriptorsIsMutable();
+ labelDescriptors_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ labelDescriptorsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public Builder addAllLabelDescriptors(
+ java.lang.Iterable extends com.google.api.LabelDescriptor> values) {
+ if (labelDescriptorsBuilder_ == null) {
+ ensureLabelDescriptorsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelDescriptors_);
+ onChanged();
+ } else {
+ labelDescriptorsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public Builder clearLabelDescriptors() {
+ if (labelDescriptorsBuilder_ == null) {
+ labelDescriptors_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ labelDescriptorsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public Builder removeLabelDescriptors(int index) {
+ if (labelDescriptorsBuilder_ == null) {
+ ensureLabelDescriptorsIsMutable();
+ labelDescriptors_.remove(index);
+ onChanged();
+ } else {
+ labelDescriptorsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public com.google.api.LabelDescriptor.Builder getLabelDescriptorsBuilder(int index) {
+ return getLabelDescriptorsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder(int index) {
+ if (labelDescriptorsBuilder_ == null) {
+ return labelDescriptors_.get(index);
+ } else {
+ return labelDescriptorsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public java.util.List extends com.google.api.LabelDescriptorOrBuilder>
+ getLabelDescriptorsOrBuilderList() {
+ if (labelDescriptorsBuilder_ != null) {
+ return labelDescriptorsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(labelDescriptors_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public com.google.api.LabelDescriptor.Builder addLabelDescriptorsBuilder() {
+ return getLabelDescriptorsFieldBuilder()
+ .addBuilder(com.google.api.LabelDescriptor.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public com.google.api.LabelDescriptor.Builder addLabelDescriptorsBuilder(int index) {
+ return getLabelDescriptorsFieldBuilder()
+ .addBuilder(index, com.google.api.LabelDescriptor.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ public java.util.List
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public java.util.List
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public int getPointDescriptorsCount() {
+ if (pointDescriptorsBuilder_ == null) {
+ return pointDescriptors_.size();
+ } else {
+ return pointDescriptorsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getPointDescriptors(
+ int index) {
+ if (pointDescriptorsBuilder_ == null) {
+ return pointDescriptors_.get(index);
+ } else {
+ return pointDescriptorsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public Builder setPointDescriptors(
+ int index, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor value) {
+ if (pointDescriptorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePointDescriptorsIsMutable();
+ pointDescriptors_.set(index, value);
+ onChanged();
+ } else {
+ pointDescriptorsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public Builder setPointDescriptors(
+ int index,
+ com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder builderForValue) {
+ if (pointDescriptorsBuilder_ == null) {
+ ensurePointDescriptorsIsMutable();
+ pointDescriptors_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ pointDescriptorsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public Builder addPointDescriptors(
+ com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor value) {
+ if (pointDescriptorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePointDescriptorsIsMutable();
+ pointDescriptors_.add(value);
+ onChanged();
+ } else {
+ pointDescriptorsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public Builder addPointDescriptors(
+ int index, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor value) {
+ if (pointDescriptorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePointDescriptorsIsMutable();
+ pointDescriptors_.add(index, value);
+ onChanged();
+ } else {
+ pointDescriptorsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public Builder addPointDescriptors(
+ com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder builderForValue) {
+ if (pointDescriptorsBuilder_ == null) {
+ ensurePointDescriptorsIsMutable();
+ pointDescriptors_.add(builderForValue.build());
+ onChanged();
+ } else {
+ pointDescriptorsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public Builder addPointDescriptors(
+ int index,
+ com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder builderForValue) {
+ if (pointDescriptorsBuilder_ == null) {
+ ensurePointDescriptorsIsMutable();
+ pointDescriptors_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ pointDescriptorsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public Builder addAllPointDescriptors(
+ java.lang.Iterable extends com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor>
+ values) {
+ if (pointDescriptorsBuilder_ == null) {
+ ensurePointDescriptorsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pointDescriptors_);
+ onChanged();
+ } else {
+ pointDescriptorsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public Builder clearPointDescriptors() {
+ if (pointDescriptorsBuilder_ == null) {
+ pointDescriptors_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ pointDescriptorsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public Builder removePointDescriptors(int index) {
+ if (pointDescriptorsBuilder_ == null) {
+ ensurePointDescriptorsIsMutable();
+ pointDescriptors_.remove(index);
+ onChanged();
+ } else {
+ pointDescriptorsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder
+ getPointDescriptorsBuilder(int index) {
+ return getPointDescriptorsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder
+ getPointDescriptorsOrBuilder(int index) {
+ if (pointDescriptorsBuilder_ == null) {
+ return pointDescriptors_.get(index);
+ } else {
+ return pointDescriptorsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder>
+ getPointDescriptorsOrBuilderList() {
+ if (pointDescriptorsBuilder_ != null) {
+ return pointDescriptorsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(pointDescriptors_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder
+ addPointDescriptorsBuilder() {
+ return getPointDescriptorsFieldBuilder()
+ .addBuilder(
+ com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder
+ addPointDescriptorsBuilder(int index) {
+ return getPointDescriptorsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ public java.util.List
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ java.util.List
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ com.google.api.LabelDescriptor getLabelDescriptors(int index);
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ int getLabelDescriptorsCount();
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ java.util.List extends com.google.api.LabelDescriptorOrBuilder>
+ getLabelDescriptorsOrBuilderList();
+ /**
+ *
+ *
+ *
+ * Descriptors for the labels.
+ *
+ *
+ * repeated .google.api.LabelDescriptor label_descriptors = 1;
+ */
+ com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ java.util.List
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getPointDescriptors(int index);
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ int getPointDescriptorsCount();
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ java.util.List extends com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder>
+ getPointDescriptorsOrBuilderList();
+ /**
+ *
+ *
+ *
+ * Descriptors for the point data value columns.
+ *
+ *
+ *
+ * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5;
+ *
+ */
+ com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder
+ getPointDescriptorsOrBuilder(int index);
+}
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 af633c0d..d50c54f4 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
@@ -303,7 +303,8 @@ public interface ResourceGroupOrBuilder
*
*
* The group of resources being monitored. Should be only the `[GROUP_ID]`,
- * and not the full-path `projects/[PROJECT_ID]/groups/[GROUP_ID]`.
+ * and not the full-path
+ * `projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]`.
*
*
* string group_id = 1;
@@ -316,7 +317,8 @@ public interface ResourceGroupOrBuilder
*
*
* The group of resources being monitored. Should be only the `[GROUP_ID]`,
- * and not the full-path `projects/[PROJECT_ID]/groups/[GROUP_ID]`.
+ * and not the full-path
+ * `projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]`.
*
*
* string group_id = 1;
@@ -459,7 +461,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* The group of resources being monitored. Should be only the `[GROUP_ID]`,
- * and not the full-path `projects/[PROJECT_ID]/groups/[GROUP_ID]`.
+ * and not the full-path
+ * `projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]`.
*
*
* string group_id = 1;
@@ -482,7 +485,8 @@ public java.lang.String getGroupId() {
*
*
* The group of resources being monitored. Should be only the `[GROUP_ID]`,
- * and not the full-path `projects/[PROJECT_ID]/groups/[GROUP_ID]`.
+ * and not the full-path
+ * `projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]`.
*
*
* string group_id = 1;
@@ -882,7 +886,8 @@ public Builder mergeFrom(
*
*
* The group of resources being monitored. Should be only the `[GROUP_ID]`,
- * and not the full-path `projects/[PROJECT_ID]/groups/[GROUP_ID]`.
+ * and not the full-path
+ * `projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]`.
*
*
* string group_id = 1;
@@ -905,7 +910,8 @@ public java.lang.String getGroupId() {
*
*
* The group of resources being monitored. Should be only the `[GROUP_ID]`,
- * and not the full-path `projects/[PROJECT_ID]/groups/[GROUP_ID]`.
+ * and not the full-path
+ * `projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]`.
*
*
* string group_id = 1;
@@ -928,7 +934,8 @@ public com.google.protobuf.ByteString getGroupIdBytes() {
*
*
* The group of resources being monitored. Should be only the `[GROUP_ID]`,
- * and not the full-path `projects/[PROJECT_ID]/groups/[GROUP_ID]`.
+ * and not the full-path
+ * `projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]`.
*
*
* string group_id = 1;
@@ -950,7 +957,8 @@ public Builder setGroupId(java.lang.String value) {
*
*
* The group of resources being monitored. Should be only the `[GROUP_ID]`,
- * and not the full-path `projects/[PROJECT_ID]/groups/[GROUP_ID]`.
+ * and not the full-path
+ * `projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]`.
*
*
* string group_id = 1;
@@ -968,7 +976,8 @@ public Builder clearGroupId() {
*
*
* The group of resources being monitored. Should be only the `[GROUP_ID]`,
- * and not the full-path `projects/[PROJECT_ID]/groups/[GROUP_ID]`.
+ * and not the full-path
+ * `projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]`.
*
*
* string group_id = 1;
@@ -5763,7 +5772,7 @@ public CheckRequestTypeCase getCheckRequestTypeCase() {
*
*
* A unique resource name for this Uptime check configuration. The format is:
- * `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
* This field should be omitted when creating the Uptime check configuration;
* on create, the resource name is assigned by the server and included in the
* response.
@@ -5789,7 +5798,7 @@ public java.lang.String getName() {
*
*
* A unique resource name for this Uptime check configuration. The format is:
- * `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+ * projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
* This field should be omitted when creating the Uptime check configuration;
* on create, the resource name is assigned by the server and included in the
* response.
@@ -7238,7 +7247,7 @@ public Builder clearCheckRequestType() {
*
*